Step 4: Query and Scan the Data