Implemented QueryProcessor.