Query overriding