public String getQuery() {
        return query;
    }
QueryStatement class is responsible for constructing SQL query statements.
client-v2/src/main/java/com/clickhouse/client/api/query/QueryStatement.java