Thread:Help talk:Inline queries 1.2/How Can I Make a table using two different categories?/reply

Sounds like this is what you are looking for: {{#ask: ...

More info: Help:Selecting_pages