If you need to work with a database and you were hoping that that's what "query" here meant (as opposed to probably being CGI-related as monarch suggester), then take a look at the
Tutorials in the database section (especially
Before asking a database related question ...)