First implementation of the QueryBuilder class