Making the SentenceQuery work