c1 done:struct query_t todo:test