query_sample