Query adjustment