Jesus asks this question to remind the scribes and Pharisees of something David did on the Sabbath. The question is very long, so it can be divided into two sentences. (See: [[rc://en/ta/man/translate/figs-rquestion]])
This can be stated as a command. Alternate translation: "Remember what you read about what David did ... him." (See: [[rc://en/ta/man/translate/figs-rquestion]])
Jesus refers to reading about David in the Old Testament. This can be translated showing the implicit information. Alternate translation: "read in the scriptures what David" (See: [[rc://en/ta/man/translate/figs-explicit]])