analyze query