send query as payload