Implemente the processQuery method for QueryPhrase