use DbQ\Query; use DbQ\Select; $query = new Query(); $select = new Select("users"); $select->fields(["id", "username", "email"]) ->where("age", ">", 18) ->orderBy("username", "ASC"); $query->addSelect($select); $sql = $query->getSql(); // returns SQL string $result = $db->query($sql); // executes SQL on databaseIn the above example, we are creating a new query object and adding a select statement to it using the `Select` class. We are specifying the table name as `users` and the fields to select as `id`, `username`, and `email`. We are also setting a condition on the age field using the `where` method and specifying an order using `orderBy`. Finally, we are getting the SQL string using `getSql` and executing it on the database using `query`. The package library for PHP DbQ is `dbq/dbq`.