query strategy implemented