@Override
    public Query as(Name alias) {
        return new Query(alias, this);
    }
Create a <code>stroom.query</code> table reference
stroom-dashboard/stroom-storedquery-impl-db-jooq/src/main/java/stroom/storedquery/impl/db/jooq/tables/Query.java