You can put more than one function in one file.

Sure, but not more than one query per file

Hm, what is preventing from putting more than one query into the same file?

The fact that you plan and execute query by query?