inplement QueryPharse