get_query to servet side