Example: Query and Scan