I have several tables I need help to generate a query string, I am currently querying each of the tables and combining the results in the frontend which is making too many r