SQL statements are created from Query objects using the QueryBuilder::build-method.
QueryBuilder is also used by Command to build SQL statements such as INSERT, UPDATE, DELETE, CREATE TABLE.
For more details and usage information on QueryBuilder, see the guide article on query builders.