add query_c and query_d