query resolve