I have seen the use of a reference cell to take the query place of the function.
For example:
Instead of A4 containing the entire function: =QUERY