<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query(name):
 """Print the collection query."""

    collection = Collection.query.filter_by(name=name).one()
    click.echo(collection.dbquery)