Send query RPC implementation