query preprocessing