When I create a resource query, there appears to be no rhyme nor reason to the folder in which it will get created.
Can I suggest it would make more sense to create it in either the currently selected (blue) folder, or if no folder is selected, in the same folder as the currently selected query?
If no query is selected, just created it at the very bottom of the list of queries.