N-Grams Assisted Long Web Search Query Optimization