Bind parameter is not of the expected type gemfire

http://xx.xx.xxx.xxx:9090/gemfire-api/v1/queries/adhoc?q=select * from (select * from orders t1,order_details t2 where t1.orderid = t2.orderid) t5,(select * from products t3,order_details t4 where t3.productid = t4.productid) t6 where t5.orderid = t6.orderid

when i send a GET request to gemfire server with adhoc query(nested), I am getting:

Bind parameter is not of the expected type,

how to solve this?