replace query with stemmed q