/* tracker-sparql-query.c generated by valac 0.22.1, the Vala compiler
 * generated from tracker-sparql-query.vala, do not modify */

/*
 * Copyright (C) 2008-2010, Nokia
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include "libtracker-data/tracker-property.h"
#include "libtracker-data/tracker-class.h"
#include "libtracker-data/tracker-data-query.h"
#include "libtracker-data/tracker-data-update.h"
#include "libtracker-data/tracker-data-backup.h"
#include "libtracker-sparql/tracker-sparql.h"
#include "libtracker-data/tracker-db-interface.h"
#include "libtracker-common/tracker-date-time.h"
#include "libtracker-data/tracker-ontologies.h"
#include "libtracker-data/tracker-namespace.h"
#include "libtracker-data/tracker-db-manager.h"
#include <float.h>
#include <math.h>
#include <gobject/gvaluecollector.h>


#define TRACKER_SPARQL_TYPE_VARIABLE_STATE (tracker_sparql_variable_state_get_type ())

#define TRACKER_SPARQL_TYPE_DATA_TABLE (tracker_sparql_data_table_get_type ())
#define TRACKER_SPARQL_DATA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_DATA_TABLE, TrackerSparqlDataTable))
#define TRACKER_SPARQL_DATA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_DATA_TABLE, TrackerSparqlDataTableClass))
#define TRACKER_SPARQL_IS_DATA_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_DATA_TABLE))
#define TRACKER_SPARQL_IS_DATA_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_DATA_TABLE))
#define TRACKER_SPARQL_DATA_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_DATA_TABLE, TrackerSparqlDataTableClass))

typedef struct _TrackerSparqlDataTable TrackerSparqlDataTable;
typedef struct _TrackerSparqlDataTableClass TrackerSparqlDataTableClass;
typedef struct _TrackerSparqlDataTablePrivate TrackerSparqlDataTablePrivate;

#define TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE (tracker_sparql_predicate_variable_get_type ())
#define TRACKER_SPARQL_PREDICATE_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE, TrackerSparqlPredicateVariable))
#define TRACKER_SPARQL_PREDICATE_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE, TrackerSparqlPredicateVariableClass))
#define TRACKER_SPARQL_IS_PREDICATE_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE))
#define TRACKER_SPARQL_IS_PREDICATE_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE))
#define TRACKER_SPARQL_PREDICATE_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_PREDICATE_VARIABLE, TrackerSparqlPredicateVariableClass))

typedef struct _TrackerSparqlPredicateVariable TrackerSparqlPredicateVariable;
typedef struct _TrackerSparqlPredicateVariableClass TrackerSparqlPredicateVariableClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TRACKER_SPARQL_TYPE_DATA_BINDING (tracker_sparql_data_binding_get_type ())
#define TRACKER_SPARQL_DATA_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBinding))
#define TRACKER_SPARQL_DATA_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBindingClass))
#define TRACKER_SPARQL_IS_DATA_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_DATA_BINDING))
#define TRACKER_SPARQL_IS_DATA_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_DATA_BINDING))
#define TRACKER_SPARQL_DATA_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBindingClass))

typedef struct _TrackerSparqlDataBinding TrackerSparqlDataBinding;
typedef struct _TrackerSparqlDataBindingClass TrackerSparqlDataBindingClass;
typedef struct _TrackerSparqlDataBindingPrivate TrackerSparqlDataBindingPrivate;

#define TRACKER_SPARQL_TYPE_LITERAL_BINDING (tracker_sparql_literal_binding_get_type ())
#define TRACKER_SPARQL_LITERAL_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_LITERAL_BINDING, TrackerSparqlLiteralBinding))
#define TRACKER_SPARQL_LITERAL_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_LITERAL_BINDING, TrackerSparqlLiteralBindingClass))
#define TRACKER_SPARQL_IS_LITERAL_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_LITERAL_BINDING))
#define TRACKER_SPARQL_IS_LITERAL_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_LITERAL_BINDING))
#define TRACKER_SPARQL_LITERAL_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_LITERAL_BINDING, TrackerSparqlLiteralBindingClass))

typedef struct _TrackerSparqlLiteralBinding TrackerSparqlLiteralBinding;
typedef struct _TrackerSparqlLiteralBindingClass TrackerSparqlLiteralBindingClass;
typedef struct _TrackerSparqlLiteralBindingPrivate TrackerSparqlLiteralBindingPrivate;

#define TRACKER_SPARQL_TYPE_VARIABLE_BINDING (tracker_sparql_variable_binding_get_type ())
#define TRACKER_SPARQL_VARIABLE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING, TrackerSparqlVariableBinding))
#define TRACKER_SPARQL_VARIABLE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_VARIABLE_BINDING, TrackerSparqlVariableBindingClass))
#define TRACKER_SPARQL_IS_VARIABLE_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING))
#define TRACKER_SPARQL_IS_VARIABLE_BINDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_VARIABLE_BINDING))
#define TRACKER_SPARQL_VARIABLE_BINDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING, TrackerSparqlVariableBindingClass))

typedef struct _TrackerSparqlVariableBinding TrackerSparqlVariableBinding;
typedef struct _TrackerSparqlVariableBindingClass TrackerSparqlVariableBindingClass;
typedef struct _TrackerSparqlVariableBindingPrivate TrackerSparqlVariableBindingPrivate;

#define TRACKER_SPARQL_TYPE_VARIABLE (tracker_sparql_variable_get_type ())
#define TRACKER_SPARQL_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariable))
#define TRACKER_SPARQL_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariableClass))
#define TRACKER_SPARQL_IS_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_VARIABLE))
#define TRACKER_SPARQL_IS_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_VARIABLE))
#define TRACKER_SPARQL_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariableClass))

typedef struct _TrackerSparqlVariable TrackerSparqlVariable;
typedef struct _TrackerSparqlVariableClass TrackerSparqlVariableClass;

#define TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST (tracker_sparql_variable_binding_list_get_type ())
#define TRACKER_SPARQL_VARIABLE_BINDING_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST, TrackerSparqlVariableBindingList))
#define TRACKER_SPARQL_VARIABLE_BINDING_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST, TrackerSparqlVariableBindingListClass))
#define TRACKER_SPARQL_IS_VARIABLE_BINDING_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST))
#define TRACKER_SPARQL_IS_VARIABLE_BINDING_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST))
#define TRACKER_SPARQL_VARIABLE_BINDING_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST, TrackerSparqlVariableBindingListClass))

typedef struct _TrackerSparqlVariableBindingList TrackerSparqlVariableBindingList;
typedef struct _TrackerSparqlVariableBindingListClass TrackerSparqlVariableBindingListClass;
typedef struct _TrackerSparqlVariableBindingListPrivate TrackerSparqlVariableBindingListPrivate;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _TrackerSparqlVariablePrivate TrackerSparqlVariablePrivate;

#define TRACKER_SPARQL_TYPE_CONTEXT (tracker_sparql_context_get_type ())
#define TRACKER_SPARQL_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_CONTEXT, TrackerSparqlContext))
#define TRACKER_SPARQL_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_CONTEXT, TrackerSparqlContextClass))
#define TRACKER_SPARQL_IS_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_CONTEXT))
#define TRACKER_SPARQL_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_CONTEXT))
#define TRACKER_SPARQL_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_CONTEXT, TrackerSparqlContextClass))

typedef struct _TrackerSparqlContext TrackerSparqlContext;
typedef struct _TrackerSparqlContextClass TrackerSparqlContextClass;
typedef struct _TrackerSparqlContextPrivate TrackerSparqlContextPrivate;

#define TRACKER_SPARQL_TYPE_QUERY (tracker_sparql_query_get_type ())
#define TRACKER_SPARQL_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQuery))
#define TRACKER_SPARQL_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQueryClass))
#define TRACKER_SPARQL_IS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_QUERY))
#define TRACKER_SPARQL_IS_QUERY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_QUERY))
#define TRACKER_SPARQL_QUERY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQueryClass))

typedef struct _TrackerSparqlQuery TrackerSparqlQuery;
typedef struct _TrackerSparqlQueryClass TrackerSparqlQueryClass;
#define _tracker_sparql_context_unref0(var) ((var == NULL) ? NULL : (var = (tracker_sparql_context_unref (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _TrackerSparqlQueryPrivate TrackerSparqlQueryPrivate;

#define TRACKER_SPARQL_TYPE_EXPRESSION (tracker_sparql_expression_get_type ())
#define TRACKER_SPARQL_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpression))
#define TRACKER_SPARQL_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpressionClass))
#define TRACKER_SPARQL_IS_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_EXPRESSION))
#define TRACKER_SPARQL_IS_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_EXPRESSION))
#define TRACKER_SPARQL_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpressionClass))

typedef struct _TrackerSparqlExpression TrackerSparqlExpression;
typedef struct _TrackerSparqlExpressionClass TrackerSparqlExpressionClass;

#define TRACKER_SPARQL_TYPE_PATTERN (tracker_sparql_pattern_get_type ())
#define TRACKER_SPARQL_PATTERN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_PATTERN, TrackerSparqlPattern))
#define TRACKER_SPARQL_PATTERN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_PATTERN, TrackerSparqlPatternClass))
#define TRACKER_SPARQL_IS_PATTERN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_PATTERN))
#define TRACKER_SPARQL_IS_PATTERN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_PATTERN))
#define TRACKER_SPARQL_PATTERN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_PATTERN, TrackerSparqlPatternClass))

typedef struct _TrackerSparqlPattern TrackerSparqlPattern;
typedef struct _TrackerSparqlPatternClass TrackerSparqlPatternClass;
typedef struct _TrackerSparqlParamSpecContext TrackerSparqlParamSpecContext;

#define TRACKER_SPARQL_TYPE_SELECT_CONTEXT (tracker_sparql_select_context_get_type ())
#define TRACKER_SPARQL_SELECT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext))
#define TRACKER_SPARQL_SELECT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContextClass))
#define TRACKER_SPARQL_IS_SELECT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_SELECT_CONTEXT))
#define TRACKER_SPARQL_IS_SELECT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_SELECT_CONTEXT))
#define TRACKER_SPARQL_SELECT_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContextClass))

typedef struct _TrackerSparqlSelectContext TrackerSparqlSelectContext;
typedef struct _TrackerSparqlSelectContextClass TrackerSparqlSelectContextClass;
typedef struct _TrackerSparqlSelectContextPrivate TrackerSparqlSelectContextPrivate;

#define TRACKER_SPARQL_TYPE_SOLUTION (tracker_sparql_solution_get_type ())
#define TRACKER_SPARQL_SOLUTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_SPARQL_TYPE_SOLUTION, TrackerSparqlSolution))
#define TRACKER_SPARQL_SOLUTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_SPARQL_TYPE_SOLUTION, TrackerSparqlSolutionClass))
#define TRACKER_SPARQL_IS_SOLUTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_SPARQL_TYPE_SOLUTION))
#define TRACKER_SPARQL_IS_SOLUTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_SPARQL_TYPE_SOLUTION))
#define TRACKER_SPARQL_SOLUTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_SPARQL_TYPE_SOLUTION, TrackerSparqlSolutionClass))

typedef struct _TrackerSparqlSolution TrackerSparqlSolution;
typedef struct _TrackerSparqlSolutionClass TrackerSparqlSolutionClass;
typedef struct _TrackerSparqlSolutionPrivate TrackerSparqlSolutionPrivate;
#define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
typedef struct _TrackerSparqlParamSpecSolution TrackerSparqlParamSpecSolution;

#define TRACKER_TYPE_SPARQL_SCANNER (tracker_sparql_scanner_get_type ())
#define TRACKER_SPARQL_SCANNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScanner))
#define TRACKER_SPARQL_SCANNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScannerClass))
#define TRACKER_IS_SPARQL_SCANNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_SPARQL_SCANNER))
#define TRACKER_IS_SPARQL_SCANNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_SPARQL_SCANNER))
#define TRACKER_SPARQL_SCANNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScannerClass))

typedef struct _TrackerSparqlScanner TrackerSparqlScanner;
typedef struct _TrackerSparqlScannerClass TrackerSparqlScannerClass;

#define TRACKER_SPARQL_QUERY_TYPE_TOKEN_INFO (tracker_sparql_query_token_info_get_type ())

#define TRACKER_TYPE_SPARQL_TOKEN_TYPE (tracker_sparql_token_type_get_type ())

#define TRACKER_TYPE_SOURCE_LOCATION (tracker_source_location_get_type ())
typedef struct _TrackerSourceLocation TrackerSourceLocation;
typedef struct _TrackerSparqlQueryTokenInfo TrackerSparqlQueryTokenInfo;
#define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_variant_builder_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_builder_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _TrackerSparqlPatternPrivate TrackerSparqlPatternPrivate;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _tracker_sparql_solution_unref0(var) ((var == NULL) ? NULL : (var = (tracker_sparql_solution_unref (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

typedef enum  {
	TRACKER_SPARQL_VARIABLE_STATE_NONE,
	TRACKER_SPARQL_VARIABLE_STATE_BOUND,
	TRACKER_SPARQL_VARIABLE_STATE_OPTIONAL
} TrackerSparqlVariableState;

struct _TrackerSparqlDataTable {
	GObject parent_instance;
	TrackerSparqlDataTablePrivate * priv;
	gchar* sql_db_tablename;
	gchar* sql_query_tablename;
	TrackerSparqlPredicateVariable* predicate_variable;
};

struct _TrackerSparqlDataTableClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlDataBinding {
	GObject parent_instance;
	TrackerSparqlDataBindingPrivate * priv;
	TrackerPropertyType data_type;
	TrackerSparqlDataTable* table;
	gchar* sql_db_column_name;
};

struct _TrackerSparqlDataBindingClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlDataBindingPrivate {
	gchar* _sql_expression;
};

struct _TrackerSparqlLiteralBinding {
	TrackerSparqlDataBinding parent_instance;
	TrackerSparqlLiteralBindingPrivate * priv;
	gboolean is_fts_match;
	gchar* literal;
};

struct _TrackerSparqlLiteralBindingClass {
	TrackerSparqlDataBindingClass parent_class;
};

struct _TrackerSparqlVariableBinding {
	TrackerSparqlDataBinding parent_instance;
	TrackerSparqlVariableBindingPrivate * priv;
	TrackerSparqlVariable* variable;
	gboolean maybe_null;
	gboolean in_simple_optional;
	TrackerClass* type;
};

struct _TrackerSparqlVariableBindingClass {
	TrackerSparqlDataBindingClass parent_class;
};

struct _TrackerSparqlVariableBindingList {
	GObject parent_instance;
	TrackerSparqlVariableBindingListPrivate * priv;
	GList* list;
};

struct _TrackerSparqlVariableBindingListClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlVariable {
	GObject parent_instance;
	TrackerSparqlVariablePrivate * priv;
	TrackerSparqlVariableBinding* binding;
};

struct _TrackerSparqlVariableClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlVariablePrivate {
	gchar* _name;
	gint _index;
	gchar* _sql_expression;
	gchar* sql_identifier;
};

struct _TrackerSparqlContext {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TrackerSparqlContextPrivate * priv;
	TrackerSparqlQuery* query;
	TrackerSparqlContext* parent_context;
	GHashTable* var_set;
	GHashTable* var_map;
	GHashTable* select_var_set;
	GHashTable* predicate_variable_map;
	gboolean scalar_subquery;
};

struct _TrackerSparqlContextClass {
	GTypeClass parent_class;
	void (*finalize) (TrackerSparqlContext *self);
};

struct _TrackerSparqlQuery {
	GObject parent_instance;
	TrackerSparqlQueryPrivate * priv;
	TrackerSparqlExpression* expression;
	TrackerSparqlPattern* pattern;
	GList* bindings;
	TrackerSparqlContext* context;
	gint last_var_index;
};

struct _TrackerSparqlQueryClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlParamSpecContext {
	GParamSpec parent_instance;
};

struct _TrackerSparqlSelectContext {
	TrackerSparqlContext parent_instance;
	TrackerSparqlSelectContextPrivate * priv;
	TrackerPropertyType type;
	TrackerPropertyType* types;
	gint types_length1;
	gint _types_size_;
	gchar** variable_names;
	gint variable_names_length1;
	gint _variable_names_size_;
};

struct _TrackerSparqlSelectContextClass {
	TrackerSparqlContextClass parent_class;
};

struct _TrackerSparqlSolution {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TrackerSparqlSolutionPrivate * priv;
	GHashTable* hash;
	GPtrArray* values;
	gint solution_index;
};

struct _TrackerSparqlSolutionClass {
	GTypeClass parent_class;
	void (*finalize) (TrackerSparqlSolution *self);
};

struct _TrackerSparqlParamSpecSolution {
	GParamSpec parent_instance;
};

typedef enum  {
	TRACKER_SPARQL_TOKEN_TYPE_NONE,
	TRACKER_SPARQL_TOKEN_TYPE_A,
	TRACKER_SPARQL_TOKEN_TYPE_AS,
	TRACKER_SPARQL_TOKEN_TYPE_ASC,
	TRACKER_SPARQL_TOKEN_TYPE_ASK,
	TRACKER_SPARQL_TOKEN_TYPE_ATBASE,
	TRACKER_SPARQL_TOKEN_TYPE_ATPREFIX,
	TRACKER_SPARQL_TOKEN_TYPE_AVG,
	TRACKER_SPARQL_TOKEN_TYPE_BASE,
	TRACKER_SPARQL_TOKEN_TYPE_BLANK_NODE,
	TRACKER_SPARQL_TOKEN_TYPE_BOUND,
	TRACKER_SPARQL_TOKEN_TYPE_BY,
	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE,
	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACKET,
	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS,
	TRACKER_SPARQL_TOKEN_TYPE_COALESCE,
	TRACKER_SPARQL_TOKEN_TYPE_COLON,
	TRACKER_SPARQL_TOKEN_TYPE_COMMA,
	TRACKER_SPARQL_TOKEN_TYPE_CONSTRUCT,
	TRACKER_SPARQL_TOKEN_TYPE_COUNT,
	TRACKER_SPARQL_TOKEN_TYPE_DATA,
	TRACKER_SPARQL_TOKEN_TYPE_DATATYPE,
	TRACKER_SPARQL_TOKEN_TYPE_DECIMAL,
	TRACKER_SPARQL_TOKEN_TYPE_DELETE,
	TRACKER_SPARQL_TOKEN_TYPE_DESC,
	TRACKER_SPARQL_TOKEN_TYPE_DESCRIBE,
	TRACKER_SPARQL_TOKEN_TYPE_DISTINCT,
	TRACKER_SPARQL_TOKEN_TYPE_DIV,
	TRACKER_SPARQL_TOKEN_TYPE_DOT,
	TRACKER_SPARQL_TOKEN_TYPE_DOUBLE,
	TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX,
	TRACKER_SPARQL_TOKEN_TYPE_DROP,
	TRACKER_SPARQL_TOKEN_TYPE_EOF,
	TRACKER_SPARQL_TOKEN_TYPE_EXISTS,
	TRACKER_SPARQL_TOKEN_TYPE_FALSE,
	TRACKER_SPARQL_TOKEN_TYPE_FILTER,
	TRACKER_SPARQL_TOKEN_TYPE_FROM,
	TRACKER_SPARQL_TOKEN_TYPE_GRAPH,
	TRACKER_SPARQL_TOKEN_TYPE_GROUP,
	TRACKER_SPARQL_TOKEN_TYPE_GROUP_CONCAT,
	TRACKER_SPARQL_TOKEN_TYPE_HAVING,
	TRACKER_SPARQL_TOKEN_TYPE_IF,
	TRACKER_SPARQL_TOKEN_TYPE_INSERT,
	TRACKER_SPARQL_TOKEN_TYPE_INTEGER,
	TRACKER_SPARQL_TOKEN_TYPE_INTO,
	TRACKER_SPARQL_TOKEN_TYPE_IRI_REF,
	TRACKER_SPARQL_TOKEN_TYPE_ISBLANK,
	TRACKER_SPARQL_TOKEN_TYPE_ISIRI,
	TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL,
	TRACKER_SPARQL_TOKEN_TYPE_ISURI,
	TRACKER_SPARQL_TOKEN_TYPE_LANG,
	TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES,
	TRACKER_SPARQL_TOKEN_TYPE_LIMIT,
	TRACKER_SPARQL_TOKEN_TYPE_MAX,
	TRACKER_SPARQL_TOKEN_TYPE_MIN,
	TRACKER_SPARQL_TOKEN_TYPE_MINUS,
	TRACKER_SPARQL_TOKEN_TYPE_NAMED,
	TRACKER_SPARQL_TOKEN_TYPE_NOT,
	TRACKER_SPARQL_TOKEN_TYPE_NULL,
	TRACKER_SPARQL_TOKEN_TYPE_OFFSET,
	TRACKER_SPARQL_TOKEN_TYPE_OP_AND,
	TRACKER_SPARQL_TOKEN_TYPE_OP_EQ,
	TRACKER_SPARQL_TOKEN_TYPE_OP_GE,
	TRACKER_SPARQL_TOKEN_TYPE_OP_GT,
	TRACKER_SPARQL_TOKEN_TYPE_OP_LE,
	TRACKER_SPARQL_TOKEN_TYPE_OP_LT,
	TRACKER_SPARQL_TOKEN_TYPE_OP_NE,
	TRACKER_SPARQL_TOKEN_TYPE_OP_NEG,
	TRACKER_SPARQL_TOKEN_TYPE_OP_OR,
	TRACKER_SPARQL_TOKEN_TYPE_OP_IN,
	TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE,
	TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACKET,
	TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS,
	TRACKER_SPARQL_TOKEN_TYPE_OPTIONAL,
	TRACKER_SPARQL_TOKEN_TYPE_OR,
	TRACKER_SPARQL_TOKEN_TYPE_ORDER,
	TRACKER_SPARQL_TOKEN_TYPE_PLUS,
	TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX,
	TRACKER_SPARQL_TOKEN_TYPE_PREFIX,
	TRACKER_SPARQL_TOKEN_TYPE_REDUCED,
	TRACKER_SPARQL_TOKEN_TYPE_REGEX,
	TRACKER_SPARQL_TOKEN_TYPE_REPLACE,
	TRACKER_SPARQL_TOKEN_TYPE_SAMETERM,
	TRACKER_SPARQL_TOKEN_TYPE_SELECT,
	TRACKER_SPARQL_TOKEN_TYPE_SEMICOLON,
	TRACKER_SPARQL_TOKEN_TYPE_SILENT,
	TRACKER_SPARQL_TOKEN_TYPE_STAR,
	TRACKER_SPARQL_TOKEN_TYPE_STR,
	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1,
	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2,
	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1,
	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2,
	TRACKER_SPARQL_TOKEN_TYPE_SUM,
	TRACKER_SPARQL_TOKEN_TYPE_TRUE,
	TRACKER_SPARQL_TOKEN_TYPE_UNION,
	TRACKER_SPARQL_TOKEN_TYPE_VAR,
	TRACKER_SPARQL_TOKEN_TYPE_WHERE,
	TRACKER_SPARQL_TOKEN_TYPE_WITH
} TrackerSparqlTokenType;

struct _TrackerSourceLocation {
	gchar* pos;
	gint line;
	gint column;
};

struct _TrackerSparqlQueryTokenInfo {
	TrackerSparqlTokenType type;
	TrackerSourceLocation begin;
	TrackerSourceLocation end;
};

struct _TrackerSparqlQueryPrivate {
	TrackerSparqlScanner* scanner;
	TrackerSparqlQueryTokenInfo* tokens;
	gint tokens_length1;
	gint _tokens_size_;
	gint index;
	gint size;
	gchar* query_string;
	gboolean update_extensions;
	gchar* current_graph;
	gchar* current_subject;
	gboolean current_subject_is_var;
	gchar* current_predicate;
	gboolean current_predicate_is_var;
	gboolean silent;
	GHashTable* prefix_map;
	gboolean delete_statements;
	gboolean update_statements;
	gint bnodeid;
	guchar* base_uuid;
	gint base_uuid_length1;
	gint _base_uuid_size_;
	GHashTable* blank_nodes;
	gboolean _no_cache;
	gboolean anon_blank_node_open;
};

struct _TrackerSparqlPattern {
	GObject parent_instance;
	TrackerSparqlPatternPrivate * priv;
	gchar* current_graph;
	TrackerSparqlVariable* fts_subject;
	gchar** fts_variables;
	gint fts_variables_length1;
	gint _fts_variables_size_;
	GString* match_str;
	gboolean queries_fts_data;
};

struct _TrackerSparqlPatternClass {
	GObjectClass parent_class;
};


static gpointer tracker_sparql_data_table_parent_class = NULL;
static gpointer tracker_sparql_data_binding_parent_class = NULL;
static gpointer tracker_sparql_literal_binding_parent_class = NULL;
static gpointer tracker_sparql_variable_binding_parent_class = NULL;
static gpointer tracker_sparql_variable_binding_list_parent_class = NULL;
static gpointer tracker_sparql_variable_parent_class = NULL;
static gpointer tracker_sparql_context_parent_class = NULL;
static gpointer tracker_sparql_select_context_parent_class = NULL;
static gpointer tracker_sparql_solution_parent_class = NULL;
static gpointer tracker_sparql_query_parent_class = NULL;

GType tracker_sparql_variable_state_get_type (void) G_GNUC_CONST;
GType tracker_sparql_data_table_get_type (void) G_GNUC_CONST;
GType tracker_sparql_predicate_variable_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_DATA_TABLE_DUMMY_PROPERTY
};
TrackerSparqlDataTable* tracker_sparql_data_table_new (void);
TrackerSparqlDataTable* tracker_sparql_data_table_construct (GType object_type);
static void tracker_sparql_data_table_finalize (GObject* obj);
GType tracker_sparql_data_binding_get_type (void) G_GNUC_CONST;
#define TRACKER_SPARQL_DATA_BINDING_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBindingPrivate))
enum  {
	TRACKER_SPARQL_DATA_BINDING_DUMMY_PROPERTY,
	TRACKER_SPARQL_DATA_BINDING_SQL_EXPRESSION
};
gchar* tracker_sparql_data_binding_get_extra_sql_expression (TrackerSparqlDataBinding* self, const gchar* suffix);
TrackerSparqlDataBinding* tracker_sparql_data_binding_construct (GType object_type);
const gchar* tracker_sparql_data_binding_get_sql_expression (TrackerSparqlDataBinding* self);
void tracker_sparql_data_binding_set_sql_expression (TrackerSparqlDataBinding* self, const gchar* value);
static void tracker_sparql_data_binding_finalize (GObject* obj);
static void _vala_tracker_sparql_data_binding_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_tracker_sparql_data_binding_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType tracker_sparql_literal_binding_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_LITERAL_BINDING_DUMMY_PROPERTY
};
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_new (void);
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_construct (GType object_type);
static void tracker_sparql_literal_binding_finalize (GObject* obj);
GType tracker_sparql_variable_binding_get_type (void) G_GNUC_CONST;
GType tracker_sparql_variable_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_VARIABLE_BINDING_DUMMY_PROPERTY
};
TrackerSparqlVariableBinding* tracker_sparql_variable_binding_new (void);
TrackerSparqlVariableBinding* tracker_sparql_variable_binding_construct (GType object_type);
static void tracker_sparql_variable_binding_finalize (GObject* obj);
GType tracker_sparql_variable_binding_list_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_VARIABLE_BINDING_LIST_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
TrackerSparqlVariableBindingList* tracker_sparql_variable_binding_list_new (void);
TrackerSparqlVariableBindingList* tracker_sparql_variable_binding_list_construct (GType object_type);
static void tracker_sparql_variable_binding_list_finalize (GObject* obj);
#define TRACKER_SPARQL_VARIABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariablePrivate))
enum  {
	TRACKER_SPARQL_VARIABLE_DUMMY_PROPERTY,
	TRACKER_SPARQL_VARIABLE_NAME,
	TRACKER_SPARQL_VARIABLE_INDEX,
	TRACKER_SPARQL_VARIABLE_SQL_EXPRESSION
};
TrackerSparqlVariable* tracker_sparql_variable_new (const gchar* name, gint index);
TrackerSparqlVariable* tracker_sparql_variable_construct (GType object_type, const gchar* name, gint index);
static void tracker_sparql_variable_set_name (TrackerSparqlVariable* self, const gchar* value);
static void tracker_sparql_variable_set_index (TrackerSparqlVariable* self, gint value);
static void tracker_sparql_variable_set_sql_expression (TrackerSparqlVariable* self, const gchar* value);
gchar* tracker_sparql_variable_get_extra_sql_expression (TrackerSparqlVariable* self, const gchar* suffix);
gboolean tracker_sparql_variable_equal (TrackerSparqlVariable* a, TrackerSparqlVariable* b);
gint tracker_sparql_variable_get_index (TrackerSparqlVariable* self);
guint tracker_sparql_variable_hash (TrackerSparqlVariable* variable);
const gchar* tracker_sparql_variable_get_name (TrackerSparqlVariable* self);
const gchar* tracker_sparql_variable_get_sql_expression (TrackerSparqlVariable* self);
static void tracker_sparql_variable_finalize (GObject* obj);
static void _vala_tracker_sparql_variable_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_tracker_sparql_variable_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
gpointer tracker_sparql_context_ref (gpointer instance);
void tracker_sparql_context_unref (gpointer instance);
GParamSpec* tracker_sparql_param_spec_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_sparql_value_set_context (GValue* value, gpointer v_object);
void tracker_sparql_value_take_context (GValue* value, gpointer v_object);
gpointer tracker_sparql_value_get_context (const GValue* value);
GType tracker_sparql_context_get_type (void) G_GNUC_CONST;
GType tracker_sparql_query_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_CONTEXT_DUMMY_PROPERTY
};
TrackerSparqlContext* tracker_sparql_context_new (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlContext* tracker_sparql_context_construct (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
static guint _tracker_sparql_variable_hash_ghash_func (gconstpointer key);
static gboolean _tracker_sparql_variable_equal_gequal_func (gconstpointer a, gconstpointer b);
TrackerSparqlContext* tracker_sparql_context_new_subquery (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlContext* tracker_sparql_context_construct_subquery (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlVariable* tracker_sparql_context_get_variable (TrackerSparqlContext* self, const gchar* name);
GType tracker_sparql_expression_get_type (void) G_GNUC_CONST;
GType tracker_sparql_pattern_get_type (void) G_GNUC_CONST;
static void tracker_sparql_context_finalize (TrackerSparqlContext* obj);
GType tracker_sparql_select_context_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_SELECT_CONTEXT_DUMMY_PROPERTY
};
TrackerSparqlSelectContext* tracker_sparql_select_context_new (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlSelectContext* tracker_sparql_select_context_construct (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlSelectContext* tracker_sparql_select_context_new_subquery (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
TrackerSparqlSelectContext* tracker_sparql_select_context_construct_subquery (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context);
static void tracker_sparql_select_context_finalize (TrackerSparqlContext* obj);
gpointer tracker_sparql_solution_ref (gpointer instance);
void tracker_sparql_solution_unref (gpointer instance);
GParamSpec* tracker_sparql_param_spec_solution (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_sparql_value_set_solution (GValue* value, gpointer v_object);
void tracker_sparql_value_take_solution (GValue* value, gpointer v_object);
gpointer tracker_sparql_value_get_solution (const GValue* value);
GType tracker_sparql_solution_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_SPARQL_SOLUTION_DUMMY_PROPERTY
};
TrackerSparqlSolution* tracker_sparql_solution_new (void);
TrackerSparqlSolution* tracker_sparql_solution_construct (GType object_type);
static void _g_free0_ (gpointer var);
gchar* tracker_sparql_solution_lookup (TrackerSparqlSolution* self, const gchar* variable_name);
static void tracker_sparql_solution_finalize (TrackerSparqlSolution* obj);
GType tracker_sparql_scanner_get_type (void) G_GNUC_CONST;
static GType tracker_sparql_query_token_info_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
GType tracker_sparql_token_type_get_type (void) G_GNUC_CONST;
GType tracker_source_location_get_type (void) G_GNUC_CONST;
TrackerSourceLocation* tracker_source_location_dup (const TrackerSourceLocation* self);
void tracker_source_location_free (TrackerSourceLocation* self);
static TrackerSparqlQueryTokenInfo* tracker_sparql_query_token_info_dup (const TrackerSparqlQueryTokenInfo* self);
static void tracker_sparql_query_token_info_free (TrackerSparqlQueryTokenInfo* self);
#define TRACKER_SPARQL_QUERY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQueryPrivate))
enum  {
	TRACKER_SPARQL_QUERY_DUMMY_PROPERTY,
	TRACKER_SPARQL_QUERY_NO_CACHE
};
#define TRACKER_SPARQL_QUERY_BUFFER_SIZE 32
#define TRACKER_SPARQL_QUERY_FN_NS "http://www.w3.org/2005/xpath-functions#"
TrackerSparqlQuery* tracker_sparql_query_new (const gchar* query);
TrackerSparqlQuery* tracker_sparql_query_construct (GType object_type, const gchar* query);
void tracker_sparql_query_set_no_cache (TrackerSparqlQuery* self, gboolean value);
void uuid_generate (guchar* uuid);
TrackerSparqlExpression* tracker_sparql_expression_new (TrackerSparqlQuery* query);
TrackerSparqlExpression* tracker_sparql_expression_construct (GType object_type, TrackerSparqlQuery* query);
TrackerSparqlPattern* tracker_sparql_pattern_new (TrackerSparqlQuery* query);
TrackerSparqlPattern* tracker_sparql_pattern_construct (GType object_type, TrackerSparqlQuery* query);
TrackerSparqlQuery* tracker_sparql_query_new_update (const gchar* query);
TrackerSparqlQuery* tracker_sparql_query_construct_update (GType object_type, const gchar* query);
static gchar* tracker_sparql_query_get_uuid_for_name (TrackerSparqlQuery* self, guchar* base_uuid, int base_uuid_length1, const gchar* name);
gchar* tracker_sparql_query_generate_bnodeid (TrackerSparqlQuery* self, const gchar* user_bnodeid);
gboolean tracker_sparql_query_next (TrackerSparqlQuery* self, GError** error);
TrackerSparqlTokenType tracker_sparql_scanner_read_token (TrackerSparqlScanner* self, TrackerSourceLocation* token_begin, TrackerSourceLocation* token_end, GError** error);
TrackerSparqlTokenType tracker_sparql_query_current (TrackerSparqlQuery* self);
TrackerSparqlTokenType tracker_sparql_query_last (TrackerSparqlQuery* self);
gboolean tracker_sparql_query_accept (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error);
GError* tracker_sparql_query_get_error (TrackerSparqlQuery* self, const gchar* msg);
GError* tracker_sparql_query_get_internal_error (TrackerSparqlQuery* self, const gchar* msg);
gboolean tracker_sparql_query_expect (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error);
const gchar* tracker_sparql_token_type_to_string (TrackerSparqlTokenType self);
void tracker_sparql_query_get_location (TrackerSparqlQuery* self, TrackerSourceLocation* result);
void tracker_sparql_query_set_location (TrackerSparqlQuery* self, TrackerSourceLocation* location);
void tracker_sparql_scanner_seek (TrackerSparqlScanner* self, TrackerSourceLocation* location);
gchar* tracker_sparql_query_get_last_string (TrackerSparqlQuery* self, gint strip);
static void tracker_sparql_query_parse_prologue (TrackerSparqlQuery* self, GError** error);
static void tracker_sparql_query_prepare_execute (TrackerSparqlQuery* self, GError** error);
TrackerSparqlScanner* tracker_sparql_scanner_new (gchar* input, gsize len);
TrackerSparqlScanner* tracker_sparql_scanner_construct (GType object_type, gchar* input, gsize len);
TrackerDBCursor* tracker_sparql_query_execute_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error);
static TrackerDBCursor* tracker_sparql_query_execute_select_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error);
static TrackerDBCursor* tracker_sparql_query_execute_ask_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error);
GVariant* tracker_sparql_query_execute_update (TrackerSparqlQuery* self, gboolean blank, GError** error);
static void tracker_sparql_query_execute_insert_or_delete (TrackerSparqlQuery* self, GVariantBuilder* update_blank_nodes, GError** error);
static TrackerDBStatement* tracker_sparql_query_prepare_for_exec (TrackerSparqlQuery* self, const gchar* sql, GError** error);
gboolean tracker_sparql_query_get_no_cache (TrackerSparqlQuery* self);
static TrackerDBCursor* tracker_sparql_query_exec_sql_cursor (TrackerSparqlQuery* self, const gchar* sql, TrackerPropertyType* types, int types_length1, gchar** variable_names, int variable_names_length1, gboolean threadsafe, GError** error);
static gchar* tracker_sparql_query_get_select_query (TrackerSparqlQuery* self, TrackerSparqlSelectContext** context, GError** error);
TrackerSparqlSelectContext* tracker_sparql_pattern_translate_select (TrackerSparqlPattern* self, GString* sql, gboolean subquery, gboolean scalar_subquery, GError** error);
static gchar* tracker_sparql_query_get_ask_query (TrackerSparqlQuery* self, GError** error);
TrackerSparqlContext* tracker_sparql_pattern_translate_group_graph_pattern (TrackerSparqlPattern* self, GString* sql, GError** error);
static void tracker_sparql_query_parse_from_or_into_param (TrackerSparqlQuery* self, GError** error);
gchar* tracker_sparql_query_resolve_prefixed_name (TrackerSparqlQuery* self, const gchar* prefix, const gchar* local_name, GError** error);
static void tracker_sparql_query_skip_braces (TrackerSparqlQuery* self, GError** error);
void tracker_sparql_expression_append_expression_as_string (GString* sql, const gchar* expression, TrackerPropertyType type);
static void tracker_sparql_query_parse_construct_triples_block (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error);
static GVariant* _variant_new1 (GHashTable* value);
static gchar* tracker_sparql_query_parse_construct_var_or_term (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, gboolean* is_null, GError** error);
static void tracker_sparql_query_parse_construct_property_list_not_empty (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error);
gchar* tracker_sparql_expression_parse_string_literal (TrackerSparqlExpression* self, TrackerPropertyType* type, GError** error);
static void tracker_sparql_query_parse_construct_object_list (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error);
static void tracker_sparql_query_parse_construct_object (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error);
static void tracker_sparql_query_finalize (GObject* obj);
static void _vala_tracker_sparql_query_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_tracker_sparql_query_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GType tracker_sparql_variable_state_get_type (void) {
	static volatile gsize tracker_sparql_variable_state_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_variable_state_type_id__volatile)) {
		static const GEnumValue values[] = {{TRACKER_SPARQL_VARIABLE_STATE_NONE, "TRACKER_SPARQL_VARIABLE_STATE_NONE", "none"}, {TRACKER_SPARQL_VARIABLE_STATE_BOUND, "TRACKER_SPARQL_VARIABLE_STATE_BOUND", "bound"}, {TRACKER_SPARQL_VARIABLE_STATE_OPTIONAL, "TRACKER_SPARQL_VARIABLE_STATE_OPTIONAL", "optional"}, {0, NULL, NULL}};
		GType tracker_sparql_variable_state_type_id;
		tracker_sparql_variable_state_type_id = g_enum_register_static ("TrackerSparqlVariableState", values);
		g_once_init_leave (&tracker_sparql_variable_state_type_id__volatile, tracker_sparql_variable_state_type_id);
	}
	return tracker_sparql_variable_state_type_id__volatile;
}


TrackerSparqlDataTable* tracker_sparql_data_table_construct (GType object_type) {
	TrackerSparqlDataTable * self = NULL;
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlDataTable*) g_object_new (object_type, NULL);
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 748 "tracker-sparql-query.c"
}


TrackerSparqlDataTable* tracker_sparql_data_table_new (void) {
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_data_table_construct (TRACKER_SPARQL_TYPE_DATA_TABLE);
#line 755 "tracker-sparql-query.c"
}


static void tracker_sparql_data_table_class_init (TrackerSparqlDataTableClass * klass) {
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_data_table_parent_class = g_type_class_peek_parent (klass);
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_data_table_finalize;
#line 764 "tracker-sparql-query.c"
}


static void tracker_sparql_data_table_instance_init (TrackerSparqlDataTable * self) {
}


static void tracker_sparql_data_table_finalize (GObject* obj) {
	TrackerSparqlDataTable * self;
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_DATA_TABLE, TrackerSparqlDataTable);
#line 29 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->sql_db_tablename);
#line 30 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->sql_query_tablename);
#line 31 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->predicate_variable);
#line 28 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_data_table_parent_class)->finalize (obj);
#line 784 "tracker-sparql-query.c"
}


GType tracker_sparql_data_table_get_type (void) {
	static volatile gsize tracker_sparql_data_table_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_data_table_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlDataTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_data_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlDataTable), 0, (GInstanceInitFunc) tracker_sparql_data_table_instance_init, NULL };
		GType tracker_sparql_data_table_type_id;
		tracker_sparql_data_table_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlDataTable", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_data_table_type_id__volatile, tracker_sparql_data_table_type_id);
	}
	return tracker_sparql_data_table_type_id__volatile;
}


gchar* tracker_sparql_data_binding_get_extra_sql_expression (TrackerSparqlDataBinding* self, const gchar* suffix) {
	gchar* result = NULL;
	TrackerSparqlDataTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 50 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 50 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (suffix != NULL, NULL);
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->table;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = _tmp0_->sql_query_tablename;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = self->sql_db_column_name;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = suffix;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_strdup_printf ("\"%s\".\"%s:%s\"", _tmp1_, _tmp2_, _tmp3_);
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp4_;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 825 "tracker-sparql-query.c"
}


TrackerSparqlDataBinding* tracker_sparql_data_binding_construct (GType object_type) {
	TrackerSparqlDataBinding * self = NULL;
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlDataBinding*) g_object_new (object_type, NULL);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 835 "tracker-sparql-query.c"
}


const gchar* tracker_sparql_data_binding_get_sql_expression (TrackerSparqlDataBinding* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp5_ = NULL;
#line 39 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->_sql_expression;
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_ == NULL) {
#line 849 "tracker-sparql-query.c"
		TrackerSparqlDataTable* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = self->table;
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = _tmp1_->sql_query_tablename;
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = self->sql_db_column_name;
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = g_strdup_printf ("\"%s\".\"%s\"", _tmp2_, _tmp3_);
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (self->priv->_sql_expression);
#line 41 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->_sql_expression = _tmp4_;
#line 866 "tracker-sparql-query.c"
	}
#line 43 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->priv->_sql_expression;
#line 43 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp5_;
#line 43 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 874 "tracker-sparql-query.c"
}


void tracker_sparql_data_binding_set_sql_expression (TrackerSparqlDataBinding* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 45 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 46 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = value;
#line 46 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 46 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_sql_expression);
#line 46 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_sql_expression = _tmp1_;
#line 45 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_notify ((GObject *) self, "sql-expression");
#line 893 "tracker-sparql-query.c"
}


static void tracker_sparql_data_binding_class_init (TrackerSparqlDataBindingClass * klass) {
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_data_binding_parent_class = g_type_class_peek_parent (klass);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_type_class_add_private (klass, sizeof (TrackerSparqlDataBindingPrivate));
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_sparql_data_binding_get_property;
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_tracker_sparql_data_binding_set_property;
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_data_binding_finalize;
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_SPARQL_DATA_BINDING_SQL_EXPRESSION, g_param_spec_string ("sql-expression", "sql-expression", "sql-expression", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 910 "tracker-sparql-query.c"
}


static void tracker_sparql_data_binding_instance_init (TrackerSparqlDataBinding * self) {
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv = TRACKER_SPARQL_DATA_BINDING_GET_PRIVATE (self);
#line 917 "tracker-sparql-query.c"
}


static void tracker_sparql_data_binding_finalize (GObject* obj) {
	TrackerSparqlDataBinding * self;
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBinding);
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->table);
#line 37 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->sql_db_column_name);
#line 49 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_sql_expression);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_data_binding_parent_class)->finalize (obj);
#line 933 "tracker-sparql-query.c"
}


GType tracker_sparql_data_binding_get_type (void) {
	static volatile gsize tracker_sparql_data_binding_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_data_binding_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlDataBindingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_data_binding_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlDataBinding), 0, (GInstanceInitFunc) tracker_sparql_data_binding_instance_init, NULL };
		GType tracker_sparql_data_binding_type_id;
		tracker_sparql_data_binding_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlDataBinding", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&tracker_sparql_data_binding_type_id__volatile, tracker_sparql_data_binding_type_id);
	}
	return tracker_sparql_data_binding_type_id__volatile;
}


static void _vala_tracker_sparql_data_binding_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerSparqlDataBinding * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBinding);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_DATA_BINDING_SQL_EXPRESSION:
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_value_set_string (value, tracker_sparql_data_binding_get_sql_expression (self));
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 960 "tracker-sparql-query.c"
		default:
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 966 "tracker-sparql-query.c"
	}
}


static void _vala_tracker_sparql_data_binding_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	TrackerSparqlDataBinding * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_DATA_BINDING, TrackerSparqlDataBinding);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_DATA_BINDING_SQL_EXPRESSION:
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_data_binding_set_sql_expression (self, g_value_get_string (value));
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 982 "tracker-sparql-query.c"
		default:
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 34 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 988 "tracker-sparql-query.c"
	}
}


TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_construct (GType object_type) {
	TrackerSparqlLiteralBinding * self = NULL;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlLiteralBinding*) tracker_sparql_data_binding_construct (object_type);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 999 "tracker-sparql-query.c"
}


TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_new (void) {
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_literal_binding_construct (TRACKER_SPARQL_TYPE_LITERAL_BINDING);
#line 1006 "tracker-sparql-query.c"
}


static void tracker_sparql_literal_binding_class_init (TrackerSparqlLiteralBindingClass * klass) {
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_literal_binding_parent_class = g_type_class_peek_parent (klass);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_literal_binding_finalize;
#line 1015 "tracker-sparql-query.c"
}


static void tracker_sparql_literal_binding_instance_init (TrackerSparqlLiteralBinding * self) {
}


static void tracker_sparql_literal_binding_finalize (GObject* obj) {
	TrackerSparqlLiteralBinding * self;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_LITERAL_BINDING, TrackerSparqlLiteralBinding);
#line 58 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->literal);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_literal_binding_parent_class)->finalize (obj);
#line 1031 "tracker-sparql-query.c"
}


GType tracker_sparql_literal_binding_get_type (void) {
	static volatile gsize tracker_sparql_literal_binding_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_literal_binding_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlLiteralBindingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_literal_binding_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlLiteralBinding), 0, (GInstanceInitFunc) tracker_sparql_literal_binding_instance_init, NULL };
		GType tracker_sparql_literal_binding_type_id;
		tracker_sparql_literal_binding_type_id = g_type_register_static (TRACKER_SPARQL_TYPE_DATA_BINDING, "TrackerSparqlLiteralBinding", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_literal_binding_type_id__volatile, tracker_sparql_literal_binding_type_id);
	}
	return tracker_sparql_literal_binding_type_id__volatile;
}


TrackerSparqlVariableBinding* tracker_sparql_variable_binding_construct (GType object_type) {
	TrackerSparqlVariableBinding * self = NULL;
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlVariableBinding*) tracker_sparql_data_binding_construct (object_type);
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 1053 "tracker-sparql-query.c"
}


TrackerSparqlVariableBinding* tracker_sparql_variable_binding_new (void) {
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_variable_binding_construct (TRACKER_SPARQL_TYPE_VARIABLE_BINDING);
#line 1060 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_binding_class_init (TrackerSparqlVariableBindingClass * klass) {
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_binding_parent_class = g_type_class_peek_parent (klass);
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_variable_binding_finalize;
#line 1069 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_binding_instance_init (TrackerSparqlVariableBinding * self) {
}


static void tracker_sparql_variable_binding_finalize (GObject* obj) {
	TrackerSparqlVariableBinding * self;
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_VARIABLE_BINDING, TrackerSparqlVariableBinding);
#line 67 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->type);
#line 62 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_variable_binding_parent_class)->finalize (obj);
#line 1085 "tracker-sparql-query.c"
}


GType tracker_sparql_variable_binding_get_type (void) {
	static volatile gsize tracker_sparql_variable_binding_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_variable_binding_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlVariableBindingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_variable_binding_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlVariableBinding), 0, (GInstanceInitFunc) tracker_sparql_variable_binding_instance_init, NULL };
		GType tracker_sparql_variable_binding_type_id;
		tracker_sparql_variable_binding_type_id = g_type_register_static (TRACKER_SPARQL_TYPE_DATA_BINDING, "TrackerSparqlVariableBinding", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_variable_binding_type_id__volatile, tracker_sparql_variable_binding_type_id);
	}
	return tracker_sparql_variable_binding_type_id__volatile;
}


static void _g_object_unref0_ (gpointer var) {
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1104 "tracker-sparql-query.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_list_free (self);
#line 1113 "tracker-sparql-query.c"
}


TrackerSparqlVariableBindingList* tracker_sparql_variable_binding_list_construct (GType object_type) {
	TrackerSparqlVariableBindingList * self = NULL;
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlVariableBindingList*) g_object_new (object_type, NULL);
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 1123 "tracker-sparql-query.c"
}


TrackerSparqlVariableBindingList* tracker_sparql_variable_binding_list_new (void) {
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_variable_binding_list_construct (TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST);
#line 1130 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_binding_list_class_init (TrackerSparqlVariableBindingListClass * klass) {
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_binding_list_parent_class = g_type_class_peek_parent (klass);
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_variable_binding_list_finalize;
#line 1139 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_binding_list_instance_init (TrackerSparqlVariableBindingList * self) {
}


static void tracker_sparql_variable_binding_list_finalize (GObject* obj) {
	TrackerSparqlVariableBindingList * self;
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_VARIABLE_BINDING_LIST, TrackerSparqlVariableBindingList);
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	__g_list_free__g_object_unref0_0 (self->list);
#line 70 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_variable_binding_list_parent_class)->finalize (obj);
#line 1155 "tracker-sparql-query.c"
}


GType tracker_sparql_variable_binding_list_get_type (void) {
	static volatile gsize tracker_sparql_variable_binding_list_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_variable_binding_list_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlVariableBindingListClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_variable_binding_list_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlVariableBindingList), 0, (GInstanceInitFunc) tracker_sparql_variable_binding_list_instance_init, NULL };
		GType tracker_sparql_variable_binding_list_type_id;
		tracker_sparql_variable_binding_list_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlVariableBindingList", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_variable_binding_list_type_id__volatile, tracker_sparql_variable_binding_list_type_id);
	}
	return tracker_sparql_variable_binding_list_type_id__volatile;
}


TrackerSparqlVariable* tracker_sparql_variable_construct (GType object_type, const gchar* name, gint index) {
	TrackerSparqlVariable * self = NULL;
	const gchar* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
#line 81 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 81 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlVariable*) g_object_new (object_type, NULL);
#line 82 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = name;
#line 82 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_set_name (self, _tmp0_);
#line 83 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = index;
#line 83 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_set_index (self, _tmp1_);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = index;
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_strdup_printf ("%d_u", _tmp2_);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->sql_identifier);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->sql_identifier = _tmp3_;
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = self->priv->sql_identifier;
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = g_strdup_printf ("\"%s\"", _tmp4_);
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = _tmp5_;
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_set_sql_expression (self, _tmp6_);
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp6_);
#line 81 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 1212 "tracker-sparql-query.c"
}


TrackerSparqlVariable* tracker_sparql_variable_new (const gchar* name, gint index) {
#line 81 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_variable_construct (TRACKER_SPARQL_TYPE_VARIABLE, name, index);
#line 1219 "tracker-sparql-query.c"
}


gchar* tracker_sparql_variable_get_extra_sql_expression (TrackerSparqlVariable* self, const gchar* suffix) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 88 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 88 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (suffix != NULL, NULL);
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->sql_identifier;
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = suffix;
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = g_strdup_printf ("\"%s:%s\"", _tmp0_, _tmp1_);
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp2_;
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1242 "tracker-sparql-query.c"
}


gboolean tracker_sparql_variable_equal (TrackerSparqlVariable* a, TrackerSparqlVariable* b) {
	gboolean result = FALSE;
	TrackerSparqlVariable* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	TrackerSparqlVariable* _tmp2_ = NULL;
	gint _tmp3_ = 0;
#line 92 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (a != NULL, FALSE);
#line 92 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (b != NULL, FALSE);
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = a;
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = _tmp0_->priv->_index;
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = b;
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_->priv->_index;
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp1_ == _tmp3_;
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1268 "tracker-sparql-query.c"
}


guint tracker_sparql_variable_hash (TrackerSparqlVariable* variable) {
	guint result = 0U;
	TrackerSparqlVariable* _tmp0_ = NULL;
	gint _tmp1_ = 0;
#line 96 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (variable != NULL, 0U);
#line 97 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = variable;
#line 97 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = _tmp0_->priv->_index;
#line 97 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = (guint) _tmp1_;
#line 97 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1286 "tracker-sparql-query.c"
}


const gchar* tracker_sparql_variable_get_name (TrackerSparqlVariable* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->_name;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp0_;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1301 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_set_name (TrackerSparqlVariable* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = value;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_name);
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_name = _tmp1_;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_notify ((GObject *) self, "name");
#line 1320 "tracker-sparql-query.c"
}


gint tracker_sparql_variable_get_index (TrackerSparqlVariable* self) {
	gint result;
	gint _tmp0_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->_index;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp0_;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1335 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_set_index (TrackerSparqlVariable* self, gint value) {
	gint _tmp0_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = value;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_index = _tmp0_;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_notify ((GObject *) self, "index");
#line 1349 "tracker-sparql-query.c"
}


const gchar* tracker_sparql_variable_get_sql_expression (TrackerSparqlVariable* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->_sql_expression;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp0_;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1364 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_set_sql_expression (TrackerSparqlVariable* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = value;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_sql_expression);
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_sql_expression = _tmp1_;
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_notify ((GObject *) self, "sql-expression");
#line 1383 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_class_init (TrackerSparqlVariableClass * klass) {
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_variable_parent_class = g_type_class_peek_parent (klass);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_type_class_add_private (klass, sizeof (TrackerSparqlVariablePrivate));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_sparql_variable_get_property;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_tracker_sparql_variable_set_property;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_variable_finalize;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_SPARQL_VARIABLE_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_SPARQL_VARIABLE_INDEX, g_param_spec_int ("index", "index", "index", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_SPARQL_VARIABLE_SQL_EXPRESSION, g_param_spec_string ("sql-expression", "sql-expression", "sql-expression", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1404 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_instance_init (TrackerSparqlVariable * self) {
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv = TRACKER_SPARQL_VARIABLE_GET_PRIVATE (self);
#line 1411 "tracker-sparql-query.c"
}


static void tracker_sparql_variable_finalize (GObject* obj) {
	TrackerSparqlVariable * self;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariable);
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_name);
#line 77 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->_sql_expression);
#line 78 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->binding);
#line 79 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->sql_identifier);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_variable_parent_class)->finalize (obj);
#line 1429 "tracker-sparql-query.c"
}


GType tracker_sparql_variable_get_type (void) {
	static volatile gsize tracker_sparql_variable_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_variable_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlVariableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_variable_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlVariable), 0, (GInstanceInitFunc) tracker_sparql_variable_instance_init, NULL };
		GType tracker_sparql_variable_type_id;
		tracker_sparql_variable_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlVariable", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_variable_type_id__volatile, tracker_sparql_variable_type_id);
	}
	return tracker_sparql_variable_type_id__volatile;
}


static void _vala_tracker_sparql_variable_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerSparqlVariable * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariable);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_NAME:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_value_set_string (value, tracker_sparql_variable_get_name (self));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_INDEX:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_value_set_int (value, tracker_sparql_variable_get_index (self));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_SQL_EXPRESSION:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_value_set_string (value, tracker_sparql_variable_get_sql_expression (self));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 1468 "tracker-sparql-query.c"
		default:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 1474 "tracker-sparql-query.c"
	}
}


static void _vala_tracker_sparql_variable_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	TrackerSparqlVariable * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_VARIABLE, TrackerSparqlVariable);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_NAME:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_variable_set_name (self, g_value_get_string (value));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_INDEX:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_variable_set_index (self, g_value_get_int (value));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_VARIABLE_SQL_EXPRESSION:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_variable_set_sql_expression (self, g_value_get_string (value));
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 1502 "tracker-sparql-query.c"
		default:
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 74 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 1508 "tracker-sparql-query.c"
	}
}


static gpointer _tracker_sparql_context_ref0 (gpointer self) {
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self ? tracker_sparql_context_ref (self) : NULL;
#line 1516 "tracker-sparql-query.c"
}


static guint _tracker_sparql_variable_hash_ghash_func (gconstpointer key) {
	guint result;
	result = tracker_sparql_variable_hash (key);
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1525 "tracker-sparql-query.c"
}


static gboolean _tracker_sparql_variable_equal_gequal_func (gconstpointer a, gconstpointer b) {
	gboolean result;
	result = tracker_sparql_variable_equal (a, b);
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1534 "tracker-sparql-query.c"
}


static gpointer _g_hash_table_ref0 (gpointer self) {
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self ? g_hash_table_ref (self) : NULL;
#line 1541 "tracker-sparql-query.c"
}


TrackerSparqlContext* tracker_sparql_context_construct (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
	TrackerSparqlContext* self = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlContext* _tmp1_ = NULL;
	TrackerSparqlContext* _tmp2_ = NULL;
	GDestroyNotify _tmp3_ = NULL;
	GHashTable* _tmp4_ = NULL;
	TrackerSparqlContext* _tmp5_ = NULL;
#line 118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlContext*) g_type_create_instance (object_type);
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = query;
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->query = _tmp0_;
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = parent_context;
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tracker_sparql_context_ref0 (_tmp1_);
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->parent_context);
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->parent_context = _tmp2_;
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_object_unref;
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp3_, NULL);
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->var_set);
#line 121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->var_set = _tmp4_;
#line 123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = parent_context;
#line 123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp5_ == NULL) {
#line 1581 "tracker-sparql-query.c"
		GDestroyNotify _tmp6_ = NULL;
		GHashTable* _tmp7_ = NULL;
		GHashFunc _tmp8_ = NULL;
		GEqualFunc _tmp9_ = NULL;
		GDestroyNotify _tmp10_ = NULL;
		GDestroyNotify _tmp11_ = NULL;
		GHashTable* _tmp12_ = NULL;
		GDestroyNotify _tmp13_ = NULL;
		GDestroyNotify _tmp14_ = NULL;
		GHashTable* _tmp15_ = NULL;
#line 124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = g_object_unref;
#line 124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp6_, NULL);
#line 124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->select_var_set);
#line 124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->select_var_set = _tmp7_;
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = g_str_hash;
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp9_ = g_str_equal;
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = g_free;
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = g_object_unref;
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = g_hash_table_new_full (_tmp8_, _tmp9_, _tmp10_, _tmp11_);
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->var_map);
#line 125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->var_map = _tmp12_;
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = g_object_unref;
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp14_ = g_object_unref;
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp15_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp13_, _tmp14_);
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->predicate_variable_map);
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->predicate_variable_map = _tmp15_;
#line 1624 "tracker-sparql-query.c"
	} else {
		TrackerSparqlContext* _tmp16_ = NULL;
		GHashTable* _tmp17_ = NULL;
		GHashTable* _tmp18_ = NULL;
		TrackerSparqlContext* _tmp19_ = NULL;
		GHashTable* _tmp20_ = NULL;
		GHashTable* _tmp21_ = NULL;
		TrackerSparqlContext* _tmp22_ = NULL;
		GHashTable* _tmp23_ = NULL;
		GHashTable* _tmp24_ = NULL;
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp16_ = parent_context;
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp17_ = _tmp16_->select_var_set;
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp18_ = _g_hash_table_ref0 (_tmp17_);
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->select_var_set);
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->select_var_set = _tmp18_;
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp19_ = parent_context;
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp20_ = _tmp19_->var_map;
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp21_ = _g_hash_table_ref0 (_tmp20_);
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->var_map);
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->var_map = _tmp21_;
#line 130 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp22_ = parent_context;
#line 130 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp23_ = _tmp22_->predicate_variable_map;
#line 130 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp24_ = _g_hash_table_ref0 (_tmp23_);
#line 130 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_hash_table_unref0 (self->predicate_variable_map);
#line 130 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->predicate_variable_map = _tmp24_;
#line 1665 "tracker-sparql-query.c"
	}
#line 118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 1669 "tracker-sparql-query.c"
}


TrackerSparqlContext* tracker_sparql_context_new (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
#line 118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_context_construct (TRACKER_SPARQL_TYPE_CONTEXT, query, parent_context);
#line 1676 "tracker-sparql-query.c"
}


TrackerSparqlContext* tracker_sparql_context_construct_subquery (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
	TrackerSparqlContext* self = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlContext* _tmp1_ = NULL;
	TrackerSparqlContext* _tmp2_ = NULL;
	GDestroyNotify _tmp3_ = NULL;
	GHashTable* _tmp4_ = NULL;
	GDestroyNotify _tmp5_ = NULL;
	GHashTable* _tmp6_ = NULL;
	TrackerSparqlContext* _tmp7_ = NULL;
	GHashTable* _tmp8_ = NULL;
	GHashTable* _tmp9_ = NULL;
	GDestroyNotify _tmp10_ = NULL;
	GDestroyNotify _tmp11_ = NULL;
	GHashTable* _tmp12_ = NULL;
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (parent_context != NULL, NULL);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlContext*) g_type_create_instance (object_type);
#line 135 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = query;
#line 135 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->query = _tmp0_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = parent_context;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tracker_sparql_context_ref0 (_tmp1_);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->parent_context);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->parent_context = _tmp2_;
#line 137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_object_unref;
#line 137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp3_, NULL);
#line 137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->var_set);
#line 137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->var_set = _tmp4_;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = g_object_unref;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp5_, NULL);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->select_var_set);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->select_var_set = _tmp6_;
#line 140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = parent_context;
#line 140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_->var_map;
#line 140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _g_hash_table_ref0 (_tmp8_);
#line 140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->var_map);
#line 140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->var_map = _tmp9_;
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = g_object_unref;
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = g_object_unref;
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = g_hash_table_new_full (_tracker_sparql_variable_hash_ghash_func, _tracker_sparql_variable_equal_gequal_func, _tmp10_, _tmp11_);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->predicate_variable_map);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->predicate_variable_map = _tmp12_;
#line 142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->scalar_subquery = TRUE;
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 1753 "tracker-sparql-query.c"
}


TrackerSparqlContext* tracker_sparql_context_new_subquery (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_context_construct_subquery (TRACKER_SPARQL_TYPE_CONTEXT, query, parent_context);
#line 1760 "tracker-sparql-query.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self ? g_object_ref (self) : NULL;
#line 1767 "tracker-sparql-query.c"
}


TrackerSparqlVariable* tracker_sparql_context_get_variable (TrackerSparqlContext* self, const gchar* name) {
	TrackerSparqlVariable* result = NULL;
	TrackerSparqlVariable* _result_ = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	TrackerSparqlVariable* _tmp3_ = NULL;
	TrackerSparqlVariable* _tmp16_ = NULL;
#line 145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->var_map;
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = name;
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_result_ = (TrackerSparqlVariable*) _tmp2_;
#line 147 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _result_;
#line 147 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp3_ == NULL) {
#line 1795 "tracker-sparql-query.c"
		TrackerSparqlVariable* variable = NULL;
		const gchar* _tmp4_ = NULL;
		TrackerSparqlQuery* _tmp5_ = NULL;
		TrackerSparqlQuery* _tmp6_ = NULL;
		gint _tmp7_ = 0;
		gint _tmp8_ = 0;
		TrackerSparqlVariable* _tmp9_ = NULL;
		GHashTable* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		TrackerSparqlVariable* _tmp13_ = NULL;
		TrackerSparqlVariable* _tmp14_ = NULL;
		TrackerSparqlVariable* _tmp15_ = NULL;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = name;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp5_ = self->query;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = self->query;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_ = _tmp6_->last_var_index;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_->last_var_index = _tmp7_ + 1;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = _tmp6_->last_var_index;
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp9_ = tracker_sparql_variable_new (_tmp4_, _tmp8_);
#line 148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		variable = _tmp9_;
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = self->var_map;
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = name;
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = g_strdup (_tmp11_);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = variable;
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_hash_table_insert (_tmp10_, _tmp12_, _tmp14_);
#line 151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp15_ = variable;
#line 151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_result_ = _tmp15_;
#line 147 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_object_unref0 (variable);
#line 1843 "tracker-sparql-query.c"
	}
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp16_ = _result_;
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp16_;
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 1851 "tracker-sparql-query.c"
}


static void tracker_sparql_value_context_init (GValue* value) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	value->data[0].v_pointer = NULL;
#line 1858 "tracker-sparql-query.c"
}


static void tracker_sparql_value_context_free_value (GValue* value) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (value->data[0].v_pointer) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_context_unref (value->data[0].v_pointer);
#line 1867 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_value_context_copy_value (const GValue* src_value, GValue* dest_value) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (src_value->data[0].v_pointer) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		dest_value->data[0].v_pointer = tracker_sparql_context_ref (src_value->data[0].v_pointer);
#line 1877 "tracker-sparql-query.c"
	} else {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1881 "tracker-sparql-query.c"
	}
}


static gpointer tracker_sparql_value_context_peek_pointer (const GValue* value) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return value->data[0].v_pointer;
#line 1889 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_value_context_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (collect_values[0].v_pointer) {
#line 1896 "tracker-sparql-query.c"
		TrackerSparqlContext* object;
		object = collect_values[0].v_pointer;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (object->parent_instance.g_class == NULL) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1903 "tracker-sparql-query.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1907 "tracker-sparql-query.c"
		}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = tracker_sparql_context_ref (object);
#line 1911 "tracker-sparql-query.c"
	} else {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 1915 "tracker-sparql-query.c"
	}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return NULL;
#line 1919 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_value_context_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TrackerSparqlContext** object_p;
	object_p = collect_values[0].v_pointer;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!object_p) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1930 "tracker-sparql-query.c"
	}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!value->data[0].v_pointer) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = NULL;
#line 1936 "tracker-sparql-query.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = value->data[0].v_pointer;
#line 1940 "tracker-sparql-query.c"
	} else {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = tracker_sparql_context_ref (value->data[0].v_pointer);
#line 1944 "tracker-sparql-query.c"
	}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return NULL;
#line 1948 "tracker-sparql-query.c"
}


GParamSpec* tracker_sparql_param_spec_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	TrackerSparqlParamSpecContext* spec;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TRACKER_SPARQL_TYPE_CONTEXT), NULL);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return G_PARAM_SPEC (spec);
#line 1962 "tracker-sparql-query.c"
}


gpointer tracker_sparql_value_get_context (const GValue* value) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_CONTEXT), NULL);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return value->data[0].v_pointer;
#line 1971 "tracker-sparql-query.c"
}


void tracker_sparql_value_set_context (GValue* value, gpointer v_object) {
	TrackerSparqlContext* old;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_CONTEXT));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	old = value->data[0].v_pointer;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (v_object) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_SPARQL_TYPE_CONTEXT));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = v_object;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_context_ref (value->data[0].v_pointer);
#line 1991 "tracker-sparql-query.c"
	} else {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 1995 "tracker-sparql-query.c"
	}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (old) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_context_unref (old);
#line 2001 "tracker-sparql-query.c"
	}
}


void tracker_sparql_value_take_context (GValue* value, gpointer v_object) {
	TrackerSparqlContext* old;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_CONTEXT));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	old = value->data[0].v_pointer;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (v_object) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_SPARQL_TYPE_CONTEXT));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = v_object;
#line 2020 "tracker-sparql-query.c"
	} else {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 2024 "tracker-sparql-query.c"
	}
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (old) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_context_unref (old);
#line 2030 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_context_class_init (TrackerSparqlContextClass * klass) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_context_parent_class = g_type_class_peek_parent (klass);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	TRACKER_SPARQL_CONTEXT_CLASS (klass)->finalize = tracker_sparql_context_finalize;
#line 2040 "tracker-sparql-query.c"
}


static void tracker_sparql_context_instance_init (TrackerSparqlContext * self) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->ref_count = 1;
#line 2047 "tracker-sparql-query.c"
}


static void tracker_sparql_context_finalize (TrackerSparqlContext* obj) {
	TrackerSparqlContext * self;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_CONTEXT, TrackerSparqlContext);
#line 104 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->parent_context);
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->var_set);
#line 109 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->var_map);
#line 111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->select_var_set);
#line 114 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->predicate_variable_map);
#line 2065 "tracker-sparql-query.c"
}


GType tracker_sparql_context_get_type (void) {
	static volatile gsize tracker_sparql_context_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_context_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { tracker_sparql_value_context_init, tracker_sparql_value_context_free_value, tracker_sparql_value_context_copy_value, tracker_sparql_value_context_peek_pointer, "p", tracker_sparql_value_context_collect_value, "p", tracker_sparql_value_context_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlContextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_context_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlContext), 0, (GInstanceInitFunc) tracker_sparql_context_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType tracker_sparql_context_type_id;
		tracker_sparql_context_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerSparqlContext", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&tracker_sparql_context_type_id__volatile, tracker_sparql_context_type_id);
	}
	return tracker_sparql_context_type_id__volatile;
}


gpointer tracker_sparql_context_ref (gpointer instance) {
	TrackerSparqlContext* self;
	self = instance;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_atomic_int_inc (&self->ref_count);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return instance;
#line 2090 "tracker-sparql-query.c"
}


void tracker_sparql_context_unref (gpointer instance) {
	TrackerSparqlContext* self;
	self = instance;
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		TRACKER_SPARQL_CONTEXT_GET_CLASS (self)->finalize (self);
#line 101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 2103 "tracker-sparql-query.c"
	}
}


TrackerSparqlSelectContext* tracker_sparql_select_context_construct (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
	TrackerSparqlSelectContext* self = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlContext* _tmp1_ = NULL;
#line 162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = query;
#line 163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = parent_context;
#line 163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlSelectContext*) tracker_sparql_context_construct (object_type, _tmp0_, _tmp1_);
#line 162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 2122 "tracker-sparql-query.c"
}


TrackerSparqlSelectContext* tracker_sparql_select_context_new (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
#line 162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_select_context_construct (TRACKER_SPARQL_TYPE_SELECT_CONTEXT, query, parent_context);
#line 2129 "tracker-sparql-query.c"
}


TrackerSparqlSelectContext* tracker_sparql_select_context_construct_subquery (GType object_type, TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
	TrackerSparqlSelectContext* self = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlContext* _tmp1_ = NULL;
#line 166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (parent_context != NULL, NULL);
#line 167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = query;
#line 167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = parent_context;
#line 167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlSelectContext*) tracker_sparql_context_construct_subquery (object_type, _tmp0_, _tmp1_);
#line 166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 2149 "tracker-sparql-query.c"
}


TrackerSparqlSelectContext* tracker_sparql_select_context_new_subquery (TrackerSparqlQuery* query, TrackerSparqlContext* parent_context) {
#line 166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_select_context_construct_subquery (TRACKER_SPARQL_TYPE_SELECT_CONTEXT, query, parent_context);
#line 2156 "tracker-sparql-query.c"
}


static void tracker_sparql_select_context_class_init (TrackerSparqlSelectContextClass * klass) {
#line 157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_select_context_parent_class = g_type_class_peek_parent (klass);
#line 157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	TRACKER_SPARQL_CONTEXT_CLASS (klass)->finalize = tracker_sparql_select_context_finalize;
#line 2165 "tracker-sparql-query.c"
}


static void tracker_sparql_select_context_instance_init (TrackerSparqlSelectContext * self) {
	TrackerPropertyType* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_new0 (TrackerPropertyType, 0);
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->types = _tmp0_;
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->types_length1 = 0;
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->_types_size_ = self->types_length1;
#line 160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_new0 (gchar*, 0 + 1);
#line 160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->variable_names = _tmp1_;
#line 160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->variable_names_length1 = 0;
#line 160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->_variable_names_size_ = self->variable_names_length1;
#line 2188 "tracker-sparql-query.c"
}


static void tracker_sparql_select_context_finalize (TrackerSparqlContext* obj) {
	TrackerSparqlSelectContext * self;
#line 157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext);
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->types = (g_free (self->types), NULL);
#line 160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->variable_names = (_vala_array_free (self->variable_names, self->variable_names_length1, (GDestroyNotify) g_free), NULL);
#line 157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	TRACKER_SPARQL_CONTEXT_CLASS (tracker_sparql_select_context_parent_class)->finalize (obj);
#line 2202 "tracker-sparql-query.c"
}


GType tracker_sparql_select_context_get_type (void) {
	static volatile gsize tracker_sparql_select_context_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_select_context_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlSelectContextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_select_context_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlSelectContext), 0, (GInstanceInitFunc) tracker_sparql_select_context_instance_init, NULL };
		GType tracker_sparql_select_context_type_id;
		tracker_sparql_select_context_type_id = g_type_register_static (TRACKER_SPARQL_TYPE_CONTEXT, "TrackerSparqlSelectContext", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_select_context_type_id__volatile, tracker_sparql_select_context_type_id);
	}
	return tracker_sparql_select_context_type_id__volatile;
}


static void _g_free0_ (gpointer var) {
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	var = (g_free (var), NULL);
#line 2221 "tracker-sparql-query.c"
}


TrackerSparqlSolution* tracker_sparql_solution_construct (GType object_type) {
	TrackerSparqlSolution* self = NULL;
	GHashFunc _tmp0_ = NULL;
	GEqualFunc _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	GPtrArray* _tmp3_ = NULL;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlSolution*) g_type_create_instance (object_type);
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_str_hash;
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_str_equal;
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, NULL);
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->hash);
#line 177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->hash = _tmp2_;
#line 178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_ptr_array_new_with_free_func (_g_free0_);
#line 178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_ptr_array_unref0 (self->values);
#line 178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->values = _tmp3_;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 2251 "tracker-sparql-query.c"
}


TrackerSparqlSolution* tracker_sparql_solution_new (void) {
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_solution_construct (TRACKER_SPARQL_TYPE_SOLUTION);
#line 2258 "tracker-sparql-query.c"
}


gchar* tracker_sparql_solution_lookup (TrackerSparqlSolution* self, const gchar* variable_name) {
	gchar* result = NULL;
	gint variable_index = 0;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GPtrArray* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	GHashTable* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
	gint _tmp8_ = 0;
	gconstpointer _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (variable_name != NULL, NULL);
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->hash;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = variable_name;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_hash_table_lookup_extended (_tmp0_, _tmp1_, NULL, &_tmp2_);
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	variable_index = _tmp2_;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!_tmp3_) {
#line 184 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		result = NULL;
#line 184 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return result;
#line 2294 "tracker-sparql-query.c"
	}
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = self->values;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->solution_index;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->hash;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = g_hash_table_size (_tmp6_);
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = variable_index;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = g_ptr_array_index (_tmp4_, (_tmp5_ * _tmp7_) + _tmp8_);
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = g_strdup ((const gchar*) _tmp9_);
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp10_;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 2314 "tracker-sparql-query.c"
}


static void tracker_sparql_value_solution_init (GValue* value) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	value->data[0].v_pointer = NULL;
#line 2321 "tracker-sparql-query.c"
}


static void tracker_sparql_value_solution_free_value (GValue* value) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (value->data[0].v_pointer) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_solution_unref (value->data[0].v_pointer);
#line 2330 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_value_solution_copy_value (const GValue* src_value, GValue* dest_value) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (src_value->data[0].v_pointer) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		dest_value->data[0].v_pointer = tracker_sparql_solution_ref (src_value->data[0].v_pointer);
#line 2340 "tracker-sparql-query.c"
	} else {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		dest_value->data[0].v_pointer = NULL;
#line 2344 "tracker-sparql-query.c"
	}
}


static gpointer tracker_sparql_value_solution_peek_pointer (const GValue* value) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return value->data[0].v_pointer;
#line 2352 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_value_solution_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (collect_values[0].v_pointer) {
#line 2359 "tracker-sparql-query.c"
		TrackerSparqlSolution* object;
		object = collect_values[0].v_pointer;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (object->parent_instance.g_class == NULL) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2366 "tracker-sparql-query.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 2370 "tracker-sparql-query.c"
		}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = tracker_sparql_solution_ref (object);
#line 2374 "tracker-sparql-query.c"
	} else {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 2378 "tracker-sparql-query.c"
	}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return NULL;
#line 2382 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_value_solution_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TrackerSparqlSolution** object_p;
	object_p = collect_values[0].v_pointer;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!object_p) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 2393 "tracker-sparql-query.c"
	}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!value->data[0].v_pointer) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = NULL;
#line 2399 "tracker-sparql-query.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = value->data[0].v_pointer;
#line 2403 "tracker-sparql-query.c"
	} else {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*object_p = tracker_sparql_solution_ref (value->data[0].v_pointer);
#line 2407 "tracker-sparql-query.c"
	}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return NULL;
#line 2411 "tracker-sparql-query.c"
}


GParamSpec* tracker_sparql_param_spec_solution (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	TrackerSparqlParamSpecSolution* spec;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TRACKER_SPARQL_TYPE_SOLUTION), NULL);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return G_PARAM_SPEC (spec);
#line 2425 "tracker-sparql-query.c"
}


gpointer tracker_sparql_value_get_solution (const GValue* value) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_SOLUTION), NULL);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return value->data[0].v_pointer;
#line 2434 "tracker-sparql-query.c"
}


void tracker_sparql_value_set_solution (GValue* value, gpointer v_object) {
	TrackerSparqlSolution* old;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_SOLUTION));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	old = value->data[0].v_pointer;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (v_object) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_SPARQL_TYPE_SOLUTION));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = v_object;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_solution_ref (value->data[0].v_pointer);
#line 2454 "tracker-sparql-query.c"
	} else {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 2458 "tracker-sparql-query.c"
	}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (old) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_solution_unref (old);
#line 2464 "tracker-sparql-query.c"
	}
}


void tracker_sparql_value_take_solution (GValue* value, gpointer v_object) {
	TrackerSparqlSolution* old;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_SPARQL_TYPE_SOLUTION));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	old = value->data[0].v_pointer;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (v_object) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_SPARQL_TYPE_SOLUTION));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = v_object;
#line 2483 "tracker-sparql-query.c"
	} else {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		value->data[0].v_pointer = NULL;
#line 2487 "tracker-sparql-query.c"
	}
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (old) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_solution_unref (old);
#line 2493 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_solution_class_init (TrackerSparqlSolutionClass * klass) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_solution_parent_class = g_type_class_peek_parent (klass);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	TRACKER_SPARQL_SOLUTION_CLASS (klass)->finalize = tracker_sparql_solution_finalize;
#line 2503 "tracker-sparql-query.c"
}


static void tracker_sparql_solution_instance_init (TrackerSparqlSolution * self) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->ref_count = 1;
#line 2510 "tracker-sparql-query.c"
}


static void tracker_sparql_solution_finalize (TrackerSparqlSolution* obj) {
	TrackerSparqlSolution * self;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_SOLUTION, TrackerSparqlSolution);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->hash);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_ptr_array_unref0 (self->values);
#line 2522 "tracker-sparql-query.c"
}


GType tracker_sparql_solution_get_type (void) {
	static volatile gsize tracker_sparql_solution_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_solution_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { tracker_sparql_value_solution_init, tracker_sparql_value_solution_free_value, tracker_sparql_value_solution_copy_value, tracker_sparql_value_solution_peek_pointer, "p", tracker_sparql_value_solution_collect_value, "p", tracker_sparql_value_solution_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlSolutionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_solution_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlSolution), 0, (GInstanceInitFunc) tracker_sparql_solution_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType tracker_sparql_solution_type_id;
		tracker_sparql_solution_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerSparqlSolution", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&tracker_sparql_solution_type_id__volatile, tracker_sparql_solution_type_id);
	}
	return tracker_sparql_solution_type_id__volatile;
}


gpointer tracker_sparql_solution_ref (gpointer instance) {
	TrackerSparqlSolution* self;
	self = instance;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_atomic_int_inc (&self->ref_count);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return instance;
#line 2547 "tracker-sparql-query.c"
}


void tracker_sparql_solution_unref (gpointer instance) {
	TrackerSparqlSolution* self;
	self = instance;
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		TRACKER_SPARQL_SOLUTION_GET_CLASS (self)->finalize (self);
#line 171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 2560 "tracker-sparql-query.c"
	}
}


TrackerSparqlQuery* tracker_sparql_query_construct (GType object_type, const gchar* query) {
	TrackerSparqlQuery * self = NULL;
	TrackerSparqlQueryTokenInfo* _tmp0_ = NULL;
	GHashFunc _tmp1_ = NULL;
	GEqualFunc _tmp2_ = NULL;
	GDestroyNotify _tmp3_ = NULL;
	GDestroyNotify _tmp4_ = NULL;
	GHashTable* _tmp5_ = NULL;
	guchar* _tmp6_ = NULL;
	guchar* _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	TrackerSparqlExpression* _tmp10_ = NULL;
	TrackerSparqlPattern* _tmp11_ = NULL;
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlQuery*) g_object_new (object_type, NULL);
#line 247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_set_no_cache (self, FALSE);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_new0 (TrackerSparqlQueryTokenInfo, TRACKER_SPARQL_QUERY_BUFFER_SIZE);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->tokens = (g_free (self->priv->tokens), NULL);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->tokens = _tmp0_;
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->tokens_length1 = TRACKER_SPARQL_QUERY_BUFFER_SIZE;
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_tokens_size_ = self->priv->tokens_length1;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_str_hash;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = g_str_equal;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_free;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_free;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = g_hash_table_new_full (_tmp1_, _tmp2_, _tmp3_, _tmp4_);
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->priv->prefix_map);
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->prefix_map = _tmp5_;
#line 251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = g_new0 (guchar, 16);
#line 251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->base_uuid = (g_free (self->priv->base_uuid), NULL);
#line 251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->base_uuid = _tmp6_;
#line 251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->base_uuid_length1 = 16;
#line 251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_base_uuid_size_ = self->priv->base_uuid_length1;
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = self->priv->base_uuid;
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7__length1 = self->priv->base_uuid_length1;
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	uuid_generate (_tmp7_);
#line 254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = query;
#line 254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = g_strdup (_tmp8_);
#line 254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->query_string);
#line 254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->query_string = _tmp9_;
#line 256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = tracker_sparql_expression_new (self);
#line 256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->expression);
#line 256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->expression = _tmp10_;
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = tracker_sparql_pattern_new (self);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->pattern);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->pattern = _tmp11_;
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 2648 "tracker-sparql-query.c"
}


TrackerSparqlQuery* tracker_sparql_query_new (const gchar* query) {
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_query_construct (TRACKER_SPARQL_TYPE_QUERY, query);
#line 2655 "tracker-sparql-query.c"
}


TrackerSparqlQuery* tracker_sparql_query_construct_update (GType object_type, const gchar* query) {
	TrackerSparqlQuery * self = NULL;
	const gchar* _tmp0_ = NULL;
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = query;
#line 261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = (TrackerSparqlQuery*) tracker_sparql_query_construct (object_type, _tmp0_);
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->update_extensions = TRUE;
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self;
#line 2672 "tracker-sparql-query.c"
}


TrackerSparqlQuery* tracker_sparql_query_new_update (const gchar* query) {
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return tracker_sparql_query_construct_update (TRACKER_SPARQL_TYPE_QUERY, query);
#line 2679 "tracker-sparql-query.c"
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1156 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1157 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1157 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 2702 "tracker-sparql-query.c"
		glong _tmp4_ = 0L;
#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1158 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		return result;
#line 2710 "tracker-sparql-query.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1160 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		return result;
#line 2722 "tracker-sparql-query.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	gboolean _tmp3_ = FALSE;
	glong _tmp9_ = 0L;
	glong _tmp15_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	glong _tmp22_ = 0L;
	gchar* _tmp23_ = NULL;
#line 1167 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 2747 "tracker-sparql-query.c"
		glong _tmp2_ = 0L;
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 2753 "tracker-sparql-query.c"
	} else {
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 2757 "tracker-sparql-query.c"
	}
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp3_ = _tmp0_;
#line 1169 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp3_) {
#line 2763 "tracker-sparql-query.c"
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
		glong _tmp6_ = 0L;
#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = offset;
#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp5_ = len;
#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);
#line 1171 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		string_length = _tmp6_;
#line 2775 "tracker-sparql-query.c"
	} else {
		gint _tmp7_ = 0;
		gint _tmp8_ = 0;
#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp7_ = strlen (self);
#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp7_;
#line 1173 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp8_;
#line 2785 "tracker-sparql-query.c"
	}
#line 1176 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp9_ = offset;
#line 1176 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp9_ < ((glong) 0)) {
#line 2791 "tracker-sparql-query.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
		glong _tmp12_ = 0L;
#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp10_ = string_length;
#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1177 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		offset = _tmp10_ + _tmp11_;
#line 1178 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1178 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);
#line 2805 "tracker-sparql-query.c"
	} else {
		glong _tmp13_ = 0L;
		glong _tmp14_ = 0L;
#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp13_ = offset;
#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp14_ = string_length;
#line 1180 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
#line 2815 "tracker-sparql-query.c"
	}
#line 1182 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp15_ = len;
#line 1182 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp15_ < ((glong) 0)) {
#line 2821 "tracker-sparql-query.c"
		glong _tmp16_ = 0L;
		glong _tmp17_ = 0L;
#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp16_ = string_length;
#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp17_ = offset;
#line 1183 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		len = _tmp16_ - _tmp17_;
#line 2830 "tracker-sparql-query.c"
	}
#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp18_ = offset;
#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp19_ = len;
#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp20_ = string_length;
#line 1185 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);
#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp21_ = offset;
#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp22_ = len;
#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);
#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	result = _tmp23_;
#line 1186 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	return result;
#line 2850 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_query_get_uuid_for_name (TrackerSparqlQuery* self, guchar* base_uuid, int base_uuid_length1, const gchar* name) {
	gchar* result = NULL;
	GChecksum* checksum = NULL;
	GChecksum* _tmp0_ = NULL;
	guchar* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	const gchar* _tmp2_ = NULL;
	gchar* sha1 = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
#line 265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_checksum_new (G_CHECKSUM_SHA1);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	checksum = _tmp0_;
#line 268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = base_uuid;
#line 268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1__length1 = base_uuid_length1;
#line 268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_checksum_update (checksum, _tmp1_, (gsize) 16);
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = name;
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_checksum_update (checksum, (guchar*) _tmp2_, (gsize) (-1));
#line 273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_checksum_get_string (checksum);
#line 273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	sha1 = _tmp4_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = string_substring (sha1, (glong) 8, (glong) (-1));
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = _tmp5_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = string_substring (sha1, (glong) 12, (glong) (-1));
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = string_substring (sha1, (glong) 16, (glong) (-1));
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = _tmp9_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = string_substring (sha1, (glong) 20, (glong) (-1));
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = _tmp11_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp13_ = g_strdup_printf ("urn:uuid:%.8s-%.4s-%.4s-%.4s-%.12s", sha1, _tmp6_, _tmp8_, _tmp10_, _tmp12_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp14_ = _tmp13_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp12_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp10_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp8_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp6_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp14_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (sha1);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_checksum_free0 (checksum);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 2934 "tracker-sparql-query.c"
}


gchar* tracker_sparql_query_generate_bnodeid (TrackerSparqlQuery* self, const gchar* user_bnodeid) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = user_bnodeid;
#line 282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_ == NULL) {
#line 2947 "tracker-sparql-query.c"
		gint _tmp1_ = 0;
		gint _tmp2_ = 0;
		gchar* _tmp3_ = NULL;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = self->priv->bnodeid;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->bnodeid = _tmp1_ + 1;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = self->priv->bnodeid;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = g_strdup_printf (":%d", _tmp2_);
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		result = _tmp3_;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return result;
#line 2963 "tracker-sparql-query.c"
	} else {
		gchar* uri = NULL;
		GHashTable* _tmp4_ = NULL;
		guchar* _tmp10_ = NULL;
		gint _tmp10__length1 = 0;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GHashTable* _tmp13_ = NULL;
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		uri = NULL;
#line 287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = self->priv->blank_nodes;
#line 287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp4_ != NULL) {
#line 2978 "tracker-sparql-query.c"
			GHashTable* _tmp5_ = NULL;
			const gchar* _tmp6_ = NULL;
			gconstpointer _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			const gchar* _tmp9_ = NULL;
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = self->priv->blank_nodes;
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp6_ = user_bnodeid;
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = g_hash_table_lookup (_tmp5_, _tmp6_);
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = g_strdup ((const gchar*) _tmp7_);
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (uri);
#line 288 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			uri = _tmp8_;
#line 289 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = uri;
#line 289 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp9_ != NULL) {
#line 290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				result = uri;
#line 290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return result;
#line 3004 "tracker-sparql-query.c"
			}
		}
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = self->priv->base_uuid;
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10__length1 = self->priv->base_uuid_length1;
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = user_bnodeid;
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = tracker_sparql_query_get_uuid_for_name (self, _tmp10_, _tmp10__length1, _tmp11_);
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (uri);
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		uri = _tmp12_;
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = self->priv->blank_nodes;
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp13_ != NULL) {
#line 3023 "tracker-sparql-query.c"
			GHashTable* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			const gchar* _tmp24_ = NULL;
			gchar* _tmp25_ = NULL;
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			while (TRUE) {
#line 3031 "tracker-sparql-query.c"
				const gchar* _tmp14_ = NULL;
				gint _tmp15_ = 0;
				guchar* new_base_uuid = NULL;
				guchar* _tmp16_ = NULL;
				gint new_base_uuid_length1 = 0;
				gint _new_base_uuid_size_ = 0;
				guchar* _tmp17_ = NULL;
				gint _tmp17__length1 = 0;
				guchar* _tmp18_ = NULL;
				gint _tmp18__length1 = 0;
				const gchar* _tmp19_ = NULL;
				gchar* _tmp20_ = NULL;
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp14_ = uri;
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp15_ = tracker_data_query_resource_id (_tmp14_);
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!(_tmp15_ > 0)) {
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					break;
#line 3052 "tracker-sparql-query.c"
				}
#line 299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp16_ = g_new0 (guchar, 16);
#line 299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				new_base_uuid = _tmp16_;
#line 299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				new_base_uuid_length1 = 16;
#line 299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_new_base_uuid_size_ = new_base_uuid_length1;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp17_ = new_base_uuid;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp17__length1 = new_base_uuid_length1;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				uuid_generate (_tmp17_);
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18_ = new_base_uuid;
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18__length1 = new_base_uuid_length1;
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = user_bnodeid;
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp20_ = tracker_sparql_query_get_uuid_for_name (self, _tmp18_, _tmp18__length1, _tmp19_);
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (uri);
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				uri = _tmp20_;
#line 297 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				new_base_uuid = (g_free (new_base_uuid), NULL);
#line 3082 "tracker-sparql-query.c"
			}
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp21_ = self->priv->blank_nodes;
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp22_ = user_bnodeid;
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp23_ = g_strdup (_tmp22_);
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp24_ = uri;
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp25_ = g_strdup (_tmp24_);
#line 304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_hash_table_insert (_tmp21_, _tmp23_, _tmp25_);
#line 3096 "tracker-sparql-query.c"
		}
#line 307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		result = uri;
#line 307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return result;
#line 3102 "tracker-sparql-query.c"
	}
}


gboolean tracker_sparql_query_next (TrackerSparqlQuery* self, GError** error) {
	gboolean result = FALSE;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp16_ = NULL;
	gint _tmp16__length1 = 0;
	gint _tmp17_ = 0;
	TrackerSparqlQueryTokenInfo _tmp18_ = {0};
	TrackerSparqlTokenType _tmp19_ = 0;
	GError * _inner_error_ = NULL;
#line 311 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->index;
#line 312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->index = (_tmp0_ + 1) % TRACKER_SPARQL_QUERY_BUFFER_SIZE;
#line 313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->size;
#line 313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->size = _tmp1_ - 1;
#line 314 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = self->priv->size;
#line 314 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp2_ <= 0) {
#line 3132 "tracker-sparql-query.c"
		TrackerSourceLocation begin = {0};
		TrackerSourceLocation end = {0};
		TrackerSparqlTokenType type = 0;
		TrackerSparqlScanner* _tmp3_ = NULL;
		TrackerSourceLocation _tmp4_ = {0};
		TrackerSourceLocation _tmp5_ = {0};
		TrackerSparqlTokenType _tmp6_ = 0;
		TrackerSparqlQueryTokenInfo* _tmp7_ = NULL;
		gint _tmp7__length1 = 0;
		gint _tmp8_ = 0;
		TrackerSparqlTokenType _tmp9_ = 0;
		TrackerSparqlQueryTokenInfo* _tmp10_ = NULL;
		gint _tmp10__length1 = 0;
		gint _tmp11_ = 0;
		TrackerSourceLocation _tmp12_ = {0};
		TrackerSparqlQueryTokenInfo* _tmp13_ = NULL;
		gint _tmp13__length1 = 0;
		gint _tmp14_ = 0;
		TrackerSourceLocation _tmp15_ = {0};
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = self->priv->scanner;
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = tracker_sparql_scanner_read_token (_tmp3_, &_tmp4_, &_tmp5_, &_inner_error_);
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		begin = _tmp4_;
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		end = _tmp5_;
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		type = _tmp6_;
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return FALSE;
#line 3170 "tracker-sparql-query.c"
			} else {
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return FALSE;
#line 3178 "tracker-sparql-query.c"
			}
		}
#line 317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_ = self->priv->tokens;
#line 317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7__length1 = self->priv->tokens_length1;
#line 317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = self->priv->index;
#line 317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp9_ = type;
#line 317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_[_tmp8_].type = _tmp9_;
#line 318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = self->priv->tokens;
#line 318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10__length1 = self->priv->tokens_length1;
#line 318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = self->priv->index;
#line 318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = begin;
#line 318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_[_tmp11_].begin = _tmp12_;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = self->priv->tokens;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13__length1 = self->priv->tokens_length1;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp14_ = self->priv->index;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp15_ = end;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_[_tmp14_].end = _tmp15_;
#line 320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->size = 1;
#line 3213 "tracker-sparql-query.c"
	}
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp16_ = self->priv->tokens;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp16__length1 = self->priv->tokens_length1;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp17_ = self->priv->index;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp18_ = _tmp16_[_tmp17_];
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp19_ = _tmp18_.type;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp19_ != TRACKER_SPARQL_TOKEN_TYPE_EOF;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3229 "tracker-sparql-query.c"
}


TrackerSparqlTokenType tracker_sparql_query_current (TrackerSparqlQuery* self) {
	TrackerSparqlTokenType result = 0;
	TrackerSparqlQueryTokenInfo* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gint _tmp1_ = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSparqlTokenType _tmp3_ = 0;
#line 325 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->tokens;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0__length1 = self->priv->tokens_length1;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->index;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp0_[_tmp1_];
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.type;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp3_;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3256 "tracker-sparql-query.c"
}


TrackerSparqlTokenType tracker_sparql_query_last (TrackerSparqlQuery* self) {
	TrackerSparqlTokenType result = 0;
	gint last_index = 0;
	gint _tmp0_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSparqlTokenType _tmp3_ = 0;
#line 329 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 330 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->index;
#line 330 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	last_index = ((_tmp0_ + TRACKER_SPARQL_QUERY_BUFFER_SIZE) - 1) % TRACKER_SPARQL_QUERY_BUFFER_SIZE;
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->tokens;
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1__length1 = self->priv->tokens_length1;
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp1_[last_index];
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.type;
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp3_;
#line 331 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3286 "tracker-sparql-query.c"
}


gboolean tracker_sparql_query_accept (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	TrackerSparqlTokenType _tmp0_ = 0;
	TrackerSparqlTokenType _tmp1_ = 0;
	GError * _inner_error_ = NULL;
#line 334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = tracker_sparql_query_current (self);
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = type;
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_ == _tmp1_) {
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_next (self, &_inner_error_);
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return FALSE;
#line 3313 "tracker-sparql-query.c"
			} else {
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return FALSE;
#line 3321 "tracker-sparql-query.c"
			}
		}
#line 337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		result = TRUE;
#line 337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return result;
#line 3328 "tracker-sparql-query.c"
	}
#line 339 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = FALSE;
#line 339 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3334 "tracker-sparql-query.c"
}


GError* tracker_sparql_query_get_error (TrackerSparqlQuery* self, const gchar* msg) {
	GError* result = NULL;
	TrackerSparqlQueryTokenInfo* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gint _tmp1_ = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSourceLocation _tmp3_ = {0};
	gint _tmp4_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	gint _tmp6_ = 0;
	TrackerSparqlQueryTokenInfo _tmp7_ = {0};
	TrackerSourceLocation _tmp8_ = {0};
	gint _tmp9_ = 0;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GError* _tmp13_ = NULL;
	GError* _tmp14_ = NULL;
#line 342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->tokens;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0__length1 = self->priv->tokens_length1;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->index;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp0_[_tmp1_];
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.begin;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = _tmp3_.line;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->priv->tokens;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5__length1 = self->priv->tokens_length1;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->priv->index;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp5_[_tmp6_];
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_.begin;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _tmp8_.column;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = msg;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = g_strdup_printf ("%d.%d: syntax error, %s", _tmp4_, _tmp9_, _tmp10_);
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = _tmp11_;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp13_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_PARSE, _tmp12_);
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp14_ = _tmp13_;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp12_);
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp14_;
#line 343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3401 "tracker-sparql-query.c"
}


GError* tracker_sparql_query_get_internal_error (TrackerSparqlQuery* self, const gchar* msg) {
	GError* result = NULL;
	TrackerSparqlQueryTokenInfo* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gint _tmp1_ = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSourceLocation _tmp3_ = {0};
	gint _tmp4_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	gint _tmp6_ = 0;
	TrackerSparqlQueryTokenInfo _tmp7_ = {0};
	TrackerSourceLocation _tmp8_ = {0};
	gint _tmp9_ = 0;
	const gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GError* _tmp13_ = NULL;
	GError* _tmp14_ = NULL;
#line 346 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 346 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->tokens;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0__length1 = self->priv->tokens_length1;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->index;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp0_[_tmp1_];
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.begin;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = _tmp3_.line;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->priv->tokens;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5__length1 = self->priv->tokens_length1;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->priv->index;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp5_[_tmp6_];
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_.begin;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _tmp8_.column;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = msg;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = g_strdup_printf ("%d.%d: %s", _tmp4_, _tmp9_, _tmp10_);
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = _tmp11_;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp13_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_INTERNAL, _tmp12_);
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp14_ = _tmp13_;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp12_);
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp14_;
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3468 "tracker-sparql-query.c"
}


gboolean tracker_sparql_query_expect (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	TrackerSparqlTokenType _tmp1_ = 0;
	gboolean _tmp2_ = FALSE;
	TrackerSparqlTokenType _tmp3_ = 0;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	GError* _tmp7_ = NULL;
	GError* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
#line 350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = type;
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = tracker_sparql_query_accept (self, _tmp1_, &_inner_error_);
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = _tmp2_;
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return FALSE;
#line 3500 "tracker-sparql-query.c"
		} else {
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return FALSE;
#line 3508 "tracker-sparql-query.c"
		}
	}
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_) {
#line 352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		result = TRUE;
#line 352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return result;
#line 3517 "tracker-sparql-query.c"
	}
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = type;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = tracker_sparql_token_type_to_string (_tmp3_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = g_strdup_printf ("expected %s", _tmp4_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = _tmp5_;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = tracker_sparql_query_get_error (self, _tmp6_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp6_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_inner_error_ = _tmp8_;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return FALSE;
#line 3541 "tracker-sparql-query.c"
	} else {
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_clear_error (&_inner_error_);
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return FALSE;
#line 3549 "tracker-sparql-query.c"
	}
}


void tracker_sparql_query_get_location (TrackerSparqlQuery* self, TrackerSourceLocation* result) {
	TrackerSparqlQueryTokenInfo* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gint _tmp1_ = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSourceLocation _tmp3_ = {0};
#line 358 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->tokens;
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0__length1 = self->priv->tokens_length1;
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->index;
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp0_[_tmp1_];
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.begin;
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	*result = _tmp3_;
#line 359 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return;
#line 3576 "tracker-sparql-query.c"
}


void tracker_sparql_query_set_location (TrackerSparqlQuery* self, TrackerSourceLocation* location) {
	TrackerSparqlScanner* _tmp0_ = NULL;
	TrackerSourceLocation _tmp1_ = {0};
	GError * _inner_error_ = NULL;
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (location != NULL);
#line 363 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->scanner;
#line 363 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = *location;
#line 363 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_scanner_seek (_tmp0_, &_tmp1_);
#line 364 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->size = 0;
#line 365 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->index = 0;
#line 3598 "tracker-sparql-query.c"
	{
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_next (self, &_inner_error_);
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 3606 "tracker-sparql-query.c"
				goto __catch2_tracker_sparql_error;
			}
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 3615 "tracker-sparql-query.c"
		}
	}
	goto __finally2;
	__catch2_tracker_sparql_error:
	{
		GError* e = NULL;
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		e = _inner_error_;
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = NULL;
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_critical ("internal error: next in set_location failed");
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_error_free0 (e);
#line 3630 "tracker-sparql-query.c"
	}
	__finally2:
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_clear_error (&_inner_error_);
#line 366 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 3641 "tracker-sparql-query.c"
	}
}


gchar* tracker_sparql_query_get_last_string (TrackerSparqlQuery* self, gint strip) {
	gchar* result = NULL;
	gint last_index = 0;
	gint _tmp0_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	TrackerSparqlQueryTokenInfo _tmp2_ = {0};
	TrackerSourceLocation _tmp3_ = {0};
	gchar* _tmp4_ = NULL;
	gint _tmp5_ = 0;
	TrackerSparqlQueryTokenInfo* _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	TrackerSparqlQueryTokenInfo _tmp7_ = {0};
	TrackerSourceLocation _tmp8_ = {0};
	gchar* _tmp9_ = NULL;
	TrackerSparqlQueryTokenInfo* _tmp10_ = NULL;
	gint _tmp10__length1 = 0;
	TrackerSparqlQueryTokenInfo _tmp11_ = {0};
	TrackerSourceLocation _tmp12_ = {0};
	gchar* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gchar* _tmp15_ = NULL;
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->index;
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	last_index = ((_tmp0_ + TRACKER_SPARQL_QUERY_BUFFER_SIZE) - 1) % TRACKER_SPARQL_QUERY_BUFFER_SIZE;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->tokens;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1__length1 = self->priv->tokens_length1;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp1_[last_index];
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp2_.begin;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = _tmp3_.pos;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = strip;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->priv->tokens;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6__length1 = self->priv->tokens_length1;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp6_[last_index];
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_.end;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _tmp8_.pos;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = self->priv->tokens;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10__length1 = self->priv->tokens_length1;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = _tmp10_[last_index];
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = _tmp11_.begin;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp13_ = _tmp12_.pos;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp14_ = strip;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp15_ = string_substring ((const gchar*) (_tmp4_ + _tmp5_), (glong) 0, (glong) ((gint) ((_tmp9_ - _tmp13_) - (2 * _tmp14_))));
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp15_;
#line 376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 3714 "tracker-sparql-query.c"
}


static void tracker_sparql_query_parse_prologue (TrackerSparqlQuery* self, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 379 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_BASE, &_inner_error_);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = _tmp1_;
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 3736 "tracker-sparql-query.c"
		} else {
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 3744 "tracker-sparql-query.c"
		}
	}
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_) {
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_);
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3759 "tracker-sparql-query.c"
			} else {
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 381 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3767 "tracker-sparql-query.c"
			}
		}
	}
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 3773 "tracker-sparql-query.c"
		gboolean _tmp2_ = FALSE;
		gboolean _tmp3_ = FALSE;
		gchar* ns = NULL;
		gchar* _tmp4_ = NULL;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
		gchar* uri = NULL;
		gchar* _tmp8_ = NULL;
		GHashTable* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PREFIX, &_inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = _tmp3_;
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3799 "tracker-sparql-query.c"
			} else {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3807 "tracker-sparql-query.c"
			}
		}
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!_tmp2_) {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			break;
#line 3814 "tracker-sparql-query.c"
		}
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = g_strdup ("");
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ns = _tmp4_;
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp5_ = _tmp6_;
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3834 "tracker-sparql-query.c"
			} else {
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3844 "tracker-sparql-query.c"
			}
		}
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp5_) {
#line 3849 "tracker-sparql-query.c"
			gchar* _tmp7_ = NULL;
#line 386 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = tracker_sparql_query_get_last_string (self, 0);
#line 386 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (ns);
#line 386 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			ns = _tmp7_;
#line 3857 "tracker-sparql-query.c"
		}
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3871 "tracker-sparql-query.c"
			} else {
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3881 "tracker-sparql-query.c"
			}
		}
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3896 "tracker-sparql-query.c"
			} else {
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 3906 "tracker-sparql-query.c"
			}
		}
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = tracker_sparql_query_get_last_string (self, 1);
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		uri = _tmp8_;
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp9_ = self->priv->prefix_map;
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = ns;
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = g_strdup (_tmp10_);
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = uri;
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = g_strdup (_tmp12_);
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_hash_table_insert (_tmp9_, _tmp11_, _tmp13_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (uri);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (ns);
#line 3929 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_query_prepare_execute (TrackerSparqlQuery* self, GError** error) {
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	gint _tmp4_ = 0;
	TrackerSparqlScanner* _tmp5_ = NULL;
	GHashTable* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	TrackerNamespace** _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->update_extensions;
#line 396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_vala_assert (!_tmp0_, "!update_extensions");
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->query_string;
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = self->priv->query_string;
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = strlen (_tmp2_);
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = _tmp3_;
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = tracker_sparql_scanner_new ((gchar*) _tmp1_, (gsize) ((glong) _tmp4_));
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->priv->scanner);
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->scanner = _tmp5_;
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_next (self, &_inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 3977 "tracker-sparql-query.c"
		} else {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 3985 "tracker-sparql-query.c"
		}
	}
#line 402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->priv->prefix_map;
#line 402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = g_strdup ("fn");
#line 402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = g_strdup (TRACKER_SPARQL_QUERY_FN_NS);
#line 402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_hash_table_insert (_tmp6_, _tmp7_, _tmp8_);
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = tracker_ontologies_get_namespaces (&_tmp9_);
#line 3998 "tracker-sparql-query.c"
	{
		TrackerNamespace** ns_collection = NULL;
		gint ns_collection_length1 = 0;
		gint _ns_collection_size_ = 0;
		gint ns_it = 0;
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ns_collection = _tmp10_;
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ns_collection_length1 = _tmp9_;
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		for (ns_it = 0; ns_it < _tmp9_; ns_it = ns_it + 1) {
#line 4010 "tracker-sparql-query.c"
			TrackerNamespace* _tmp11_ = NULL;
			TrackerNamespace* ns = NULL;
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp11_ = _g_object_ref0 (ns_collection[ns_it]);
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			ns = _tmp11_;
#line 4017 "tracker-sparql-query.c"
			{
				TrackerNamespace* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				GHashTable* _tmp18_ = NULL;
				TrackerNamespace* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
				const gchar* _tmp21_ = NULL;
				gchar* _tmp22_ = NULL;
				TrackerNamespace* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
				const gchar* _tmp25_ = NULL;
				gchar* _tmp26_ = NULL;
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp12_ = ns;
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = tracker_namespace_get_prefix (_tmp12_);
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp14_ = _tmp13_;
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp14_ == NULL) {
#line 4039 "tracker-sparql-query.c"
					TrackerNamespace* _tmp15_ = NULL;
					const gchar* _tmp16_ = NULL;
					const gchar* _tmp17_ = NULL;
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp15_ = ns;
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp16_ = tracker_namespace_get_uri (_tmp15_);
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp17_ = _tmp16_;
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("Namespace does not specify a prefix: %s", _tmp17_);
#line 407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_object_unref0 (ns);
#line 407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					continue;
#line 4055 "tracker-sparql-query.c"
				}
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18_ = self->priv->prefix_map;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = ns;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp20_ = tracker_namespace_get_prefix (_tmp19_);
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp21_ = _tmp20_;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp22_ = g_strdup (_tmp21_);
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp23_ = ns;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp24_ = tracker_namespace_get_uri (_tmp23_);
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp25_ = _tmp24_;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp26_ = g_strdup (_tmp25_);
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_hash_table_insert (_tmp18_, _tmp22_, _tmp26_);
#line 404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_object_unref0 (ns);
#line 4079 "tracker-sparql-query.c"
			}
		}
	}
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_parse_prologue (self, &_inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 4093 "tracker-sparql-query.c"
		} else {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 4101 "tracker-sparql-query.c"
		}
	}
}


TrackerDBCursor* tracker_sparql_query_execute_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error) {
	TrackerDBCursor* result = NULL;
	TrackerSparqlTokenType _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 416 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_prepare_execute (self, &_inner_error_);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4123 "tracker-sparql-query.c"
		} else {
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4131 "tracker-sparql-query.c"
		}
	}
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = tracker_sparql_query_current (self);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (_tmp0_) {
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SELECT:
#line 4140 "tracker-sparql-query.c"
		{
			TrackerDBCursor* _tmp1_ = NULL;
			gboolean _tmp2_ = FALSE;
			TrackerDBCursor* _tmp3_ = NULL;
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp2_ = threadsafe;
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp3_ = tracker_sparql_query_execute_select_cursor (self, _tmp2_, &_inner_error_);
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp1_ = _tmp3_;
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 4159 "tracker-sparql-query.c"
				} else {
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 4167 "tracker-sparql-query.c"
				}
			}
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			result = _tmp1_;
#line 422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return result;
#line 4174 "tracker-sparql-query.c"
		}
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_CONSTRUCT:
#line 4178 "tracker-sparql-query.c"
		{
			GError* _tmp4_ = NULL;
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp4_ = tracker_sparql_query_get_internal_error (self, "CONSTRUCT is not supported");
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp4_;
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4191 "tracker-sparql-query.c"
			} else {
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4199 "tracker-sparql-query.c"
			}
		}
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DESCRIBE:
#line 4204 "tracker-sparql-query.c"
		{
			GError* _tmp5_ = NULL;
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = tracker_sparql_query_get_internal_error (self, "DESCRIBE is not supported");
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp5_;
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4217 "tracker-sparql-query.c"
			} else {
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4225 "tracker-sparql-query.c"
			}
		}
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ASK:
#line 4230 "tracker-sparql-query.c"
		{
			TrackerDBCursor* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			TrackerDBCursor* _tmp8_ = NULL;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = threadsafe;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = tracker_sparql_query_execute_ask_cursor (self, _tmp7_, &_inner_error_);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp6_ = _tmp8_;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 4249 "tracker-sparql-query.c"
				} else {
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 4257 "tracker-sparql-query.c"
				}
			}
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			result = _tmp6_;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return result;
#line 4264 "tracker-sparql-query.c"
		}
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_INSERT:
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DELETE:
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DROP:
#line 4272 "tracker-sparql-query.c"
		{
			GError* _tmp9_ = NULL;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = tracker_sparql_query_get_error (self, "INSERT and DELETE are not supported in query mode");
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp9_;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4285 "tracker-sparql-query.c"
			} else {
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4293 "tracker-sparql-query.c"
			}
		}
		default:
		{
			GError* _tmp10_ = NULL;
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp10_ = tracker_sparql_query_get_error (self, "expected SELECT or ASK");
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp10_;
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4309 "tracker-sparql-query.c"
			} else {
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 434 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4317 "tracker-sparql-query.c"
			}
		}
	}
}


GVariant* tracker_sparql_query_execute_update (TrackerSparqlQuery* self, gboolean blank, GError** error) {
	GVariant* result = NULL;
	GVariant* _result_ = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	gint _tmp4_ = 0;
	TrackerSparqlScanner* _tmp5_ = NULL;
	GHashTable* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	TrackerNamespace** _tmp10_ = NULL;
	GVariantBuilder* ublank_nodes = NULL;
	gboolean _tmp27_ = FALSE;
	gboolean _tmp38_ = FALSE;
	GError * _inner_error_ = NULL;
#line 438 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 439 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_result_ = NULL;
#line 440 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->update_extensions;
#line 440 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_vala_assert (_tmp0_, "update_extensions");
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = self->priv->query_string;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = self->priv->query_string;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = strlen (_tmp2_);
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = _tmp3_;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = tracker_sparql_scanner_new ((gchar*) _tmp1_, (gsize) ((glong) _tmp4_));
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->priv->scanner);
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->scanner = _tmp5_;
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_next (self, &_inner_error_);
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_variant_unref0 (_result_);
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return NULL;
#line 4374 "tracker-sparql-query.c"
	}
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = self->priv->prefix_map;
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = g_strdup ("fn");
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = g_strdup (TRACKER_SPARQL_QUERY_FN_NS);
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_hash_table_insert (_tmp6_, _tmp7_, _tmp8_);
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = tracker_ontologies_get_namespaces (&_tmp9_);
#line 4386 "tracker-sparql-query.c"
	{
		TrackerNamespace** ns_collection = NULL;
		gint ns_collection_length1 = 0;
		gint _ns_collection_size_ = 0;
		gint ns_it = 0;
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ns_collection = _tmp10_;
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ns_collection_length1 = _tmp9_;
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		for (ns_it = 0; ns_it < _tmp9_; ns_it = ns_it + 1) {
#line 4398 "tracker-sparql-query.c"
			TrackerNamespace* _tmp11_ = NULL;
			TrackerNamespace* ns = NULL;
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp11_ = _g_object_ref0 (ns_collection[ns_it]);
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			ns = _tmp11_;
#line 4405 "tracker-sparql-query.c"
			{
				TrackerNamespace* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				GHashTable* _tmp18_ = NULL;
				TrackerNamespace* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
				const gchar* _tmp21_ = NULL;
				gchar* _tmp22_ = NULL;
				TrackerNamespace* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
				const gchar* _tmp25_ = NULL;
				gchar* _tmp26_ = NULL;
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp12_ = ns;
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = tracker_namespace_get_prefix (_tmp12_);
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp14_ = _tmp13_;
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp14_ == NULL) {
#line 4427 "tracker-sparql-query.c"
					TrackerNamespace* _tmp15_ = NULL;
					const gchar* _tmp16_ = NULL;
					const gchar* _tmp17_ = NULL;
#line 450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp15_ = ns;
#line 450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp16_ = tracker_namespace_get_uri (_tmp15_);
#line 450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp17_ = _tmp16_;
#line 450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("Namespace does not specify a prefix: %s", _tmp17_);
#line 451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_object_unref0 (ns);
#line 451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					continue;
#line 4443 "tracker-sparql-query.c"
				}
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18_ = self->priv->prefix_map;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = ns;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp20_ = tracker_namespace_get_prefix (_tmp19_);
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp21_ = _tmp20_;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp22_ = g_strdup (_tmp21_);
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp23_ = ns;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp24_ = tracker_namespace_get_uri (_tmp23_);
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp25_ = _tmp24_;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp26_ = g_strdup (_tmp25_);
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_hash_table_insert (_tmp18_, _tmp22_, _tmp26_);
#line 448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_object_unref0 (ns);
#line 4467 "tracker-sparql-query.c"
			}
		}
	}
#line 456 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_parse_prologue (self, &_inner_error_);
#line 456 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 456 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 456 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_variant_unref0 (_result_);
#line 456 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return NULL;
#line 4481 "tracker-sparql-query.c"
	}
#line 459 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	ublank_nodes = NULL;
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp27_ = blank;
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp27_) {
#line 4489 "tracker-sparql-query.c"
		GVariantBuilder* _tmp28_ = NULL;
#line 462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp28_ = g_variant_builder_new ((const GVariantType*) "aaa{ss}");
#line 462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_variant_builder_unref0 (ublank_nodes);
#line 462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		ublank_nodes = _tmp28_;
#line 4497 "tracker-sparql-query.c"
	}
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 4501 "tracker-sparql-query.c"
		TrackerSparqlTokenType _tmp29_ = 0;
		TrackerSparqlTokenType _tmp30_ = 0;
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp29_ = tracker_sparql_query_current (self);
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!(_tmp29_ != TRACKER_SPARQL_TOKEN_TYPE_EOF)) {
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			break;
#line 4510 "tracker-sparql-query.c"
		}
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp30_ = tracker_sparql_query_current (self);
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		switch (_tmp30_) {
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_WITH:
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_INSERT:
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_DELETE:
#line 4522 "tracker-sparql-query.c"
			{
				gboolean _tmp31_ = FALSE;
#line 470 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp31_ = blank;
#line 470 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp31_) {
#line 4529 "tracker-sparql-query.c"
					GVariantBuilder* _tmp32_ = NULL;
					GVariantBuilder* _tmp33_ = NULL;
					GVariantBuilder* _tmp34_ = NULL;
#line 471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp32_ = ublank_nodes;
#line 471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_variant_builder_open (_tmp32_, (const GVariantType*) "aa{ss}");
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp33_ = ublank_nodes;
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_execute_insert_or_delete (self, _tmp33_, &_inner_error_);
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_variant_builder_unref0 (ublank_nodes);
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_variant_unref0 (_result_);
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 4551 "tracker-sparql-query.c"
					}
#line 473 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp34_ = ublank_nodes;
#line 473 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_variant_builder_close (_tmp34_);
#line 4557 "tracker-sparql-query.c"
				} else {
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_execute_insert_or_delete (self, NULL, &_inner_error_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_variant_builder_unref0 (ublank_nodes);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_variant_unref0 (_result_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 4571 "tracker-sparql-query.c"
					}
				}
#line 477 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				break;
#line 4576 "tracker-sparql-query.c"
			}
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_DROP:
#line 4580 "tracker-sparql-query.c"
			{
				GError* _tmp35_ = NULL;
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp35_ = tracker_sparql_query_get_internal_error (self, "DROP GRAPH is not supported");
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_inner_error_ = _tmp35_;
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_builder_unref0 (ublank_nodes);
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_unref0 (_result_);
#line 479 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4595 "tracker-sparql-query.c"
			}
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_SELECT:
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_CONSTRUCT:
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_DESCRIBE:
#line 466 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_ASK:
#line 4605 "tracker-sparql-query.c"
			{
				GError* _tmp36_ = NULL;
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp36_ = tracker_sparql_query_get_error (self, "SELECT, CONSTRUCT, DESCRIBE, and ASK are not supported in update mode");
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_inner_error_ = _tmp36_;
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_builder_unref0 (ublank_nodes);
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_unref0 (_result_);
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4620 "tracker-sparql-query.c"
			}
			default:
			{
				GError* _tmp37_ = NULL;
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp37_ = tracker_sparql_query_get_error (self, "expected INSERT or DELETE");
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_inner_error_ = _tmp37_;
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_builder_unref0 (ublank_nodes);
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_variant_unref0 (_result_);
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 4637 "tracker-sparql-query.c"
			}
		}
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_SEMICOLON, &_inner_error_);
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_variant_builder_unref0 (ublank_nodes);
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_variant_unref0 (_result_);
#line 491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4652 "tracker-sparql-query.c"
		}
	}
#line 494 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp38_ = blank;
#line 494 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp38_) {
#line 4659 "tracker-sparql-query.c"
		GVariantBuilder* _tmp39_ = NULL;
		GVariant* _tmp40_ = NULL;
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp39_ = ublank_nodes;
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp40_ = g_variant_builder_end (_tmp39_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_variant_ref_sink (_tmp40_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_variant_unref0 (_result_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_result_ = _tmp40_;
#line 4672 "tracker-sparql-query.c"
	}
#line 498 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _result_;
#line 498 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_variant_builder_unref0 (ublank_nodes);
#line 498 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 4680 "tracker-sparql-query.c"
}


static TrackerDBStatement* tracker_sparql_query_prepare_for_exec (TrackerSparqlQuery* self, const gchar* sql, GError** error) {
	TrackerDBStatement* result = NULL;
	TrackerDBInterface* iface = NULL;
	TrackerDBInterface* _tmp0_ = NULL;
	TrackerDBInterface* _tmp1_ = NULL;
	TrackerDBInterface* _tmp2_ = NULL;
	TrackerDBStatementCacheType _tmp4_ = 0;
	gboolean _tmp5_ = FALSE;
	TrackerDBStatement* stmt = NULL;
	TrackerDBInterface* _tmp6_ = NULL;
	TrackerDBStatementCacheType _tmp7_ = 0;
	const gchar* _tmp8_ = NULL;
	TrackerDBStatement* _tmp9_ = NULL;
	gint i = 0;
	GList* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 501 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 501 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (sql != NULL, NULL);
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = tracker_db_manager_get_db_interface ();
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	iface = _tmp1_;
#line 503 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = iface;
#line 503 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp2_ == NULL) {
#line 4714 "tracker-sparql-query.c"
		GError* _tmp3_ = NULL;
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = g_error_new_literal (TRACKER_DB_INTERFACE_ERROR, TRACKER_DB_OPEN_ERROR, "Error opening database");
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = _tmp3_;
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (iface);
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4728 "tracker-sparql-query.c"
		} else {
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (iface);
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4738 "tracker-sparql-query.c"
		}
	}
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->priv->_no_cache;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp5_) {
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = TRACKER_DB_STATEMENT_CACHE_TYPE_NONE;
#line 4747 "tracker-sparql-query.c"
	} else {
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = TRACKER_DB_STATEMENT_CACHE_TYPE_SELECT;
#line 4751 "tracker-sparql-query.c"
	}
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = iface;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp4_;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = sql;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = tracker_db_interface_create_statement (_tmp6_, _tmp7_, &_inner_error_, "%s", _tmp8_);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	stmt = _tmp9_;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (iface);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4773 "tracker-sparql-query.c"
		} else {
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (iface);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 4783 "tracker-sparql-query.c"
		}
	}
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	i = 0;
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = self->bindings;
#line 4790 "tracker-sparql-query.c"
	{
		GList* binding_collection = NULL;
		GList* binding_it = NULL;
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		binding_collection = _tmp10_;
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		for (binding_it = binding_collection; binding_it != NULL; binding_it = binding_it->next) {
#line 4798 "tracker-sparql-query.c"
			TrackerSparqlLiteralBinding* _tmp11_ = NULL;
			TrackerSparqlLiteralBinding* binding = NULL;
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp11_ = _g_object_ref0 ((TrackerSparqlLiteralBinding*) binding_it->data);
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			binding = _tmp11_;
#line 4805 "tracker-sparql-query.c"
			{
				TrackerSparqlLiteralBinding* _tmp12_ = NULL;
				TrackerPropertyType _tmp13_ = 0;
				gint _tmp66_ = 0;
#line 512 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp12_ = binding;
#line 512 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = ((TrackerSparqlDataBinding*) _tmp12_)->data_type;
#line 512 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp13_ == TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 4816 "tracker-sparql-query.c"
					gboolean _tmp14_ = FALSE;
					TrackerSparqlLiteralBinding* _tmp15_ = NULL;
					const gchar* _tmp16_ = NULL;
					gboolean _tmp19_ = FALSE;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp15_ = binding;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp16_ = _tmp15_->literal;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (g_strcmp0 (_tmp16_, "true") == 0) {
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp14_ = TRUE;
#line 4829 "tracker-sparql-query.c"
					} else {
						TrackerSparqlLiteralBinding* _tmp17_ = NULL;
						const gchar* _tmp18_ = NULL;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp17_ = binding;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp18_ = _tmp17_->literal;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp14_ = g_strcmp0 (_tmp18_, "1") == 0;
#line 4839 "tracker-sparql-query.c"
					}
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp19_ = _tmp14_;
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_tmp19_) {
#line 4845 "tracker-sparql-query.c"
						TrackerDBStatement* _tmp20_ = NULL;
						gint _tmp21_ = 0;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp20_ = stmt;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp21_ = i;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						tracker_db_statement_bind_int (_tmp20_, _tmp21_, 1);
#line 4854 "tracker-sparql-query.c"
					} else {
						gboolean _tmp22_ = FALSE;
						TrackerSparqlLiteralBinding* _tmp23_ = NULL;
						const gchar* _tmp24_ = NULL;
						gboolean _tmp27_ = FALSE;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp23_ = binding;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp24_ = _tmp23_->literal;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (g_strcmp0 (_tmp24_, "false") == 0) {
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp22_ = TRUE;
#line 4868 "tracker-sparql-query.c"
						} else {
							TrackerSparqlLiteralBinding* _tmp25_ = NULL;
							const gchar* _tmp26_ = NULL;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp25_ = binding;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp26_ = _tmp25_->literal;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp22_ = g_strcmp0 (_tmp26_, "0") == 0;
#line 4878 "tracker-sparql-query.c"
						}
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp27_ = _tmp22_;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_tmp27_) {
#line 4884 "tracker-sparql-query.c"
							TrackerDBStatement* _tmp28_ = NULL;
							gint _tmp29_ = 0;
#line 516 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp28_ = stmt;
#line 516 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp29_ = i;
#line 516 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							tracker_db_statement_bind_int (_tmp28_, _tmp29_, 0);
#line 4893 "tracker-sparql-query.c"
						} else {
							TrackerSparqlLiteralBinding* _tmp30_ = NULL;
							const gchar* _tmp31_ = NULL;
							gchar* _tmp32_ = NULL;
							gchar* _tmp33_ = NULL;
							GError* _tmp34_ = NULL;
							GError* _tmp35_ = NULL;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp30_ = binding;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp31_ = _tmp30_->literal;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp32_ = g_strdup_printf ("`%s' is not a valid boolean", _tmp31_);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp33_ = _tmp32_;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp34_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_TYPE, _tmp33_);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp35_ = _tmp34_;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_tmp33_);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_inner_error_ = _tmp35_;
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (binding);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (stmt);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (iface);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 4929 "tracker-sparql-query.c"
							} else {
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (binding);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (stmt);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (iface);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 518 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 4943 "tracker-sparql-query.c"
							}
						}
					}
				} else {
					TrackerSparqlLiteralBinding* _tmp36_ = NULL;
					TrackerPropertyType _tmp37_ = 0;
#line 520 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp36_ = binding;
#line 520 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp37_ = ((TrackerSparqlDataBinding*) _tmp36_)->data_type;
#line 520 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_tmp37_ == TRACKER_PROPERTY_TYPE_DATE) {
#line 4956 "tracker-sparql-query.c"
						gdouble _tmp38_ = 0.0;
						TrackerSparqlLiteralBinding* _tmp39_ = NULL;
						const gchar* _tmp40_ = NULL;
						gchar* _tmp41_ = NULL;
						gchar* _tmp42_ = NULL;
						gdouble _tmp43_ = 0.0;
						gdouble _tmp44_ = 0.0;
						TrackerDBStatement* _tmp45_ = NULL;
						gint _tmp46_ = 0;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp39_ = binding;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp40_ = _tmp39_->literal;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp41_ = g_strconcat (_tmp40_, "T00:00:00Z", NULL);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp42_ = _tmp41_;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp43_ = tracker_string_to_date (_tmp42_, NULL, &_inner_error_);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp44_ = _tmp43_;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_tmp42_);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp38_ = _tmp44_;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_inner_error_ != NULL) {
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (binding);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (stmt);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (iface);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 4996 "tracker-sparql-query.c"
							} else {
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (binding);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (stmt);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_object_unref0 (iface);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 5010 "tracker-sparql-query.c"
							}
						}
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp45_ = stmt;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp46_ = i;
#line 521 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						tracker_db_statement_bind_int (_tmp45_, _tmp46_, (gint) _tmp38_);
#line 5019 "tracker-sparql-query.c"
					} else {
						TrackerSparqlLiteralBinding* _tmp47_ = NULL;
						TrackerPropertyType _tmp48_ = 0;
#line 522 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp47_ = binding;
#line 522 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp48_ = ((TrackerSparqlDataBinding*) _tmp47_)->data_type;
#line 522 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_tmp48_ == TRACKER_PROPERTY_TYPE_DATETIME) {
#line 5029 "tracker-sparql-query.c"
							gdouble _tmp49_ = 0.0;
							TrackerSparqlLiteralBinding* _tmp50_ = NULL;
							const gchar* _tmp51_ = NULL;
							gdouble _tmp52_ = 0.0;
							TrackerDBStatement* _tmp53_ = NULL;
							gint _tmp54_ = 0;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp50_ = binding;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp51_ = _tmp50_->literal;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp52_ = tracker_string_to_date (_tmp51_, NULL, &_inner_error_);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp49_ = _tmp52_;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_inner_error_ != NULL) {
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_propagate_error (error, _inner_error_);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (binding);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (stmt);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (iface);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 5058 "tracker-sparql-query.c"
								} else {
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (binding);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (stmt);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_object_unref0 (iface);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_clear_error (&_inner_error_);
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 5072 "tracker-sparql-query.c"
								}
							}
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp53_ = stmt;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp54_ = i;
#line 523 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							tracker_db_statement_bind_double (_tmp53_, _tmp54_, _tmp49_);
#line 5081 "tracker-sparql-query.c"
						} else {
							TrackerSparqlLiteralBinding* _tmp55_ = NULL;
							TrackerPropertyType _tmp56_ = 0;
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp55_ = binding;
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp56_ = ((TrackerSparqlDataBinding*) _tmp55_)->data_type;
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_tmp56_ == TRACKER_PROPERTY_TYPE_INTEGER) {
#line 5091 "tracker-sparql-query.c"
								TrackerDBStatement* _tmp57_ = NULL;
								gint _tmp58_ = 0;
								TrackerSparqlLiteralBinding* _tmp59_ = NULL;
								const gchar* _tmp60_ = NULL;
								gint _tmp61_ = 0;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp57_ = stmt;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp58_ = i;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp59_ = binding;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp60_ = _tmp59_->literal;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp61_ = atoi (_tmp60_);
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								tracker_db_statement_bind_int (_tmp57_, _tmp58_, _tmp61_);
#line 5109 "tracker-sparql-query.c"
							} else {
								TrackerDBStatement* _tmp62_ = NULL;
								gint _tmp63_ = 0;
								TrackerSparqlLiteralBinding* _tmp64_ = NULL;
								const gchar* _tmp65_ = NULL;
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp62_ = stmt;
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp63_ = i;
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp64_ = binding;
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp65_ = _tmp64_->literal;
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								tracker_db_statement_bind_text (_tmp62_, _tmp63_, _tmp65_);
#line 5125 "tracker-sparql-query.c"
							}
						}
					}
				}
#line 529 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp66_ = i;
#line 529 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				i = _tmp66_ + 1;
#line 511 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_object_unref0 (binding);
#line 5136 "tracker-sparql-query.c"
			}
		}
	}
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = stmt;
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (iface);
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5146 "tracker-sparql-query.c"
}


static TrackerDBCursor* tracker_sparql_query_exec_sql_cursor (TrackerSparqlQuery* self, const gchar* sql, TrackerPropertyType* types, int types_length1, gchar** variable_names, int variable_names_length1, gboolean threadsafe, GError** error) {
	TrackerDBCursor* result = NULL;
	TrackerDBStatement* stmt = NULL;
	const gchar* _tmp0_ = NULL;
	TrackerDBStatement* _tmp1_ = NULL;
	TrackerDBCursor* _tmp2_ = NULL;
	TrackerDBStatement* _tmp3_ = NULL;
	TrackerPropertyType* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	gchar** _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	gboolean _tmp6_ = FALSE;
	TrackerDBCursor* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
#line 535 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 535 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (sql != NULL, NULL);
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = sql;
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_prepare_for_exec (self, _tmp0_, &_inner_error_);
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	stmt = _tmp1_;
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5182 "tracker-sparql-query.c"
		} else {
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 536 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5190 "tracker-sparql-query.c"
		}
	}
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = stmt;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = types;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4__length1 = types_length1;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = variable_names;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5__length1 = variable_names_length1;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = threadsafe;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = tracker_db_statement_start_sparql_cursor (_tmp3_, _tmp4_, _tmp4__length1, _tmp5_, _tmp5__length1, _tmp6_, &_inner_error_);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp7_;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (stmt);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5219 "tracker-sparql-query.c"
		} else {
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (stmt);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5229 "tracker-sparql-query.c"
		}
	}
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp2_;
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (stmt);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5238 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_query_get_select_query (TrackerSparqlQuery* self, TrackerSparqlSelectContext** context, GError** error) {
	TrackerSparqlSelectContext* _vala_context = NULL;
	gchar* result = NULL;
	GString* sql = NULL;
	GString* _tmp0_ = NULL;
	TrackerSparqlSelectContext* _tmp1_ = NULL;
	TrackerSparqlPattern* _tmp2_ = NULL;
	GString* _tmp3_ = NULL;
	TrackerSparqlSelectContext* _tmp4_ = NULL;
	GString* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
#line 541 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 545 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_string_new ("");
#line 545 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	sql = _tmp0_;
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = self->pattern;
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = sql;
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = tracker_sparql_pattern_translate_select (_tmp2_, _tmp3_, FALSE, FALSE, &_inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = _tmp4_;
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5279 "tracker-sparql-query.c"
		} else {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5289 "tracker-sparql-query.c"
		}
	}
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (_vala_context);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_vala_context = _tmp1_;
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_EOF, &_inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5308 "tracker-sparql-query.c"
		} else {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5318 "tracker-sparql-query.c"
		}
	}
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = sql;
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = _tmp5_->str;
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = g_strdup (_tmp6_);
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp7_;
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_string_free0 (sql);
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (context) {
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*context = _vala_context;
#line 5335 "tracker-sparql-query.c"
	} else {
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tracker_sparql_context_unref0 (_vala_context);
#line 5339 "tracker-sparql-query.c"
	}
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5343 "tracker-sparql-query.c"
}


static TrackerDBCursor* tracker_sparql_query_execute_select_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error) {
	TrackerDBCursor* result = NULL;
	TrackerSparqlSelectContext* context = NULL;
	gchar* sql = NULL;
	TrackerSparqlSelectContext* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	TrackerDBCursor* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	TrackerSparqlSelectContext* _tmp4_ = NULL;
	TrackerPropertyType* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	TrackerSparqlSelectContext* _tmp6_ = NULL;
	gchar** _tmp7_ = NULL;
	gint _tmp7__length1 = 0;
	TrackerDBCursor* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
#line 553 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_get_select_query (self, &_tmp0_, &_inner_error_);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (context);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	context = _tmp0_;
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	sql = _tmp1_;
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (context);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5383 "tracker-sparql-query.c"
		} else {
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (context);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5393 "tracker-sparql-query.c"
		}
	}
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = sql;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = context;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = _tmp4_->types;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5__length1 = _tmp4_->types_length1;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = context;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp6_->variable_names;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7__length1 = _tmp6_->variable_names_length1;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = tracker_sparql_query_exec_sql_cursor (self, _tmp3_, _tmp5_, _tmp5__length1, _tmp7_, _tmp7__length1, TRUE, &_inner_error_);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp8_;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (sql);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (context);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5426 "tracker-sparql-query.c"
		} else {
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (sql);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (context);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5438 "tracker-sparql-query.c"
		}
	}
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp2_;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (sql);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (context);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5449 "tracker-sparql-query.c"
}


static gchar* tracker_sparql_query_get_ask_query (TrackerSparqlQuery* self, GError** error) {
	gchar* result = NULL;
	GString* pattern_sql = NULL;
	GString* _tmp0_ = NULL;
	GString* sql = NULL;
	GString* _tmp1_ = NULL;
	GString* _tmp2_ = NULL;
	TrackerSparqlContext* _tmp3_ = NULL;
	TrackerSparqlPattern* _tmp4_ = NULL;
	GString* _tmp5_ = NULL;
	TrackerSparqlContext* _tmp6_ = NULL;
	GString* _tmp7_ = NULL;
	GString* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	GString* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp13_ = FALSE;
	gboolean _tmp14_ = FALSE;
	gboolean _tmp15_ = FALSE;
	gboolean _tmp18_ = FALSE;
	gboolean _tmp21_ = FALSE;
	gboolean _tmp24_ = FALSE;
	TrackerSparqlContext* _tmp31_ = NULL;
	TrackerSparqlContext* _tmp32_ = NULL;
	TrackerSparqlContext* _tmp33_ = NULL;
	GString* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	gchar* _tmp36_ = NULL;
	GError * _inner_error_ = NULL;
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_string_new ("");
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	pattern_sql = _tmp0_;
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = g_string_new ("");
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	sql = _tmp1_;
#line 567 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = sql;
#line 567 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp2_, "SELECT CASE EXISTS ( ");
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_ASK, &_inner_error_);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5511 "tracker-sparql-query.c"
		} else {
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 569 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5523 "tracker-sparql-query.c"
		}
	}
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_WHERE, &_inner_error_);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5540 "tracker-sparql-query.c"
		} else {
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5552 "tracker-sparql-query.c"
		}
	}
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = self->pattern;
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = pattern_sql;
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = tracker_sparql_pattern_translate_group_graph_pattern (_tmp4_, _tmp5_, &_inner_error_);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp6_;
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5575 "tracker-sparql-query.c"
		} else {
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5587 "tracker-sparql-query.c"
		}
	}
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->context);
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->context = _tmp3_;
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = sql;
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = pattern_sql;
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _tmp8_->str;
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp7_, _tmp9_);
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = sql;
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp10_, " ) WHEN 1 THEN 'true' WHEN 0 THEN 'false' ELSE NULL END");
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp15_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_GROUP, &_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp14_ = _tmp15_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5622 "tracker-sparql-query.c"
		} else {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5634 "tracker-sparql-query.c"
		}
	}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp14_) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = TRUE;
#line 5641 "tracker-sparql-query.c"
	} else {
		gboolean _tmp16_ = FALSE;
		gboolean _tmp17_ = FALSE;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp17_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ORDER, &_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp16_ = _tmp17_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5661 "tracker-sparql-query.c"
			} else {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5673 "tracker-sparql-query.c"
			}
		}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = _tmp16_;
#line 5678 "tracker-sparql-query.c"
	}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp18_ = _tmp13_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp18_) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = TRUE;
#line 5686 "tracker-sparql-query.c"
	} else {
		gboolean _tmp19_ = FALSE;
		gboolean _tmp20_ = FALSE;
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp20_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OFFSET, &_inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp19_ = _tmp20_;
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5706 "tracker-sparql-query.c"
			} else {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5718 "tracker-sparql-query.c"
			}
		}
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp12_ = _tmp19_;
#line 5723 "tracker-sparql-query.c"
	}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp21_ = _tmp12_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp21_) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = TRUE;
#line 5731 "tracker-sparql-query.c"
	} else {
		gboolean _tmp22_ = FALSE;
		gboolean _tmp23_ = FALSE;
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp23_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_LIMIT, &_inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp22_ = _tmp23_;
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5751 "tracker-sparql-query.c"
			} else {
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 5763 "tracker-sparql-query.c"
			}
		}
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp11_ = _tmp22_;
#line 5768 "tracker-sparql-query.c"
	}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp24_ = _tmp11_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp24_) {
#line 5774 "tracker-sparql-query.c"
		TrackerSparqlTokenType _tmp25_ = 0;
		const gchar* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
		GError* _tmp29_ = NULL;
		GError* _tmp30_ = NULL;
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp25_ = tracker_sparql_query_last (self);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp26_ = tracker_sparql_token_type_to_string (_tmp25_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp27_ = g_strdup_printf ("invalid use of %s in ASK", _tmp26_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp28_ = _tmp27_;
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp29_ = tracker_sparql_query_get_error (self, _tmp28_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp30_ = _tmp29_;
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (_tmp28_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = _tmp30_;
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5807 "tracker-sparql-query.c"
		} else {
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5819 "tracker-sparql-query.c"
		}
	}
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_EOF, &_inner_error_);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5836 "tracker-sparql-query.c"
		} else {
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5848 "tracker-sparql-query.c"
		}
	}
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp31_ = self->context;
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp32_ = _tmp31_->parent_context;
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp33_ = _tracker_sparql_context_ref0 (_tmp32_);
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->context);
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->context = _tmp33_;
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp34_ = sql;
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp35_ = _tmp34_->str;
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp36_ = g_strdup (_tmp35_);
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp36_;
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_string_free0 (sql);
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_string_free0 (pattern_sql);
#line 588 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5875 "tracker-sparql-query.c"
}


static TrackerDBCursor* tracker_sparql_query_execute_ask_cursor (TrackerSparqlQuery* self, gboolean threadsafe, GError** error) {
	TrackerDBCursor* result = NULL;
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	TrackerDBCursor* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	TrackerPropertyType* _tmp4_ = NULL;
	TrackerPropertyType* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	gchar* _tmp6_ = NULL;
	gchar** _tmp7_ = NULL;
	gchar** _tmp8_ = NULL;
	gint _tmp8__length1 = 0;
	TrackerDBCursor* _tmp9_ = NULL;
	TrackerDBCursor* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_get_ask_query (self, &_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = _tmp1_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5909 "tracker-sparql-query.c"
		} else {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5917 "tracker-sparql-query.c"
		}
	}
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = _tmp0_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = g_new0 (TrackerPropertyType, 1);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_[0] = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = _tmp4_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5__length1 = 1;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp6_ = g_strdup ("result");
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = g_new0 (gchar*, 1 + 1);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_[0] = _tmp6_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = _tmp7_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8__length1 = 1;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = tracker_sparql_query_exec_sql_cursor (self, _tmp3_, _tmp5_, 1, _tmp8_, 1, TRUE, &_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = _tmp9_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = (g_free (_tmp5_), NULL);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (_tmp3_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp10_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (((_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5960 "tracker-sparql-query.c"
		} else {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 5968 "tracker-sparql-query.c"
		}
	}
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp2_;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 5975 "tracker-sparql-query.c"
}


static void tracker_sparql_query_parse_from_or_into_param (TrackerSparqlQuery* self, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_);
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = _tmp1_;
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 5997 "tracker-sparql-query.c"
		} else {
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6005 "tracker-sparql-query.c"
		}
	}
#line 596 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_) {
#line 6010 "tracker-sparql-query.c"
		gchar* _tmp2_ = NULL;
#line 597 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = tracker_sparql_query_get_last_string (self, 1);
#line 597 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (self->priv->current_graph);
#line 597 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->current_graph = _tmp2_;
#line 6018 "tracker-sparql-query.c"
	} else {
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = _tmp4_;
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6034 "tracker-sparql-query.c"
			} else {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6042 "tracker-sparql-query.c"
			}
		}
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp3_) {
#line 6047 "tracker-sparql-query.c"
			gchar* ns = NULL;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
			const gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
			gchar* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_ = NULL;
#line 599 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = tracker_sparql_query_get_last_string (self, 0);
#line 599 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			ns = _tmp5_;
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (ns);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6074 "tracker-sparql-query.c"
				} else {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (ns);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6084 "tracker-sparql-query.c"
				}
			}
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = ns;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = tracker_sparql_query_get_last_string (self, 0);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = _tmp8_;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp10_ = string_substring (_tmp9_, (glong) 1, (glong) (-1));
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp11_ = _tmp10_;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp12_ = tracker_sparql_query_resolve_prefixed_name (self, _tmp7_, _tmp11_, &_inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp13_ = _tmp12_;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp11_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp9_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp6_ = _tmp13_;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (ns);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6117 "tracker-sparql-query.c"
				} else {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (ns);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6127 "tracker-sparql-query.c"
				}
			}
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_graph);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_graph = _tmp6_;
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (ns);
#line 6136 "tracker-sparql-query.c"
		} else {
			gchar* _tmp14_ = NULL;
			gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6155 "tracker-sparql-query.c"
				} else {
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 603 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6163 "tracker-sparql-query.c"
				}
			}
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp15_ = tracker_sparql_query_get_last_string (self, 0);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp16_ = _tmp15_;
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp17_ = string_substring (_tmp16_, (glong) 1, (glong) (-1));
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp18_ = _tmp17_;
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp19_ = tracker_sparql_query_resolve_prefixed_name (self, "", _tmp18_, &_inner_error_);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp20_ = _tmp19_;
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp18_);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp16_);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp14_ = _tmp20_;
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6192 "tracker-sparql-query.c"
				} else {
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6200 "tracker-sparql-query.c"
				}
			}
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_graph);
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_graph = _tmp14_;
#line 6207 "tracker-sparql-query.c"
		}
	}
}


static GVariant* _variant_new1 (GHashTable* value) {
	GVariantBuilder _tmp131_;
	GHashTableIter _tmp132_;
	gpointer _tmp133_;
	gpointer _tmp134_;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_hash_table_iter_init (&_tmp132_, value);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_variant_builder_init (&_tmp131_, G_VARIANT_TYPE ("a{ss}"));
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (g_hash_table_iter_next (&_tmp132_, &_tmp133_, &_tmp134_)) {
#line 6224 "tracker-sparql-query.c"
		gchar* _key;
		gchar* _value;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_key = (gchar*) _tmp133_;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_value = (gchar*) _tmp134_;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_variant_builder_add (&_tmp131_, "{?*}", g_variant_new_string (_key), g_variant_new_string (_value));
#line 6233 "tracker-sparql-query.c"
	}
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return g_variant_ref_sink (g_variant_builder_end (&_tmp131_));
#line 6237 "tracker-sparql-query.c"
}


static void tracker_sparql_query_execute_insert_or_delete (TrackerSparqlQuery* self, GVariantBuilder* update_blank_nodes, GError** error) {
	gboolean blank = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean delete_statements = FALSE;
	gboolean update_statements = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp21_ = FALSE;
	const gchar* _tmp22_ = NULL;
	gboolean data = FALSE;
	gboolean _tmp25_ = FALSE;
	GString* pattern_sql = NULL;
	GString* _tmp26_ = NULL;
	GString* sql = NULL;
	GString* _tmp27_ = NULL;
	TrackerSourceLocation template_location = {0};
	TrackerSourceLocation _tmp28_ = {0};
	gboolean _tmp29_ = FALSE;
	TrackerSourceLocation after_where = {0};
	TrackerSourceLocation _tmp50_ = {0};
	TrackerSparqlSolution* solution = NULL;
	TrackerSparqlSolution* _tmp51_ = NULL;
	GString* _tmp52_ = NULL;
	gint var_idx = 0;
	TrackerSparqlContext* _tmp53_ = NULL;
	GHashTable* _tmp54_ = NULL;
	GList* _tmp55_ = NULL;
	gint _tmp81_ = 0;
	GString* _tmp83_ = NULL;
	GString* _tmp84_ = NULL;
	GString* _tmp85_ = NULL;
	const gchar* _tmp86_ = NULL;
	GString* _tmp87_ = NULL;
	TrackerDBCursor* cursor = NULL;
	GString* _tmp88_ = NULL;
	const gchar* _tmp89_ = NULL;
	TrackerDBCursor* _tmp90_ = NULL;
	gboolean _tmp91_ = FALSE;
	gboolean _tmp92_ = FALSE;
	gint n_solutions = 0;
	gboolean _tmp136_ = FALSE;
	TrackerSparqlContext* _tmp138_ = NULL;
	TrackerSparqlContext* _tmp139_ = NULL;
	TrackerSparqlContext* _tmp140_ = NULL;
	GError * _inner_error_ = NULL;
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 609 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	blank = TRUE;
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_WITH, &_inner_error_);
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = _tmp1_;
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 6301 "tracker-sparql-query.c"
	}
#line 613 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp0_) {
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_parse_from_or_into_param (self, &_inner_error_);
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6313 "tracker-sparql-query.c"
		}
	} else {
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (self->priv->current_graph);
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->current_graph = NULL;
#line 6320 "tracker-sparql-query.c"
	}
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_INSERT, &_inner_error_);
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = _tmp3_;
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 6332 "tracker-sparql-query.c"
	}
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp2_) {
#line 6336 "tracker-sparql-query.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp9_ = FALSE;
		const gchar* _tmp10_ = NULL;
		gboolean _tmp13_ = FALSE;
#line 623 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		delete_statements = FALSE;
#line 624 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		update_statements = FALSE;
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp5_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OR, &_inner_error_);
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = _tmp5_;
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6357 "tracker-sparql-query.c"
		}
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp4_) {
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_REPLACE, &_inner_error_);
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6369 "tracker-sparql-query.c"
			}
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			update_statements = TRUE;
#line 6373 "tracker-sparql-query.c"
		}
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = update_statements;
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!_tmp6_) {
#line 6379 "tracker-sparql-query.c"
			gboolean _tmp7_ = FALSE;
			gboolean _tmp8_ = FALSE;
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_SILENT, &_inner_error_);
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = _tmp8_;
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6392 "tracker-sparql-query.c"
			}
#line 633 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->silent = _tmp7_;
#line 6396 "tracker-sparql-query.c"
		}
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = self->priv->current_graph;
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp10_ == NULL) {
#line 6402 "tracker-sparql-query.c"
			gboolean _tmp11_ = FALSE;
			gboolean _tmp12_ = FALSE;
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp12_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_INTO, &_inner_error_);
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp11_ = _tmp12_;
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6415 "tracker-sparql-query.c"
			}
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = _tmp11_;
#line 6419 "tracker-sparql-query.c"
		} else {
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = FALSE;
#line 6423 "tracker-sparql-query.c"
		}
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp13_ = _tmp9_;
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp13_) {
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_parse_from_or_into_param (self, &_inner_error_);
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6437 "tracker-sparql-query.c"
			}
		}
	} else {
		gboolean _tmp14_ = FALSE;
		gboolean _tmp15_ = FALSE;
		gboolean _tmp16_ = FALSE;
		const gchar* _tmp17_ = NULL;
		gboolean _tmp20_ = FALSE;
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_DELETE, &_inner_error_);
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6454 "tracker-sparql-query.c"
		}
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		delete_statements = TRUE;
#line 642 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		update_statements = FALSE;
#line 643 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		blank = FALSE;
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp15_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_SILENT, &_inner_error_);
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp14_ = _tmp15_;
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6472 "tracker-sparql-query.c"
		}
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->silent = _tmp14_;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp17_ = self->priv->current_graph;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp17_ == NULL) {
#line 6480 "tracker-sparql-query.c"
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_ = FALSE;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp19_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_FROM, &_inner_error_);
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp18_ = _tmp19_;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6493 "tracker-sparql-query.c"
			}
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp16_ = _tmp18_;
#line 6497 "tracker-sparql-query.c"
		} else {
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp16_ = FALSE;
#line 6501 "tracker-sparql-query.c"
		}
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp20_ = _tmp16_;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp20_) {
#line 649 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_parse_from_or_into_param (self, &_inner_error_);
#line 649 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 649 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 649 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6515 "tracker-sparql-query.c"
			}
		}
	}
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp22_ = self->priv->current_graph;
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp22_ == NULL) {
#line 6523 "tracker-sparql-query.c"
		gboolean _tmp23_ = FALSE;
		gboolean _tmp24_ = FALSE;
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp24_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DATA, &_inner_error_);
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp23_ = _tmp24_;
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6536 "tracker-sparql-query.c"
		}
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp21_ = _tmp23_;
#line 6540 "tracker-sparql-query.c"
	} else {
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp21_ = FALSE;
#line 6544 "tracker-sparql-query.c"
	}
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp25_ = _tmp21_;
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	data = _tmp25_;
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp26_ = g_string_new ("");
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	pattern_sql = _tmp26_;
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp27_ = g_string_new ("");
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	sql = _tmp27_;
#line 660 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_get_location (self, &_tmp28_);
#line 660 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	template_location = _tmp28_;
#line 662 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp29_ = data;
#line 662 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!_tmp29_) {
#line 6566 "tracker-sparql-query.c"
		gboolean delete_where = FALSE;
		gboolean _tmp30_ = FALSE;
		gboolean _tmp31_ = FALSE;
		gboolean _tmp33_ = FALSE;
		gboolean _tmp34_ = FALSE;
		gboolean _tmp37_ = FALSE;
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp30_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_WHERE, &_inner_error_);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		delete_where = _tmp30_;
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6587 "tracker-sparql-query.c"
		}
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp31_ = delete_where;
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp31_) {
#line 6593 "tracker-sparql-query.c"
			TrackerSourceLocation _tmp32_ = {0};
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_get_location (self, &_tmp32_);
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			template_location = _tmp32_;
#line 6599 "tracker-sparql-query.c"
		} else {
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_skip_braces (self, &_inner_error_);
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 669 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6613 "tracker-sparql-query.c"
			}
		}
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp34_ = delete_where;
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp34_) {
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp33_ = TRUE;
#line 6622 "tracker-sparql-query.c"
		} else {
			gboolean _tmp35_ = FALSE;
			gboolean _tmp36_ = FALSE;
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp36_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_WHERE, &_inner_error_);
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp35_ = _tmp36_;
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6640 "tracker-sparql-query.c"
			}
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp33_ = _tmp35_;
#line 6644 "tracker-sparql-query.c"
		}
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp37_ = _tmp33_;
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp37_) {
#line 6650 "tracker-sparql-query.c"
			TrackerSparqlPattern* _tmp38_ = NULL;
			const gchar* _tmp39_ = NULL;
			gchar* _tmp40_ = NULL;
			TrackerSparqlContext* _tmp41_ = NULL;
			TrackerSparqlPattern* _tmp42_ = NULL;
			GString* _tmp43_ = NULL;
			TrackerSparqlContext* _tmp44_ = NULL;
			TrackerSparqlPattern* _tmp45_ = NULL;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp38_ = self->pattern;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp39_ = self->priv->current_graph;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp40_ = g_strdup (_tmp39_);
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp38_->current_graph);
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp38_->current_graph = _tmp40_;
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp42_ = self->pattern;
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp43_ = pattern_sql;
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp44_ = tracker_sparql_pattern_translate_group_graph_pattern (_tmp42_, _tmp43_, &_inner_error_);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp41_ = _tmp44_;
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (sql);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_string_free0 (pattern_sql);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 6687 "tracker-sparql-query.c"
			}
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (self->context);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->context = _tmp41_;
#line 675 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp45_ = self->pattern;
#line 675 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp45_->current_graph);
#line 675 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp45_->current_graph = NULL;
#line 6699 "tracker-sparql-query.c"
		} else {
			TrackerSparqlContext* _tmp46_ = NULL;
			GString* _tmp47_ = NULL;
#line 677 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp46_ = tracker_sparql_context_new (self, NULL);
#line 677 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_context_unref0 (self->context);
#line 677 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->context = _tmp46_;
#line 679 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp47_ = pattern_sql;
#line 679 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_string_append (_tmp47_, "SELECT 1");
#line 6713 "tracker-sparql-query.c"
		}
	} else {
		TrackerSparqlContext* _tmp48_ = NULL;
		GString* _tmp49_ = NULL;
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp48_ = tracker_sparql_context_new (self, NULL);
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tracker_sparql_context_unref0 (self->context);
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->context = _tmp48_;
#line 686 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp49_ = pattern_sql;
#line 686 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_string_append (_tmp49_, "SELECT 1");
#line 6728 "tracker-sparql-query.c"
	}
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_get_location (self, &_tmp50_);
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	after_where = _tmp50_;
#line 691 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp51_ = tracker_sparql_solution_new ();
#line 691 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	solution = _tmp51_;
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp52_ = sql;
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp52_, "SELECT ");
#line 695 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	var_idx = 0;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp53_ = self->context;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp54_ = _tmp53_->var_set;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp55_ = g_hash_table_get_keys (_tmp54_);
#line 6750 "tracker-sparql-query.c"
	{
		GList* variable_collection = NULL;
		GList* variable_it = NULL;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		variable_collection = _tmp55_;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		for (variable_it = variable_collection; variable_it != NULL; variable_it = variable_it->next) {
#line 6758 "tracker-sparql-query.c"
			TrackerSparqlVariable* variable = NULL;
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			variable = (TrackerSparqlVariable*) variable_it->data;
#line 6762 "tracker-sparql-query.c"
			{
				gint _tmp56_ = 0;
				TrackerSparqlVariable* _tmp58_ = NULL;
				TrackerSparqlVariableBinding* _tmp59_ = NULL;
				GString* _tmp67_ = NULL;
				TrackerSparqlVariable* _tmp68_ = NULL;
				const gchar* _tmp69_ = NULL;
				const gchar* _tmp70_ = NULL;
				TrackerSparqlVariable* _tmp71_ = NULL;
				TrackerSparqlVariableBinding* _tmp72_ = NULL;
				TrackerPropertyType _tmp73_ = 0;
				TrackerSparqlSolution* _tmp74_ = NULL;
				GHashTable* _tmp75_ = NULL;
				TrackerSparqlVariable* _tmp76_ = NULL;
				const gchar* _tmp77_ = NULL;
				const gchar* _tmp78_ = NULL;
				gchar* _tmp79_ = NULL;
				gint _tmp80_ = 0;
#line 697 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp56_ = var_idx;
#line 697 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp56_ > 0) {
#line 6785 "tracker-sparql-query.c"
					GString* _tmp57_ = NULL;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp57_ = sql;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_string_append (_tmp57_, ", ");
#line 6791 "tracker-sparql-query.c"
				}
#line 701 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp58_ = variable;
#line 701 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp59_ = _tmp58_->binding;
#line 701 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp59_ == NULL) {
#line 6799 "tracker-sparql-query.c"
					TrackerSparqlVariable* _tmp60_ = NULL;
					const gchar* _tmp61_ = NULL;
					const gchar* _tmp62_ = NULL;
					gchar* _tmp63_ = NULL;
					gchar* _tmp64_ = NULL;
					GError* _tmp65_ = NULL;
					GError* _tmp66_ = NULL;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp60_ = variable;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp61_ = tracker_sparql_variable_get_name (_tmp60_);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp62_ = _tmp61_;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp63_ = g_strdup_printf ("use of undefined variable `%s'", _tmp62_);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp64_ = _tmp63_;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp65_ = tracker_sparql_query_get_error (self, _tmp64_);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp66_ = _tmp65_;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_tmp64_);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_inner_error_ = _tmp66_;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_list_free0 (variable_collection);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tracker_sparql_solution_unref0 (solution);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (sql);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (pattern_sql);
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 6837 "tracker-sparql-query.c"
				}
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp67_ = sql;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp68_ = variable;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp69_ = tracker_sparql_variable_get_sql_expression (_tmp68_);
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp70_ = _tmp69_;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp71_ = variable;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp72_ = _tmp71_->binding;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp73_ = ((TrackerSparqlDataBinding*) _tmp72_)->data_type;
#line 704 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_expression_append_expression_as_string (_tmp67_, _tmp70_, _tmp73_);
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp74_ = solution;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp75_ = _tmp74_->hash;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp76_ = variable;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp77_ = tracker_sparql_variable_get_name (_tmp76_);
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp78_ = _tmp77_;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp79_ = g_strdup (_tmp78_);
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp80_ = var_idx;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				var_idx = _tmp80_ + 1;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_hash_table_insert (_tmp75_, _tmp79_, (gpointer) ((gintptr) _tmp80_));
#line 6873 "tracker-sparql-query.c"
			}
		}
#line 696 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_list_free0 (variable_collection);
#line 6878 "tracker-sparql-query.c"
	}
#line 709 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp81_ = var_idx;
#line 709 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp81_ == 0) {
#line 6884 "tracker-sparql-query.c"
		GString* _tmp82_ = NULL;
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp82_ = sql;
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_string_append (_tmp82_, "1");
#line 6890 "tracker-sparql-query.c"
	}
#line 714 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp83_ = sql;
#line 714 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp83_, " FROM (");
#line 715 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp84_ = sql;
#line 715 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp85_ = pattern_sql;
#line 715 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp86_ = _tmp85_->str;
#line 715 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp84_, _tmp86_);
#line 716 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp87_ = sql;
#line 716 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_string_append (_tmp87_, ")");
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp88_ = sql;
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp89_ = _tmp88_->str;
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp90_ = tracker_sparql_query_exec_sql_cursor (self, _tmp89_, NULL, 0, NULL, 0, FALSE, &_inner_error_);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	cursor = _tmp90_;
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tracker_sparql_solution_unref0 (solution);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_string_free0 (sql);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_string_free0 (pattern_sql);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 6928 "tracker-sparql-query.c"
	}
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp91_ = delete_statements;
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->delete_statements = _tmp91_;
#line 721 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp92_ = update_statements;
#line 721 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->update_statements = _tmp92_;
#line 723 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	n_solutions = 0;
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 6942 "tracker-sparql-query.c"
		gboolean _tmp93_ = FALSE;
		TrackerDBCursor* _tmp94_ = NULL;
		gboolean _tmp95_ = FALSE;
		gint _tmp109_ = 0;
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp94_ = cursor;
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp95_ = tracker_sparql_cursor_next ((TrackerSparqlCursor*) _tmp94_, NULL, &_inner_error_);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp93_ = _tmp95_;
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_object_unref0 (cursor);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tracker_sparql_solution_unref0 (solution);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (sql);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_string_free0 (pattern_sql);
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 6967 "tracker-sparql-query.c"
		}
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!_tmp93_) {
#line 724 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			break;
#line 6973 "tracker-sparql-query.c"
		}
		{
			gboolean _tmp96_ = FALSE;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			var_idx = 0;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp96_ = TRUE;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			while (TRUE) {
#line 6983 "tracker-sparql-query.c"
				gboolean _tmp97_ = FALSE;
				gint _tmp99_ = 0;
				TrackerSparqlSolution* _tmp100_ = NULL;
				GHashTable* _tmp101_ = NULL;
				guint _tmp102_ = 0U;
				TrackerSparqlSolution* _tmp103_ = NULL;
				GPtrArray* _tmp104_ = NULL;
				TrackerDBCursor* _tmp105_ = NULL;
				gint _tmp106_ = 0;
				const gchar* _tmp107_ = NULL;
				gchar* _tmp108_ = NULL;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp97_ = _tmp96_;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!_tmp97_) {
#line 6999 "tracker-sparql-query.c"
					gint _tmp98_ = 0;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp98_ = var_idx;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					var_idx = _tmp98_ + 1;
#line 7005 "tracker-sparql-query.c"
				}
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp96_ = FALSE;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp99_ = var_idx;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp100_ = solution;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp101_ = _tmp100_->hash;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp102_ = g_hash_table_size (_tmp101_);
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!(((guint) _tmp99_) < _tmp102_)) {
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					break;
#line 7021 "tracker-sparql-query.c"
				}
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp103_ = solution;
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp104_ = _tmp103_->values;
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp105_ = cursor;
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp106_ = var_idx;
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp107_ = tracker_sparql_cursor_get_string ((TrackerSparqlCursor*) _tmp105_, _tmp106_, NULL);
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp108_ = g_strdup (_tmp107_);
#line 727 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_ptr_array_add (_tmp104_, _tmp108_);
#line 7037 "tracker-sparql-query.c"
			}
		}
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp109_ = n_solutions;
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		n_solutions = _tmp109_ + 1;
#line 7044 "tracker-sparql-query.c"
	}
#line 732 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (cursor);
#line 732 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	cursor = NULL;
#line 7050 "tracker-sparql-query.c"
	{
		gint i = 0;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		i = 0;
#line 7055 "tracker-sparql-query.c"
		{
			gboolean _tmp110_ = FALSE;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp110_ = TRUE;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			while (TRUE) {
#line 7062 "tracker-sparql-query.c"
				gboolean _tmp111_ = FALSE;
				gint _tmp113_ = 0;
				gint _tmp114_ = 0;
				guchar* _tmp115_ = NULL;
				gint _tmp115__length1 = 0;
				GHashFunc _tmp116_ = NULL;
				GEqualFunc _tmp117_ = NULL;
				GDestroyNotify _tmp118_ = NULL;
				GDestroyNotify _tmp119_ = NULL;
				GHashTable* _tmp120_ = NULL;
				TrackerSourceLocation _tmp121_ = {0};
				TrackerSparqlSolution* _tmp122_ = NULL;
				gint _tmp123_ = 0;
				TrackerSparqlSolution* _tmp124_ = NULL;
				gboolean _tmp125_ = FALSE;
				gboolean _tmp126_ = FALSE;
				gboolean _tmp128_ = FALSE;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp111_ = _tmp110_;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!_tmp111_) {
#line 7084 "tracker-sparql-query.c"
					gint _tmp112_ = 0;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp112_ = i;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					i = _tmp112_ + 1;
#line 7090 "tracker-sparql-query.c"
				}
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp110_ = FALSE;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp113_ = i;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp114_ = n_solutions;
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!(_tmp113_ < _tmp114_)) {
#line 735 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					break;
#line 7102 "tracker-sparql-query.c"
				}
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp115_ = self->priv->base_uuid;
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp115__length1 = self->priv->base_uuid_length1;
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				uuid_generate (_tmp115_);
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp116_ = g_str_hash;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp117_ = g_str_equal;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp118_ = g_free;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp119_ = g_free;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp120_ = g_hash_table_new_full (_tmp116_, _tmp117_, _tmp118_, _tmp119_);
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_hash_table_unref0 (self->priv->blank_nodes);
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				self->priv->blank_nodes = _tmp120_;
#line 741 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp121_ = template_location;
#line 741 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_set_location (self, &_tmp121_);
#line 743 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp122_ = solution;
#line 743 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp123_ = i;
#line 743 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp122_->solution_index = _tmp123_;
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp124_ = solution;
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_parse_construct_triples_block (self, _tmp124_, &_inner_error_);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_object_unref0 (cursor);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tracker_sparql_solution_unref0 (solution);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (sql);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (pattern_sql);
#line 746 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7152 "tracker-sparql-query.c"
				}
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp126_ = blank;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp126_) {
#line 7158 "tracker-sparql-query.c"
					GVariantBuilder* _tmp127_ = NULL;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp127_ = update_blank_nodes;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp125_ = _tmp127_ != NULL;
#line 7164 "tracker-sparql-query.c"
				} else {
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp125_ = FALSE;
#line 7168 "tracker-sparql-query.c"
				}
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp128_ = _tmp125_;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp128_) {
#line 7174 "tracker-sparql-query.c"
					GVariantBuilder* _tmp129_ = NULL;
					GHashTable* _tmp130_ = NULL;
					GVariant* _tmp135_ = NULL;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp129_ = update_blank_nodes;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp130_ = self->priv->blank_nodes;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp135_ = _variant_new1 (_tmp130_);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_variant_builder_add_value (_tmp129_, _tmp135_);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_variant_unref0 (_tmp135_);
#line 7188 "tracker-sparql-query.c"
				}
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_data_update_buffer_might_flush (&_inner_error_);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_object_unref0 (cursor);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tracker_sparql_solution_unref0 (solution);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (sql);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_string_free0 (pattern_sql);
#line 752 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7206 "tracker-sparql-query.c"
				}
			}
		}
	}
#line 755 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_solution_unref0 (solution);
#line 755 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	solution = NULL;
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp136_ = data;
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (!_tmp136_) {
#line 7219 "tracker-sparql-query.c"
		TrackerSourceLocation _tmp137_ = {0};
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp137_ = after_where;
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_set_location (self, &_tmp137_);
#line 7225 "tracker-sparql-query.c"
	}
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_data_update_buffer_flush (&_inner_error_);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_propagate_error (error, _inner_error_);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_object_unref0 (cursor);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tracker_sparql_solution_unref0 (solution);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_string_free0 (sql);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_string_free0 (pattern_sql);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 7243 "tracker-sparql-query.c"
	}
#line 764 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	__g_list_free__g_object_unref0_0 (self->bindings);
#line 764 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->bindings = NULL;
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp138_ = self->context;
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp139_ = _tmp138_->parent_context;
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp140_ = _tracker_sparql_context_ref0 (_tmp139_);
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->context);
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->context = _tmp140_;
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (cursor);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_solution_unref0 (solution);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_string_free0 (sql);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_string_free0 (pattern_sql);
#line 7267 "tracker-sparql-query.c"
}


gchar* tracker_sparql_query_resolve_prefixed_name (TrackerSparqlQuery* self, const gchar* prefix, const gchar* local_name, GError** error) {
	gchar* result = NULL;
	gchar* ns = NULL;
	GHashTable* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 769 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 769 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (prefix != NULL, NULL);
#line 769 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (local_name != NULL, NULL);
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->prefix_map;
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = prefix;
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp3_ = g_strdup ((const gchar*) _tmp2_);
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	ns = _tmp3_;
#line 771 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp4_ = ns;
#line 771 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp4_ == NULL) {
#line 7303 "tracker-sparql-query.c"
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		GError* _tmp8_ = NULL;
		GError* _tmp9_ = NULL;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp5_ = prefix;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = g_strdup_printf ("use of undefined prefix `%s'", _tmp5_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_ = _tmp6_;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = tracker_sparql_query_get_error (self, _tmp7_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp9_ = _tmp8_;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (_tmp7_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = _tmp9_;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (ns);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 7331 "tracker-sparql-query.c"
		} else {
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (ns);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return NULL;
#line 7341 "tracker-sparql-query.c"
		}
	}
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp10_ = ns;
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp11_ = local_name;
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp12_ = g_strconcat (_tmp10_, _tmp11_, NULL);
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp12_;
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (ns);
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 7356 "tracker-sparql-query.c"
}


static void tracker_sparql_query_skip_braces (TrackerSparqlQuery* self, GError** error) {
	gint n_braces = 0;
	GError * _inner_error_ = NULL;
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 7375 "tracker-sparql-query.c"
		} else {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 7383 "tracker-sparql-query.c"
		}
	}
#line 779 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	n_braces = 1;
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 7390 "tracker-sparql-query.c"
		gint _tmp0_ = 0;
		gboolean _tmp1_ = FALSE;
		gboolean _tmp2_ = FALSE;
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp0_ = n_braces;
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!(_tmp0_ > 0)) {
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			break;
#line 7400 "tracker-sparql-query.c"
		}
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = _tmp2_;
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 7414 "tracker-sparql-query.c"
			} else {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 7422 "tracker-sparql-query.c"
			}
		}
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp1_) {
#line 7427 "tracker-sparql-query.c"
			gint _tmp3_ = 0;
#line 782 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp3_ = n_braces;
#line 782 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			n_braces = _tmp3_ + 1;
#line 7433 "tracker-sparql-query.c"
		} else {
			gboolean _tmp4_ = FALSE;
			gboolean _tmp5_ = FALSE;
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp4_ = _tmp5_;
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7449 "tracker-sparql-query.c"
				} else {
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7457 "tracker-sparql-query.c"
				}
			}
#line 783 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp4_) {
#line 7462 "tracker-sparql-query.c"
				gint _tmp6_ = 0;
#line 784 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp6_ = n_braces;
#line 784 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				n_braces = _tmp6_ - 1;
#line 7468 "tracker-sparql-query.c"
			} else {
				TrackerSparqlTokenType _tmp7_ = 0;
#line 785 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp7_ = tracker_sparql_query_current (self);
#line 785 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp7_ == TRACKER_SPARQL_TOKEN_TYPE_EOF) {
#line 7475 "tracker-sparql-query.c"
					GError* _tmp8_ = NULL;
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp8_ = tracker_sparql_query_get_error (self, "unexpected end of query, expected }");
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_inner_error_ = _tmp8_;
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7487 "tracker-sparql-query.c"
					} else {
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7495 "tracker-sparql-query.c"
					}
				} else {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_next (self, &_inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 7508 "tracker-sparql-query.c"
						} else {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 7516 "tracker-sparql-query.c"
						}
					}
				}
			}
		}
	}
}


static void tracker_sparql_query_parse_construct_triples_block (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error) {
	GError * _inner_error_ = NULL;
#line 794 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 794 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (var_value_map != NULL);
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 7542 "tracker-sparql-query.c"
		} else {
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 7550 "tracker-sparql-query.c"
		}
	}
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 7555 "tracker-sparql-query.c"
		TrackerSparqlTokenType _tmp0_ = 0;
		gboolean is_null = FALSE;
		gboolean _tmp1_ = FALSE;
		gboolean _tmp2_ = FALSE;
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp0_ = tracker_sparql_query_current (self);
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!(_tmp0_ != TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE)) {
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			break;
#line 7566 "tracker-sparql-query.c"
		}
#line 798 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		is_null = FALSE;
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_GRAPH, &_inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = _tmp2_;
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 7582 "tracker-sparql-query.c"
			} else {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 7590 "tracker-sparql-query.c"
			}
		}
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp1_) {
#line 7595 "tracker-sparql-query.c"
			gchar* old_graph = NULL;
			const gchar* _tmp3_ = NULL;
			gchar* _tmp4_ = NULL;
			gchar* _tmp5_ = NULL;
			TrackerSparqlSolution* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			gchar* _tmp8_ = NULL;
			gboolean _tmp9_ = FALSE;
			const gchar* _tmp21_ = NULL;
			gchar* _tmp22_ = NULL;
#line 801 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp3_ = self->priv->current_graph;
#line 801 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp4_ = g_strdup (_tmp3_);
#line 801 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			old_graph = _tmp4_;
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp6_ = var_value_map;
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = tracker_sparql_query_parse_construct_var_or_term (self, _tmp6_, &_tmp7_, &_inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			is_null = _tmp7_;
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = _tmp8_;
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7630 "tracker-sparql-query.c"
				} else {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7640 "tracker-sparql-query.c"
				}
			}
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_graph);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_graph = _tmp5_;
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = is_null;
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp9_) {
#line 7651 "tracker-sparql-query.c"
				GError* _tmp10_ = NULL;
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp10_ = tracker_sparql_query_get_error (self, "'null' not supported for graph");
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_inner_error_ = _tmp10_;
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7665 "tracker-sparql-query.c"
				} else {
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7675 "tracker-sparql-query.c"
				}
			}
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7690 "tracker-sparql-query.c"
				} else {
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7700 "tracker-sparql-query.c"
				}
			}
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			while (TRUE) {
#line 7705 "tracker-sparql-query.c"
				TrackerSparqlTokenType _tmp11_ = 0;
				gchar* _tmp12_ = NULL;
				TrackerSparqlSolution* _tmp13_ = NULL;
				gboolean _tmp14_ = FALSE;
				gchar* _tmp15_ = NULL;
				gboolean _tmp16_ = FALSE;
				TrackerSparqlSolution* _tmp18_ = NULL;
				gboolean _tmp19_ = FALSE;
				gboolean _tmp20_ = FALSE;
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp11_ = tracker_sparql_query_current (self);
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!(_tmp11_ != TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE)) {
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					break;
#line 7721 "tracker-sparql-query.c"
				}
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = var_value_map;
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp15_ = tracker_sparql_query_parse_construct_var_or_term (self, _tmp13_, &_tmp14_, &_inner_error_);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				is_null = _tmp14_;
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp12_ = _tmp15_;
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7741 "tracker-sparql-query.c"
					} else {
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7751 "tracker-sparql-query.c"
					}
				}
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (self->priv->current_subject);
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				self->priv->current_subject = _tmp12_;
#line 813 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp16_ = is_null;
#line 813 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp16_) {
#line 7762 "tracker-sparql-query.c"
					GError* _tmp17_ = NULL;
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp17_ = tracker_sparql_query_get_error (self, "'null' not supported for subject");
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_inner_error_ = _tmp17_;
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7776 "tracker-sparql-query.c"
					} else {
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7786 "tracker-sparql-query.c"
					}
				}
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18_ = var_value_map;
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_parse_construct_property_list_not_empty (self, _tmp18_, &_inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7803 "tracker-sparql-query.c"
					} else {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7813 "tracker-sparql-query.c"
					}
				}
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp20_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = _tmp20_;
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7830 "tracker-sparql-query.c"
					} else {
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_graph);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 7840 "tracker-sparql-query.c"
					}
				}
#line 818 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (!_tmp19_) {
#line 820 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					break;
#line 7847 "tracker-sparql-query.c"
				}
			}
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7862 "tracker-sparql-query.c"
				} else {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7872 "tracker-sparql-query.c"
				}
			}
#line 826 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp21_ = old_graph;
#line 826 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp22_ = g_strdup (_tmp21_);
#line 826 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_graph);
#line 826 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_graph = _tmp22_;
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7895 "tracker-sparql-query.c"
				} else {
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_graph);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 828 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7905 "tracker-sparql-query.c"
				}
			}
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (old_graph);
#line 7910 "tracker-sparql-query.c"
		} else {
			gchar* _tmp23_ = NULL;
			TrackerSparqlSolution* _tmp24_ = NULL;
			gboolean _tmp25_ = FALSE;
			gchar* _tmp26_ = NULL;
			gboolean _tmp27_ = FALSE;
			TrackerSparqlSolution* _tmp29_ = NULL;
			gboolean _tmp30_ = FALSE;
			gboolean _tmp31_ = FALSE;
			gboolean _tmp32_ = FALSE;
			gboolean _tmp34_ = FALSE;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp24_ = var_value_map;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp26_ = tracker_sparql_query_parse_construct_var_or_term (self, _tmp24_, &_tmp25_, &_inner_error_);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			is_null = _tmp25_;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp23_ = _tmp26_;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7938 "tracker-sparql-query.c"
				} else {
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7946 "tracker-sparql-query.c"
				}
			}
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_subject);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_subject = _tmp23_;
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp27_ = is_null;
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp27_) {
#line 7957 "tracker-sparql-query.c"
				GError* _tmp28_ = NULL;
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp28_ = tracker_sparql_query_get_error (self, "'null' not supported for subject");
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_inner_error_ = _tmp28_;
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7969 "tracker-sparql-query.c"
				} else {
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 833 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7977 "tracker-sparql-query.c"
				}
			}
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp29_ = var_value_map;
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_parse_construct_property_list_not_empty (self, _tmp29_, &_inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 7992 "tracker-sparql-query.c"
				} else {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 8000 "tracker-sparql-query.c"
				}
			}
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp32_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_);
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp31_ = _tmp32_;
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 8015 "tracker-sparql-query.c"
				} else {
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 8023 "tracker-sparql-query.c"
				}
			}
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (!_tmp31_) {
#line 8028 "tracker-sparql-query.c"
				TrackerSparqlTokenType _tmp33_ = 0;
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp33_ = tracker_sparql_query_current (self);
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp30_ = _tmp33_ != TRACKER_SPARQL_TOKEN_TYPE_GRAPH;
#line 8034 "tracker-sparql-query.c"
			} else {
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp30_ = FALSE;
#line 8038 "tracker-sparql-query.c"
			}
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp34_ = _tmp30_;
#line 837 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp34_) {
#line 839 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				break;
#line 8046 "tracker-sparql-query.c"
			}
		}
	}
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 8060 "tracker-sparql-query.c"
		} else {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 8068 "tracker-sparql-query.c"
		}
	}
}


static gchar* tracker_sparql_query_parse_construct_var_or_term (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, gboolean* is_null, GError** error) {
	gboolean _vala_is_null = FALSE;
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	TrackerSparqlTokenType _tmp1_ = 0;
	GError * _inner_error_ = NULL;
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (var_value_map != NULL, NULL);
#line 850 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = g_strdup ("");
#line 850 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_result_ = _tmp0_;
#line 851 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_vala_is_null = FALSE;
#line 852 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp1_ = tracker_sparql_query_current (self);
#line 852 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp1_ == TRACKER_SPARQL_TOKEN_TYPE_VAR) {
#line 8095 "tracker-sparql-query.c"
		TrackerSparqlSolution* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_next (self, &_inner_error_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (_result_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 8114 "tracker-sparql-query.c"
			} else {
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (_result_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return NULL;
#line 8124 "tracker-sparql-query.c"
			}
		}
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = var_value_map;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = tracker_sparql_query_get_last_string (self, 0);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = _tmp3_;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp5_ = string_substring (_tmp4_, (glong) 1, (glong) (-1));
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = _tmp5_;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp7_ = tracker_sparql_solution_lookup (_tmp2_, _tmp6_);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (_result_);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_result_ = _tmp7_;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (_tmp6_);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (_tmp4_);
#line 8147 "tracker-sparql-query.c"
	} else {
		TrackerSparqlTokenType _tmp8_ = 0;
#line 855 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = tracker_sparql_query_current (self);
#line 855 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp8_ == TRACKER_SPARQL_TOKEN_TYPE_IRI_REF) {
#line 8154 "tracker-sparql-query.c"
			gchar* _tmp9_ = NULL;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_next (self, &_inner_error_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_result_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 8168 "tracker-sparql-query.c"
				} else {
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_result_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return NULL;
#line 8178 "tracker-sparql-query.c"
				}
			}
#line 857 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = tracker_sparql_query_get_last_string (self, 1);
#line 857 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_result_);
#line 857 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_result_ = _tmp9_;
#line 8187 "tracker-sparql-query.c"
		} else {
			TrackerSparqlTokenType _tmp10_ = 0;
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp10_ = tracker_sparql_query_current (self);
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp10_ == TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX) {
#line 8194 "tracker-sparql-query.c"
				gchar* ns = NULL;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				gchar* _tmp18_ = NULL;
				gchar* _tmp19_ = NULL;
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_next (self, &_inner_error_);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8217 "tracker-sparql-query.c"
					} else {
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 860 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8227 "tracker-sparql-query.c"
					}
				}
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp11_ = tracker_sparql_query_get_last_string (self, 0);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				ns = _tmp11_;
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (ns);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8248 "tracker-sparql-query.c"
					} else {
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (ns);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 862 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8260 "tracker-sparql-query.c"
					}
				}
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = ns;
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp14_ = tracker_sparql_query_get_last_string (self, 0);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp15_ = _tmp14_;
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp16_ = string_substring (_tmp15_, (glong) 1, (glong) (-1));
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp17_ = _tmp16_;
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp18_ = tracker_sparql_query_resolve_prefixed_name (self, _tmp13_, _tmp17_, &_inner_error_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = _tmp18_;
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (_tmp17_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (_tmp15_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp12_ = _tmp19_;
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (ns);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8295 "tracker-sparql-query.c"
					} else {
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (ns);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return NULL;
#line 8307 "tracker-sparql-query.c"
					}
				}
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (_result_);
#line 863 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_result_ = _tmp12_;
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (ns);
#line 8316 "tracker-sparql-query.c"
			} else {
				TrackerSparqlTokenType _tmp20_ = 0;
#line 864 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp20_ = tracker_sparql_query_current (self);
#line 864 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp20_ == TRACKER_SPARQL_TOKEN_TYPE_COLON) {
#line 8323 "tracker-sparql-query.c"
					gchar* _tmp21_ = NULL;
					gchar* _tmp22_ = NULL;
					gchar* _tmp23_ = NULL;
					gchar* _tmp24_ = NULL;
					gchar* _tmp25_ = NULL;
					gchar* _tmp26_ = NULL;
					gchar* _tmp27_ = NULL;
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_next (self, &_inner_error_);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8343 "tracker-sparql-query.c"
						} else {
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 866 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8353 "tracker-sparql-query.c"
						}
					}
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp22_ = tracker_sparql_query_get_last_string (self, 0);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp23_ = _tmp22_;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp24_ = string_substring (_tmp23_, (glong) 1, (glong) (-1));
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp25_ = _tmp24_;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp26_ = tracker_sparql_query_resolve_prefixed_name (self, "", _tmp25_, &_inner_error_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp27_ = _tmp26_;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_tmp25_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_tmp23_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp21_ = _tmp27_;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8384 "tracker-sparql-query.c"
						} else {
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8394 "tracker-sparql-query.c"
						}
					}
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_result_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_result_ = _tmp21_;
#line 8401 "tracker-sparql-query.c"
				} else {
					gboolean _tmp28_ = FALSE;
					gboolean _tmp29_ = FALSE;
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp29_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_BLANK_NODE, &_inner_error_);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp28_ = _tmp29_;
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8419 "tracker-sparql-query.c"
						} else {
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (_result_);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return NULL;
#line 8429 "tracker-sparql-query.c"
						}
					}
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_tmp28_) {
#line 8434 "tracker-sparql-query.c"
						gchar* _tmp30_ = NULL;
						gchar* _tmp31_ = NULL;
						gchar* _tmp32_ = NULL;
						gchar* _tmp33_ = NULL;
						gchar* _tmp34_ = NULL;
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_inner_error_ != NULL) {
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (_result_);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 8452 "tracker-sparql-query.c"
							} else {
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (_result_);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 870 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return NULL;
#line 8462 "tracker-sparql-query.c"
							}
						}
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp30_ = tracker_sparql_query_get_last_string (self, 0);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp31_ = _tmp30_;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp32_ = string_substring (_tmp31_, (glong) 1, (glong) (-1));
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp33_ = _tmp32_;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp34_ = tracker_sparql_query_generate_bnodeid (self, _tmp33_);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_result_);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_result_ = _tmp34_;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_tmp33_);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_tmp31_);
#line 8483 "tracker-sparql-query.c"
					} else {
						TrackerSparqlTokenType _tmp35_ = 0;
#line 872 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp35_ = tracker_sparql_query_current (self);
#line 872 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_tmp35_ == TRACKER_SPARQL_TOKEN_TYPE_MINUS) {
#line 8490 "tracker-sparql-query.c"
							gboolean _tmp36_ = FALSE;
							gboolean _tmp37_ = FALSE;
							TrackerSparqlTokenType _tmp38_ = 0;
							gboolean _tmp40_ = FALSE;
							gboolean _tmp42_ = FALSE;
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							tracker_sparql_query_next (self, &_inner_error_);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_inner_error_ != NULL) {
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_propagate_error (error, _inner_error_);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (_result_);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 8508 "tracker-sparql-query.c"
								} else {
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (_result_);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_clear_error (&_inner_error_);
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 8518 "tracker-sparql-query.c"
								}
							}
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp38_ = tracker_sparql_query_current (self);
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_tmp38_ == TRACKER_SPARQL_TOKEN_TYPE_INTEGER) {
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp37_ = TRUE;
#line 8527 "tracker-sparql-query.c"
							} else {
								TrackerSparqlTokenType _tmp39_ = 0;
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp39_ = tracker_sparql_query_current (self);
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp37_ = _tmp39_ == TRACKER_SPARQL_TOKEN_TYPE_DECIMAL;
#line 8534 "tracker-sparql-query.c"
							}
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp40_ = _tmp37_;
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_tmp40_) {
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp36_ = TRUE;
#line 8542 "tracker-sparql-query.c"
							} else {
								TrackerSparqlTokenType _tmp41_ = 0;
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp41_ = tracker_sparql_query_current (self);
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp36_ = _tmp41_ == TRACKER_SPARQL_TOKEN_TYPE_DOUBLE;
#line 8549 "tracker-sparql-query.c"
							}
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp42_ = _tmp36_;
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_tmp42_) {
#line 8555 "tracker-sparql-query.c"
								gchar* _tmp43_ = NULL;
								gchar* _tmp44_ = NULL;
								gchar* _tmp45_ = NULL;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								tracker_sparql_query_next (self, &_inner_error_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if (_inner_error_ != NULL) {
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_propagate_error (error, _inner_error_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_g_free0 (_result_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										return NULL;
#line 8571 "tracker-sparql-query.c"
									} else {
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_g_free0 (_result_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_clear_error (&_inner_error_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										return NULL;
#line 8581 "tracker-sparql-query.c"
									}
								}
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp43_ = tracker_sparql_query_get_last_string (self, 0);
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp44_ = _tmp43_;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp45_ = g_strconcat ("-", _tmp44_, NULL);
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (_result_);
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_result_ = _tmp45_;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (_tmp44_);
#line 8596 "tracker-sparql-query.c"
							} else {
								GError* _tmp46_ = NULL;
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp46_ = tracker_sparql_query_get_error (self, "expected variable or term");
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_inner_error_ = _tmp46_;
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_propagate_error (error, _inner_error_);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (_result_);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 8611 "tracker-sparql-query.c"
								} else {
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (_result_);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_clear_error (&_inner_error_);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return NULL;
#line 8621 "tracker-sparql-query.c"
								}
							}
						} else {
							TrackerSparqlTokenType _tmp47_ = 0;
#line 882 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp47_ = tracker_sparql_query_current (self);
#line 882 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_tmp47_ == TRACKER_SPARQL_TOKEN_TYPE_INTEGER) {
#line 8630 "tracker-sparql-query.c"
								gchar* _tmp48_ = NULL;
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								tracker_sparql_query_next (self, &_inner_error_);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if (_inner_error_ != NULL) {
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_propagate_error (error, _inner_error_);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_g_free0 (_result_);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										return NULL;
#line 8644 "tracker-sparql-query.c"
									} else {
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_g_free0 (_result_);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										g_clear_error (&_inner_error_);
#line 883 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										return NULL;
#line 8654 "tracker-sparql-query.c"
									}
								}
#line 884 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp48_ = tracker_sparql_query_get_last_string (self, 0);
#line 884 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (_result_);
#line 884 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_result_ = _tmp48_;
#line 8663 "tracker-sparql-query.c"
							} else {
								TrackerSparqlTokenType _tmp49_ = 0;
#line 885 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_tmp49_ = tracker_sparql_query_current (self);
#line 885 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if (_tmp49_ == TRACKER_SPARQL_TOKEN_TYPE_NULL) {
#line 8670 "tracker-sparql-query.c"
									gchar* _tmp50_ = NULL;
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									tracker_sparql_query_next (self, &_inner_error_);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									if (_inner_error_ != NULL) {
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											g_propagate_error (error, _inner_error_);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_g_free0 (_result_);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											return NULL;
#line 8684 "tracker-sparql-query.c"
										} else {
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_g_free0 (_result_);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											g_clear_error (&_inner_error_);
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											return NULL;
#line 8694 "tracker-sparql-query.c"
										}
									}
#line 887 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_tmp50_ = g_strdup ("null");
#line 887 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (_result_);
#line 887 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_result_ = _tmp50_;
#line 888 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_vala_is_null = TRUE;
#line 8705 "tracker-sparql-query.c"
								} else {
									TrackerSparqlTokenType _tmp51_ = 0;
#line 889 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_tmp51_ = tracker_sparql_query_current (self);
#line 889 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									if (_tmp51_ == TRACKER_SPARQL_TOKEN_TYPE_DECIMAL) {
#line 8712 "tracker-sparql-query.c"
										gchar* _tmp52_ = NULL;
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										tracker_sparql_query_next (self, &_inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										if (_inner_error_ != NULL) {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												g_propagate_error (error, _inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_g_free0 (_result_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												return NULL;
#line 8726 "tracker-sparql-query.c"
											} else {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_g_free0 (_result_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												g_clear_error (&_inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												return NULL;
#line 8736 "tracker-sparql-query.c"
											}
										}
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_tmp52_ = tracker_sparql_query_get_last_string (self, 0);
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_g_free0 (_result_);
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_result_ = _tmp52_;
#line 8745 "tracker-sparql-query.c"
									} else {
										TrackerSparqlTokenType _tmp53_ = 0;
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										_tmp53_ = tracker_sparql_query_current (self);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
										if (_tmp53_ == TRACKER_SPARQL_TOKEN_TYPE_DOUBLE) {
#line 8752 "tracker-sparql-query.c"
											gchar* _tmp54_ = NULL;
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											tracker_sparql_query_next (self, &_inner_error_);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											if (_inner_error_ != NULL) {
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													g_propagate_error (error, _inner_error_);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_g_free0 (_result_);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													return NULL;
#line 8766 "tracker-sparql-query.c"
												} else {
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_g_free0 (_result_);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													g_clear_error (&_inner_error_);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													return NULL;
#line 8776 "tracker-sparql-query.c"
												}
											}
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_tmp54_ = tracker_sparql_query_get_last_string (self, 0);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_g_free0 (_result_);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_result_ = _tmp54_;
#line 8785 "tracker-sparql-query.c"
										} else {
											TrackerSparqlTokenType _tmp55_ = 0;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											_tmp55_ = tracker_sparql_query_current (self);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
											if (_tmp55_ == TRACKER_SPARQL_TOKEN_TYPE_TRUE) {
#line 8792 "tracker-sparql-query.c"
												gchar* _tmp56_ = NULL;
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												tracker_sparql_query_next (self, &_inner_error_);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												if (_inner_error_ != NULL) {
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														g_propagate_error (error, _inner_error_);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_g_free0 (_result_);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														return NULL;
#line 8806 "tracker-sparql-query.c"
													} else {
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_g_free0 (_result_);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														g_clear_error (&_inner_error_);
#line 896 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														return NULL;
#line 8816 "tracker-sparql-query.c"
													}
												}
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_tmp56_ = g_strdup ("true");
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_g_free0 (_result_);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_result_ = _tmp56_;
#line 8825 "tracker-sparql-query.c"
											} else {
												TrackerSparqlTokenType _tmp57_ = 0;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												_tmp57_ = tracker_sparql_query_current (self);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
												if (_tmp57_ == TRACKER_SPARQL_TOKEN_TYPE_FALSE) {
#line 8832 "tracker-sparql-query.c"
													gchar* _tmp58_ = NULL;
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													tracker_sparql_query_next (self, &_inner_error_);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													if (_inner_error_ != NULL) {
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															g_propagate_error (error, _inner_error_);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_g_free0 (_result_);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															return NULL;
#line 8846 "tracker-sparql-query.c"
														} else {
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_g_free0 (_result_);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															g_clear_error (&_inner_error_);
#line 899 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															return NULL;
#line 8856 "tracker-sparql-query.c"
														}
													}
#line 900 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_tmp58_ = g_strdup ("false");
#line 900 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_g_free0 (_result_);
#line 900 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_result_ = _tmp58_;
#line 8865 "tracker-sparql-query.c"
												} else {
													TrackerSparqlTokenType _tmp59_ = 0;
#line 901 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													_tmp59_ = tracker_sparql_query_current (self);
#line 901 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
													if (_tmp59_ == TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1) {
#line 8872 "tracker-sparql-query.c"
														gchar* _tmp60_ = NULL;
														TrackerSparqlExpression* _tmp61_ = NULL;
														gchar* _tmp62_ = NULL;
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_tmp61_ = self->expression;
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_tmp62_ = tracker_sparql_expression_parse_string_literal (_tmp61_, NULL, &_inner_error_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_tmp60_ = _tmp62_;
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														if (_inner_error_ != NULL) {
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																g_propagate_error (error, _inner_error_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_g_free0 (_result_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																return NULL;
#line 8892 "tracker-sparql-query.c"
															} else {
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_g_free0 (_result_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																g_clear_error (&_inner_error_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																return NULL;
#line 8902 "tracker-sparql-query.c"
															}
														}
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_g_free0 (_result_);
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_result_ = _tmp60_;
#line 8909 "tracker-sparql-query.c"
													} else {
														TrackerSparqlTokenType _tmp63_ = 0;
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														_tmp63_ = tracker_sparql_query_current (self);
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
														if (_tmp63_ == TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2) {
#line 8916 "tracker-sparql-query.c"
															gchar* _tmp64_ = NULL;
															TrackerSparqlExpression* _tmp65_ = NULL;
															gchar* _tmp66_ = NULL;
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_tmp65_ = self->expression;
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_tmp66_ = tracker_sparql_expression_parse_string_literal (_tmp65_, NULL, &_inner_error_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_tmp64_ = _tmp66_;
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															if (_inner_error_ != NULL) {
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	g_propagate_error (error, _inner_error_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_g_free0 (_result_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	return NULL;
#line 8936 "tracker-sparql-query.c"
																} else {
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_g_free0 (_result_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	g_clear_error (&_inner_error_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	return NULL;
#line 8946 "tracker-sparql-query.c"
																}
															}
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_g_free0 (_result_);
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_result_ = _tmp64_;
#line 8953 "tracker-sparql-query.c"
														} else {
															TrackerSparqlTokenType _tmp67_ = 0;
#line 905 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															_tmp67_ = tracker_sparql_query_current (self);
#line 905 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
															if (_tmp67_ == TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1) {
#line 8960 "tracker-sparql-query.c"
																gchar* _tmp68_ = NULL;
																TrackerSparqlExpression* _tmp69_ = NULL;
																gchar* _tmp70_ = NULL;
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_tmp69_ = self->expression;
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_tmp70_ = tracker_sparql_expression_parse_string_literal (_tmp69_, NULL, &_inner_error_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_tmp68_ = _tmp70_;
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																if (_inner_error_ != NULL) {
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		g_propagate_error (error, _inner_error_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (_result_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		return NULL;
#line 8980 "tracker-sparql-query.c"
																	} else {
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (_result_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		g_clear_error (&_inner_error_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		return NULL;
#line 8990 "tracker-sparql-query.c"
																	}
																}
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_g_free0 (_result_);
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_result_ = _tmp68_;
#line 8997 "tracker-sparql-query.c"
															} else {
																TrackerSparqlTokenType _tmp71_ = 0;
#line 907 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																_tmp71_ = tracker_sparql_query_current (self);
#line 907 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																if (_tmp71_ == TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2) {
#line 9004 "tracker-sparql-query.c"
																	gchar* _tmp72_ = NULL;
																	TrackerSparqlExpression* _tmp73_ = NULL;
																	gchar* _tmp74_ = NULL;
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_tmp73_ = self->expression;
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_tmp74_ = tracker_sparql_expression_parse_string_literal (_tmp73_, NULL, &_inner_error_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_tmp72_ = _tmp74_;
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	if (_inner_error_ != NULL) {
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_propagate_error (error, _inner_error_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_g_free0 (_result_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			return NULL;
#line 9024 "tracker-sparql-query.c"
																		} else {
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_g_free0 (_result_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_clear_error (&_inner_error_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			return NULL;
#line 9034 "tracker-sparql-query.c"
																		}
																	}
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_g_free0 (_result_);
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_result_ = _tmp72_;
#line 9041 "tracker-sparql-query.c"
																} else {
																	TrackerSparqlTokenType _tmp75_ = 0;
#line 909 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	_tmp75_ = tracker_sparql_query_current (self);
#line 909 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																	if (_tmp75_ == TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACKET) {
#line 9048 "tracker-sparql-query.c"
																		gboolean _tmp76_ = FALSE;
																		gchar* _tmp78_ = NULL;
																		gchar* old_subject = NULL;
																		const gchar* _tmp79_ = NULL;
																		gchar* _tmp80_ = NULL;
																		gboolean old_subject_is_var = FALSE;
																		gboolean _tmp81_ = FALSE;
																		const gchar* _tmp82_ = NULL;
																		gchar* _tmp83_ = NULL;
																		TrackerSparqlSolution* _tmp84_ = NULL;
																		const gchar* _tmp85_ = NULL;
																		gchar* _tmp86_ = NULL;
																		gboolean _tmp87_ = FALSE;
#line 911 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp76_ = self->priv->anon_blank_node_open;
#line 911 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if (_tmp76_) {
#line 9066 "tracker-sparql-query.c"
																			GError* _tmp77_ = NULL;
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_tmp77_ = tracker_sparql_query_get_error (self, "no support for nested anonymous blank nodes");
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_inner_error_ = _tmp77_;
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_propagate_error (error, _inner_error_);
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9080 "tracker-sparql-query.c"
																			} else {
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_clear_error (&_inner_error_);
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9090 "tracker-sparql-query.c"
																			}
																		}
#line 915 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		self->priv->anon_blank_node_open = TRUE;
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		tracker_sparql_query_next (self, &_inner_error_);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if (_inner_error_ != NULL) {
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_propagate_error (error, _inner_error_);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9107 "tracker-sparql-query.c"
																			} else {
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_clear_error (&_inner_error_);
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9117 "tracker-sparql-query.c"
																			}
																		}
#line 918 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp78_ = tracker_sparql_query_generate_bnodeid (self, NULL);
#line 918 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (_result_);
#line 918 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_result_ = _tmp78_;
#line 920 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp79_ = self->priv->current_subject;
#line 920 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp80_ = g_strdup (_tmp79_);
#line 920 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		old_subject = _tmp80_;
#line 921 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp81_ = self->priv->current_subject_is_var;
#line 921 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		old_subject_is_var = _tmp81_;
#line 923 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp82_ = _result_;
#line 923 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp83_ = g_strdup (_tmp82_);
#line 923 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (self->priv->current_subject);
#line 923 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		self->priv->current_subject = _tmp83_;
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp84_ = var_value_map;
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		tracker_sparql_query_parse_construct_property_list_not_empty (self, _tmp84_, &_inner_error_);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if (_inner_error_ != NULL) {
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_propagate_error (error, _inner_error_);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (old_subject);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9160 "tracker-sparql-query.c"
																			} else {
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (old_subject);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_clear_error (&_inner_error_);
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9172 "tracker-sparql-query.c"
																			}
																		}
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if (_inner_error_ != NULL) {
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_propagate_error (error, _inner_error_);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (old_subject);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9189 "tracker-sparql-query.c"
																			} else {
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (old_subject);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				_g_free0 (_result_);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				g_clear_error (&_inner_error_);
#line 925 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																				return NULL;
#line 9201 "tracker-sparql-query.c"
																			}
																		}
#line 926 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		self->priv->anon_blank_node_open = FALSE;
#line 928 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp85_ = old_subject;
#line 928 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp86_ = g_strdup (_tmp85_);
#line 928 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (self->priv->current_subject);
#line 928 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		self->priv->current_subject = _tmp86_;
#line 929 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp87_ = old_subject_is_var;
#line 929 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		self->priv->current_subject_is_var = _tmp87_;
#line 909 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_g_free0 (old_subject);
#line 9220 "tracker-sparql-query.c"
																	} else {
																		GError* _tmp88_ = NULL;
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_tmp88_ = tracker_sparql_query_get_error (self, "expected variable or term");
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		_inner_error_ = _tmp88_;
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_propagate_error (error, _inner_error_);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_g_free0 (_result_);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			return NULL;
#line 9235 "tracker-sparql-query.c"
																		} else {
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			_g_free0 (_result_);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			g_clear_error (&_inner_error_);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
																			return NULL;
#line 9245 "tracker-sparql-query.c"
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _result_;
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (is_null) {
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		*is_null = _vala_is_null;
#line 9270 "tracker-sparql-query.c"
	}
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 9274 "tracker-sparql-query.c"
}


static void tracker_sparql_query_parse_construct_property_list_not_empty (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error) {
	GError * _inner_error_ = NULL;
#line 936 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 936 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (var_value_map != NULL);
#line 937 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 9286 "tracker-sparql-query.c"
		gchar* old_predicate = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		TrackerSparqlTokenType _tmp2_ = 0;
		TrackerSparqlSolution* _tmp32_ = NULL;
		const gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		gboolean _tmp35_ = FALSE;
		gboolean _tmp36_ = FALSE;
#line 938 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp0_ = self->priv->current_predicate;
#line 938 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = g_strdup (_tmp0_);
#line 938 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		old_predicate = _tmp1_;
#line 940 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (self->priv->current_predicate);
#line 940 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->current_predicate = NULL;
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = tracker_sparql_query_current (self);
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp2_ == TRACKER_SPARQL_TOKEN_TYPE_VAR) {
#line 9310 "tracker-sparql-query.c"
			TrackerSparqlSolution* _tmp3_ = NULL;
			gchar* _tmp4_ = NULL;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_predicate_is_var = TRUE;
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_sparql_query_next (self, &_inner_error_);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_propagate_error (error, _inner_error_);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_predicate);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 9331 "tracker-sparql-query.c"
				} else {
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (old_predicate);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 9341 "tracker-sparql-query.c"
				}
			}
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp3_ = var_value_map;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp4_ = tracker_sparql_query_get_last_string (self, 0);
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp5_ = _tmp4_;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp6_ = string_substring (_tmp5_, (glong) 1, (glong) (-1));
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp7_ = _tmp6_;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp8_ = tracker_sparql_solution_lookup (_tmp3_, _tmp7_);
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (self->priv->current_predicate);
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			self->priv->current_predicate = _tmp8_;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp7_);
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (_tmp5_);
#line 9364 "tracker-sparql-query.c"
		} else {
			TrackerSparqlTokenType _tmp9_ = 0;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp9_ = tracker_sparql_query_current (self);
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp9_ == TRACKER_SPARQL_TOKEN_TYPE_IRI_REF) {
#line 9371 "tracker-sparql-query.c"
				gchar* _tmp10_ = NULL;
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_sparql_query_next (self, &_inner_error_);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_propagate_error (error, _inner_error_);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_predicate);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 9385 "tracker-sparql-query.c"
					} else {
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (old_predicate);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						g_clear_error (&_inner_error_);
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						return;
#line 9395 "tracker-sparql-query.c"
					}
				}
#line 947 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp10_ = tracker_sparql_query_get_last_string (self, 1);
#line 947 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (self->priv->current_predicate);
#line 947 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				self->priv->current_predicate = _tmp10_;
#line 9404 "tracker-sparql-query.c"
			} else {
				TrackerSparqlTokenType _tmp11_ = 0;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp11_ = tracker_sparql_query_current (self);
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp11_ == TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX) {
#line 9411 "tracker-sparql-query.c"
					gchar* ns = NULL;
					gchar* _tmp12_ = NULL;
					gchar* _tmp13_ = NULL;
					const gchar* _tmp14_ = NULL;
					gchar* _tmp15_ = NULL;
					gchar* _tmp16_ = NULL;
					gchar* _tmp17_ = NULL;
					gchar* _tmp18_ = NULL;
					gchar* _tmp19_ = NULL;
					gchar* _tmp20_ = NULL;
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_next (self, &_inner_error_);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9434 "tracker-sparql-query.c"
						} else {
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9444 "tracker-sparql-query.c"
						}
					}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp12_ = tracker_sparql_query_get_last_string (self, 0);
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					ns = _tmp12_;
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					tracker_sparql_query_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (ns);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9465 "tracker-sparql-query.c"
						} else {
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (ns);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 951 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9477 "tracker-sparql-query.c"
						}
					}
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp14_ = ns;
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp15_ = tracker_sparql_query_get_last_string (self, 0);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp16_ = _tmp15_;
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp17_ = string_substring (_tmp16_, (glong) 1, (glong) (-1));
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp18_ = _tmp17_;
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp19_ = tracker_sparql_query_resolve_prefixed_name (self, _tmp14_, _tmp18_, &_inner_error_);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp20_ = _tmp19_;
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_tmp18_);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (_tmp16_);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp13_ = _tmp20_;
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_ != NULL) {
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_propagate_error (error, _inner_error_);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (ns);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9512 "tracker-sparql-query.c"
						} else {
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (ns);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (old_predicate);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							g_clear_error (&_inner_error_);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							return;
#line 9524 "tracker-sparql-query.c"
						}
					}
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (self->priv->current_predicate);
#line 952 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					self->priv->current_predicate = _tmp13_;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (ns);
#line 9533 "tracker-sparql-query.c"
				} else {
					TrackerSparqlTokenType _tmp21_ = 0;
#line 953 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp21_ = tracker_sparql_query_current (self);
#line 953 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_tmp21_ == TRACKER_SPARQL_TOKEN_TYPE_COLON) {
#line 9540 "tracker-sparql-query.c"
						gchar* _tmp22_ = NULL;
						gchar* _tmp23_ = NULL;
						gchar* _tmp24_ = NULL;
						gchar* _tmp25_ = NULL;
						gchar* _tmp26_ = NULL;
						gchar* _tmp27_ = NULL;
						gchar* _tmp28_ = NULL;
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						tracker_sparql_query_next (self, &_inner_error_);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_inner_error_ != NULL) {
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9560 "tracker-sparql-query.c"
							} else {
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9570 "tracker-sparql-query.c"
							}
						}
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp23_ = tracker_sparql_query_get_last_string (self, 0);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp24_ = _tmp23_;
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp25_ = string_substring (_tmp24_, (glong) 1, (glong) (-1));
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp26_ = _tmp25_;
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp27_ = tracker_sparql_query_resolve_prefixed_name (self, "", _tmp26_, &_inner_error_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp28_ = _tmp27_;
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_tmp26_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (_tmp24_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp22_ = _tmp28_;
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_inner_error_ != NULL) {
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9601 "tracker-sparql-query.c"
							} else {
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9611 "tracker-sparql-query.c"
							}
						}
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_g_free0 (self->priv->current_predicate);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						self->priv->current_predicate = _tmp22_;
#line 9618 "tracker-sparql-query.c"
					} else {
						TrackerSparqlTokenType _tmp29_ = 0;
#line 956 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						_tmp29_ = tracker_sparql_query_current (self);
#line 956 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
						if (_tmp29_ == TRACKER_SPARQL_TOKEN_TYPE_A) {
#line 9625 "tracker-sparql-query.c"
							gchar* _tmp30_ = NULL;
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							tracker_sparql_query_next (self, &_inner_error_);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if (_inner_error_ != NULL) {
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_propagate_error (error, _inner_error_);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (old_predicate);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return;
#line 9639 "tracker-sparql-query.c"
								} else {
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									_g_free0 (old_predicate);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									g_clear_error (&_inner_error_);
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
									return;
#line 9649 "tracker-sparql-query.c"
								}
							}
#line 958 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp30_ = g_strdup ("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
#line 958 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_g_free0 (self->priv->current_predicate);
#line 958 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							self->priv->current_predicate = _tmp30_;
#line 9658 "tracker-sparql-query.c"
						} else {
							GError* _tmp31_ = NULL;
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_tmp31_ = tracker_sparql_query_get_error (self, "expected non-empty property list");
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							_inner_error_ = _tmp31_;
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
							if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_propagate_error (error, _inner_error_);
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9673 "tracker-sparql-query.c"
							} else {
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								_g_free0 (old_predicate);
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								g_clear_error (&_inner_error_);
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
								return;
#line 9683 "tracker-sparql-query.c"
							}
						}
					}
				}
			}
		}
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp32_ = var_value_map;
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_parse_construct_object_list (self, _tmp32_, &_inner_error_);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (old_predicate);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9704 "tracker-sparql-query.c"
			} else {
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (old_predicate);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 962 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9714 "tracker-sparql-query.c"
			}
		}
#line 964 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp33_ = old_predicate;
#line 964 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp34_ = g_strdup (_tmp33_);
#line 964 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (self->priv->current_predicate);
#line 964 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		self->priv->current_predicate = _tmp34_;
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp36_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_SEMICOLON, &_inner_error_);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp35_ = _tmp36_;
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (old_predicate);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9739 "tracker-sparql-query.c"
			} else {
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (old_predicate);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9749 "tracker-sparql-query.c"
			}
		}
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp35_) {
#line 967 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (old_predicate);
#line 967 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			continue;
#line 9758 "tracker-sparql-query.c"
		}
#line 969 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (old_predicate);
#line 969 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 9764 "tracker-sparql-query.c"
	}
}


static void tracker_sparql_query_parse_construct_object_list (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error) {
	GError * _inner_error_ = NULL;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (var_value_map != NULL);
#line 974 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	while (TRUE) {
#line 9777 "tracker-sparql-query.c"
		TrackerSparqlSolution* _tmp0_ = NULL;
		gboolean _tmp1_ = FALSE;
		gboolean _tmp2_ = FALSE;
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp0_ = var_value_map;
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_parse_construct_object (self, _tmp0_, &_inner_error_);
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9793 "tracker-sparql-query.c"
			} else {
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9801 "tracker-sparql-query.c"
			}
		}
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp2_ = tracker_sparql_query_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp1_ = _tmp2_;
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_inner_error_ != NULL) {
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_propagate_error (error, _inner_error_);
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9816 "tracker-sparql-query.c"
			} else {
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9824 "tracker-sparql-query.c"
			}
		}
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp1_) {
#line 977 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			continue;
#line 9831 "tracker-sparql-query.c"
		}
#line 979 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 9835 "tracker-sparql-query.c"
	}
}


static gpointer _g_error_copy0 (gpointer self) {
#line 1010 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return self ? g_error_copy (self) : NULL;
#line 9843 "tracker-sparql-query.c"
}


static void tracker_sparql_query_parse_construct_object (TrackerSparqlQuery* self, TrackerSparqlSolution* var_value_map, GError** error) {
	gboolean is_null = FALSE;
	gchar* object = NULL;
	TrackerSparqlSolution* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp5_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp9_ = FALSE;
	GError * _inner_error_ = NULL;
#line 983 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 983 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (var_value_map != NULL);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	is_null = FALSE;
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = var_value_map;
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp2_ = tracker_sparql_query_parse_construct_var_or_term (self, _tmp0_, &_tmp1_, &_inner_error_);
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	is_null = _tmp1_;
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	object = _tmp2_;
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 9881 "tracker-sparql-query.c"
		} else {
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 985 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 9889 "tracker-sparql-query.c"
		}
	}
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp5_ = self->priv->current_subject;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp5_ == NULL) {
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = TRUE;
#line 9898 "tracker-sparql-query.c"
	} else {
		const gchar* _tmp6_ = NULL;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp6_ = self->priv->current_predicate;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp4_ = _tmp6_ == NULL;
#line 9905 "tracker-sparql-query.c"
	}
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp7_ = _tmp4_;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp7_) {
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = TRUE;
#line 9913 "tracker-sparql-query.c"
	} else {
		const gchar* _tmp8_ = NULL;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp8_ = object;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp3_ = _tmp8_ == NULL;
#line 9920 "tracker-sparql-query.c"
	}
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp9_ = _tmp3_;
#line 986 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_tmp9_) {
#line 989 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_free0 (object);
#line 989 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		return;
#line 9930 "tracker-sparql-query.c"
	}
	{
		gboolean _tmp10_ = FALSE;
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp10_ = self->priv->update_statements;
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (_tmp10_) {
#line 9938 "tracker-sparql-query.c"
			const gchar* _tmp11_ = NULL;
			gboolean _tmp12_ = FALSE;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			const gchar* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp12_ = is_null;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp12_) {
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp11_ = NULL;
#line 9951 "tracker-sparql-query.c"
			} else {
				const gchar* _tmp13_ = NULL;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp13_ = object;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp11_ = _tmp13_;
#line 9958 "tracker-sparql-query.c"
			}
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp14_ = self->priv->current_graph;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp15_ = self->priv->current_subject;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp16_ = self->priv->current_predicate;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp17_ = _tmp11_;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			tracker_data_update_statement (_tmp14_, _tmp15_, _tmp16_, _tmp17_, &_inner_error_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_inner_error_ != NULL) {
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 9974 "tracker-sparql-query.c"
					goto __catch3_tracker_sparql_error;
				}
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_->domain == TRACKER_DATE_ERROR) {
#line 9979 "tracker-sparql-query.c"
					goto __catch3_tracker_date_error;
				}
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_g_free0 (object);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				g_clear_error (&_inner_error_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				return;
#line 9990 "tracker-sparql-query.c"
			}
		} else {
			gboolean _tmp18_ = FALSE;
#line 995 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp18_ = self->priv->delete_statements;
#line 995 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			if (_tmp18_) {
#line 9998 "tracker-sparql-query.c"
				gboolean _tmp19_ = FALSE;
				const gchar* _tmp21_ = NULL;
				const gchar* _tmp22_ = NULL;
				const gchar* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp19_ = is_null;
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp19_) {
#line 10008 "tracker-sparql-query.c"
					GError* _tmp20_ = NULL;
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp20_ = tracker_sparql_query_get_error (self, "'null' not supported in this mode");
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_inner_error_ = _tmp20_;
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 10016 "tracker-sparql-query.c"
						goto __catch3_tracker_sparql_error;
					}
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_DATE_ERROR) {
#line 10021 "tracker-sparql-query.c"
						goto __catch3_tracker_date_error;
					}
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (object);
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 998 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 10032 "tracker-sparql-query.c"
				}
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp21_ = self->priv->current_graph;
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp22_ = self->priv->current_subject;
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp23_ = self->priv->current_predicate;
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp24_ = object;
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_data_delete_statement (_tmp21_, _tmp22_, _tmp23_, _tmp24_, &_inner_error_);
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 10048 "tracker-sparql-query.c"
						goto __catch3_tracker_sparql_error;
					}
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_DATE_ERROR) {
#line 10053 "tracker-sparql-query.c"
						goto __catch3_tracker_date_error;
					}
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (object);
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 1000 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 10064 "tracker-sparql-query.c"
				}
			} else {
				gboolean _tmp25_ = FALSE;
				const gchar* _tmp27_ = NULL;
				const gchar* _tmp28_ = NULL;
				const gchar* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
#line 1003 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp25_ = is_null;
#line 1003 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_tmp25_) {
#line 10076 "tracker-sparql-query.c"
					GError* _tmp26_ = NULL;
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_tmp26_ = tracker_sparql_query_get_error (self, "'null' not supported in this mode");
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_inner_error_ = _tmp26_;
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 10084 "tracker-sparql-query.c"
						goto __catch3_tracker_sparql_error;
					}
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_DATE_ERROR) {
#line 10089 "tracker-sparql-query.c"
						goto __catch3_tracker_date_error;
					}
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (object);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 10100 "tracker-sparql-query.c"
				}
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp27_ = self->priv->current_graph;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp28_ = self->priv->current_subject;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp29_ = self->priv->current_predicate;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				_tmp30_ = object;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				tracker_data_insert_statement (_tmp27_, _tmp28_, _tmp29_, _tmp30_, &_inner_error_);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
				if (_inner_error_ != NULL) {
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 10116 "tracker-sparql-query.c"
						goto __catch3_tracker_sparql_error;
					}
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					if (_inner_error_->domain == TRACKER_DATE_ERROR) {
#line 10121 "tracker-sparql-query.c"
						goto __catch3_tracker_date_error;
					}
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					_g_free0 (object);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					g_clear_error (&_inner_error_);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
					return;
#line 10132 "tracker-sparql-query.c"
				}
			}
		}
	}
	goto __finally3;
	__catch3_tracker_sparql_error:
	{
		GError* e = NULL;
		gboolean _tmp31_ = FALSE;
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		e = _inner_error_;
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = NULL;
#line 1009 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp31_ = self->priv->silent;
#line 1009 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!_tmp31_) {
#line 10150 "tracker-sparql-query.c"
			GError* _tmp32_ = NULL;
			GError* _tmp33_ = NULL;
#line 1010 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp32_ = e;
#line 1010 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp33_ = _g_error_copy0 (_tmp32_);
#line 1010 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp33_;
#line 1010 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_error_free0 (e);
#line 10161 "tracker-sparql-query.c"
			goto __finally3;
		}
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_error_free0 (e);
#line 10166 "tracker-sparql-query.c"
	}
	goto __finally3;
	__catch3_tracker_date_error:
	{
		GError* e = NULL;
		gboolean _tmp34_ = FALSE;
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		e = _inner_error_;
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_inner_error_ = NULL;
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_tmp34_ = self->priv->silent;
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if (!_tmp34_) {
#line 10181 "tracker-sparql-query.c"
			GError* _tmp35_ = NULL;
			const gchar* _tmp36_ = NULL;
			GError* _tmp37_ = NULL;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp35_ = e;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp36_ = _tmp35_->message;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_tmp37_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_TYPE, _tmp36_);
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_inner_error_ = _tmp37_;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_error_free0 (e);
#line 10195 "tracker-sparql-query.c"
			goto __finally3;
		}
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		_g_error_free0 (e);
#line 10200 "tracker-sparql-query.c"
	}
	__finally3:
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	if (_inner_error_ != NULL) {
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		if ((_inner_error_->domain == TRACKER_SPARQL_ERROR) || (_inner_error_->domain == TRACKER_DATE_ERROR)) {
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_propagate_error (error, _inner_error_);
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (object);
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 10213 "tracker-sparql-query.c"
		} else {
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			_g_free0 (object);
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			g_clear_error (&_inner_error_);
#line 991 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
			return;
#line 10223 "tracker-sparql-query.c"
		}
	}
#line 983 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (object);
#line 10228 "tracker-sparql-query.c"
}


gboolean tracker_sparql_query_get_no_cache (TrackerSparqlQuery* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = self->priv->_no_cache;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	result = _tmp0_;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return result;
#line 10243 "tracker-sparql-query.c"
}


void tracker_sparql_query_set_no_cache (TrackerSparqlQuery* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_return_if_fail (self != NULL);
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tmp0_ = value;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->_no_cache = _tmp0_;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_notify ((GObject *) self, "no-cache");
#line 10257 "tracker-sparql-query.c"
}


static TrackerSparqlQueryTokenInfo* tracker_sparql_query_token_info_dup (const TrackerSparqlQueryTokenInfo* self) {
	TrackerSparqlQueryTokenInfo* dup;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	dup = g_new0 (TrackerSparqlQueryTokenInfo, 1);
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	memcpy (dup, self, sizeof (TrackerSparqlQueryTokenInfo));
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	return dup;
#line 10269 "tracker-sparql-query.c"
}


static void tracker_sparql_query_token_info_free (TrackerSparqlQueryTokenInfo* self) {
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_free (self);
#line 10276 "tracker-sparql-query.c"
}


static GType tracker_sparql_query_token_info_get_type (void) {
	static volatile gsize tracker_sparql_query_token_info_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_query_token_info_type_id__volatile)) {
		GType tracker_sparql_query_token_info_type_id;
		tracker_sparql_query_token_info_type_id = g_boxed_type_register_static ("TrackerSparqlQueryTokenInfo", (GBoxedCopyFunc) tracker_sparql_query_token_info_dup, (GBoxedFreeFunc) tracker_sparql_query_token_info_free);
		g_once_init_leave (&tracker_sparql_query_token_info_type_id__volatile, tracker_sparql_query_token_info_type_id);
	}
	return tracker_sparql_query_token_info_type_id__volatile;
}


static void tracker_sparql_query_class_init (TrackerSparqlQueryClass * klass) {
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	tracker_sparql_query_parent_class = g_type_class_peek_parent (klass);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_type_class_add_private (klass, sizeof (TrackerSparqlQueryPrivate));
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_sparql_query_get_property;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_tracker_sparql_query_set_property;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_query_finalize;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_SPARQL_QUERY_NO_CACHE, g_param_spec_boolean ("no-cache", "no-cache", "no-cache", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 10304 "tracker-sparql-query.c"
}


static void tracker_sparql_query_instance_init (TrackerSparqlQuery * self) {
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv = TRACKER_SPARQL_QUERY_GET_PRIVATE (self);
#line 236 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->bnodeid = 0;
#line 847 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->anon_blank_node_open = FALSE;
#line 10315 "tracker-sparql-query.c"
}


static void tracker_sparql_query_finalize (GObject* obj) {
	TrackerSparqlQuery * self;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQuery);
#line 192 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->priv->scanner);
#line 195 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->tokens = (g_free (self->priv->tokens), NULL);
#line 211 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->query_string);
#line 214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->expression);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_object_unref0 (self->pattern);
#line 217 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->current_graph);
#line 218 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->current_subject);
#line 220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_free0 (self->priv->current_predicate);
#line 226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->priv->prefix_map);
#line 229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	__g_list_free__g_object_unref0_0 (self->bindings);
#line 231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_tracker_sparql_context_unref0 (self->context);
#line 238 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	self->priv->base_uuid = (g_free (self->priv->base_uuid), NULL);
#line 239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	_g_hash_table_unref0 (self->priv->blank_nodes);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	G_OBJECT_CLASS (tracker_sparql_query_parent_class)->finalize (obj);
#line 10351 "tracker-sparql-query.c"
}


GType tracker_sparql_query_get_type (void) {
	static volatile gsize tracker_sparql_query_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_query_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlQueryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_query_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlQuery), 0, (GInstanceInitFunc) tracker_sparql_query_instance_init, NULL };
		GType tracker_sparql_query_type_id;
		tracker_sparql_query_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlQuery", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_query_type_id__volatile, tracker_sparql_query_type_id);
	}
	return tracker_sparql_query_type_id__volatile;
}


static void _vala_tracker_sparql_query_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerSparqlQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQuery);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_QUERY_NO_CACHE:
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		g_value_set_boolean (value, tracker_sparql_query_get_no_cache (self));
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 10378 "tracker-sparql-query.c"
		default:
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 10384 "tracker-sparql-query.c"
	}
}


static void _vala_tracker_sparql_query_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	TrackerSparqlQuery * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_QUERY, TrackerSparqlQuery);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
	switch (property_id) {
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		case TRACKER_SPARQL_QUERY_NO_CACHE:
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		tracker_sparql_query_set_no_cache (self, g_value_get_boolean (value));
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 10400 "tracker-sparql-query.c"
		default:
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-query.vala"
		break;
#line 10406 "tracker-sparql-query.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



