Scan and query samples