with phrases inserted and queried