code: private QueryObservable executeQuery(QueryBuilder queryBuilder) {
  
      // Raw query properties as default
      String sql = queryBuilder.rawStatement;
      Iterable<String> affectedTables = queryBuilder.rawStatementAffectedTables;
  
      // If SqlFinishedStatement is set then use that one
      if (queryBuilder.statement != null) {
  
        SqlCompileable.CompileableStatement compileableStatement =
            queryBuilder.statement.asCompileableStatement();
  
        sql = compileableStatement.sql;
        affectedTables = compileableStatement.tables;
      }
  
      // Check for auto update
      if (!queryBuilder.autoUpdate || affectedTables == null) {
        affectedTables = Collections.emptySet();
      }
  
      return db.createQuery(affectedTables, sql, queryBuilder.args);
    }
docs: Executes the a query