get_query to server side