Rearranged query definitions to a more logical arrangement

They should now be in order from most commonly used to least.