Yes, combine them in one query and use regex for the table name. Here is one example if you search the forum here you can find more examples.
The docs have a few examples of queries using regex too.