If the payments that are imported have a specific comment added to the file (and therefore to the payment after importing), query on students with a specific payment comment:
1. Create a new record query.
2. Use the following criteria:
- Record, Record type <equals> student
- Payment, Student Billing Payment, Comment <equals> [comment]
3. Choose the necessary output.
4. Run the query.