Queries can be variables from a URL, a Form, or a database to display the values on the page.
When using a query against a database, it is called "Structured Query Language" (SQL).
When used correctly, you can use information from a form or a URL string to display the user records stored in a database.