Parse query into bigram and its term frequency