presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoPreparedStatement.java/PrestoPreparedStatement/executeQuery
class PrestoPreparedStatement:    @Override
    public ResultSet executeQuery()
            throws SQLException
    {
        if (!super.execute(getExecuteSql())) {
            throw new SQLException("Prepared SQL statement is not a query: " + originalSql);
        }
        return getResultSet();
    }