filter unretrievable queries