query and scan
query test