/* tracker-sparql-expression.c generated by valac 0.24.0.36-e935, the Vala compiler
 * generated from tracker-sparql-expression.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-sparql/tracker-sparql.h"
#include "libtracker-data/tracker-property.h"
#include "libtracker-data/tracker-db-interface-sqlite.h"
#include "libtracker-data/tracker-class.h"
#include "libtracker-data/tracker-collation.h"
#include "libtracker-data/tracker-ontologies.h"


#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;
typedef struct _TrackerSparqlExpressionPrivate TrackerSparqlExpressionPrivate;

#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 _g_free0(var) (var = (g_free (var), NULL))

#define TRACKER_TYPE_SPARQL_TOKEN_TYPE (tracker_sparql_token_type_get_type ())

#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 _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#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 _TrackerSparqlVariablePrivate TrackerSparqlVariablePrivate;

#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;

#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;

#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;

#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;
#define _tracker_sparql_context_unref0(var) ((var == NULL) ? NULL : (var = (tracker_sparql_context_unref (var), NULL)))
typedef struct _TrackerSparqlContextPrivate TrackerSparqlContextPrivate;

#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;
typedef struct _TrackerSparqlSelectContextPrivate TrackerSparqlSelectContextPrivate;
typedef struct _TrackerSparqlDataBindingPrivate TrackerSparqlDataBindingPrivate;

#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 _TrackerSparqlVariableBindingPrivate TrackerSparqlVariableBindingPrivate;

#define TRACKER_SPARQL_TYPE_VARIABLE_STATE (tracker_sparql_variable_state_get_type ())
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _TrackerSparqlPatternPrivate TrackerSparqlPatternPrivate;

#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;
typedef struct _TrackerSparqlQueryPrivate TrackerSparqlQueryPrivate;

struct _TrackerSparqlExpression {
	GObject parent_instance;
	TrackerSparqlExpressionPrivate * priv;
};

struct _TrackerSparqlExpressionClass {
	GObjectClass parent_class;
};

struct _TrackerSparqlExpressionPrivate {
	TrackerSparqlQuery* query;
	gchar* fts_sql;
};

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 _TrackerSparqlVariable {
	GObject parent_instance;
	TrackerSparqlVariablePrivate * priv;
	TrackerSparqlVariableBinding* binding;
};

struct _TrackerSparqlVariableClass {
	GObjectClass parent_class;
};

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 _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 _TrackerSparqlDataBinding {
	GObject parent_instance;
	TrackerSparqlDataBindingPrivate * priv;
	TrackerPropertyType data_type;
	TrackerSparqlDataTable* table;
	gchar* sql_db_column_name;
};

struct _TrackerSparqlDataBindingClass {
	GObjectClass 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;
};

typedef enum  {
	TRACKER_SPARQL_VARIABLE_STATE_NONE,
	TRACKER_SPARQL_VARIABLE_STATE_BOUND,
	TRACKER_SPARQL_VARIABLE_STATE_OPTIONAL
} TrackerSparqlVariableState;

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;
};

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

struct _TrackerSparqlLiteralBindingClass {
	TrackerSparqlDataBindingClass parent_class;
};

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

struct _TrackerSparqlQueryClass {
	GObjectClass parent_class;
};


static gpointer tracker_sparql_expression_parent_class = NULL;

GType tracker_sparql_expression_get_type (void) G_GNUC_CONST;
GType tracker_sparql_query_get_type (void) G_GNUC_CONST;
#define TRACKER_SPARQL_EXPRESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpressionPrivate))
enum  {
	TRACKER_SPARQL_EXPRESSION_DUMMY_PROPERTY
};
#define TRACKER_SPARQL_EXPRESSION_MAX_VARIABLES_FOR_IN 20
#define TRACKER_SPARQL_EXPRESSION_XSD_NS "http://www.w3.org/2001/XMLSchema#"
#define TRACKER_SPARQL_EXPRESSION_FN_NS "http://www.w3.org/2005/xpath-functions#"
#define TRACKER_SPARQL_EXPRESSION_FTS_NS "http://www.tracker-project.org/ontologies/fts#"
#define TRACKER_SPARQL_EXPRESSION_TRACKER_NS "http://www.tracker-project.org/ontologies/tracker#"
TrackerSparqlExpression* tracker_sparql_expression_new (TrackerSparqlQuery* query);
TrackerSparqlExpression* tracker_sparql_expression_construct (GType object_type, TrackerSparqlQuery* query);
static inline gboolean tracker_sparql_expression_next (TrackerSparqlExpression* self, GError** error);
gboolean tracker_sparql_query_next (TrackerSparqlQuery* self, GError** error);
GType tracker_sparql_token_type_get_type (void) G_GNUC_CONST;
static inline TrackerSparqlTokenType tracker_sparql_expression_current (TrackerSparqlExpression* self);
TrackerSparqlTokenType tracker_sparql_query_current (TrackerSparqlQuery* self);
static inline TrackerSparqlTokenType tracker_sparql_expression_last (TrackerSparqlExpression* self);
TrackerSparqlTokenType tracker_sparql_query_last (TrackerSparqlQuery* self);
static inline gboolean tracker_sparql_expression_accept (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error);
gboolean tracker_sparql_query_accept (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error);
static GError* tracker_sparql_expression_get_error (TrackerSparqlExpression* self, const gchar* msg);
GError* tracker_sparql_query_get_error (TrackerSparqlQuery* self, const gchar* msg);
static gboolean tracker_sparql_expression_expect (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error);
gboolean tracker_sparql_query_expect (TrackerSparqlQuery* self, TrackerSparqlTokenType type, GError** error);
static gchar* tracker_sparql_expression_get_last_string (TrackerSparqlExpression* self, gint strip);
gchar* tracker_sparql_query_get_last_string (TrackerSparqlQuery* self, gint strip);
static gchar* tracker_sparql_expression_escape_sql_string_literal (TrackerSparqlExpression* self, const gchar* literal);
static gboolean tracker_sparql_expression_maybe_numeric (TrackerSparqlExpression* self, TrackerPropertyType type);
static void tracker_sparql_expression_append_collate (TrackerSparqlExpression* self, GString* sql);
static void tracker_sparql_expression_skip_bracketted_expression (TrackerSparqlExpression* self, GError** error);
void tracker_sparql_expression_skip_select_variables (TrackerSparqlExpression* self, GError** error);
TrackerPropertyType tracker_sparql_expression_translate_select_expression (TrackerSparqlExpression* self, GString* sql, gboolean subquery, gint variable_index, GError** error);
GType tracker_sparql_variable_get_type (void) G_GNUC_CONST;
TrackerPropertyType tracker_sparql_expression_translate_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
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;
static TrackerSparqlContext* tracker_sparql_expression_get_context (TrackerSparqlExpression* self);
TrackerSparqlVariable* tracker_sparql_context_get_variable (TrackerSparqlContext* self, const gchar* name);
GType tracker_sparql_data_binding_get_type (void) G_GNUC_CONST;
GType tracker_sparql_variable_binding_get_type (void) G_GNUC_CONST;
const gchar* tracker_sparql_variable_get_name (TrackerSparqlVariable* self);
GType tracker_sparql_select_context_get_type (void) G_GNUC_CONST;
GType tracker_sparql_pattern_get_type (void) G_GNUC_CONST;
static TrackerSparqlPattern* tracker_sparql_expression_get_pattern (TrackerSparqlExpression* self);
TrackerSparqlSelectContext* tracker_sparql_pattern_translate_select (TrackerSparqlPattern* self, GString* sql, gboolean subquery, gboolean scalar_subquery, GError** error);
GType tracker_sparql_predicate_variable_get_type (void) G_GNUC_CONST;
static void tracker_sparql_expression_convert_expression_to_string (GString* sql, TrackerPropertyType type, glong begin);
const gchar* tracker_sparql_variable_get_sql_expression (TrackerSparqlVariable* self);
TrackerSparqlVariableBinding* tracker_sparql_variable_binding_new (void);
TrackerSparqlVariableBinding* tracker_sparql_variable_binding_construct (GType object_type);
GType tracker_sparql_data_table_get_type (void) G_GNUC_CONST;
void tracker_sparql_data_binding_set_sql_expression (TrackerSparqlDataBinding* self, const gchar* value);
GType tracker_sparql_variable_state_get_type (void) G_GNUC_CONST;
void tracker_sparql_pattern_add_variable_binding (TrackerSparqlPattern* self, GString* sql, TrackerSparqlVariableBinding* binding, TrackerSparqlVariableState variable_state);
static void _vala_array_add1 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add4 (gchar*** array, int* length, int* size, gchar* value);
static void tracker_sparql_expression_translate_expression_as_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error);
void tracker_sparql_expression_translate_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_translate_bound_call (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_if_call (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_translate_regex (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_translate_expression_as_string (TrackerSparqlExpression* self, GString* sql, GError** error);
gchar* tracker_sparql_expression_parse_string_literal (TrackerSparqlExpression* self, TrackerPropertyType* type, GError** error);
static void tracker_sparql_expression_translate_exists (TrackerSparqlExpression* self, GString* sql, GError** error);
void tracker_sparql_pattern_translate_exists (TrackerSparqlPattern* self, GString* sql, GError** error);
void tracker_sparql_expression_append_expression_as_string (GString* sql, const gchar* expression, TrackerPropertyType type);
GType tracker_sparql_literal_binding_get_type (void) G_GNUC_CONST;
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_new (void);
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_construct (GType object_type);
gchar* tracker_sparql_pattern_parse_var_or_term (TrackerSparqlPattern* self, GString* sql, gboolean* is_var, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_function (TrackerSparqlExpression* self, GString* sql, const gchar* uri, GError** error);
static void tracker_sparql_expression_translate_str (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_translate_isuri (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_translate_datatype (TrackerSparqlExpression* self, GString* sql, GError** error);
gchar* tracker_sparql_variable_get_extra_sql_expression (TrackerSparqlVariable* self, const gchar* suffix);
static TrackerPropertyType tracker_sparql_expression_parse_type_uri (TrackerSparqlExpression* self, GError** error);
gchar* tracker_sparql_query_resolve_prefixed_name (TrackerSparqlQuery* self, const gchar* prefix, const gchar* local_name, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_uri_expression (TrackerSparqlExpression* self, GString* sql, const gchar* uri, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_primary_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_bracketted_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
gboolean tracker_sparql_query_get_no_cache (TrackerSparqlQuery* self);
void tracker_sparql_query_set_no_cache (TrackerSparqlQuery* self, gboolean value);
static TrackerPropertyType tracker_sparql_expression_translate_aggregate_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_unary_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_multiplicative_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_additive_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_numeric_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_process_relational_expression (TrackerSparqlExpression* self, GString* sql, glong begin, guint n_bindings, TrackerPropertyType op1type, const gchar* operator, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_in (TrackerSparqlExpression* self, GString* sql, gboolean not, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_relational_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_value_logical (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_conditional_and_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
static TrackerPropertyType tracker_sparql_expression_translate_conditional_or_expression (TrackerSparqlExpression* self, GString* sql, GError** error);
TrackerPropertyType tracker_sparql_expression_translate_constraint (TrackerSparqlExpression* self, GString* sql, GError** error);
static void tracker_sparql_expression_finalize (GObject* obj);
static void _vala_tracker_sparql_expression_get_property (GObject * object, guint property_id, 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);
static gint _vala_array_length (gpointer array);


TrackerSparqlExpression* tracker_sparql_expression_construct (GType object_type, TrackerSparqlQuery* query) {
	TrackerSparqlExpression * self = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
#line 31 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 31 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self = (TrackerSparqlExpression*) g_object_new (object_type, NULL);
#line 32 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = query;
#line 32 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self->priv->query = _tmp0_;
#line 31 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return self;
#line 520 "tracker-sparql-expression.c"
}


TrackerSparqlExpression* tracker_sparql_expression_new (TrackerSparqlQuery* query) {
#line 31 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return tracker_sparql_expression_construct (TRACKER_SPARQL_TYPE_EXPRESSION, query);
#line 527 "tracker-sparql-expression.c"
}


static inline gboolean tracker_sparql_expression_next (TrackerSparqlExpression* self, GError** error) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	TrackerSparqlQuery* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	GError * _inner_error_ = NULL;
#line 43 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = self->priv->query;
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_next (_tmp1_, &_inner_error_);
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp2_;
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 553 "tracker-sparql-expression.c"
		} else {
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 561 "tracker-sparql-expression.c"
		}
	}
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 44 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 568 "tracker-sparql-expression.c"
}


static inline TrackerSparqlTokenType tracker_sparql_expression_current (TrackerSparqlExpression* self) {
	TrackerSparqlTokenType result = 0;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlTokenType _tmp1_ = 0;
#line 47 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 48 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 48 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_query_current (_tmp0_);
#line 48 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 48 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 586 "tracker-sparql-expression.c"
}


static inline TrackerSparqlTokenType tracker_sparql_expression_last (TrackerSparqlExpression* self) {
	TrackerSparqlTokenType result = 0;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlTokenType _tmp1_ = 0;
#line 51 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 52 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 52 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_query_last (_tmp0_);
#line 52 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 52 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 604 "tracker-sparql-expression.c"
}


static inline gboolean tracker_sparql_expression_accept (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	TrackerSparqlQuery* _tmp1_ = NULL;
	TrackerSparqlTokenType _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	GError * _inner_error_ = NULL;
#line 55 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = self->priv->query;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = type;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_query_accept (_tmp1_, _tmp2_, &_inner_error_);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp3_;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 633 "tracker-sparql-expression.c"
		} else {
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 641 "tracker-sparql-expression.c"
		}
	}
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 56 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 648 "tracker-sparql-expression.c"
}


static GError* tracker_sparql_expression_get_error (TrackerSparqlExpression* self, const gchar* msg) {
	GError* result = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GError* _tmp2_ = NULL;
#line 59 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 59 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 60 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 60 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = msg;
#line 60 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_get_error (_tmp0_, _tmp1_);
#line 60 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 60 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 671 "tracker-sparql-expression.c"
}


static gboolean tracker_sparql_expression_expect (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	TrackerSparqlQuery* _tmp1_ = NULL;
	TrackerSparqlTokenType _tmp2_ = 0;
	gboolean _tmp3_ = FALSE;
	GError * _inner_error_ = NULL;
#line 63 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = self->priv->query;
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = type;
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_query_expect (_tmp1_, _tmp2_, &_inner_error_);
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp3_;
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 700 "tracker-sparql-expression.c"
		} else {
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 708 "tracker-sparql-expression.c"
		}
	}
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 64 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 715 "tracker-sparql-expression.c"
}


static gchar* tracker_sparql_expression_get_last_string (TrackerSparqlExpression* self, gint strip) {
	gchar* result = NULL;
	TrackerSparqlQuery* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gchar* _tmp2_ = NULL;
#line 67 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 68 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 68 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = strip;
#line 68 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_get_last_string (_tmp0_, _tmp1_);
#line 68 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 68 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 736 "tracker-sparql-expression.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 964 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 964 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 965 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		separator = "";
#line 753 "tracker-sparql-expression.c"
	}
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 763 "tracker-sparql-expression.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 773 "tracker-sparql-expression.c"
	}
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 779 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == (-1)) {
#line 790 "tracker-sparql-expression.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 802 "tracker-sparql-expression.c"
		} else {
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 806 "tracker-sparql-expression.c"
		}
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 810 "tracker-sparql-expression.c"
	}
#line 967 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 814 "tracker-sparql-expression.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		gsize _tmp35_ = 0UL;
		const gchar* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
		gint _tmp39_ = 0;
		const gchar* res = NULL;
		gsize _tmp40_ = 0UL;
		void* _tmp41_ = NULL;
		void* ptr = NULL;
		const gchar* _tmp42_ = NULL;
		gchar** _tmp43_ = NULL;
		gint _tmp43__length1 = 0;
		const gchar* _tmp44_ = NULL;
		void* _tmp45_ = NULL;
		const gchar* _tmp59_ = NULL;
#line 969 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 837 "tracker-sparql-expression.c"
		{
			gboolean _tmp9_ = FALSE;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			i = 0;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 846 "tracker-sparql-expression.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp21_ = 0;
				gchar** _tmp22_ = NULL;
				gint _tmp22__length1 = 0;
				gint _tmp23_ = 0;
				const gchar* _tmp24_ = NULL;
				gsize _tmp30_ = 0UL;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 859 "tracker-sparql-expression.c"
					gint _tmp10_ = 0;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 865 "tracker-sparql-expression.c"
				}
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != (-1)) {
#line 875 "tracker-sparql-expression.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 887 "tracker-sparql-expression.c"
				} else {
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 891 "tracker-sparql-expression.c"
				}
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 897 "tracker-sparql-expression.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == (-1)) {
#line 908 "tracker-sparql-expression.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 923 "tracker-sparql-expression.c"
					} else {
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 927 "tracker-sparql-expression.c"
					}
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 931 "tracker-sparql-expression.c"
				}
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 970 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					break;
#line 937 "tracker-sparql-expression.c"
				}
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 949 "tracker-sparql-expression.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp28_ = strlen (_tmp27_);
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 970 "tracker-sparql-expression.c"
				} else {
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 974 "tracker-sparql-expression.c"
				}
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 971 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 980 "tracker-sparql-expression.c"
			}
		}
#line 973 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 973 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 987 "tracker-sparql-expression.c"
			gchar* _tmp32_ = NULL;
#line 974 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 974 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 974 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			return result;
#line 995 "tracker-sparql-expression.c"
		}
#line 976 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 976 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 976 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp37_ = strlen (_tmp36_);
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 977 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 979 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 979 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 979 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, _tmp44_);
#line 980 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 1033 "tracker-sparql-expression.c"
		{
			gboolean _tmp46_ = FALSE;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			i = 1;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 1042 "tracker-sparql-expression.c"
				gint _tmp48_ = 0;
				gchar** _tmp49_ = NULL;
				gint _tmp49__length1 = 0;
				void* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				void* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_ = NULL;
				gint _tmp54__length1 = 0;
				gint _tmp55_ = 0;
				const gchar* _tmp56_ = NULL;
				void* _tmp57_ = NULL;
				void* _tmp58_ = NULL;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 1058 "tracker-sparql-expression.c"
					gint _tmp47_ = 0;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 1064 "tracker-sparql-expression.c"
				}
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 981 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					break;
#line 1078 "tracker-sparql-expression.c"
				}
#line 982 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 982 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 982 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, _tmp51_);
#line 982 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp53_ = _tmp56_;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				if (_tmp53_ == NULL) {
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 1102 "tracker-sparql-expression.c"
				}
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp57_ = ptr;
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				_tmp58_ = g_stpcpy (_tmp57_, _tmp53_);
#line 983 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
				ptr = _tmp58_;
#line 1110 "tracker-sparql-expression.c"
			}
		}
#line 986 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp59_ = res;
#line 986 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		res = NULL;
#line 986 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp59_;
#line 986 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1121 "tracker-sparql-expression.c"
	} else {
		gchar* _tmp60_ = NULL;
#line 988 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp60_ = g_strdup ("");
#line 988 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp60_;
#line 988 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1130 "tracker-sparql-expression.c"
	}
}


static gchar* tracker_sparql_expression_escape_sql_string_literal (TrackerSparqlExpression* self, const gchar* literal) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 71 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (literal != NULL, NULL);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = literal;
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_ = g_strsplit (_tmp0_, "'", 0);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_;
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3__length1 = _vala_array_length (_tmp1_);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = _vala_g_strjoinv ("''", _tmp3_, _vala_array_length (_tmp1_));
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = _tmp4_;
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = g_strdup_printf ("'%s'", _tmp5_);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = _tmp6_;
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp5_);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp7_;
#line 72 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 1174 "tracker-sparql-expression.c"
}


static gboolean tracker_sparql_expression_maybe_numeric (TrackerSparqlExpression* self, TrackerPropertyType type) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	TrackerPropertyType _tmp4_ = 0;
#line 75 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = type;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp4_ == TRACKER_PROPERTY_TYPE_INTEGER) {
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = TRUE;
#line 1193 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp5_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = type;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp5_ == TRACKER_PROPERTY_TYPE_DOUBLE;
#line 1200 "tracker-sparql-expression.c"
	}
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp3_) {
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = TRUE;
#line 1206 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp6_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = type;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = _tmp6_ == TRACKER_PROPERTY_TYPE_DATE;
#line 1213 "tracker-sparql-expression.c"
	}
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp2_) {
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = TRUE;
#line 1219 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp7_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = type;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = _tmp7_ == TRACKER_PROPERTY_TYPE_DATETIME;
#line 1226 "tracker-sparql-expression.c"
	}
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = TRUE;
#line 1232 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp8_ = 0;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = type;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = _tmp8_ == TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 1239 "tracker-sparql-expression.c"
	}
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 76 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 1245 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_append_collate (TrackerSparqlExpression* self, GString* sql) {
	GString* _tmp0_ = NULL;
#line 79 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 79 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 80 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 80 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append_printf (_tmp0_, " COLLATE %s", TRACKER_COLLATION_NAME);
#line 1259 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_skip_bracketted_expression (TrackerSparqlExpression* self, GError** error) {
	GError * _inner_error_ = NULL;
#line 83 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 1277 "tracker-sparql-expression.c"
		} else {
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 84 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 1285 "tracker-sparql-expression.c"
		}
	}
#line 85 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 1290 "tracker-sparql-expression.c"
		TrackerSparqlTokenType _tmp0_ = 0;
#line 86 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = tracker_sparql_expression_current (self);
#line 86 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		switch (_tmp0_) {
#line 86 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 1298 "tracker-sparql-expression.c"
			{
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_skip_bracketted_expression (self, &_inner_error_);
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1310 "tracker-sparql-expression.c"
					} else {
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 89 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1318 "tracker-sparql-expression.c"
					}
				}
#line 90 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1323 "tracker-sparql-expression.c"
			}
#line 86 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS:
#line 86 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_EOF:
#line 1329 "tracker-sparql-expression.c"
			{
#line 93 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 1333 "tracker-sparql-expression.c"
			}
			default:
			{
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_next (self, &_inner_error_);
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1347 "tracker-sparql-expression.c"
					} else {
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 95 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1355 "tracker-sparql-expression.c"
					}
				}
#line 96 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1360 "tracker-sparql-expression.c"
			}
		}
#line 98 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 1365 "tracker-sparql-expression.c"
	}
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 1377 "tracker-sparql-expression.c"
		} else {
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 1385 "tracker-sparql-expression.c"
		}
	}
}


void tracker_sparql_expression_skip_select_variables (TrackerSparqlExpression* self, GError** error) {
	GError * _inner_error_ = NULL;
#line 103 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 104 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 1397 "tracker-sparql-expression.c"
		TrackerSparqlTokenType _tmp0_ = 0;
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = tracker_sparql_expression_current (self);
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		switch (_tmp0_) {
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 1405 "tracker-sparql-expression.c"
			{
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_skip_bracketted_expression (self, &_inner_error_);
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1417 "tracker-sparql-expression.c"
					} else {
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 107 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1425 "tracker-sparql-expression.c"
					}
				}
#line 108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1430 "tracker-sparql-expression.c"
			}
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_FROM:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_WHERE:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_GROUP:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_ORDER:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_LIMIT:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OFFSET:
#line 105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_EOF:
#line 1448 "tracker-sparql-expression.c"
			{
#line 117 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 1452 "tracker-sparql-expression.c"
			}
			default:
			{
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_next (self, &_inner_error_);
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1466 "tracker-sparql-expression.c"
					} else {
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 119 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1474 "tracker-sparql-expression.c"
					}
				}
#line 120 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1479 "tracker-sparql-expression.c"
			}
		}
#line 122 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 1484 "tracker-sparql-expression.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 1197 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1197 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1197 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1197 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1198 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1198 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 1508 "tracker-sparql-expression.c"
		glong _tmp4_ = 0L;
#line 1199 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1199 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1199 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1516 "tracker-sparql-expression.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1201 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1201 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1201 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1201 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1528 "tracker-sparql-expression.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;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1208 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 1552 "tracker-sparql-expression.c"
		glong _tmp2_ = 0L;
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 1558 "tracker-sparql-expression.c"
	} else {
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 1562 "tracker-sparql-expression.c"
	}
#line 1210 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 1566 "tracker-sparql-expression.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1212 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1212 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1212 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1212 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 1578 "tracker-sparql-expression.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1214 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1214 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1214 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 1588 "tracker-sparql-expression.c"
	}
#line 1217 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1217 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 1594 "tracker-sparql-expression.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1218 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1218 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1218 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1219 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1219 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 1608 "tracker-sparql-expression.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1221 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1221 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1221 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 1618 "tracker-sparql-expression.c"
	}
#line 1223 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1223 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 1624 "tracker-sparql-expression.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1224 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1224 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1224 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 1633 "tracker-sparql-expression.c"
	}
#line 1226 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1226 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1226 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1226 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1227 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1227 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1227 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1227 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1227 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1653 "tracker-sparql-expression.c"
}


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


static void _vala_array_add1 (gchar*** array, int* length, int* size, gchar* value) {
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1671 "tracker-sparql-expression.c"
	}
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1677 "tracker-sparql-expression.c"
}


static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value) {
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1688 "tracker-sparql-expression.c"
	}
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1694 "tracker-sparql-expression.c"
}


static void _vala_array_add3 (gchar*** array, int* length, int* size, gchar* value) {
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1705 "tracker-sparql-expression.c"
	}
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1711 "tracker-sparql-expression.c"
}


static void _vala_array_add4 (gchar*** array, int* length, int* size, gchar* value) {
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1722 "tracker-sparql-expression.c"
	}
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1728 "tracker-sparql-expression.c"
}


TrackerPropertyType tracker_sparql_expression_translate_select_expression (TrackerSparqlExpression* self, GString* sql, gboolean subquery, gint variable_index, GError** error) {
	TrackerPropertyType result = 0;
	TrackerSparqlVariable* variable = NULL;
	gboolean expect_close_parens = FALSE;
	gboolean as_handled = FALSE;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType type = 0;
	TrackerSparqlTokenType _tmp2_ = 0;
	gboolean _tmp42_ = FALSE;
	gboolean _tmp46_ = FALSE;
	gboolean _tmp47_ = FALSE;
	TrackerSparqlPattern* _tmp83_ = NULL;
	TrackerSparqlPattern* _tmp84_ = NULL;
	TrackerSparqlVariable* _tmp85_ = NULL;
	gboolean _tmp118_ = FALSE;
	TrackerSparqlVariable* _tmp119_ = NULL;
	GError * _inner_error_ = NULL;
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 127 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	variable = NULL;
#line 128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	expect_close_parens = FALSE;
#line 129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	as_handled = FALSE;
#line 131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 132 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	type = TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 133 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_expression_current (self);
#line 133 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp2_ == TRACKER_SPARQL_TOKEN_TYPE_VAR) {
#line 1773 "tracker-sparql-expression.c"
		TrackerPropertyType _tmp3_ = 0;
		GString* _tmp4_ = NULL;
		TrackerPropertyType _tmp5_ = 0;
		TrackerSparqlContext* _tmp6_ = NULL;
		TrackerSparqlContext* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		TrackerSparqlVariable* _tmp12_ = NULL;
		TrackerSparqlVariable* _tmp13_ = NULL;
		TrackerSparqlVariable* _tmp14_ = NULL;
		TrackerSparqlVariableBinding* _tmp15_ = NULL;
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = sql;
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_translate_expression (self, _tmp4_, &_inner_error_);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp5_;
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1803 "tracker-sparql-expression.c"
			} else {
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1813 "tracker-sparql-expression.c"
			}
		}
#line 134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type = _tmp3_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_expression_get_context (self);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp6_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = tracker_sparql_expression_get_last_string (self, 0);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = _tmp8_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = string_substring (_tmp9_, (glong) 1, (glong) (-1));
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp10_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_context_get_variable (_tmp7_, _tmp11_);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _g_object_ref0 (_tmp12_);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (variable);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable = _tmp13_;
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp11_);
#line 136 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp9_);
#line 138 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = variable;
#line 138 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = _tmp14_->binding;
#line 138 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ == NULL) {
#line 1848 "tracker-sparql-expression.c"
			TrackerSparqlVariable* _tmp16_ = NULL;
			const gchar* _tmp17_ = NULL;
			const gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			GError* _tmp21_ = NULL;
			GError* _tmp22_ = NULL;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = variable;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = tracker_sparql_variable_get_name (_tmp16_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = _tmp17_;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = g_strdup_printf ("use of undefined variable `%s'", _tmp18_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp19_;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = tracker_sparql_expression_get_error (self, _tmp20_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = _tmp21_;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp20_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp22_;
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1882 "tracker-sparql-expression.c"
			} else {
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 139 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1892 "tracker-sparql-expression.c"
			}
		}
	} else {
		gboolean _tmp23_ = FALSE;
		gboolean _tmp24_ = FALSE;
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp24_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp23_ = _tmp24_;
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1912 "tracker-sparql-expression.c"
			} else {
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1922 "tracker-sparql-expression.c"
			}
		}
#line 141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp23_) {
#line 1927 "tracker-sparql-expression.c"
			TrackerSparqlTokenType _tmp25_ = 0;
#line 142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = tracker_sparql_expression_current (self);
#line 142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp25_ == TRACKER_SPARQL_TOKEN_TYPE_SELECT) {
#line 1933 "tracker-sparql-expression.c"
				GString* _tmp26_ = NULL;
				TrackerSparqlSelectContext* select_context = NULL;
				TrackerSparqlPattern* _tmp27_ = NULL;
				TrackerSparqlPattern* _tmp28_ = NULL;
				GString* _tmp29_ = NULL;
				TrackerSparqlSelectContext* _tmp30_ = NULL;
				GString* _tmp31_ = NULL;
				TrackerSparqlSelectContext* _tmp32_ = NULL;
				TrackerPropertyType _tmp33_ = 0;
#line 145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp26_, "(");
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = tracker_sparql_expression_get_pattern (self);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = _tmp27_;
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = sql;
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = tracker_sparql_pattern_translate_select (_tmp28_, _tmp29_, TRUE, TRUE, &_inner_error_);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				select_context = _tmp30_;
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1967 "tracker-sparql-expression.c"
					} else {
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1977 "tracker-sparql-expression.c"
					}
				}
#line 147 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 147 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tracker_sparql_context_unref0 (select_context);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1998 "tracker-sparql-expression.c"
					} else {
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tracker_sparql_context_unref0 (select_context);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 2010 "tracker-sparql-expression.c"
					}
				}
#line 150 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = select_context;
#line 150 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp33_ = _tmp32_->type;
#line 150 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp33_;
#line 142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 2021 "tracker-sparql-expression.c"
			} else {
				TrackerPropertyType _tmp34_ = 0;
				GString* _tmp35_ = NULL;
				TrackerPropertyType _tmp36_ = 0;
				gboolean _tmp37_ = FALSE;
				gboolean _tmp38_ = FALSE;
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp35_ = sql;
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp36_ = tracker_sparql_expression_translate_expression (self, _tmp35_, &_inner_error_);
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp34_ = _tmp36_;
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 2044 "tracker-sparql-expression.c"
					} else {
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 2054 "tracker-sparql-expression.c"
					}
				}
#line 152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp34_;
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp38_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp37_ = _tmp38_;
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 2073 "tracker-sparql-expression.c"
					} else {
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 2083 "tracker-sparql-expression.c"
					}
				}
#line 153 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp37_) {
#line 2088 "tracker-sparql-expression.c"
				} else {
#line 159 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					expect_close_parens = TRUE;
#line 2092 "tracker-sparql-expression.c"
				}
			}
		} else {
			TrackerPropertyType _tmp39_ = 0;
			GString* _tmp40_ = NULL;
			TrackerPropertyType _tmp41_ = 0;
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp40_ = sql;
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp41_ = tracker_sparql_expression_translate_expression (self, _tmp40_, &_inner_error_);
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp39_ = _tmp41_;
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 2115 "tracker-sparql-expression.c"
				} else {
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 2125 "tracker-sparql-expression.c"
				}
			}
#line 165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp39_;
#line 2130 "tracker-sparql-expression.c"
		}
	}
#line 168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp42_ = subquery;
#line 168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp42_) {
#line 2137 "tracker-sparql-expression.c"
		GString* _tmp43_ = NULL;
		TrackerPropertyType _tmp44_ = 0;
		glong _tmp45_ = 0L;
#line 169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp43_ = sql;
#line 169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp44_ = type;
#line 169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp45_ = begin;
#line 169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_convert_expression_to_string (_tmp43_, _tmp44_, _tmp45_);
#line 2149 "tracker-sparql-expression.c"
	}
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp47_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_AS, &_inner_error_);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp46_ = _tmp47_;
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2165 "tracker-sparql-expression.c"
		} else {
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2175 "tracker-sparql-expression.c"
		}
	}
#line 172 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp46_) {
#line 2180 "tracker-sparql-expression.c"
		gboolean _tmp48_ = FALSE;
		gboolean _tmp49_ = FALSE;
		GString* _tmp64_ = NULL;
		TrackerSparqlVariable* _tmp65_ = NULL;
		const gchar* _tmp66_ = NULL;
		const gchar* _tmp67_ = NULL;
		gboolean _tmp68_ = FALSE;
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp49_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp48_ = _tmp49_;
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 2202 "tracker-sparql-expression.c"
			} else {
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 2212 "tracker-sparql-expression.c"
			}
		}
#line 173 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp48_) {
#line 2217 "tracker-sparql-expression.c"
			TrackerSparqlContext* _tmp50_ = NULL;
			TrackerSparqlContext* _tmp51_ = NULL;
			gchar* _tmp52_ = NULL;
			gchar* _tmp53_ = NULL;
			TrackerSparqlVariable* _tmp54_ = NULL;
			TrackerSparqlVariable* _tmp55_ = NULL;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp50_ = tracker_sparql_expression_get_context (self);
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = _tmp50_;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp52_ = tracker_sparql_expression_get_last_string (self, 0);
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp53_ = _tmp52_;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp54_ = tracker_sparql_context_get_variable (_tmp51_, _tmp53_);
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp55_ = _g_object_ref0 (_tmp54_);
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp55_;
#line 176 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp53_);
#line 2242 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlContext* _tmp56_ = NULL;
			TrackerSparqlContext* _tmp57_ = NULL;
			gchar* _tmp58_ = NULL;
			gchar* _tmp59_ = NULL;
			gchar* _tmp60_ = NULL;
			gchar* _tmp61_ = NULL;
			TrackerSparqlVariable* _tmp62_ = NULL;
			TrackerSparqlVariable* _tmp63_ = NULL;
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 2264 "tracker-sparql-expression.c"
				} else {
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 180 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 2274 "tracker-sparql-expression.c"
				}
			}
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp56_ = tracker_sparql_expression_get_context (self);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp57_ = _tmp56_;
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp58_ = tracker_sparql_expression_get_last_string (self, 0);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp59_ = _tmp58_;
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp60_ = string_substring (_tmp59_, (glong) 1, (glong) (-1));
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp61_ = _tmp60_;
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp62_ = tracker_sparql_context_get_variable (_tmp57_, _tmp61_);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp63_ = _g_object_ref0 (_tmp62_);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp63_;
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp61_);
#line 181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp59_);
#line 2301 "tracker-sparql-expression.c"
		}
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp64_ = sql;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp65_ = variable;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp66_ = tracker_sparql_variable_get_sql_expression (_tmp65_);
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp67_ = _tmp66_;
#line 183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append_printf (_tmp64_, " AS %s", _tmp67_);
#line 184 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		as_handled = TRUE;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp68_ = subquery;
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp68_) {
#line 2319 "tracker-sparql-expression.c"
			TrackerSparqlVariableBinding* binding = NULL;
			TrackerSparqlVariableBinding* _tmp69_ = NULL;
			TrackerSparqlVariableBinding* _tmp70_ = NULL;
			TrackerPropertyType _tmp71_ = 0;
			TrackerSparqlVariableBinding* _tmp72_ = NULL;
			TrackerSparqlVariable* _tmp73_ = NULL;
			TrackerSparqlVariableBinding* _tmp74_ = NULL;
			TrackerSparqlVariable* _tmp75_ = NULL;
			const gchar* _tmp76_ = NULL;
			const gchar* _tmp77_ = NULL;
			TrackerSparqlPattern* _tmp78_ = NULL;
			TrackerSparqlPattern* _tmp79_ = NULL;
			GString* _tmp80_ = NULL;
			GString* _tmp81_ = NULL;
			TrackerSparqlVariableBinding* _tmp82_ = NULL;
#line 187 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp69_ = tracker_sparql_variable_binding_new ();
#line 187 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			binding = _tmp69_;
#line 188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp70_ = binding;
#line 188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp71_ = type;
#line 188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			((TrackerSparqlDataBinding*) _tmp70_)->data_type = _tmp71_;
#line 189 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp72_ = binding;
#line 189 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp73_ = variable;
#line 189 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp72_->variable = _tmp73_;
#line 190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp74_ = binding;
#line 190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp75_ = variable;
#line 190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp76_ = tracker_sparql_variable_get_sql_expression (_tmp75_);
#line 190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp77_ = _tmp76_;
#line 190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_data_binding_set_sql_expression ((TrackerSparqlDataBinding*) _tmp74_, _tmp77_);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp78_ = tracker_sparql_expression_get_pattern (self);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp79_ = _tmp78_;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp80_ = g_string_new ("");
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp81_ = _tmp80_;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp82_ = binding;
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_pattern_add_variable_binding (_tmp79_, _tmp81_, _tmp82_, TRACKER_SPARQL_VARIABLE_STATE_BOUND);
#line 191 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_string_free0 (_tmp81_);
#line 186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (binding);
#line 2377 "tracker-sparql-expression.c"
		}
	}
#line 195 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp83_ = tracker_sparql_expression_get_pattern (self);
#line 195 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp84_ = _tmp83_;
#line 195 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp85_ = _tmp84_->fts_subject;
#line 195 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp85_ != NULL) {
#line 2388 "tracker-sparql-expression.c"
		TrackerSparqlVariable* _tmp86_ = NULL;
		const gchar* _tmp94_ = NULL;
#line 196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp86_ = variable;
#line 196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp86_ == NULL) {
#line 2395 "tracker-sparql-expression.c"
			TrackerSparqlContext* _tmp87_ = NULL;
			TrackerSparqlContext* _tmp88_ = NULL;
			gint _tmp89_ = 0;
			gchar* _tmp90_ = NULL;
			gchar* _tmp91_ = NULL;
			TrackerSparqlVariable* _tmp92_ = NULL;
			TrackerSparqlVariable* _tmp93_ = NULL;
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp87_ = tracker_sparql_expression_get_context (self);
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp88_ = _tmp87_;
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp89_ = variable_index;
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp90_ = g_strdup_printf ("var%d", _tmp89_ + 1);
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp91_ = _tmp90_;
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp92_ = tracker_sparql_context_get_variable (_tmp88_, _tmp91_);
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp93_ = _g_object_ref0 (_tmp92_);
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp93_;
#line 199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp91_);
#line 2423 "tracker-sparql-expression.c"
		}
#line 202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp94_ = self->priv->fts_sql;
#line 202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp94_ == NULL) {
#line 2429 "tracker-sparql-expression.c"
			TrackerSparqlPattern* _tmp95_ = NULL;
			TrackerSparqlPattern* _tmp96_ = NULL;
			TrackerSparqlPattern* _tmp97_ = NULL;
			TrackerSparqlPattern* _tmp98_ = NULL;
			gchar** _tmp99_ = NULL;
			gint _tmp99__length1 = 0;
			TrackerSparqlVariable* _tmp100_ = NULL;
			const gchar* _tmp101_ = NULL;
			const gchar* _tmp102_ = NULL;
			gchar* _tmp103_ = NULL;
			gboolean _tmp104_ = FALSE;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp95_ = tracker_sparql_expression_get_pattern (self);
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp96_ = _tmp95_;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp97_ = tracker_sparql_expression_get_pattern (self);
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp98_ = _tmp97_;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp99_ = _tmp98_->fts_variables;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp99__length1 = _tmp98_->fts_variables_length1;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp100_ = variable;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp101_ = tracker_sparql_variable_get_sql_expression (_tmp100_);
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp102_ = _tmp101_;
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp103_ = g_strdup (_tmp102_);
#line 203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_vala_array_add1 (&_tmp96_->fts_variables, &_tmp96_->fts_variables_length1, &_tmp96_->_fts_variables_size_, _tmp103_);
#line 205 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp104_ = as_handled;
#line 205 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp104_ == FALSE) {
#line 2467 "tracker-sparql-expression.c"
				GString* _tmp105_ = NULL;
				TrackerSparqlVariable* _tmp106_ = NULL;
				const gchar* _tmp107_ = NULL;
				const gchar* _tmp108_ = NULL;
#line 206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp105_ = sql;
#line 206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp106_ = variable;
#line 206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp107_ = tracker_sparql_variable_get_sql_expression (_tmp106_);
#line 206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp108_ = _tmp107_;
#line 206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append_printf (_tmp105_, " AS %s", _tmp108_);
#line 2482 "tracker-sparql-expression.c"
			}
		} else {
			TrackerSparqlPattern* _tmp109_ = NULL;
			TrackerSparqlPattern* _tmp110_ = NULL;
			TrackerSparqlPattern* _tmp111_ = NULL;
			TrackerSparqlPattern* _tmp112_ = NULL;
			gchar** _tmp113_ = NULL;
			gint _tmp113__length1 = 0;
			const gchar* _tmp114_ = NULL;
			gchar* _tmp115_ = NULL;
			TrackerSparqlPattern* _tmp116_ = NULL;
			TrackerSparqlPattern* _tmp117_ = NULL;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp109_ = tracker_sparql_expression_get_pattern (self);
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp110_ = _tmp109_;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp111_ = tracker_sparql_expression_get_pattern (self);
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp112_ = _tmp111_;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp113_ = _tmp112_->fts_variables;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp113__length1 = _tmp112_->fts_variables_length1;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp114_ = self->priv->fts_sql;
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp115_ = g_strdup (_tmp114_);
#line 209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_vala_array_add2 (&_tmp110_->fts_variables, &_tmp110_->fts_variables_length1, &_tmp110_->_fts_variables_size_, _tmp115_);
#line 210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp116_ = tracker_sparql_expression_get_pattern (self);
#line 210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp117_ = _tmp116_;
#line 210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp117_->queries_fts_data = TRUE;
#line 2519 "tracker-sparql-expression.c"
		}
	}
#line 214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp118_ = expect_close_parens;
#line 214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp118_) {
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 2538 "tracker-sparql-expression.c"
			} else {
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 2548 "tracker-sparql-expression.c"
			}
		}
	}
#line 218 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp119_ = variable;
#line 218 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp119_ != NULL) {
#line 2556 "tracker-sparql-expression.c"
		gint state = 0;
		TrackerSparqlContext* _tmp120_ = NULL;
		TrackerSparqlContext* _tmp121_ = NULL;
		GHashTable* _tmp122_ = NULL;
		TrackerSparqlVariable* _tmp123_ = NULL;
		gconstpointer _tmp124_ = NULL;
		gint _tmp125_ = 0;
		TrackerSparqlContext* _tmp126_ = NULL;
		TrackerSparqlContext* _tmp127_ = NULL;
		GHashTable* _tmp128_ = NULL;
		TrackerSparqlVariable* _tmp129_ = NULL;
		TrackerSparqlVariable* _tmp130_ = NULL;
		gint _tmp131_ = 0;
		TrackerSparqlContext* _tmp132_ = NULL;
		TrackerSparqlContext* _tmp133_ = NULL;
		TrackerSparqlContext* _tmp134_ = NULL;
		TrackerSparqlContext* _tmp135_ = NULL;
		gchar** _tmp136_ = NULL;
		gint _tmp136__length1 = 0;
		TrackerSparqlVariable* _tmp137_ = NULL;
		const gchar* _tmp138_ = NULL;
		const gchar* _tmp139_ = NULL;
		gchar* _tmp140_ = NULL;
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp120_ = tracker_sparql_expression_get_context (self);
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp121_ = _tmp120_;
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp122_ = _tmp121_->var_set;
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp123_ = variable;
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp124_ = g_hash_table_lookup (_tmp122_, _tmp123_);
#line 219 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		state = (gint) ((gintptr) _tmp124_);
#line 220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp125_ = state;
#line 220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp125_ == 0) {
#line 221 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			state = (gint) TRACKER_SPARQL_VARIABLE_STATE_BOUND;
#line 2598 "tracker-sparql-expression.c"
		}
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp126_ = tracker_sparql_expression_get_context (self);
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp127_ = _tmp126_;
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp128_ = _tmp127_->select_var_set;
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp129_ = variable;
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp130_ = _g_object_ref0 (_tmp129_);
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp131_ = state;
#line 223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_hash_table_insert (_tmp128_, _tmp130_, (gpointer) ((gintptr) _tmp131_));
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp132_ = tracker_sparql_expression_get_context (self);
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp133_ = _tmp132_;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp134_ = tracker_sparql_expression_get_context (self);
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp135_ = _tmp134_;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp136_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp136__length1 = G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names_length1;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp137_ = variable;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp138_ = tracker_sparql_variable_get_name (_tmp137_);
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp139_ = _tmp138_;
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp140_ = g_strdup (_tmp139_);
#line 225 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_vala_array_add3 (&G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names, &G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names_length1, &G_TYPE_CHECK_INSTANCE_CAST (_tmp133_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->_variable_names_size_, _tmp140_);
#line 2636 "tracker-sparql-expression.c"
	} else {
		TrackerSparqlContext* _tmp141_ = NULL;
		TrackerSparqlContext* _tmp142_ = NULL;
		TrackerSparqlContext* _tmp143_ = NULL;
		TrackerSparqlContext* _tmp144_ = NULL;
		gchar** _tmp145_ = NULL;
		gint _tmp145__length1 = 0;
		gint _tmp146_ = 0;
		gchar* _tmp147_ = NULL;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp141_ = tracker_sparql_expression_get_context (self);
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp142_ = _tmp141_;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp143_ = tracker_sparql_expression_get_context (self);
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp144_ = _tmp143_;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp145_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp145__length1 = G_TYPE_CHECK_INSTANCE_CAST (_tmp144_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names_length1;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp146_ = variable_index;
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp147_ = g_strdup_printf ("var%d", _tmp146_ + 1);
#line 227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_vala_array_add4 (&G_TYPE_CHECK_INSTANCE_CAST (_tmp142_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names, &G_TYPE_CHECK_INSTANCE_CAST (_tmp142_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->variable_names_length1, &G_TYPE_CHECK_INSTANCE_CAST (_tmp142_, TRACKER_SPARQL_TYPE_SELECT_CONTEXT, TrackerSparqlSelectContext)->_variable_names_size_, _tmp147_);
#line 2664 "tracker-sparql-expression.c"
	}
#line 230 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (self->priv->fts_sql);
#line 230 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self->priv->fts_sql = NULL;
#line 232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_object_unref0 (variable);
#line 232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 2676 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_expression_as_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error) {
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType _tmp2_ = 0;
	GString* _tmp3_ = NULL;
	TrackerPropertyType _tmp4_ = 0;
	GError * _inner_error_ = NULL;
#line 235 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 235 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 236 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 236 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 236 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp4_;
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2712 "tracker-sparql-expression.c"
		} else {
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2720 "tracker-sparql-expression.c"
		}
	}
#line 237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp2_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 2725 "tracker-sparql-expression.c"
		GString* _tmp5_ = NULL;
		GString* _tmp6_ = NULL;
#line 239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp5_, (gssize) begin, "(SELECT Uri FROM Resource WHERE ID = ");
#line 240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp6_, ")");
#line 2736 "tracker-sparql-expression.c"
	}
}


void tracker_sparql_expression_translate_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ASC, &_inner_error_);
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2761 "tracker-sparql-expression.c"
		} else {
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2769 "tracker-sparql-expression.c"
		}
	}
#line 245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 2774 "tracker-sparql-expression.c"
		GString* _tmp2_ = NULL;
		GString* _tmp3_ = NULL;
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp2_, &_inner_error_);
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2789 "tracker-sparql-expression.c"
			} else {
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 246 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2797 "tracker-sparql-expression.c"
			}
		}
#line 247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = sql;
#line 247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp3_, " ASC");
#line 2804 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DESC, &_inner_error_);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp5_;
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2820 "tracker-sparql-expression.c"
			} else {
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2828 "tracker-sparql-expression.c"
			}
		}
#line 248 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp4_) {
#line 2833 "tracker-sparql-expression.c"
			GString* _tmp6_ = NULL;
			GString* _tmp7_ = NULL;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = sql;
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp6_, &_inner_error_);
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2848 "tracker-sparql-expression.c"
				} else {
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 249 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2856 "tracker-sparql-expression.c"
				}
			}
#line 250 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = sql;
#line 250 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp7_, " DESC");
#line 2863 "tracker-sparql-expression.c"
		} else {
			GString* _tmp8_ = NULL;
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = sql;
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp8_, &_inner_error_);
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2878 "tracker-sparql-expression.c"
				} else {
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2886 "tracker-sparql-expression.c"
				}
			}
		}
	}
}


static void tracker_sparql_expression_translate_bound_call (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_ = NULL;
	GString* _tmp1_ = NULL;
	GString* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_BOUND, &_inner_error_);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2913 "tracker-sparql-expression.c"
		} else {
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2921 "tracker-sparql-expression.c"
		}
	}
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2934 "tracker-sparql-expression.c"
		} else {
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 258 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2942 "tracker-sparql-expression.c"
		}
	}
#line 259 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 259 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(");
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp1_, &_inner_error_);
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2961 "tracker-sparql-expression.c"
		} else {
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2969 "tracker-sparql-expression.c"
		}
	}
#line 261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " IS NOT NULL)");
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2986 "tracker-sparql-expression.c"
		} else {
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2994 "tracker-sparql-expression.c"
		}
	}
}


static TrackerPropertyType tracker_sparql_expression_translate_if_call (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_ = NULL;
	GString* _tmp1_ = NULL;
	GString* _tmp2_ = NULL;
	TrackerPropertyType type = 0;
	GString* _tmp3_ = NULL;
	TrackerPropertyType _tmp4_ = 0;
	GString* _tmp5_ = NULL;
	GString* _tmp6_ = NULL;
	GString* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
#line 265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IF, &_inner_error_);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3026 "tracker-sparql-expression.c"
		} else {
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3034 "tracker-sparql-expression.c"
		}
	}
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3047 "tracker-sparql-expression.c"
		} else {
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 267 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3055 "tracker-sparql-expression.c"
		}
	}
#line 270 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 270 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(CASE ");
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp1_, &_inner_error_);
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3074 "tracker-sparql-expression.c"
		} else {
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3082 "tracker-sparql-expression.c"
		}
	}
#line 274 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 274 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " WHEN 1 THEN ");
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3099 "tracker-sparql-expression.c"
		} else {
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3107 "tracker-sparql-expression.c"
		}
	}
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	type = _tmp4_;
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3124 "tracker-sparql-expression.c"
		} else {
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3132 "tracker-sparql-expression.c"
		}
	}
#line 279 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 279 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp5_, " WHEN 0 THEN ");
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3149 "tracker-sparql-expression.c"
		} else {
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3157 "tracker-sparql-expression.c"
		}
	}
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = sql;
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp6_, &_inner_error_);
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3172 "tracker-sparql-expression.c"
		} else {
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3180 "tracker-sparql-expression.c"
		}
	}
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = sql;
#line 283 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp7_, " ELSE NULL END)");
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3197 "tracker-sparql-expression.c"
		} else {
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 3205 "tracker-sparql-expression.c"
		}
	}
#line 287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 3212 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_regex (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_ = NULL;
	GString* _tmp1_ = NULL;
	GString* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GString* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GString* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	GString* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
#line 290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_REGEX, &_inner_error_);
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3244 "tracker-sparql-expression.c"
		} else {
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3252 "tracker-sparql-expression.c"
		}
	}
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3265 "tracker-sparql-expression.c"
		} else {
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3273 "tracker-sparql-expression.c"
		}
	}
#line 293 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 293 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "SparqlRegex(");
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression_as_string (self, _tmp1_, &_inner_error_);
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3292 "tracker-sparql-expression.c"
		} else {
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3300 "tracker-sparql-expression.c"
		}
	}
#line 295 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 295 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, ", ");
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3317 "tracker-sparql-expression.c"
		} else {
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3325 "tracker-sparql-expression.c"
		}
	}
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp4_;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3340 "tracker-sparql-expression.c"
		} else {
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3348 "tracker-sparql-expression.c"
		}
	}
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp3_);
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = _tmp6_;
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp5_, _tmp7_);
#line 300 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp7_);
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp8_ = sql;
#line 301 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp8_, ", ");
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = _tmp10_;
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp3_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3379 "tracker-sparql-expression.c"
		} else {
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp3_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3389 "tracker-sparql-expression.c"
		}
	}
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp9_) {
#line 3394 "tracker-sparql-expression.c"
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		GString* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp12_;
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp3_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3414 "tracker-sparql-expression.c"
			} else {
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp3_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3424 "tracker-sparql-expression.c"
			}
		}
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = sql;
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp11_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = _tmp14_;
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp13_, _tmp15_);
#line 305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp15_);
#line 302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp11_);
#line 3439 "tracker-sparql-expression.c"
	} else {
		GString* _tmp16_ = NULL;
#line 307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp16_ = sql;
#line 307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp16_, "''");
#line 3446 "tracker-sparql-expression.c"
	}
#line 309 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp17_ = sql;
#line 309 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp17_, ")");
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp3_);
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3464 "tracker-sparql-expression.c"
		} else {
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp3_);
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3474 "tracker-sparql-expression.c"
		}
	}
#line 290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp3_);
#line 3479 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_exists (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_ = NULL;
	TrackerSparqlPattern* _tmp1_ = NULL;
	TrackerSparqlPattern* _tmp2_ = NULL;
	GString* _tmp3_ = NULL;
	GString* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
#line 313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 314 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 314 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(");
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_get_pattern (self);
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_pattern_translate_exists (_tmp2_, _tmp3_, &_inner_error_);
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3514 "tracker-sparql-expression.c"
		} else {
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3522 "tracker-sparql-expression.c"
		}
	}
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp4_, ")");
#line 3529 "tracker-sparql-expression.c"
}


void tracker_sparql_expression_append_expression_as_string (GString* sql, const gchar* expression, TrackerPropertyType type) {
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	GString* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GString* _tmp4_ = NULL;
	TrackerPropertyType _tmp5_ = 0;
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 319 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (expression != NULL);
#line 320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 321 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 321 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = expression;
#line 321 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, _tmp3_);
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = type;
#line 322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_convert_expression_to_string (_tmp4_, _tmp5_, begin);
#line 3563 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_convert_expression_to_string (GString* sql, TrackerPropertyType type, glong begin) {
	TrackerPropertyType _tmp0_ = 0;
#line 325 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = type;
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_STRING:
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_INTEGER:
#line 3579 "tracker-sparql-expression.c"
		{
#line 332 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3583 "tracker-sparql-expression.c"
		}
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_RESOURCE:
#line 3587 "tracker-sparql-expression.c"
		{
			GString* _tmp1_ = NULL;
			glong _tmp2_ = 0L;
			GString* _tmp3_ = NULL;
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = sql;
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = begin;
#line 335 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp1_, (gssize) _tmp2_, "(SELECT Uri FROM Resource WHERE ID = ");
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = sql;
#line 336 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp3_, ")");
#line 337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3604 "tracker-sparql-expression.c"
		}
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_BOOLEAN:
#line 3608 "tracker-sparql-expression.c"
		{
			GString* _tmp4_ = NULL;
			glong _tmp5_ = 0L;
			GString* _tmp6_ = NULL;
#line 340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = begin;
#line 340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp4_, (gssize) _tmp5_, "CASE ");
#line 341 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = sql;
#line 341 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp6_, " WHEN 1 THEN 'true' WHEN 0 THEN 'false' ELSE NULL END");
#line 342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3625 "tracker-sparql-expression.c"
		}
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_DATE:
#line 3629 "tracker-sparql-expression.c"
		{
			GString* _tmp7_ = NULL;
			glong _tmp8_ = 0L;
			GString* _tmp9_ = NULL;
#line 345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = sql;
#line 345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = begin;
#line 345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp7_, (gssize) _tmp8_, "strftime (\"%Y-%m-%d\", ");
#line 346 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 346 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp9_, ", \"unixepoch\")");
#line 347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3646 "tracker-sparql-expression.c"
		}
#line 326 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_DATETIME:
#line 3650 "tracker-sparql-expression.c"
		{
			GString* _tmp10_ = NULL;
			glong _tmp11_ = 0L;
			GString* _tmp12_ = NULL;
#line 350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = sql;
#line 350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = begin;
#line 350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp10_, (gssize) _tmp11_, "SparqlFormatTime (");
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = sql;
#line 351 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp12_, ")");
#line 352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3667 "tracker-sparql-expression.c"
		}
		default:
		{
			GString* _tmp13_ = NULL;
			glong _tmp14_ = 0L;
			GString* _tmp15_ = NULL;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = sql;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = begin;
#line 355 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp13_, (gssize) _tmp14_, "CAST (");
#line 356 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = sql;
#line 356 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp15_, " AS TEXT)");
#line 357 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3686 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_expression_as_string (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerSparqlTokenType _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 361 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 361 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IRI_REF:
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX:
#line 362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COLON:
#line 3709 "tracker-sparql-expression.c"
		{
			TrackerSparqlLiteralBinding* binding = NULL;
			TrackerSparqlLiteralBinding* _tmp1_ = NULL;
			gboolean is_var = FALSE;
			gchar* _tmp2_ = NULL;
			TrackerSparqlPattern* _tmp3_ = NULL;
			TrackerSparqlPattern* _tmp4_ = NULL;
			gboolean _tmp5_ = FALSE;
			gchar* _tmp6_ = NULL;
			TrackerSparqlLiteralBinding* _tmp7_ = NULL;
			gchar* _tmp8_ = NULL;
			gboolean _tmp9_ = FALSE;
			gboolean _tmp10_ = FALSE;
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = tracker_sparql_literal_binding_new ();
#line 367 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			binding = _tmp1_;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = tracker_sparql_expression_get_pattern (self);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = _tmp3_;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = tracker_sparql_pattern_parse_var_or_term (_tmp4_, NULL, &_tmp5_, &_inner_error_);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			is_var = _tmp5_;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = _tmp6_;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3747 "tracker-sparql-expression.c"
				} else {
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3757 "tracker-sparql-expression.c"
				}
			}
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = binding;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = _tmp2_;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = NULL;
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp7_->literal);
#line 369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_->literal = _tmp8_;
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = _tmp10_;
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_tmp2_);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3786 "tracker-sparql-expression.c"
				} else {
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_tmp2_);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3798 "tracker-sparql-expression.c"
				}
			}
#line 370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp9_) {
#line 3803 "tracker-sparql-expression.c"
				glong begin = 0L;
				GString* _tmp11_ = NULL;
				gssize _tmp12_ = 0L;
				TrackerPropertyType type = 0;
				GString* _tmp13_ = NULL;
				TrackerSparqlLiteralBinding* _tmp14_ = NULL;
				const gchar* _tmp15_ = NULL;
				TrackerPropertyType _tmp16_ = 0;
				GString* _tmp17_ = NULL;
				TrackerPropertyType _tmp18_ = 0;
				glong _tmp19_ = 0L;
#line 372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = sql;
#line 372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp12_ = _tmp11_->len;
#line 372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				begin = (glong) _tmp12_;
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = sql;
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = binding;
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = _tmp14_->literal;
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = tracker_sparql_expression_translate_function (self, _tmp13_, _tmp15_, &_inner_error_);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp16_;
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp2_);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3843 "tracker-sparql-expression.c"
					} else {
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp2_);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3855 "tracker-sparql-expression.c"
					}
				}
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp2_);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3872 "tracker-sparql-expression.c"
					} else {
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp2_);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3884 "tracker-sparql-expression.c"
					}
				}
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = sql;
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = type;
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp19_ = begin;
#line 375 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_convert_expression_to_string (_tmp17_, _tmp18_, _tmp19_);
#line 3895 "tracker-sparql-expression.c"
			} else {
				GString* _tmp20_ = NULL;
				TrackerSparqlQuery* _tmp21_ = NULL;
				TrackerSparqlLiteralBinding* _tmp22_ = NULL;
				TrackerSparqlLiteralBinding* _tmp23_ = NULL;
#line 377 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = sql;
#line 377 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp20_, "?");
#line 378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = self->priv->query;
#line 378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp22_ = binding;
#line 378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = _g_object_ref0 (_tmp22_);
#line 378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_->bindings = g_list_append (_tmp21_->bindings, _tmp23_);
#line 3913 "tracker-sparql-expression.c"
			}
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp2_);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (binding);
#line 380 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3921 "tracker-sparql-expression.c"
		}
		default:
		{
			glong begin = 0L;
			GString* _tmp24_ = NULL;
			gssize _tmp25_ = 0L;
			TrackerPropertyType type = 0;
			GString* _tmp26_ = NULL;
			TrackerPropertyType _tmp27_ = 0;
			GString* _tmp28_ = NULL;
			TrackerPropertyType _tmp29_ = 0;
			glong _tmp30_ = 0L;
#line 382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = sql;
#line 382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = _tmp24_->len;
#line 382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			begin = (glong) _tmp25_;
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = sql;
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = tracker_sparql_expression_translate_expression (self, _tmp26_, &_inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp27_;
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3954 "tracker-sparql-expression.c"
				} else {
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
					g_clear_error (&_inner_error_);
#line 383 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3962 "tracker-sparql-expression.c"
				}
			}
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = sql;
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = type;
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp30_ = begin;
#line 384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_convert_expression_to_string (_tmp28_, _tmp29_, _tmp30_);
#line 385 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3975 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_str (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 389 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_STR, &_inner_error_);
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3998 "tracker-sparql-expression.c"
		} else {
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 390 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4006 "tracker-sparql-expression.c"
		}
	}
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4019 "tracker-sparql-expression.c"
		} else {
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4027 "tracker-sparql-expression.c"
		}
	}
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression_as_string (self, _tmp0_, &_inner_error_);
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4042 "tracker-sparql-expression.c"
		} else {
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 393 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4050 "tracker-sparql-expression.c"
		}
	}
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4063 "tracker-sparql-expression.c"
		} else {
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4071 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_isuri (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GString* _tmp2_ = NULL;
	TrackerSparqlLiteralBinding* new_binding = NULL;
	TrackerSparqlLiteralBinding* _tmp3_ = NULL;
	TrackerSparqlLiteralBinding* _tmp4_ = NULL;
	TrackerSparqlTokenType _tmp5_ = 0;
	TrackerSparqlQuery* _tmp17_ = NULL;
	TrackerSparqlLiteralBinding* _tmp18_ = NULL;
	TrackerSparqlLiteralBinding* _tmp19_ = NULL;
	GError * _inner_error_ = NULL;
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ISURI, &_inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4105 "tracker-sparql-expression.c"
		} else {
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
			g_clear_error (&_inner_error_);
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4113 "tracker-sparql-expression.c"
		}
	}
#line 399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp0_) {
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_ISIRI, &_inner_error_);
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4128 "tracker-sparql-expression.c"
			} else {
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4136 "tracker-sparql-expression.c"
			}
		}
	}
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4150 "tracker-sparql-expression.c"
		} else {
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4158 "tracker-sparql-expression.c"
		}
	}
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, "?");
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_literal_binding_new ();
#line 406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	new_binding = _tmp3_;
#line 407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = new_binding;
#line 407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	((TrackerSparqlDataBinding*) _tmp4_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = tracker_sparql_expression_current (self);
#line 409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp5_ == TRACKER_SPARQL_TOKEN_TYPE_IRI_REF) {
#line 4177 "tracker-sparql-expression.c"
		TrackerSparqlLiteralBinding* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = new_binding;
#line 410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = g_strdup ("1");
#line 410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp6_->literal);
#line 410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_->literal = _tmp7_;
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_next (self, &_inner_error_);
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4200 "tracker-sparql-expression.c"
			} else {
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4210 "tracker-sparql-expression.c"
			}
		}
	} else {
		TrackerPropertyType _tmp8_ = 0;
		GString* _tmp9_ = NULL;
		GString* _tmp10_ = NULL;
		TrackerPropertyType _tmp11_ = 0;
		TrackerPropertyType _tmp12_ = 0;
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = g_string_new ("");
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = _tmp9_;
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = tracker_sparql_expression_translate_expression (self, _tmp10_, &_inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _tmp11_;
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_string_free0 (_tmp10_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = _tmp12_;
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4241 "tracker-sparql-expression.c"
			} else {
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
				g_clear_error (&_inner_error_);
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4251 "tracker-sparql-expression.c"
			}
		}
#line 412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp8_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 4256 "tracker-sparql-expression.c"
			TrackerSparqlLiteralBinding* _tmp13_ = NULL;
			gchar* _tmp14_ = NULL;
#line 413 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = new_binding;
#line 413 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = g_strdup ("1");
#line 413 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp13_->literal);
#line 413 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_->literal = _tmp14_;
#line 4267 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlLiteralBinding* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
#line 415 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = new_binding;
#line 415 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = g_strdup ("0");
#line 415 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp15_->literal);
#line 415 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_->literal = _tmp16_;
#line 4279 "tracker-sparql-expression.c"
		}
	}
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp17_ = self->priv->query;
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp18_ = new_binding;
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = _g_object_ref0 (_tmp18_);
#line 418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp17_->bindings = g_list_append (_tmp17_->bindings, _tmp19_);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (new_binding);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4302 "tracker-sparql-expression.c"
		} else {
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (new_binding);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 420 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4312 "tracker-sparql-expression.c"
		}
	}
#line 398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_object_unref0 (new_binding);
#line 4317 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_datatype (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_DATATYPE, &_inner_error_);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4339 "tracker-sparql-expression.c"
		} else {
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
			g_clear_error (&_inner_error_);
#line 424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4347 "tracker-sparql-expression.c"
		}
	}
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4360 "tracker-sparql-expression.c"
		} else {
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4368 "tracker-sparql-expression.c"
		}
	}
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4383 "tracker-sparql-expression.c"
		} else {
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4391 "tracker-sparql-expression.c"
		}
	}
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 4396 "tracker-sparql-expression.c"
		gchar* variable_name = NULL;
		gchar* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		TrackerSparqlVariable* variable = NULL;
		TrackerSparqlContext* _tmp6_ = NULL;
		TrackerSparqlContext* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		TrackerSparqlVariable* _tmp9_ = NULL;
		TrackerSparqlVariable* _tmp10_ = NULL;
		TrackerSparqlVariable* _tmp11_ = NULL;
		TrackerSparqlVariableBinding* _tmp12_ = NULL;
		gboolean _tmp20_ = FALSE;
		TrackerSparqlVariable* _tmp21_ = NULL;
		TrackerSparqlVariableBinding* _tmp22_ = NULL;
		TrackerPropertyType _tmp23_ = 0;
		GString* _tmp28_ = NULL;
		TrackerSparqlLiteralBinding* new_binding = NULL;
		TrackerSparqlLiteralBinding* _tmp29_ = NULL;
		TrackerSparqlLiteralBinding* _tmp30_ = NULL;
		TrackerSparqlVariable* _tmp31_ = NULL;
		TrackerSparqlVariableBinding* _tmp32_ = NULL;
		TrackerClass* _tmp33_ = NULL;
		const gchar* _tmp34_ = NULL;
		const gchar* _tmp35_ = NULL;
		gchar* _tmp36_ = NULL;
		TrackerSparqlQuery* _tmp37_ = NULL;
		TrackerSparqlLiteralBinding* _tmp38_ = NULL;
		TrackerSparqlLiteralBinding* _tmp39_ = NULL;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_last_string (self, 0);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp2_;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = string_substring (_tmp3_, (glong) 1, (glong) (-1));
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp3_);
#line 428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable_name = _tmp5_;
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_expression_get_context (self);
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp6_;
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = variable_name;
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = tracker_sparql_context_get_variable (_tmp7_, _tmp8_);
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = _g_object_ref0 (_tmp9_);
#line 429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable = _tmp10_;
#line 431 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = variable;
#line 431 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _tmp11_->binding;
#line 431 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp12_ == NULL) {
#line 4457 "tracker-sparql-expression.c"
			TrackerSparqlVariable* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			const gchar* _tmp15_ = NULL;
			gchar* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			GError* _tmp18_ = NULL;
			GError* _tmp19_ = NULL;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = variable;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = tracker_sparql_variable_get_name (_tmp13_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = _tmp14_;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = g_strdup_printf ("`%s' is not a valid variable", _tmp15_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = _tmp16_;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = tracker_sparql_expression_get_error (self, _tmp17_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp17_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp19_;
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4493 "tracker-sparql-expression.c"
			} else {
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
				g_clear_error (&_inner_error_);
#line 432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4505 "tracker-sparql-expression.c"
			}
		}
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp21_ = variable;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp22_ = _tmp21_->binding;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp23_ = ((TrackerSparqlDataBinding*) _tmp22_)->data_type;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp23_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = TRUE;
#line 4518 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlVariable* _tmp24_ = NULL;
			TrackerSparqlVariableBinding* _tmp25_ = NULL;
			TrackerClass* _tmp26_ = NULL;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = variable;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = _tmp24_->binding;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = _tmp25_->type;
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp26_ == NULL;
#line 4531 "tracker-sparql-expression.c"
		}
#line 435 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp20_) {
#line 4535 "tracker-sparql-expression.c"
			GError* _tmp27_ = NULL;
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = tracker_sparql_expression_get_error (self, "Invalid FILTER");
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp27_;
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4551 "tracker-sparql-expression.c"
			} else {
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 4563 "tracker-sparql-expression.c"
			}
		}
#line 439 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp28_ = sql;
#line 439 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp28_, "(SELECT ID FROM Resource WHERE Uri = ?)");
#line 441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp29_ = tracker_sparql_literal_binding_new ();
#line 441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		new_binding = _tmp29_;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp30_ = new_binding;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp31_ = variable;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp32_ = _tmp31_->binding;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp33_ = _tmp32_->type;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp34_ = tracker_class_get_uri (_tmp33_);
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp35_ = _tmp34_;
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp36_ = g_strdup (_tmp35_);
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp30_->literal);
#line 442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp30_->literal = _tmp36_;
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp37_ = self->priv->query;
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp38_ = new_binding;
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp39_ = _g_object_ref0 (_tmp38_);
#line 443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp37_->bindings = g_list_append (_tmp37_->bindings, _tmp39_);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (new_binding);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (variable);
#line 427 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (variable_name);
#line 4606 "tracker-sparql-expression.c"
	} else {
		GError* _tmp40_ = NULL;
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp40_ = tracker_sparql_expression_get_error (self, "Invalid FILTER");
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_inner_error_ = _tmp40_;
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4619 "tracker-sparql-expression.c"
		} else {
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4627 "tracker-sparql-expression.c"
		}
	}
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4640 "tracker-sparql-expression.c"
		} else {
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4648 "tracker-sparql-expression.c"
		}
	}
}


static gchar* g_unichar_to_string (gunichar self) {
	gchar* result = NULL;
	gchar* str = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 857 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = g_new0 (gchar, 7);
#line 857 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	str = (gchar*) _tmp0_;
#line 858 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = str;
#line 858 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	g_unichar_to_utf8 (self, _tmp1_);
#line 859 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	result = str;
#line 859 "/opt/gnome/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 4671 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_function (TrackerSparqlExpression* self, GString* sql, const gchar* uri, GError** error) {
	TrackerPropertyType result = 0;
	const gchar* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 452 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 452 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 452 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (uri != NULL, 0);
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = uri;
#line 453 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (g_strcmp0 (_tmp0_, TRACKER_SPARQL_EXPRESSION_XSD_NS "string") == 0) {
#line 4689 "tracker-sparql-expression.c"
		GString* _tmp1_ = NULL;
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression_as_string (self, _tmp1_, &_inner_error_);
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 4703 "tracker-sparql-expression.c"
			} else {
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 455 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 4711 "tracker-sparql-expression.c"
			}
		}
#line 457 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_STRING;
#line 457 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 4718 "tracker-sparql-expression.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = uri;
#line 458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (g_strcmp0 (_tmp2_, TRACKER_SPARQL_EXPRESSION_XSD_NS "integer") == 0) {
#line 4725 "tracker-sparql-expression.c"
			GString* _tmp3_ = NULL;
			GString* _tmp4_ = NULL;
			GString* _tmp5_ = NULL;
#line 460 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = sql;
#line 460 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp3_, "CAST (");
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_string (self, _tmp4_, &_inner_error_);
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 4745 "tracker-sparql-expression.c"
				} else {
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 4753 "tracker-sparql-expression.c"
				}
			}
#line 462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = sql;
#line 462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp5_, " AS INTEGER)");
#line 464 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 464 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 4764 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp6_ = NULL;
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = uri;
#line 465 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (g_strcmp0 (_tmp6_, TRACKER_SPARQL_EXPRESSION_XSD_NS "double") == 0) {
#line 4771 "tracker-sparql-expression.c"
				GString* _tmp7_ = NULL;
				GString* _tmp8_ = NULL;
				GString* _tmp9_ = NULL;
#line 467 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp7_ = sql;
#line 467 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp7_, "CAST (");
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = sql;
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_translate_expression_as_string (self, _tmp8_, &_inner_error_);
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 4791 "tracker-sparql-expression.c"
					} else {
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 4799 "tracker-sparql-expression.c"
					}
				}
#line 469 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp9_ = sql;
#line 469 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp9_, " AS REAL)");
#line 471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 4810 "tracker-sparql-expression.c"
			} else {
				const gchar* _tmp10_ = NULL;
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp10_ = uri;
#line 472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (g_strcmp0 (_tmp10_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "case-fold") == 0) {
#line 4817 "tracker-sparql-expression.c"
					GString* _tmp11_ = NULL;
					GString* _tmp12_ = NULL;
					GString* _tmp13_ = NULL;
#line 474 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp11_ = sql;
#line 474 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append (_tmp11_, "SparqlCaseFold (");
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp12_ = sql;
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_translate_expression_as_string (self, _tmp12_, &_inner_error_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 4837 "tracker-sparql-expression.c"
						} else {
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 4845 "tracker-sparql-expression.c"
						}
					}
#line 476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp13_ = sql;
#line 476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append (_tmp13_, ")");
#line 477 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = TRACKER_PROPERTY_TYPE_STRING;
#line 477 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 4856 "tracker-sparql-expression.c"
				} else {
					const gchar* _tmp14_ = NULL;
#line 478 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp14_ = uri;
#line 478 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (g_strcmp0 (_tmp14_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "ascii-lower-case") == 0) {
#line 4863 "tracker-sparql-expression.c"
						GString* _tmp15_ = NULL;
						GString* _tmp16_ = NULL;
						GString* _tmp17_ = NULL;
#line 480 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp15_ = sql;
#line 480 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp15_, "lower (");
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp16_ = sql;
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						tracker_sparql_expression_translate_expression_as_string (self, _tmp16_, &_inner_error_);
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 4883 "tracker-sparql-expression.c"
							} else {
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 4891 "tracker-sparql-expression.c"
							}
						}
#line 482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp17_ = sql;
#line 482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp17_, ")");
#line 483 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						result = TRACKER_PROPERTY_TYPE_STRING;
#line 483 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return result;
#line 4902 "tracker-sparql-expression.c"
					} else {
						const gchar* _tmp18_ = NULL;
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp18_ = uri;
#line 484 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (g_strcmp0 (_tmp18_, TRACKER_SPARQL_EXPRESSION_FN_NS "lower-case") == 0) {
#line 4909 "tracker-sparql-expression.c"
							GString* _tmp19_ = NULL;
							GString* _tmp20_ = NULL;
							GString* _tmp21_ = NULL;
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp19_ = sql;
#line 486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append (_tmp19_, "SparqlLowerCase (");
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp20_ = sql;
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							tracker_sparql_expression_translate_expression_as_string (self, _tmp20_, &_inner_error_);
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 4929 "tracker-sparql-expression.c"
								} else {
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 4937 "tracker-sparql-expression.c"
								}
							}
#line 488 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp21_ = sql;
#line 488 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append (_tmp21_, ")");
#line 489 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							result = TRACKER_PROPERTY_TYPE_STRING;
#line 489 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return result;
#line 4948 "tracker-sparql-expression.c"
						} else {
							const gchar* _tmp22_ = NULL;
#line 490 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp22_ = uri;
#line 490 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (g_strcmp0 (_tmp22_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "normalize") == 0) {
#line 4955 "tracker-sparql-expression.c"
								GString* _tmp23_ = NULL;
								GString* _tmp24_ = NULL;
								GString* _tmp25_ = NULL;
								GString* _tmp26_ = NULL;
								GString* _tmp27_ = NULL;
#line 492 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp23_ = sql;
#line 492 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp23_, "SparqlNormalize (");
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp24_ = sql;
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								tracker_sparql_expression_translate_expression_as_string (self, _tmp24_, &_inner_error_);
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4977 "tracker-sparql-expression.c"
									} else {
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 493 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4985 "tracker-sparql-expression.c"
									}
								}
#line 494 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp25_ = sql;
#line 494 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp25_, ", ");
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 5002 "tracker-sparql-expression.c"
									} else {
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 495 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 5010 "tracker-sparql-expression.c"
									}
								}
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp26_ = sql;
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								tracker_sparql_expression_translate_expression_as_string (self, _tmp26_, &_inner_error_);
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 5025 "tracker-sparql-expression.c"
									} else {
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 496 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 5033 "tracker-sparql-expression.c"
									}
								}
#line 497 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp27_ = sql;
#line 497 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp27_, ")");
#line 498 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								result = TRACKER_PROPERTY_TYPE_STRING;
#line 498 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return result;
#line 5044 "tracker-sparql-expression.c"
							} else {
								const gchar* _tmp28_ = NULL;
#line 499 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp28_ = uri;
#line 499 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (g_strcmp0 (_tmp28_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "unaccent") == 0) {
#line 5051 "tracker-sparql-expression.c"
									GString* _tmp29_ = NULL;
									GString* _tmp30_ = NULL;
									GString* _tmp31_ = NULL;
#line 501 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp29_ = sql;
#line 501 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp29_, "SparqlUnaccent (");
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp30_ = sql;
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									tracker_sparql_expression_translate_expression_as_string (self, _tmp30_, &_inner_error_);
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 5071 "tracker-sparql-expression.c"
										} else {
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 502 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 5079 "tracker-sparql-expression.c"
										}
									}
#line 503 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp31_ = sql;
#line 503 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp31_, ")");
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									result = TRACKER_PROPERTY_TYPE_STRING;
#line 504 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return result;
#line 5090 "tracker-sparql-expression.c"
								} else {
									const gchar* _tmp32_ = NULL;
#line 505 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp32_ = uri;
#line 505 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (g_strcmp0 (_tmp32_, TRACKER_SPARQL_EXPRESSION_FN_NS "contains") == 0) {
#line 5097 "tracker-sparql-expression.c"
										GString* _tmp33_ = NULL;
										GString* _tmp34_ = NULL;
										GString* _tmp35_ = NULL;
										GString* _tmp36_ = NULL;
										TrackerSparqlLiteralBinding* binding = NULL;
										TrackerSparqlLiteralBinding* _tmp37_ = NULL;
										gchar* _tmp38_ = NULL;
										gchar* _tmp39_ = NULL;
										TrackerSparqlLiteralBinding* _tmp40_ = NULL;
										gchar* _tmp41_ = NULL;
										TrackerSparqlQuery* _tmp42_ = NULL;
										TrackerSparqlLiteralBinding* _tmp43_ = NULL;
										TrackerSparqlLiteralBinding* _tmp44_ = NULL;
										GString* _tmp45_ = NULL;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp33_ = sql;
#line 507 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp33_, "(");
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp34_ = sql;
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										tracker_sparql_expression_translate_expression_as_string (self, _tmp34_, &_inner_error_);
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5128 "tracker-sparql-expression.c"
											} else {
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5136 "tracker-sparql-expression.c"
											}
										}
#line 509 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp35_ = sql;
#line 509 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp35_, " GLOB ");
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5153 "tracker-sparql-expression.c"
											} else {
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 510 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5161 "tracker-sparql-expression.c"
											}
										}
#line 512 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp36_ = sql;
#line 512 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp36_, "?");
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp37_ = tracker_sparql_literal_binding_new ();
#line 513 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										binding = _tmp37_;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp39_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp38_ = _tmp39_;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_object_unref0 (binding);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5186 "tracker-sparql-expression.c"
											} else {
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_object_unref0 (binding);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 5196 "tracker-sparql-expression.c"
											}
										}
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp40_ = binding;
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp41_ = g_strdup_printf ("*%s*", _tmp38_);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_free0 (_tmp40_->literal);
#line 514 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp40_->literal = _tmp41_;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp42_ = self->priv->query;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp43_ = binding;
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp44_ = _g_object_ref0 (_tmp43_);
#line 515 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp42_->bindings = g_list_append (_tmp42_->bindings, _tmp44_);
#line 517 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp45_ = sql;
#line 517 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp45_, ")");
#line 519 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 519 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_free0 (_tmp38_);
#line 519 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_object_unref0 (binding);
#line 519 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return result;
#line 5227 "tracker-sparql-expression.c"
									} else {
										const gchar* _tmp46_ = NULL;
#line 520 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp46_ = uri;
#line 520 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (g_strcmp0 (_tmp46_, TRACKER_SPARQL_EXPRESSION_FN_NS "starts-with") == 0) {
#line 5234 "tracker-sparql-expression.c"
											GString* _tmp47_ = NULL;
											GString* _tmp48_ = NULL;
											gchar* prefix = NULL;
											gchar* _tmp49_ = NULL;
											GString* _tmp50_ = NULL;
											TrackerSparqlLiteralBinding* binding = NULL;
											TrackerSparqlLiteralBinding* _tmp51_ = NULL;
											TrackerSparqlLiteralBinding* _tmp52_ = NULL;
											const gchar* _tmp53_ = NULL;
											gchar* _tmp54_ = NULL;
											TrackerSparqlQuery* _tmp55_ = NULL;
											TrackerSparqlLiteralBinding* _tmp56_ = NULL;
											TrackerSparqlLiteralBinding* _tmp57_ = NULL;
											GString* _tmp58_ = NULL;
											GString* _tmp59_ = NULL;
											TrackerSparqlLiteralBinding* _tmp60_ = NULL;
											TrackerSparqlLiteralBinding* _tmp61_ = NULL;
											const gchar* _tmp62_ = NULL;
											gchar* _tmp63_ = NULL;
											gchar* _tmp64_ = NULL;
											gchar* _tmp65_ = NULL;
											TrackerSparqlQuery* _tmp66_ = NULL;
											TrackerSparqlLiteralBinding* _tmp67_ = NULL;
											TrackerSparqlLiteralBinding* _tmp68_ = NULL;
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp47_ = sql;
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											tracker_sparql_expression_translate_expression_as_string (self, _tmp47_, &_inner_error_);
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5271 "tracker-sparql-expression.c"
												} else {
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 524 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5279 "tracker-sparql-expression.c"
												}
											}
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp48_ = sql;
#line 525 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp48_, " BETWEEN ");
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5296 "tracker-sparql-expression.c"
												} else {
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 527 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5304 "tracker-sparql-expression.c"
												}
											}
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp49_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											prefix = _tmp49_;
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5319 "tracker-sparql-expression.c"
												} else {
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 528 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 5327 "tracker-sparql-expression.c"
												}
											}
#line 530 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp50_ = sql;
#line 530 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp50_, "?");
#line 531 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp51_ = tracker_sparql_literal_binding_new ();
#line 531 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											binding = _tmp51_;
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp52_ = binding;
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp53_ = prefix;
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp54_ = g_strdup (_tmp53_);
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_free0 (_tmp52_->literal);
#line 532 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp52_->literal = _tmp54_;
#line 533 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp55_ = self->priv->query;
#line 533 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp56_ = binding;
#line 533 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp57_ = _g_object_ref0 (_tmp56_);
#line 533 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp55_->bindings = g_list_append (_tmp55_->bindings, _tmp57_);
#line 535 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp58_ = sql;
#line 535 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp58_, " AND ");
#line 537 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp59_ = sql;
#line 537 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp59_, "?");
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp60_ = tracker_sparql_literal_binding_new ();
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_object_unref0 (binding);
#line 538 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											binding = _tmp60_;
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp61_ = binding;
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp62_ = prefix;
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp63_ = g_unichar_to_string (TRACKER_COLLATION_LAST_CHAR);
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp64_ = _tmp63_;
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp65_ = g_strconcat (_tmp62_, _tmp64_, NULL);
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_free0 (_tmp61_->literal);
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp61_->literal = _tmp65_;
#line 539 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_free0 (_tmp64_);
#line 540 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp66_ = self->priv->query;
#line 540 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp67_ = binding;
#line 540 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp68_ = _g_object_ref0 (_tmp67_);
#line 540 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp66_->bindings = g_list_append (_tmp66_->bindings, _tmp68_);
#line 542 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 542 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_object_unref0 (binding);
#line 542 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_g_free0 (prefix);
#line 542 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return result;
#line 5402 "tracker-sparql-expression.c"
										} else {
											const gchar* _tmp69_ = NULL;
#line 543 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp69_ = uri;
#line 543 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (g_strcmp0 (_tmp69_, TRACKER_SPARQL_EXPRESSION_FN_NS "ends-with") == 0) {
#line 5409 "tracker-sparql-expression.c"
												GString* _tmp70_ = NULL;
												GString* _tmp71_ = NULL;
												GString* _tmp72_ = NULL;
												GString* _tmp73_ = NULL;
												TrackerSparqlLiteralBinding* binding = NULL;
												TrackerSparqlLiteralBinding* _tmp74_ = NULL;
												gchar* _tmp75_ = NULL;
												gchar* _tmp76_ = NULL;
												TrackerSparqlLiteralBinding* _tmp77_ = NULL;
												gchar* _tmp78_ = NULL;
												TrackerSparqlQuery* _tmp79_ = NULL;
												TrackerSparqlLiteralBinding* _tmp80_ = NULL;
												TrackerSparqlLiteralBinding* _tmp81_ = NULL;
												GString* _tmp82_ = NULL;
#line 545 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp70_ = sql;
#line 545 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp70_, "(");
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp71_ = sql;
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_translate_expression_as_string (self, _tmp71_, &_inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5440 "tracker-sparql-expression.c"
													} else {
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
														g_clear_error (&_inner_error_);
#line 546 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5448 "tracker-sparql-expression.c"
													}
												}
#line 547 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp72_ = sql;
#line 547 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp72_, " GLOB ");
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5465 "tracker-sparql-expression.c"
													} else {
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
														g_clear_error (&_inner_error_);
#line 548 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5473 "tracker-sparql-expression.c"
													}
												}
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp73_ = sql;
#line 550 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp73_, "?");
#line 551 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp74_ = tracker_sparql_literal_binding_new ();
#line 551 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												binding = _tmp74_;
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp76_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp75_ = _tmp76_;
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_object_unref0 (binding);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5498 "tracker-sparql-expression.c"
													} else {
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_object_unref0 (binding);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_clear_error (&_inner_error_);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5508 "tracker-sparql-expression.c"
													}
												}
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp77_ = binding;
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp78_ = g_strdup_printf ("*%s", _tmp75_);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_free0 (_tmp77_->literal);
#line 552 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp77_->literal = _tmp78_;
#line 553 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp79_ = self->priv->query;
#line 553 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp80_ = binding;
#line 553 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp81_ = _g_object_ref0 (_tmp80_);
#line 553 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp79_->bindings = g_list_append (_tmp79_->bindings, _tmp81_);
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp82_ = sql;
#line 555 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp82_, ")");
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_free0 (_tmp75_);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_object_unref0 (binding);
#line 557 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return result;
#line 5539 "tracker-sparql-expression.c"
											} else {
												const gchar* _tmp83_ = NULL;
#line 558 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp83_ = uri;
#line 558 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (g_strcmp0 (_tmp83_, TRACKER_SPARQL_EXPRESSION_FN_NS "substring") == 0) {
#line 5546 "tracker-sparql-expression.c"
													GString* _tmp84_ = NULL;
													GString* _tmp85_ = NULL;
													GString* _tmp86_ = NULL;
													GString* _tmp87_ = NULL;
													gboolean _tmp88_ = FALSE;
													gboolean _tmp89_ = FALSE;
													GString* _tmp92_ = NULL;
#line 559 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp84_ = sql;
#line 559 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp84_, "substr(");
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp85_ = sql;
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression_as_string (self, _tmp85_, &_inner_error_);
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5570 "tracker-sparql-expression.c"
														} else {
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 560 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5578 "tracker-sparql-expression.c"
														}
													}
#line 562 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp86_ = sql;
#line 562 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp86_, ", ");
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5595 "tracker-sparql-expression.c"
														} else {
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 563 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5603 "tracker-sparql-expression.c"
														}
													}
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp87_ = sql;
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression_as_string (self, _tmp87_, &_inner_error_);
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5618 "tracker-sparql-expression.c"
														} else {
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 564 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5626 "tracker-sparql-expression.c"
														}
													}
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp89_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp88_ = _tmp89_;
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5641 "tracker-sparql-expression.c"
														} else {
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5649 "tracker-sparql-expression.c"
														}
													}
#line 566 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_tmp88_) {
#line 5654 "tracker-sparql-expression.c"
														GString* _tmp90_ = NULL;
														GString* _tmp91_ = NULL;
#line 567 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp90_ = sql;
#line 567 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp90_, ", ");
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp91_ = sql;
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_translate_expression_as_string (self, _tmp91_, &_inner_error_);
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5673 "tracker-sparql-expression.c"
															} else {
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 568 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5681 "tracker-sparql-expression.c"
															}
														}
													}
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp92_ = sql;
#line 571 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp92_, ")");
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													result = TRACKER_PROPERTY_TYPE_STRING;
#line 573 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return result;
#line 5693 "tracker-sparql-expression.c"
												} else {
													const gchar* _tmp93_ = NULL;
#line 574 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp93_ = uri;
#line 574 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (g_strcmp0 (_tmp93_, TRACKER_SPARQL_EXPRESSION_FN_NS "concat") == 0) {
#line 5700 "tracker-sparql-expression.c"
														GString* _tmp94_ = NULL;
														GString* _tmp95_ = NULL;
														GString* _tmp96_ = NULL;
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp94_ = sql;
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_translate_expression_as_string (self, _tmp94_, &_inner_error_);
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5716 "tracker-sparql-expression.c"
															} else {
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 575 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5724 "tracker-sparql-expression.c"
															}
														}
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp95_ = sql;
#line 576 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp95_, "||");
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5741 "tracker-sparql-expression.c"
															} else {
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 577 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5749 "tracker-sparql-expression.c"
															}
														}
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp96_ = sql;
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_translate_expression_as_string (self, _tmp96_, &_inner_error_);
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5764 "tracker-sparql-expression.c"
															} else {
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 578 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5772 "tracker-sparql-expression.c"
															}
														}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														while (TRUE) {
#line 5777 "tracker-sparql-expression.c"
															gboolean _tmp97_ = FALSE;
															gboolean _tmp98_ = FALSE;
															GString* _tmp99_ = NULL;
															GString* _tmp100_ = NULL;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp98_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp97_ = _tmp98_;
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5794 "tracker-sparql-expression.c"
																} else {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5802 "tracker-sparql-expression.c"
																}
															}
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (!_tmp97_) {
#line 579 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																break;
#line 5809 "tracker-sparql-expression.c"
															}
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp99_ = sql;
#line 580 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp99_, "||");
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp100_ = sql;
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_translate_expression_as_string (self, _tmp100_, &_inner_error_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5827 "tracker-sparql-expression.c"
																} else {
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 581 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5835 "tracker-sparql-expression.c"
																}
															}
														}
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														result = TRACKER_PROPERTY_TYPE_STRING;
#line 584 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return result;
#line 5843 "tracker-sparql-expression.c"
													} else {
														const gchar* _tmp101_ = NULL;
#line 585 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp101_ = uri;
#line 585 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (g_strcmp0 (_tmp101_, TRACKER_SPARQL_EXPRESSION_FN_NS "string-join") == 0) {
#line 5850 "tracker-sparql-expression.c"
															GString* _tmp102_ = NULL;
															GString* _tmp103_ = NULL;
															GString* _tmp104_ = NULL;
															GString* _tmp105_ = NULL;
															GString* _tmp110_ = NULL;
															GString* _tmp111_ = NULL;
															GString* _tmp112_ = NULL;
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp102_ = sql;
#line 586 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp102_, "SparqlStringJoin(");
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5872 "tracker-sparql-expression.c"
																} else {
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_clear_error (&_inner_error_);
#line 587 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5880 "tracker-sparql-expression.c"
																}
															}
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp103_ = sql;
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_translate_expression_as_string (self, _tmp103_, &_inner_error_);
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5895 "tracker-sparql-expression.c"
																} else {
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_clear_error (&_inner_error_);
#line 589 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5903 "tracker-sparql-expression.c"
																}
															}
#line 590 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp104_ = sql;
#line 590 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp104_, ", ");
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5920 "tracker-sparql-expression.c"
																} else {
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_clear_error (&_inner_error_);
#line 591 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5928 "tracker-sparql-expression.c"
																}
															}
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp105_ = sql;
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_translate_expression_as_string (self, _tmp105_, &_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5943 "tracker-sparql-expression.c"
																} else {
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 592 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5951 "tracker-sparql-expression.c"
																}
															}
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															while (TRUE) {
#line 5956 "tracker-sparql-expression.c"
																gboolean _tmp106_ = FALSE;
																gboolean _tmp107_ = FALSE;
																GString* _tmp108_ = NULL;
																GString* _tmp109_ = NULL;
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp107_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp106_ = _tmp107_;
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_ != NULL) {
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_propagate_error (error, _inner_error_);
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 5973 "tracker-sparql-expression.c"
																	} else {
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_clear_error (&_inner_error_);
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 5981 "tracker-sparql-expression.c"
																	}
																}
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (!_tmp106_) {
#line 593 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	break;
#line 5988 "tracker-sparql-expression.c"
																}
#line 594 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp108_ = sql;
#line 594 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp108_, ", ");
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp109_ = sql;
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																tracker_sparql_expression_translate_expression_as_string (self, _tmp109_, &_inner_error_);
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_ != NULL) {
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_propagate_error (error, _inner_error_);
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 6006 "tracker-sparql-expression.c"
																	} else {
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_clear_error (&_inner_error_);
#line 595 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 6014 "tracker-sparql-expression.c"
																	}
																}
															}
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6028 "tracker-sparql-expression.c"
																} else {
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 598 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6036 "tracker-sparql-expression.c"
																}
															}
#line 599 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp110_ = sql;
#line 599 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp110_, ",");
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6053 "tracker-sparql-expression.c"
																} else {
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 600 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6061 "tracker-sparql-expression.c"
																}
															}
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp111_ = sql;
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_translate_expression (self, _tmp111_, &_inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6076 "tracker-sparql-expression.c"
																} else {
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																	g_clear_error (&_inner_error_);
#line 601 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 6084 "tracker-sparql-expression.c"
																}
															}
#line 602 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp112_ = sql;
#line 602 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp112_, ")");
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															result = TRACKER_PROPERTY_TYPE_STRING;
#line 604 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return result;
#line 6095 "tracker-sparql-expression.c"
														} else {
															const gchar* _tmp113_ = NULL;
#line 605 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp113_ = uri;
#line 605 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (g_strcmp0 (_tmp113_, TRACKER_SPARQL_EXPRESSION_FN_NS "year-from-dateTime") == 0) {
#line 6102 "tracker-sparql-expression.c"
																gchar* variable_name = NULL;
																gchar* _tmp114_ = NULL;
																gchar* _tmp115_ = NULL;
																gchar* _tmp116_ = NULL;
																gchar* _tmp117_ = NULL;
																TrackerSparqlVariable* variable = NULL;
																TrackerSparqlContext* _tmp118_ = NULL;
																TrackerSparqlContext* _tmp119_ = NULL;
																const gchar* _tmp120_ = NULL;
																TrackerSparqlVariable* _tmp121_ = NULL;
																TrackerSparqlVariable* _tmp122_ = NULL;
																GString* _tmp123_ = NULL;
																GString* _tmp124_ = NULL;
																TrackerSparqlVariable* _tmp125_ = NULL;
																gchar* _tmp126_ = NULL;
																gchar* _tmp127_ = NULL;
																GString* _tmp128_ = NULL;
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_ != NULL) {
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_propagate_error (error, _inner_error_);
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 6130 "tracker-sparql-expression.c"
																	} else {
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_clear_error (&_inner_error_);
#line 606 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 6138 "tracker-sparql-expression.c"
																	}
																}
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp114_ = tracker_sparql_expression_get_last_string (self, 0);
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp115_ = _tmp114_;
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp116_ = string_substring (_tmp115_, (glong) 1, (glong) (-1));
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp117_ = _tmp116_;
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (_tmp115_);
#line 607 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																variable_name = _tmp117_;
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp118_ = tracker_sparql_expression_get_context (self);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp119_ = _tmp118_;
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp120_ = variable_name;
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp121_ = tracker_sparql_context_get_variable (_tmp119_, _tmp120_);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp122_ = _g_object_ref0 (_tmp121_);
#line 608 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																variable = _tmp122_;
#line 610 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp123_ = sql;
#line 610 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp123_, "strftime (\"%Y\", ");
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp124_ = sql;
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp125_ = variable;
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp126_ = tracker_sparql_variable_get_extra_sql_expression (_tmp125_, "localDate");
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp127_ = _tmp126_;
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp124_, _tmp127_);
#line 611 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (_tmp127_);
#line 612 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp128_ = sql;
#line 612 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp128_, " * 24 * 3600, \"unixepoch\")");
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_object_unref0 (variable);
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (variable_name);
#line 614 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return result;
#line 6193 "tracker-sparql-expression.c"
															} else {
																const gchar* _tmp129_ = NULL;
#line 615 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp129_ = uri;
#line 615 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (g_strcmp0 (_tmp129_, TRACKER_SPARQL_EXPRESSION_FN_NS "month-from-dateTime") == 0) {
#line 6200 "tracker-sparql-expression.c"
																	gchar* variable_name = NULL;
																	gchar* _tmp130_ = NULL;
																	gchar* _tmp131_ = NULL;
																	gchar* _tmp132_ = NULL;
																	gchar* _tmp133_ = NULL;
																	TrackerSparqlVariable* variable = NULL;
																	TrackerSparqlContext* _tmp134_ = NULL;
																	TrackerSparqlContext* _tmp135_ = NULL;
																	const gchar* _tmp136_ = NULL;
																	TrackerSparqlVariable* _tmp137_ = NULL;
																	TrackerSparqlVariable* _tmp138_ = NULL;
																	GString* _tmp139_ = NULL;
																	GString* _tmp140_ = NULL;
																	TrackerSparqlVariable* _tmp141_ = NULL;
																	gchar* _tmp142_ = NULL;
																	gchar* _tmp143_ = NULL;
																	GString* _tmp144_ = NULL;
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_ != NULL) {
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_propagate_error (error, _inner_error_);
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return 0;
#line 6228 "tracker-sparql-expression.c"
																		} else {
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_clear_error (&_inner_error_);
#line 616 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return 0;
#line 6236 "tracker-sparql-expression.c"
																		}
																	}
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp130_ = tracker_sparql_expression_get_last_string (self, 0);
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp131_ = _tmp130_;
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp132_ = string_substring (_tmp131_, (glong) 1, (glong) (-1));
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp133_ = _tmp132_;
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (_tmp131_);
#line 617 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	variable_name = _tmp133_;
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp134_ = tracker_sparql_expression_get_context (self);
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp135_ = _tmp134_;
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp136_ = variable_name;
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp137_ = tracker_sparql_context_get_variable (_tmp135_, _tmp136_);
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp138_ = _g_object_ref0 (_tmp137_);
#line 618 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	variable = _tmp138_;
#line 620 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp139_ = sql;
#line 620 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp139_, "strftime (\"%m\", ");
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp140_ = sql;
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp141_ = variable;
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp142_ = tracker_sparql_variable_get_extra_sql_expression (_tmp141_, "localDate");
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp143_ = _tmp142_;
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp140_, _tmp143_);
#line 621 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (_tmp143_);
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp144_ = sql;
#line 622 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp144_, " * 24 * 3600, \"unixepoch\")");
#line 624 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 624 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_object_unref0 (variable);
#line 624 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (variable_name);
#line 624 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return result;
#line 6291 "tracker-sparql-expression.c"
																} else {
																	const gchar* _tmp145_ = NULL;
#line 625 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp145_ = uri;
#line 625 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (g_strcmp0 (_tmp145_, TRACKER_SPARQL_EXPRESSION_FN_NS "day-from-dateTime") == 0) {
#line 6298 "tracker-sparql-expression.c"
																		gchar* variable_name = NULL;
																		gchar* _tmp146_ = NULL;
																		gchar* _tmp147_ = NULL;
																		gchar* _tmp148_ = NULL;
																		gchar* _tmp149_ = NULL;
																		TrackerSparqlVariable* variable = NULL;
																		TrackerSparqlContext* _tmp150_ = NULL;
																		TrackerSparqlContext* _tmp151_ = NULL;
																		const gchar* _tmp152_ = NULL;
																		TrackerSparqlVariable* _tmp153_ = NULL;
																		TrackerSparqlVariable* _tmp154_ = NULL;
																		GString* _tmp155_ = NULL;
																		GString* _tmp156_ = NULL;
																		TrackerSparqlVariable* _tmp157_ = NULL;
																		gchar* _tmp158_ = NULL;
																		gchar* _tmp159_ = NULL;
																		GString* _tmp160_ = NULL;
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (_inner_error_ != NULL) {
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_propagate_error (error, _inner_error_);
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return 0;
#line 6326 "tracker-sparql-expression.c"
																			} else {
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_clear_error (&_inner_error_);
#line 626 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return 0;
#line 6334 "tracker-sparql-expression.c"
																			}
																		}
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp146_ = tracker_sparql_expression_get_last_string (self, 0);
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp147_ = _tmp146_;
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp148_ = string_substring (_tmp147_, (glong) 1, (glong) (-1));
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp149_ = _tmp148_;
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (_tmp147_);
#line 627 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		variable_name = _tmp149_;
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp150_ = tracker_sparql_expression_get_context (self);
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp151_ = _tmp150_;
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp152_ = variable_name;
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp153_ = tracker_sparql_context_get_variable (_tmp151_, _tmp152_);
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp154_ = _g_object_ref0 (_tmp153_);
#line 628 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		variable = _tmp154_;
#line 630 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp155_ = sql;
#line 630 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp155_, "strftime (\"%d\", ");
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp156_ = sql;
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp157_ = variable;
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp158_ = tracker_sparql_variable_get_extra_sql_expression (_tmp157_, "localDate");
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp159_ = _tmp158_;
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp156_, _tmp159_);
#line 631 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (_tmp159_);
#line 632 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp160_ = sql;
#line 632 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp160_, " * 24 * 3600, \"unixepoch\")");
#line 634 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 634 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_object_unref0 (variable);
#line 634 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (variable_name);
#line 634 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return result;
#line 6389 "tracker-sparql-expression.c"
																	} else {
																		const gchar* _tmp161_ = NULL;
#line 635 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp161_ = uri;
#line 635 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (g_strcmp0 (_tmp161_, TRACKER_SPARQL_EXPRESSION_FN_NS "hours-from-dateTime") == 0) {
#line 6396 "tracker-sparql-expression.c"
																			gchar* variable_name = NULL;
																			gchar* _tmp162_ = NULL;
																			gchar* _tmp163_ = NULL;
																			gchar* _tmp164_ = NULL;
																			gchar* _tmp165_ = NULL;
																			TrackerSparqlVariable* variable = NULL;
																			TrackerSparqlContext* _tmp166_ = NULL;
																			TrackerSparqlContext* _tmp167_ = NULL;
																			const gchar* _tmp168_ = NULL;
																			TrackerSparqlVariable* _tmp169_ = NULL;
																			TrackerSparqlVariable* _tmp170_ = NULL;
																			GString* _tmp171_ = NULL;
																			GString* _tmp172_ = NULL;
																			TrackerSparqlVariable* _tmp173_ = NULL;
																			gchar* _tmp174_ = NULL;
																			gchar* _tmp175_ = NULL;
																			GString* _tmp176_ = NULL;
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (_inner_error_ != NULL) {
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_propagate_error (error, _inner_error_);
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return 0;
#line 6424 "tracker-sparql-expression.c"
																				} else {
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_clear_error (&_inner_error_);
#line 636 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return 0;
#line 6432 "tracker-sparql-expression.c"
																				}
																			}
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp162_ = tracker_sparql_expression_get_last_string (self, 0);
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp163_ = _tmp162_;
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp164_ = string_substring (_tmp163_, (glong) 1, (glong) (-1));
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp165_ = _tmp164_;
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (_tmp163_);
#line 637 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			variable_name = _tmp165_;
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp166_ = tracker_sparql_expression_get_context (self);
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp167_ = _tmp166_;
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp168_ = variable_name;
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp169_ = tracker_sparql_context_get_variable (_tmp167_, _tmp168_);
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp170_ = _g_object_ref0 (_tmp169_);
#line 638 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			variable = _tmp170_;
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp171_ = sql;
#line 640 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp171_, "(");
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp172_ = sql;
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp173_ = variable;
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp174_ = tracker_sparql_variable_get_extra_sql_expression (_tmp173_, "localTime");
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp175_ = _tmp174_;
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp172_, _tmp175_);
#line 641 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (_tmp175_);
#line 642 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp176_ = sql;
#line 642 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp176_, " / 3600)");
#line 644 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 644 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_object_unref0 (variable);
#line 644 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (variable_name);
#line 644 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return result;
#line 6487 "tracker-sparql-expression.c"
																		} else {
																			const gchar* _tmp177_ = NULL;
#line 645 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp177_ = uri;
#line 645 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (g_strcmp0 (_tmp177_, TRACKER_SPARQL_EXPRESSION_FN_NS "minutes-from-dateTime") == 0) {
#line 6494 "tracker-sparql-expression.c"
																				gchar* variable_name = NULL;
																				gchar* _tmp178_ = NULL;
																				gchar* _tmp179_ = NULL;
																				gchar* _tmp180_ = NULL;
																				gchar* _tmp181_ = NULL;
																				TrackerSparqlVariable* variable = NULL;
																				TrackerSparqlContext* _tmp182_ = NULL;
																				TrackerSparqlContext* _tmp183_ = NULL;
																				const gchar* _tmp184_ = NULL;
																				TrackerSparqlVariable* _tmp185_ = NULL;
																				TrackerSparqlVariable* _tmp186_ = NULL;
																				GString* _tmp187_ = NULL;
																				GString* _tmp188_ = NULL;
																				TrackerSparqlVariable* _tmp189_ = NULL;
																				gchar* _tmp190_ = NULL;
																				gchar* _tmp191_ = NULL;
																				GString* _tmp192_ = NULL;
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (_inner_error_ != NULL) {
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_propagate_error (error, _inner_error_);
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return 0;
#line 6522 "tracker-sparql-expression.c"
																					} else {
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_clear_error (&_inner_error_);
#line 646 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return 0;
#line 6530 "tracker-sparql-expression.c"
																					}
																				}
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp178_ = tracker_sparql_expression_get_last_string (self, 0);
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp179_ = _tmp178_;
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp180_ = string_substring (_tmp179_, (glong) 1, (glong) (-1));
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp181_ = _tmp180_;
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (_tmp179_);
#line 647 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				variable_name = _tmp181_;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp182_ = tracker_sparql_expression_get_context (self);
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp183_ = _tmp182_;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp184_ = variable_name;
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp185_ = tracker_sparql_context_get_variable (_tmp183_, _tmp184_);
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp186_ = _g_object_ref0 (_tmp185_);
#line 648 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				variable = _tmp186_;
#line 650 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp187_ = sql;
#line 650 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp187_, "(");
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp188_ = sql;
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp189_ = variable;
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp190_ = tracker_sparql_variable_get_extra_sql_expression (_tmp189_, "localTime");
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp191_ = _tmp190_;
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp188_, _tmp191_);
#line 651 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (_tmp191_);
#line 652 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp192_ = sql;
#line 652 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp192_, " / 60 % 60)");
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_object_unref0 (variable);
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (variable_name);
#line 654 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return result;
#line 6585 "tracker-sparql-expression.c"
																			} else {
																				const gchar* _tmp193_ = NULL;
#line 655 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp193_ = uri;
#line 655 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (g_strcmp0 (_tmp193_, TRACKER_SPARQL_EXPRESSION_FN_NS "seconds-from-dateTime") == 0) {
#line 6592 "tracker-sparql-expression.c"
																					gchar* variable_name = NULL;
																					gchar* _tmp194_ = NULL;
																					gchar* _tmp195_ = NULL;
																					gchar* _tmp196_ = NULL;
																					gchar* _tmp197_ = NULL;
																					TrackerSparqlVariable* variable = NULL;
																					TrackerSparqlContext* _tmp198_ = NULL;
																					TrackerSparqlContext* _tmp199_ = NULL;
																					const gchar* _tmp200_ = NULL;
																					TrackerSparqlVariable* _tmp201_ = NULL;
																					TrackerSparqlVariable* _tmp202_ = NULL;
																					GString* _tmp203_ = NULL;
																					GString* _tmp204_ = NULL;
																					TrackerSparqlVariable* _tmp205_ = NULL;
																					gchar* _tmp206_ = NULL;
																					gchar* _tmp207_ = NULL;
																					GString* _tmp208_ = NULL;
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (_inner_error_ != NULL) {
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_propagate_error (error, _inner_error_);
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return 0;
#line 6620 "tracker-sparql-expression.c"
																						} else {
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_clear_error (&_inner_error_);
#line 656 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return 0;
#line 6628 "tracker-sparql-expression.c"
																						}
																					}
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp194_ = tracker_sparql_expression_get_last_string (self, 0);
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp195_ = _tmp194_;
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp196_ = string_substring (_tmp195_, (glong) 1, (glong) (-1));
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp197_ = _tmp196_;
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_g_free0 (_tmp195_);
#line 657 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					variable_name = _tmp197_;
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp198_ = tracker_sparql_expression_get_context (self);
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp199_ = _tmp198_;
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp200_ = variable_name;
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp201_ = tracker_sparql_context_get_variable (_tmp199_, _tmp200_);
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp202_ = _g_object_ref0 (_tmp201_);
#line 658 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					variable = _tmp202_;
#line 660 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp203_ = sql;
#line 660 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_string_append (_tmp203_, "(");
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp204_ = sql;
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp205_ = variable;
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp206_ = tracker_sparql_variable_get_extra_sql_expression (_tmp205_, "localTime");
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp207_ = _tmp206_;
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_string_append (_tmp204_, _tmp207_);
#line 661 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_g_free0 (_tmp207_);
#line 662 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp208_ = sql;
#line 662 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_string_append (_tmp208_, "% 60)");
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_g_object_unref0 (variable);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_g_free0 (variable_name);
#line 664 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return result;
#line 6683 "tracker-sparql-expression.c"
																				} else {
																					const gchar* _tmp209_ = NULL;
#line 665 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp209_ = uri;
#line 665 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (g_strcmp0 (_tmp209_, TRACKER_SPARQL_EXPRESSION_FN_NS "timezone-from-dateTime") == 0) {
#line 6690 "tracker-sparql-expression.c"
																						gchar* variable_name = NULL;
																						gchar* _tmp210_ = NULL;
																						gchar* _tmp211_ = NULL;
																						gchar* _tmp212_ = NULL;
																						gchar* _tmp213_ = NULL;
																						TrackerSparqlVariable* variable = NULL;
																						TrackerSparqlContext* _tmp214_ = NULL;
																						TrackerSparqlContext* _tmp215_ = NULL;
																						const gchar* _tmp216_ = NULL;
																						TrackerSparqlVariable* _tmp217_ = NULL;
																						TrackerSparqlVariable* _tmp218_ = NULL;
																						GString* _tmp219_ = NULL;
																						GString* _tmp220_ = NULL;
																						TrackerSparqlVariable* _tmp221_ = NULL;
																						gchar* _tmp222_ = NULL;
																						gchar* _tmp223_ = NULL;
																						GString* _tmp224_ = NULL;
																						GString* _tmp225_ = NULL;
																						TrackerSparqlVariable* _tmp226_ = NULL;
																						gchar* _tmp227_ = NULL;
																						gchar* _tmp228_ = NULL;
																						GString* _tmp229_ = NULL;
																						GString* _tmp230_ = NULL;
																						GString* _tmp231_ = NULL;
																						TrackerSparqlVariable* _tmp232_ = NULL;
																						const gchar* _tmp233_ = NULL;
																						const gchar* _tmp234_ = NULL;
																						GString* _tmp235_ = NULL;
																						GString* _tmp236_ = NULL;
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (_inner_error_ != NULL) {
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_propagate_error (error, _inner_error_);
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return 0;
#line 6730 "tracker-sparql-expression.c"
																							} else {
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_clear_error (&_inner_error_);
#line 666 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return 0;
#line 6738 "tracker-sparql-expression.c"
																							}
																						}
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp210_ = tracker_sparql_expression_get_last_string (self, 0);
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp211_ = _tmp210_;
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp212_ = string_substring (_tmp211_, (glong) 1, (glong) (-1));
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp213_ = _tmp212_;
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_free0 (_tmp211_);
#line 667 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						variable_name = _tmp213_;
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp214_ = tracker_sparql_expression_get_context (self);
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp215_ = _tmp214_;
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp216_ = variable_name;
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp217_ = tracker_sparql_context_get_variable (_tmp215_, _tmp216_);
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp218_ = _g_object_ref0 (_tmp217_);
#line 668 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						variable = _tmp218_;
#line 670 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp219_ = sql;
#line 670 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp219_, "(");
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp220_ = sql;
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp221_ = variable;
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp222_ = tracker_sparql_variable_get_extra_sql_expression (_tmp221_, "localDate");
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp223_ = _tmp222_;
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp220_, _tmp223_);
#line 671 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_free0 (_tmp223_);
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp224_ = sql;
#line 672 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp224_, " * 24 * 3600 + ");
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp225_ = sql;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp226_ = variable;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp227_ = tracker_sparql_variable_get_extra_sql_expression (_tmp226_, "localTime");
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp228_ = _tmp227_;
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp225_, _tmp228_);
#line 673 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_free0 (_tmp228_);
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp229_ = sql;
#line 674 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp229_, "- ");
#line 675 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp230_ = sql;
#line 675 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp230_, "CAST (");
#line 676 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp231_ = sql;
#line 676 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp232_ = variable;
#line 676 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp233_ = tracker_sparql_variable_get_sql_expression (_tmp232_);
#line 676 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp234_ = _tmp233_;
#line 676 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp231_, _tmp234_);
#line 677 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp235_ = sql;
#line 677 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp235_, " AS INTEGER)");
#line 678 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp236_ = sql;
#line 678 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append (_tmp236_, ")");
#line 680 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 680 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_object_unref0 (variable);
#line 680 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_free0 (variable_name);
#line 680 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return result;
#line 6831 "tracker-sparql-expression.c"
																					} else {
																						const gchar* _tmp237_ = NULL;
#line 681 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp237_ = uri;
#line 681 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (g_strcmp0 (_tmp237_, TRACKER_SPARQL_EXPRESSION_FTS_NS "rank") == 0) {
#line 6838 "tracker-sparql-expression.c"
																							gboolean is_var = FALSE;
																							gchar* v = NULL;
																							TrackerSparqlPattern* _tmp238_ = NULL;
																							TrackerSparqlPattern* _tmp239_ = NULL;
																							gboolean _tmp240_ = FALSE;
																							gchar* _tmp241_ = NULL;
																							GString* _tmp242_ = NULL;
																							const gchar* _tmp243_ = NULL;
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp238_ = tracker_sparql_expression_get_pattern (self);
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp239_ = _tmp238_;
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp241_ = tracker_sparql_pattern_parse_var_or_term (_tmp239_, NULL, &_tmp240_, &_inner_error_);
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							is_var = _tmp240_;
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							v = _tmp241_;
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (_inner_error_ != NULL) {
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_propagate_error (error, _inner_error_);
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6865 "tracker-sparql-expression.c"
																								} else {
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_clear_error (&_inner_error_);
#line 683 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6873 "tracker-sparql-expression.c"
																								}
																							}
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp242_ = sql;
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp243_ = v;
#line 684 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_string_append_printf (_tmp242_, "\"%s_u_rank\"", _tmp243_);
#line 686 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 686 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_g_free0 (v);
#line 686 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return result;
#line 6888 "tracker-sparql-expression.c"
																						} else {
																							const gchar* _tmp244_ = NULL;
#line 687 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp244_ = uri;
#line 687 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (g_strcmp0 (_tmp244_, TRACKER_SPARQL_EXPRESSION_FTS_NS "offsets") == 0) {
#line 6895 "tracker-sparql-expression.c"
																								gboolean is_var = FALSE;
																								gchar* v = NULL;
																								TrackerSparqlPattern* _tmp245_ = NULL;
																								TrackerSparqlPattern* _tmp246_ = NULL;
																								gboolean _tmp247_ = FALSE;
																								gchar* _tmp248_ = NULL;
																								TrackerSparqlVariable* variable = NULL;
																								TrackerSparqlContext* _tmp249_ = NULL;
																								TrackerSparqlContext* _tmp250_ = NULL;
																								const gchar* _tmp251_ = NULL;
																								TrackerSparqlVariable* _tmp252_ = NULL;
																								TrackerSparqlVariable* _tmp253_ = NULL;
																								GString* _tmp254_ = NULL;
																								TrackerSparqlVariable* _tmp255_ = NULL;
																								const gchar* _tmp256_ = NULL;
																								const gchar* _tmp257_ = NULL;
																								gchar* _tmp258_ = NULL;
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp245_ = tracker_sparql_expression_get_pattern (self);
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp246_ = _tmp245_;
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp248_ = tracker_sparql_pattern_parse_var_or_term (_tmp246_, NULL, &_tmp247_, &_inner_error_);
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								is_var = _tmp247_;
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								v = _tmp248_;
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_inner_error_ != NULL) {
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_propagate_error (error, _inner_error_);
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6931 "tracker-sparql-expression.c"
																									} else {
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_clear_error (&_inner_error_);
#line 689 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6939 "tracker-sparql-expression.c"
																									}
																								}
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp249_ = tracker_sparql_expression_get_context (self);
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp250_ = _tmp249_;
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp251_ = v;
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp252_ = tracker_sparql_context_get_variable (_tmp250_, _tmp251_);
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp253_ = _g_object_ref0 (_tmp252_);
#line 690 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								variable = _tmp253_;
#line 692 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp254_ = sql;
#line 692 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp255_ = variable;
#line 692 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp256_ = tracker_sparql_variable_get_sql_expression (_tmp255_);
#line 692 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp257_ = _tmp256_;
#line 692 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_string_append (_tmp254_, _tmp257_);
#line 693 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp258_ = g_strdup ("tracker_offsets(offsets(\"fts\"),fts_property_names())");
#line 693 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_g_free0 (self->priv->fts_sql);
#line 693 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								self->priv->fts_sql = _tmp258_;
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								result = TRACKER_PROPERTY_TYPE_STRING;
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_g_object_unref0 (variable);
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_g_free0 (v);
#line 694 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return result;
#line 6978 "tracker-sparql-expression.c"
																							} else {
																								const gchar* _tmp259_ = NULL;
#line 695 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp259_ = uri;
#line 695 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (g_strcmp0 (_tmp259_, TRACKER_SPARQL_EXPRESSION_FTS_NS "snippet") == 0) {
#line 6985 "tracker-sparql-expression.c"
																									gboolean is_var = FALSE;
																									gchar* v = NULL;
																									TrackerSparqlPattern* _tmp260_ = NULL;
																									TrackerSparqlPattern* _tmp261_ = NULL;
																									gboolean _tmp262_ = FALSE;
																									gchar* _tmp263_ = NULL;
																									TrackerSparqlVariable* variable = NULL;
																									TrackerSparqlContext* _tmp264_ = NULL;
																									TrackerSparqlContext* _tmp265_ = NULL;
																									const gchar* _tmp266_ = NULL;
																									TrackerSparqlVariable* _tmp267_ = NULL;
																									TrackerSparqlVariable* _tmp268_ = NULL;
																									GString* fts = NULL;
																									GString* _tmp269_ = NULL;
																									GString* _tmp270_ = NULL;
																									gboolean _tmp271_ = FALSE;
																									gboolean _tmp272_ = FALSE;
																									gboolean _tmp278_ = FALSE;
																									gboolean _tmp279_ = FALSE;
																									GString* _tmp283_ = NULL;
																									gboolean _tmp284_ = FALSE;
																									gboolean _tmp285_ = FALSE;
																									GString* _tmp289_ = NULL;
																									GString* _tmp290_ = NULL;
																									const gchar* _tmp291_ = NULL;
																									gchar* _tmp292_ = NULL;
																									GString* _tmp293_ = NULL;
																									TrackerSparqlVariable* _tmp294_ = NULL;
																									const gchar* _tmp295_ = NULL;
																									const gchar* _tmp296_ = NULL;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp260_ = tracker_sparql_expression_get_pattern (self);
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp261_ = _tmp260_;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp263_ = tracker_sparql_pattern_parse_var_or_term (_tmp261_, NULL, &_tmp262_, &_inner_error_);
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									is_var = _tmp262_;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									v = _tmp263_;
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7034 "tracker-sparql-expression.c"
																										} else {
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 698 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7042 "tracker-sparql-expression.c"
																										}
																									}
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp264_ = tracker_sparql_expression_get_context (self);
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp265_ = _tmp264_;
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp266_ = v;
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp267_ = tracker_sparql_context_get_variable (_tmp265_, _tmp266_);
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp268_ = _g_object_ref0 (_tmp267_);
#line 699 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									variable = _tmp268_;
#line 700 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp269_ = g_string_new ("");
#line 700 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									fts = _tmp269_;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp270_ = fts;
#line 702 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append_printf (_tmp270_, "snippet(\"fts\"");
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp272_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp271_ = _tmp272_;
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7083 "tracker-sparql-expression.c"
																										} else {
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7097 "tracker-sparql-expression.c"
																										}
																									}
#line 705 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_tmp271_) {
#line 7102 "tracker-sparql-expression.c"
																										GString* _tmp273_ = NULL;
																										GString* _tmp274_ = NULL;
																										GString* _tmp275_ = NULL;
																										GString* _tmp276_ = NULL;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp273_ = fts;
#line 706 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp273_, ", ");
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp274_ = fts;
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression_as_string (self, _tmp274_, &_inner_error_);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7129 "tracker-sparql-expression.c"
																											} else {
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 707 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7143 "tracker-sparql-expression.c"
																											}
																										}
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7162 "tracker-sparql-expression.c"
																											} else {
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 710 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7176 "tracker-sparql-expression.c"
																											}
																										}
#line 711 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp275_ = fts;
#line 711 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp275_, ", ");
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp276_ = fts;
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression_as_string (self, _tmp276_, &_inner_error_);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7201 "tracker-sparql-expression.c"
																											} else {
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 712 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7215 "tracker-sparql-expression.c"
																											}
																										}
																									} else {
																										GString* _tmp277_ = NULL;
#line 714 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp277_ = fts;
#line 714 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp277_, ",'',''");
#line 7224 "tracker-sparql-expression.c"
																									}
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp279_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp278_ = _tmp279_;
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7244 "tracker-sparql-expression.c"
																										} else {
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7258 "tracker-sparql-expression.c"
																										}
																									}
#line 718 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_tmp278_) {
#line 7263 "tracker-sparql-expression.c"
																										GString* _tmp280_ = NULL;
																										GString* _tmp281_ = NULL;
#line 719 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp280_ = fts;
#line 719 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp280_, ", ");
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp281_ = fts;
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression_as_string (self, _tmp281_, &_inner_error_);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7288 "tracker-sparql-expression.c"
																											} else {
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 720 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7302 "tracker-sparql-expression.c"
																											}
																										}
																									} else {
																										GString* _tmp282_ = NULL;
#line 722 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp282_ = fts;
#line 722 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp282_, ", '...'");
#line 7311 "tracker-sparql-expression.c"
																									}
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp283_ = fts;
#line 726 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp283_, ", -1");
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp285_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp284_ = _tmp285_;
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7335 "tracker-sparql-expression.c"
																										} else {
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_string_free0 (fts);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_object_unref0 (variable);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_g_free0 (v);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 7349 "tracker-sparql-expression.c"
																										}
																									}
#line 729 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_tmp284_) {
#line 7354 "tracker-sparql-expression.c"
																										GString* _tmp286_ = NULL;
																										GString* _tmp287_ = NULL;
#line 730 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp286_ = fts;
#line 730 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp286_, ", ");
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp287_ = fts;
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression_as_string (self, _tmp287_, &_inner_error_);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7379 "tracker-sparql-expression.c"
																											} else {
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_string_free0 (fts);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_object_unref0 (variable);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_g_free0 (v);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 731 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7393 "tracker-sparql-expression.c"
																											}
																										}
																									} else {
																										GString* _tmp288_ = NULL;
#line 733 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp288_ = fts;
#line 733 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp288_, ", 5");
#line 7402 "tracker-sparql-expression.c"
																									}
#line 736 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp289_ = fts;
#line 736 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp289_, ")");
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp290_ = fts;
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp291_ = _tmp290_->str;
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp292_ = g_strdup (_tmp291_);
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_g_free0 (self->priv->fts_sql);
#line 738 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									self->priv->fts_sql = _tmp292_;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp293_ = sql;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp294_ = variable;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp295_ = tracker_sparql_variable_get_sql_expression (_tmp294_);
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp296_ = _tmp295_;
#line 739 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp293_, _tmp296_);
#line 740 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									result = TRACKER_PROPERTY_TYPE_STRING;
#line 740 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_g_string_free0 (fts);
#line 740 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_g_object_unref0 (variable);
#line 740 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_g_free0 (v);
#line 740 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return result;
#line 7438 "tracker-sparql-expression.c"
																								} else {
																									const gchar* _tmp297_ = NULL;
#line 741 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp297_ = uri;
#line 741 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (g_strcmp0 (_tmp297_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "id") == 0) {
#line 7445 "tracker-sparql-expression.c"
																										TrackerPropertyType type = 0;
																										GString* _tmp298_ = NULL;
																										TrackerPropertyType _tmp299_ = 0;
																										TrackerPropertyType _tmp300_ = 0;
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp298_ = sql;
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp299_ = tracker_sparql_expression_translate_expression (self, _tmp298_, &_inner_error_);
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										type = _tmp299_;
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7464 "tracker-sparql-expression.c"
																											} else {
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 742 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7472 "tracker-sparql-expression.c"
																											}
																										}
#line 743 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp300_ = type;
#line 743 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_tmp300_ != TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 7479 "tracker-sparql-expression.c"
																											GError* _tmp301_ = NULL;
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp301_ = tracker_sparql_expression_get_error (self, "expected resource");
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_inner_error_ = _tmp301_;
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7491 "tracker-sparql-expression.c"
																											} else {
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 744 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 7499 "tracker-sparql-expression.c"
																											}
																										}
#line 747 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 747 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return result;
#line 7506 "tracker-sparql-expression.c"
																									} else {
																										const gchar* _tmp302_ = NULL;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp302_ = uri;
#line 748 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (g_strcmp0 (_tmp302_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri") == 0) {
#line 7513 "tracker-sparql-expression.c"
																											TrackerPropertyType type = 0;
																											GString* _tmp303_ = NULL;
																											TrackerPropertyType _tmp304_ = 0;
																											TrackerPropertyType _tmp305_ = 0;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp303_ = sql;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp304_ = tracker_sparql_expression_translate_expression (self, _tmp303_, &_inner_error_);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											type = _tmp304_;
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_ != NULL) {
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_propagate_error (error, _inner_error_);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 7532 "tracker-sparql-expression.c"
																												} else {
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_clear_error (&_inner_error_);
#line 749 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 7540 "tracker-sparql-expression.c"
																												}
																											}
#line 750 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp305_ = type;
#line 750 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_tmp305_ != TRACKER_PROPERTY_TYPE_INTEGER) {
#line 7547 "tracker-sparql-expression.c"
																												GError* _tmp306_ = NULL;
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp306_ = tracker_sparql_expression_get_error (self, "expected integer ID");
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_inner_error_ = _tmp306_;
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_propagate_error (error, _inner_error_);
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 7559 "tracker-sparql-expression.c"
																												} else {
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_clear_error (&_inner_error_);
#line 751 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 7567 "tracker-sparql-expression.c"
																												}
																											}
#line 754 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 754 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return result;
#line 7574 "tracker-sparql-expression.c"
																										} else {
																											const gchar* _tmp307_ = NULL;
#line 755 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp307_ = uri;
#line 755 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (g_strcmp0 (_tmp307_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "cartesian-distance") == 0) {
#line 7581 "tracker-sparql-expression.c"
																												GString* _tmp308_ = NULL;
																												GString* _tmp309_ = NULL;
																												GString* _tmp310_ = NULL;
																												GString* _tmp311_ = NULL;
																												GString* _tmp312_ = NULL;
																												GString* _tmp313_ = NULL;
																												GString* _tmp314_ = NULL;
																												GString* _tmp315_ = NULL;
																												GString* _tmp316_ = NULL;
#line 756 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp308_ = sql;
#line 756 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp308_, "SparqlCartesianDistance(");
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp309_ = sql;
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression (self, _tmp309_, &_inner_error_);
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7607 "tracker-sparql-expression.c"
																													} else {
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 757 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7615 "tracker-sparql-expression.c"
																													}
																												}
#line 758 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp310_ = sql;
#line 758 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp310_, ", ");
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7632 "tracker-sparql-expression.c"
																													} else {
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 759 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7640 "tracker-sparql-expression.c"
																													}
																												}
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp311_ = sql;
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression (self, _tmp311_, &_inner_error_);
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7655 "tracker-sparql-expression.c"
																													} else {
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 760 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7663 "tracker-sparql-expression.c"
																													}
																												}
#line 761 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp312_ = sql;
#line 761 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp312_, ", ");
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7680 "tracker-sparql-expression.c"
																													} else {
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 762 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7688 "tracker-sparql-expression.c"
																													}
																												}
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp313_ = sql;
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression (self, _tmp313_, &_inner_error_);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7703 "tracker-sparql-expression.c"
																													} else {
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 763 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7711 "tracker-sparql-expression.c"
																													}
																												}
#line 764 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp314_ = sql;
#line 764 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp314_, ", ");
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7728 "tracker-sparql-expression.c"
																													} else {
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 765 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7736 "tracker-sparql-expression.c"
																													}
																												}
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp315_ = sql;
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression (self, _tmp315_, &_inner_error_);
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7751 "tracker-sparql-expression.c"
																													} else {
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 766 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 7759 "tracker-sparql-expression.c"
																													}
																												}
#line 767 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp316_ = sql;
#line 767 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp316_, ")");
#line 769 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 769 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return result;
#line 7770 "tracker-sparql-expression.c"
																											} else {
																												const gchar* _tmp317_ = NULL;
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp317_ = uri;
#line 770 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (g_strcmp0 (_tmp317_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "haversine-distance") == 0) {
#line 7777 "tracker-sparql-expression.c"
																													GString* _tmp318_ = NULL;
																													GString* _tmp319_ = NULL;
																													GString* _tmp320_ = NULL;
																													GString* _tmp321_ = NULL;
																													GString* _tmp322_ = NULL;
																													GString* _tmp323_ = NULL;
																													GString* _tmp324_ = NULL;
																													GString* _tmp325_ = NULL;
																													GString* _tmp326_ = NULL;
#line 771 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp318_ = sql;
#line 771 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp318_, "SparqlHaversineDistance(");
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp319_ = sql;
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression (self, _tmp319_, &_inner_error_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7803 "tracker-sparql-expression.c"
																														} else {
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																															g_clear_error (&_inner_error_);
#line 772 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7811 "tracker-sparql-expression.c"
																														}
																													}
#line 773 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp320_ = sql;
#line 773 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp320_, ", ");
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7828 "tracker-sparql-expression.c"
																														} else {
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 774 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7836 "tracker-sparql-expression.c"
																														}
																													}
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp321_ = sql;
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression (self, _tmp321_, &_inner_error_);
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7851 "tracker-sparql-expression.c"
																														} else {
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 775 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7859 "tracker-sparql-expression.c"
																														}
																													}
#line 776 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp322_ = sql;
#line 776 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp322_, ", ");
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7876 "tracker-sparql-expression.c"
																														} else {
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 777 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7884 "tracker-sparql-expression.c"
																														}
																													}
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp323_ = sql;
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression (self, _tmp323_, &_inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7899 "tracker-sparql-expression.c"
																														} else {
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																															g_clear_error (&_inner_error_);
#line 778 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7907 "tracker-sparql-expression.c"
																														}
																													}
#line 779 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp324_ = sql;
#line 779 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp324_, ", ");
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7924 "tracker-sparql-expression.c"
																														} else {
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 780 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7932 "tracker-sparql-expression.c"
																														}
																													}
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp325_ = sql;
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression (self, _tmp325_, &_inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7947 "tracker-sparql-expression.c"
																														} else {
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																															g_clear_error (&_inner_error_);
#line 781 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7955 "tracker-sparql-expression.c"
																														}
																													}
#line 782 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp326_ = sql;
#line 782 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp326_, ")");
#line 784 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 784 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return result;
#line 7966 "tracker-sparql-expression.c"
																												} else {
																													const gchar* _tmp327_ = NULL;
#line 785 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp327_ = uri;
#line 785 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (g_strcmp0 (_tmp327_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "coalesce") == 0) {
#line 7973 "tracker-sparql-expression.c"
																														GString* _tmp328_ = NULL;
																														GString* _tmp329_ = NULL;
																														GString* _tmp330_ = NULL;
																														GString* _tmp331_ = NULL;
																														GString* _tmp336_ = NULL;
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp328_ = sql;
#line 786 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp328_, "COALESCE(");
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp329_ = sql;
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_translate_expression_as_string (self, _tmp329_, &_inner_error_);
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7995 "tracker-sparql-expression.c"
																															} else {
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 787 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 8003 "tracker-sparql-expression.c"
																															}
																														}
#line 788 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp330_ = sql;
#line 788 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp330_, ", ");
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 8020 "tracker-sparql-expression.c"
																															} else {
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																g_clear_error (&_inner_error_);
#line 789 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 8028 "tracker-sparql-expression.c"
																															}
																														}
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp331_ = sql;
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_translate_expression_as_string (self, _tmp331_, &_inner_error_);
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 8043 "tracker-sparql-expression.c"
																															} else {
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 790 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 8051 "tracker-sparql-expression.c"
																															}
																														}
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														while (TRUE) {
#line 8056 "tracker-sparql-expression.c"
																															gboolean _tmp332_ = FALSE;
																															gboolean _tmp333_ = FALSE;
																															GString* _tmp334_ = NULL;
																															GString* _tmp335_ = NULL;
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp333_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp332_ = _tmp333_;
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8073 "tracker-sparql-expression.c"
																																} else {
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8081 "tracker-sparql-expression.c"
																																}
																															}
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (!_tmp332_) {
#line 791 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																break;
#line 8088 "tracker-sparql-expression.c"
																															}
#line 792 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp334_ = sql;
#line 792 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append (_tmp334_, ", ");
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp335_ = sql;
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															tracker_sparql_expression_translate_expression_as_string (self, _tmp335_, &_inner_error_);
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8106 "tracker-sparql-expression.c"
																																} else {
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 793 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8114 "tracker-sparql-expression.c"
																																}
																															}
																														}
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp336_ = sql;
#line 795 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp336_, ")");
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														result = TRACKER_PROPERTY_TYPE_STRING;
#line 797 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return result;
#line 8126 "tracker-sparql-expression.c"
																													} else {
																														const gchar* _tmp337_ = NULL;
#line 798 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp337_ = uri;
#line 798 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (g_strcmp0 (_tmp337_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri-is-parent") == 0) {
#line 8133 "tracker-sparql-expression.c"
																															GString* _tmp338_ = NULL;
																															GString* _tmp339_ = NULL;
																															GString* _tmp340_ = NULL;
																															GString* _tmp341_ = NULL;
																															GString* _tmp342_ = NULL;
#line 799 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp338_ = sql;
#line 799 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append (_tmp338_, "SparqlUriIsParent(");
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp339_ = sql;
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															tracker_sparql_expression_translate_expression_as_string (self, _tmp339_, &_inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8155 "tracker-sparql-expression.c"
																																} else {
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 800 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8163 "tracker-sparql-expression.c"
																																}
																															}
#line 801 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp340_ = sql;
#line 801 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append (_tmp340_, ", ");
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8180 "tracker-sparql-expression.c"
																																} else {
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 802 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8188 "tracker-sparql-expression.c"
																																}
																															}
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp341_ = sql;
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															tracker_sparql_expression_translate_expression_as_string (self, _tmp341_, &_inner_error_);
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8203 "tracker-sparql-expression.c"
																																} else {
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 804 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 8211 "tracker-sparql-expression.c"
																																}
																															}
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp342_ = sql;
#line 805 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append (_tmp342_, ")");
#line 807 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 807 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return result;
#line 8222 "tracker-sparql-expression.c"
																														} else {
																															const gchar* _tmp343_ = NULL;
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp343_ = uri;
#line 808 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (g_strcmp0 (_tmp343_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri-is-descendant") == 0) {
#line 8229 "tracker-sparql-expression.c"
																																GString* _tmp344_ = NULL;
																																GString* _tmp345_ = NULL;
																																GString* _tmp346_ = NULL;
																																GString* _tmp347_ = NULL;
																																GString* _tmp352_ = NULL;
#line 809 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp344_ = sql;
#line 809 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append (_tmp344_, "SparqlUriIsDescendant(");
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp345_ = sql;
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																tracker_sparql_expression_translate_expression_as_string (self, _tmp345_, &_inner_error_);
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_ != NULL) {
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_propagate_error (error, _inner_error_);
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8251 "tracker-sparql-expression.c"
																																	} else {
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_clear_error (&_inner_error_);
#line 810 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8259 "tracker-sparql-expression.c"
																																	}
																																}
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp346_ = sql;
#line 811 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append (_tmp346_, ", ");
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_ != NULL) {
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_propagate_error (error, _inner_error_);
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8276 "tracker-sparql-expression.c"
																																	} else {
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_clear_error (&_inner_error_);
#line 812 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8284 "tracker-sparql-expression.c"
																																	}
																																}
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp347_ = sql;
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																tracker_sparql_expression_translate_expression_as_string (self, _tmp347_, &_inner_error_);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_ != NULL) {
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_propagate_error (error, _inner_error_);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8299 "tracker-sparql-expression.c"
																																	} else {
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																		g_clear_error (&_inner_error_);
#line 814 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 8307 "tracker-sparql-expression.c"
																																	}
																																}
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																while (TRUE) {
#line 8312 "tracker-sparql-expression.c"
																																	gboolean _tmp348_ = FALSE;
																																	gboolean _tmp349_ = FALSE;
																																	GString* _tmp350_ = NULL;
																																	GString* _tmp351_ = NULL;
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp349_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp348_ = _tmp349_;
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_ != NULL) {
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8329 "tracker-sparql-expression.c"
																																		} else {
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8337 "tracker-sparql-expression.c"
																																		}
																																	}
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (!_tmp348_) {
#line 815 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		break;
#line 8344 "tracker-sparql-expression.c"
																																	}
#line 816 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp350_ = sql;
#line 816 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_string_append (_tmp350_, ", ");
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp351_ = sql;
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	tracker_sparql_expression_translate_expression_as_string (self, _tmp351_, &_inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_ != NULL) {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8362 "tracker-sparql-expression.c"
																																		} else {
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 817 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8370 "tracker-sparql-expression.c"
																																		}
																																	}
																																}
#line 819 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp352_ = sql;
#line 819 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append (_tmp352_, ")");
#line 821 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 821 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return result;
#line 8382 "tracker-sparql-expression.c"
																															} else {
																																const gchar* _tmp353_ = NULL;
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp353_ = uri;
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (g_strcmp0 (_tmp353_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "string-from-filename") == 0) {
#line 8389 "tracker-sparql-expression.c"
																																	GString* _tmp354_ = NULL;
																																	GString* _tmp355_ = NULL;
																																	GString* _tmp356_ = NULL;
#line 823 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp354_ = sql;
#line 823 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_string_append (_tmp354_, "SparqlStringFromFilename(");
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp355_ = sql;
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	tracker_sparql_expression_translate_expression_as_string (self, _tmp355_, &_inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_ != NULL) {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8409 "tracker-sparql-expression.c"
																																		} else {
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 824 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8417 "tracker-sparql-expression.c"
																																		}
																																	}
#line 825 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp356_ = sql;
#line 825 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_string_append (_tmp356_, ")");
#line 827 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	result = TRACKER_PROPERTY_TYPE_STRING;
#line 827 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return result;
#line 8428 "tracker-sparql-expression.c"
																																} else {
																																	TrackerProperty* prop = NULL;
																																	const gchar* _tmp357_ = NULL;
																																	TrackerProperty* _tmp358_ = NULL;
																																	TrackerProperty* _tmp359_ = NULL;
																																	TrackerProperty* _tmp360_ = NULL;
																																	GString* expr = NULL;
																																	GString* _tmp362_ = NULL;
																																	GString* _tmp363_ = NULL;
																																	gchar* value_separator = NULL;
																																	gchar* _tmp364_ = NULL;
																																	gchar* graph_separator = NULL;
																																	gboolean _tmp365_ = FALSE;
																																	gboolean _tmp366_ = FALSE;
																																	TrackerProperty* _tmp375_ = NULL;
																																	gboolean _tmp376_ = FALSE;
																																	gboolean _tmp377_ = FALSE;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp357_ = uri;
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp358_ = tracker_ontologies_get_property_by_uri (_tmp357_);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp359_ = _g_object_ref0 (_tmp358_);
#line 830 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	prop = _tmp359_;
#line 831 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp360_ = prop;
#line 831 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_tmp360_ == NULL) {
#line 8458 "tracker-sparql-expression.c"
																																		GError* _tmp361_ = NULL;
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp361_ = tracker_sparql_expression_get_error (self, "Unknown function");
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_inner_error_ = _tmp361_;
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8472 "tracker-sparql-expression.c"
																																		} else {
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 832 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8482 "tracker-sparql-expression.c"
																																		}
																																	}
#line 835 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp362_ = g_string_new ("");
#line 835 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	expr = _tmp362_;
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp363_ = expr;
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	tracker_sparql_expression_translate_expression (self, _tmp363_, &_inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_ != NULL) {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8505 "tracker-sparql-expression.c"
																																		} else {
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 836 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8517 "tracker-sparql-expression.c"
																																		}
																																	}
#line 838 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp364_ = g_strdup (",");
#line 838 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	value_separator = _tmp364_;
#line 839 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	graph_separator = NULL;
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp366_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp365_ = _tmp366_;
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_ != NULL) {
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_propagate_error (error, _inner_error_);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (graph_separator);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (value_separator);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8546 "tracker-sparql-expression.c"
																																		} else {
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (graph_separator);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (value_separator);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_clear_error (&_inner_error_);
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return 0;
#line 8562 "tracker-sparql-expression.c"
																																		}
																																	}
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_tmp365_) {
#line 8567 "tracker-sparql-expression.c"
																																		gchar* _tmp367_ = NULL;
																																		gchar* _tmp368_ = NULL;
																																		gchar* _tmp369_ = NULL;
																																		gboolean _tmp370_ = FALSE;
																																		gboolean _tmp371_ = FALSE;
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp368_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp367_ = _tmp368_;
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_ != NULL) {
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				g_propagate_error (error, _inner_error_);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (graph_separator);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (value_separator);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_string_free0 (expr);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_object_unref0 (prop);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				return 0;
#line 8593 "tracker-sparql-expression.c"
																																			} else {
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (graph_separator);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (value_separator);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_string_free0 (expr);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_object_unref0 (prop);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				g_clear_error (&_inner_error_);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				return 0;
#line 8609 "tracker-sparql-expression.c"
																																			}
																																		}
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp369_ = _tmp367_;
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp367_ = NULL;
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (value_separator);
#line 842 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		value_separator = _tmp369_;
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp371_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp370_ = _tmp371_;
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_inner_error_ != NULL) {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				g_propagate_error (error, _inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (_tmp367_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (graph_separator);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (value_separator);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_string_free0 (expr);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_object_unref0 (prop);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				return 0;
#line 8642 "tracker-sparql-expression.c"
																																			} else {
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (_tmp367_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (graph_separator);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_free0 (value_separator);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_string_free0 (expr);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_g_object_unref0 (prop);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
																																				g_clear_error (&_inner_error_);
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				return 0;
#line 8660 "tracker-sparql-expression.c"
																																			}
																																		}
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_tmp370_) {
#line 8665 "tracker-sparql-expression.c"
																																			gchar* _tmp372_ = NULL;
																																			gchar* _tmp373_ = NULL;
																																			gchar* _tmp374_ = NULL;
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp373_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp372_ = _tmp373_;
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			if (_inner_error_ != NULL) {
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					g_propagate_error (error, _inner_error_);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (_tmp367_);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (graph_separator);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (value_separator);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_string_free0 (expr);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_object_unref0 (prop);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					return 0;
#line 8691 "tracker-sparql-expression.c"
																																				} else {
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (_tmp367_);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (graph_separator);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_free0 (value_separator);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_string_free0 (expr);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					_g_object_unref0 (prop);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					g_clear_error (&_inner_error_);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																					return 0;
#line 8709 "tracker-sparql-expression.c"
																																				}
																																			}
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp374_ = _tmp372_;
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp372_ = NULL;
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (graph_separator);
#line 845 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			graph_separator = _tmp374_;
#line 844 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (_tmp372_);
#line 8722 "tracker-sparql-expression.c"
																																		}
#line 841 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (_tmp367_);
#line 8726 "tracker-sparql-expression.c"
																																	}
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp375_ = prop;
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp376_ = tracker_property_get_multiple_values (_tmp375_);
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp377_ = _tmp376_;
#line 849 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_tmp377_) {
#line 8736 "tracker-sparql-expression.c"
																																		GString* _tmp378_ = NULL;
																																		glong begin = 0L;
																																		GString* _tmp379_ = NULL;
																																		gssize _tmp380_ = 0L;
																																		GString* _tmp381_ = NULL;
																																		TrackerProperty* _tmp382_ = NULL;
																																		const gchar* _tmp383_ = NULL;
																																		const gchar* _tmp384_ = NULL;
																																		GString* _tmp385_ = NULL;
																																		TrackerProperty* _tmp386_ = NULL;
																																		TrackerPropertyType _tmp387_ = 0;
																																		TrackerPropertyType _tmp388_ = 0;
																																		glong _tmp389_ = 0L;
																																		const gchar* _tmp390_ = NULL;
																																		GString* _tmp398_ = NULL;
																																		const gchar* _tmp399_ = NULL;
																																		gchar* _tmp400_ = NULL;
																																		gchar* _tmp401_ = NULL;
																																		GString* _tmp402_ = NULL;
																																		TrackerProperty* _tmp403_ = NULL;
																																		const gchar* _tmp404_ = NULL;
																																		const gchar* _tmp405_ = NULL;
																																		GString* _tmp406_ = NULL;
																																		const gchar* _tmp407_ = NULL;
#line 851 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp378_ = sql;
#line 851 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_string_append (_tmp378_, "(SELECT GROUP_CONCAT(");
#line 852 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp379_ = sql;
#line 852 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp380_ = _tmp379_->len;
#line 852 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		begin = (glong) _tmp380_;
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp381_ = sql;
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp382_ = prop;
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp383_ = tracker_property_get_name (_tmp382_);
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp384_ = _tmp383_;
#line 853 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_string_append_printf (_tmp381_, "\"%s\"", _tmp384_);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp385_ = sql;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp386_ = prop;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp387_ = tracker_property_get_data_type (_tmp386_);
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp388_ = _tmp387_;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp389_ = begin;
#line 854 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		tracker_sparql_expression_convert_expression_to_string (_tmp385_, _tmp388_, _tmp389_);
#line 855 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp390_ = graph_separator;
#line 855 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_tmp390_ != NULL) {
#line 8797 "tracker-sparql-expression.c"
																																			GString* _tmp391_ = NULL;
																																			const gchar* _tmp392_ = NULL;
																																			gchar* _tmp393_ = NULL;
																																			gchar* _tmp394_ = NULL;
																																			TrackerProperty* _tmp395_ = NULL;
																																			const gchar* _tmp396_ = NULL;
																																			const gchar* _tmp397_ = NULL;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp391_ = sql;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp392_ = graph_separator;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp393_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp392_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp394_ = _tmp393_;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp395_ = prop;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp396_ = tracker_property_get_name (_tmp395_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp397_ = _tmp396_;
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append_printf (_tmp391_, " || %s || COALESCE((SELECT Uri FROM Resource WHERE ID = \"%s:graph\")," \
" '')", _tmp394_, _tmp397_);
#line 856 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (_tmp394_);
#line 8823 "tracker-sparql-expression.c"
																																		}
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp398_ = sql;
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp399_ = value_separator;
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp400_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp399_);
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp401_ = _tmp400_;
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_string_append_printf (_tmp398_, ",%s)", _tmp401_);
#line 858 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (_tmp401_);
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp402_ = sql;
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp403_ = prop;
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp404_ = tracker_property_get_table_name (_tmp403_);
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp405_ = _tmp404_;
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp406_ = expr;
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp407_ = _tmp406_->str;
#line 859 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_string_append_printf (_tmp402_, " FROM \"%s\" WHERE ID = %s)", _tmp405_, _tmp407_);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		result = TRACKER_PROPERTY_TYPE_STRING;
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (graph_separator);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (value_separator);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_string_free0 (expr);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_object_unref0 (prop);
#line 861 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return result;
#line 8863 "tracker-sparql-expression.c"
																																	} else {
																																		const gchar* _tmp408_ = NULL;
#line 864 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_tmp408_ = graph_separator;
#line 864 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		if (_tmp408_ == NULL) {
#line 8870 "tracker-sparql-expression.c"
																																			GString* _tmp409_ = NULL;
																																			TrackerProperty* _tmp410_ = NULL;
																																			const gchar* _tmp411_ = NULL;
																																			const gchar* _tmp412_ = NULL;
																																			TrackerProperty* _tmp413_ = NULL;
																																			const gchar* _tmp414_ = NULL;
																																			const gchar* _tmp415_ = NULL;
																																			GString* _tmp416_ = NULL;
																																			const gchar* _tmp417_ = NULL;
																																			TrackerProperty* _tmp418_ = NULL;
																																			TrackerPropertyType _tmp419_ = 0;
																																			TrackerPropertyType _tmp420_ = 0;
																																			TrackerProperty* _tmp422_ = NULL;
																																			TrackerPropertyType _tmp423_ = 0;
																																			TrackerPropertyType _tmp424_ = 0;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp409_ = sql;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp410_ = prop;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp411_ = tracker_property_get_name (_tmp410_);
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp412_ = _tmp411_;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp413_ = prop;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp414_ = tracker_property_get_table_name (_tmp413_);
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp415_ = _tmp414_;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp416_ = expr;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp417_ = _tmp416_->str;
#line 865 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append_printf (_tmp409_, "(SELECT \"%s\" FROM \"%s\" WHERE ID = %s)", _tmp412_, _tmp415_, _tmp417_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp418_ = prop;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp419_ = tracker_property_get_data_type (_tmp418_);
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp420_ = _tmp419_;
#line 867 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			if (_tmp420_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 8914 "tracker-sparql-expression.c"
																																				GString* _tmp421_ = NULL;
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				_tmp421_ = sql;
#line 868 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																				tracker_sparql_expression_append_collate (self, _tmp421_);
#line 8920 "tracker-sparql-expression.c"
																																			}
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp422_ = prop;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp423_ = tracker_property_get_data_type (_tmp422_);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp424_ = _tmp423_;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			result = _tmp424_;
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (graph_separator);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (value_separator);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 871 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return result;
#line 8940 "tracker-sparql-expression.c"
																																		} else {
																																			GString* _tmp425_ = NULL;
																																			glong begin = 0L;
																																			GString* _tmp426_ = NULL;
																																			gssize _tmp427_ = 0L;
																																			GString* _tmp428_ = NULL;
																																			TrackerProperty* _tmp429_ = NULL;
																																			const gchar* _tmp430_ = NULL;
																																			const gchar* _tmp431_ = NULL;
																																			GString* _tmp432_ = NULL;
																																			TrackerProperty* _tmp433_ = NULL;
																																			TrackerPropertyType _tmp434_ = 0;
																																			TrackerPropertyType _tmp435_ = 0;
																																			glong _tmp436_ = 0L;
																																			GString* _tmp437_ = NULL;
																																			const gchar* _tmp438_ = NULL;
																																			gchar* _tmp439_ = NULL;
																																			gchar* _tmp440_ = NULL;
																																			TrackerProperty* _tmp441_ = NULL;
																																			const gchar* _tmp442_ = NULL;
																																			const gchar* _tmp443_ = NULL;
																																			GString* _tmp444_ = NULL;
																																			TrackerProperty* _tmp445_ = NULL;
																																			const gchar* _tmp446_ = NULL;
																																			const gchar* _tmp447_ = NULL;
																																			GString* _tmp448_ = NULL;
																																			const gchar* _tmp449_ = NULL;
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp425_ = sql;
#line 873 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append (_tmp425_, "(SELECT ");
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp426_ = sql;
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp427_ = _tmp426_->len;
#line 874 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			begin = (glong) _tmp427_;
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp428_ = sql;
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp429_ = prop;
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp430_ = tracker_property_get_name (_tmp429_);
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp431_ = _tmp430_;
#line 875 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append_printf (_tmp428_, "\"%s\"", _tmp431_);
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp432_ = sql;
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp433_ = prop;
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp434_ = tracker_property_get_data_type (_tmp433_);
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp435_ = _tmp434_;
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp436_ = begin;
#line 876 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			tracker_sparql_expression_convert_expression_to_string (_tmp432_, _tmp435_, _tmp436_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp437_ = sql;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp438_ = graph_separator;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp439_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp438_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp440_ = _tmp439_;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp441_ = prop;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp442_ = tracker_property_get_name (_tmp441_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp443_ = _tmp442_;
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append_printf (_tmp437_, " || %s || COALESCE((SELECT Uri FROM Resource WHERE ID = \"%s:graph\")," \
" '')", _tmp440_, _tmp443_);
#line 877 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (_tmp440_);
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp444_ = sql;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp445_ = prop;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp446_ = tracker_property_get_table_name (_tmp445_);
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp447_ = _tmp446_;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp448_ = expr;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_tmp449_ = _tmp448_->str;
#line 878 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			g_string_append_printf (_tmp444_, " FROM \"%s\" WHERE ID = %s)", _tmp447_, _tmp449_);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			result = TRACKER_PROPERTY_TYPE_STRING;
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (graph_separator);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_free0 (value_separator);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_string_free0 (expr);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			_g_object_unref0 (prop);
#line 880 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																			return result;
#line 9044 "tracker-sparql-expression.c"
																																		}
																																	}
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (graph_separator);
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (value_separator);
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_string_free0 (expr);
#line 822 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_object_unref0 (prop);
#line 9055 "tracker-sparql-expression.c"
																																}
																															}
																														}
																													}
																												}
																											}
																										}
																									}
																								}
																							}
																						}
																					}
																				}
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}


static TrackerPropertyType tracker_sparql_expression_parse_type_uri (TrackerSparqlExpression* self, GError** error) {
	TrackerPropertyType result = 0;
	gchar* type_iri = NULL;
	TrackerPropertyType type = 0;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp25_ = NULL;
	GError * _inner_error_ = NULL;
#line 886 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 9115 "tracker-sparql-expression.c"
		} else {
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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-expression.vala"
			g_clear_error (&_inner_error_);
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 9125 "tracker-sparql-expression.c"
		}
	}
#line 890 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 9130 "tracker-sparql-expression.c"
		gchar* _tmp2_ = NULL;
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_last_string (self, 1);
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (type_iri);
#line 891 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type_iri = _tmp2_;
#line 9138 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp4_;
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (type_iri);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 9156 "tracker-sparql-expression.c"
			} else {
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (type_iri);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 9166 "tracker-sparql-expression.c"
			}
		}
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp3_) {
#line 9171 "tracker-sparql-expression.c"
			gchar* ns = NULL;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
			TrackerSparqlQuery* _tmp7_ = NULL;
			const gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
			gchar* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_ = NULL;
			gchar* _tmp14_ = NULL;
			gchar* _tmp15_ = NULL;
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = tracker_sparql_expression_get_last_string (self, 0);
#line 893 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			ns = _tmp5_;
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9202 "tracker-sparql-expression.c"
				} else {
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 894 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9214 "tracker-sparql-expression.c"
				}
			}
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = self->priv->query;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = ns;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = tracker_sparql_expression_get_last_string (self, 0);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = _tmp9_;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = string_substring (_tmp10_, (glong) 1, (glong) (-1));
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp11_;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = tracker_sparql_query_resolve_prefixed_name (_tmp7_, _tmp8_, _tmp12_, &_inner_error_);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = _tmp13_;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp12_);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp10_);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = _tmp14_;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9251 "tracker-sparql-expression.c"
				} else {
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9263 "tracker-sparql-expression.c"
				}
			}
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = _tmp6_;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = NULL;
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 895 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type_iri = _tmp15_;
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp6_);
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (ns);
#line 9278 "tracker-sparql-expression.c"
		} else {
			gchar* _tmp16_ = NULL;
			TrackerSparqlQuery* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_ = NULL;
			gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			gchar* _tmp24_ = NULL;
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9301 "tracker-sparql-expression.c"
				} else {
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 897 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9311 "tracker-sparql-expression.c"
				}
			}
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = self->priv->query;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = tracker_sparql_expression_get_last_string (self, 0);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = string_substring (_tmp19_, (glong) 1, (glong) (-1));
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = _tmp20_;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = tracker_sparql_query_resolve_prefixed_name (_tmp17_, "", _tmp21_, &_inner_error_);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = _tmp22_;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp21_);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp19_);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = _tmp23_;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9344 "tracker-sparql-expression.c"
				} else {
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9354 "tracker-sparql-expression.c"
				}
			}
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = _tmp16_;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = NULL;
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 898 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type_iri = _tmp24_;
#line 892 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp16_);
#line 9367 "tracker-sparql-expression.c"
		}
	}
#line 901 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp25_ = type_iri;
#line 901 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (g_strcmp0 (_tmp25_, TRACKER_SPARQL_EXPRESSION_XSD_NS "boolean") == 0) {
#line 902 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 9376 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp26_ = FALSE;
		gboolean _tmp27_ = FALSE;
		gboolean _tmp28_ = FALSE;
		gboolean _tmp29_ = FALSE;
		gboolean _tmp30_ = FALSE;
		gboolean _tmp31_ = FALSE;
		gboolean _tmp32_ = FALSE;
		gboolean _tmp33_ = FALSE;
		gboolean _tmp34_ = FALSE;
		gboolean _tmp35_ = FALSE;
		gboolean _tmp36_ = FALSE;
		gboolean _tmp37_ = FALSE;
		const gchar* _tmp38_ = NULL;
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp38_ = type_iri;
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (g_strcmp0 (_tmp38_, TRACKER_SPARQL_EXPRESSION_XSD_NS "integer") == 0) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp37_ = TRUE;
#line 9397 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp39_ = NULL;
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp39_ = type_iri;
#line 904 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp37_ = g_strcmp0 (_tmp39_, TRACKER_SPARQL_EXPRESSION_XSD_NS "nonPositiveInteger") == 0;
#line 9404 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp37_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp36_ = TRUE;
#line 9410 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp40_ = NULL;
#line 905 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp40_ = type_iri;
#line 905 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp36_ = g_strcmp0 (_tmp40_, TRACKER_SPARQL_EXPRESSION_XSD_NS "negativeInteger") == 0;
#line 9417 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp36_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = TRUE;
#line 9423 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp41_ = NULL;
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp41_ = type_iri;
#line 906 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = g_strcmp0 (_tmp41_, TRACKER_SPARQL_EXPRESSION_XSD_NS "long") == 0;
#line 9430 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp35_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp34_ = TRUE;
#line 9436 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp42_ = NULL;
#line 907 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp42_ = type_iri;
#line 907 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp34_ = g_strcmp0 (_tmp42_, TRACKER_SPARQL_EXPRESSION_XSD_NS "int") == 0;
#line 9443 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp34_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp33_ = TRUE;
#line 9449 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp43_ = NULL;
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp43_ = type_iri;
#line 908 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp33_ = g_strcmp0 (_tmp43_, TRACKER_SPARQL_EXPRESSION_XSD_NS "short") == 0;
#line 9456 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp33_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp32_ = TRUE;
#line 9462 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp44_ = NULL;
#line 909 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp44_ = type_iri;
#line 909 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp32_ = g_strcmp0 (_tmp44_, TRACKER_SPARQL_EXPRESSION_XSD_NS "byte") == 0;
#line 9469 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp32_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp31_ = TRUE;
#line 9475 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp45_ = NULL;
#line 910 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp45_ = type_iri;
#line 910 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp31_ = g_strcmp0 (_tmp45_, TRACKER_SPARQL_EXPRESSION_XSD_NS "nonNegativeInteger") == 0;
#line 9482 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp31_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp30_ = TRUE;
#line 9488 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp46_ = NULL;
#line 911 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp46_ = type_iri;
#line 911 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp30_ = g_strcmp0 (_tmp46_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedLong") == 0;
#line 9495 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp30_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = TRUE;
#line 9501 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp47_ = NULL;
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp47_ = type_iri;
#line 912 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = g_strcmp0 (_tmp47_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedInt") == 0;
#line 9508 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp29_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = TRUE;
#line 9514 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp48_ = NULL;
#line 913 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp48_ = type_iri;
#line 913 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = g_strcmp0 (_tmp48_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedShort") == 0;
#line 9521 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp28_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = TRUE;
#line 9527 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp49_ = NULL;
#line 914 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp49_ = type_iri;
#line 914 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = g_strcmp0 (_tmp49_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedByte") == 0;
#line 9534 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp27_) {
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = TRUE;
#line 9540 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp50_ = NULL;
#line 915 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp50_ = type_iri;
#line 915 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = g_strcmp0 (_tmp50_, TRACKER_SPARQL_EXPRESSION_XSD_NS "positiveInteger") == 0;
#line 9547 "tracker-sparql-expression.c"
		}
#line 903 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp26_) {
#line 916 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 9553 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp51_ = NULL;
#line 917 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = type_iri;
#line 917 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (g_strcmp0 (_tmp51_, TRACKER_SPARQL_EXPRESSION_XSD_NS "double") == 0) {
#line 918 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 9562 "tracker-sparql-expression.c"
			} else {
				const gchar* _tmp52_ = NULL;
#line 919 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp52_ = type_iri;
#line 919 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (g_strcmp0 (_tmp52_, TRACKER_SPARQL_EXPRESSION_XSD_NS "date") == 0) {
#line 920 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					type = TRACKER_PROPERTY_TYPE_DATE;
#line 9571 "tracker-sparql-expression.c"
				} else {
					const gchar* _tmp53_ = NULL;
#line 921 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp53_ = type_iri;
#line 921 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (g_strcmp0 (_tmp53_, TRACKER_SPARQL_EXPRESSION_XSD_NS "dateTime") == 0) {
#line 922 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						type = TRACKER_PROPERTY_TYPE_DATETIME;
#line 9580 "tracker-sparql-expression.c"
					} else {
#line 924 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						type = TRACKER_PROPERTY_TYPE_STRING;
#line 9584 "tracker-sparql-expression.c"
					}
				}
			}
		}
	}
#line 927 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 927 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (type_iri);
#line 927 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 9596 "tracker-sparql-expression.c"
}


gchar* tracker_sparql_expression_parse_string_literal (TrackerSparqlExpression* self, TrackerPropertyType* type, GError** error) {
	TrackerPropertyType _vala_type = 0;
	gchar* result = NULL;
	TrackerSparqlTokenType _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 930 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 931 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_vala_type = TRACKER_PROPERTY_TYPE_STRING;
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_next (self, &_inner_error_);
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return NULL;
#line 9619 "tracker-sparql-expression.c"
		} else {
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 933 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return NULL;
#line 9627 "tracker-sparql-expression.c"
		}
	}
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_last (self);
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1:
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2:
#line 9638 "tracker-sparql-expression.c"
		{
			GString* sb = NULL;
			GString* _tmp1_ = NULL;
			gchar* s = NULL;
			gchar* _tmp2_ = NULL;
			const gchar* p = NULL;
			const gchar* _tmp3_ = NULL;
			const gchar* end = NULL;
			const gchar* _tmp4_ = NULL;
			const gchar* _tmp5_ = NULL;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			gboolean _tmp50_ = FALSE;
			gboolean _tmp51_ = FALSE;
			GString* _tmp54_ = NULL;
			const gchar* _tmp55_ = NULL;
			gchar* _tmp56_ = NULL;
#line 937 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = g_string_new ("");
#line 937 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			sb = _tmp1_;
#line 939 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = tracker_sparql_expression_get_last_string (self, 1);
#line 939 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			s = _tmp2_;
#line 940 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = s;
#line 940 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			p = _tmp3_;
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = p;
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = s;
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = strlen (_tmp5_);
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = _tmp6_;
#line 941 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			end = _tmp4_ + _tmp7_;
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			while (TRUE) {
#line 9680 "tracker-sparql-expression.c"
				const gchar* _tmp8_ = NULL;
				const gchar* _tmp9_ = NULL;
				const gchar* q = NULL;
				const gchar* _tmp10_ = NULL;
				const gchar* _tmp11_ = NULL;
				const gchar* _tmp12_ = NULL;
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = p;
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp9_ = end;
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!(((glong) _tmp8_) < ((glong) _tmp9_))) {
#line 942 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					break;
#line 9695 "tracker-sparql-expression.c"
				}
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp10_ = p;
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = strchr (_tmp10_, (gint) '\\');
#line 943 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				q = _tmp11_;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp12_ = q;
#line 944 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp12_ == NULL) {
#line 9707 "tracker-sparql-expression.c"
					GString* _tmp13_ = NULL;
					const gchar* _tmp14_ = NULL;
					const gchar* _tmp15_ = NULL;
					const gchar* _tmp16_ = NULL;
					const gchar* _tmp17_ = NULL;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp13_ = sb;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp14_ = p;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp15_ = end;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp16_ = p;
#line 945 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append_len (_tmp13_, _tmp14_, (gssize) ((glong) (_tmp15_ - _tmp16_)));
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp17_ = end;
#line 946 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp17_;
#line 9727 "tracker-sparql-expression.c"
				} else {
					GString* _tmp18_ = NULL;
					const gchar* _tmp19_ = NULL;
					const gchar* _tmp20_ = NULL;
					const gchar* _tmp21_ = NULL;
					const gchar* _tmp22_ = NULL;
					const gchar* _tmp23_ = NULL;
					gchar _tmp24_ = '\0';
					const gchar* _tmp49_ = NULL;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp18_ = sb;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp19_ = p;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp20_ = q;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp21_ = p;
#line 948 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append_len (_tmp18_, _tmp19_, (gssize) ((glong) (_tmp20_ - _tmp21_)));
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = q;
#line 949 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp22_ + 1;
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp23_ = p;
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp24_ = ((gchar*) _tmp23_)[0];
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					switch (_tmp24_) {
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '\'':
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '"':
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '\\':
#line 9763 "tracker-sparql-expression.c"
						{
							GString* _tmp25_ = NULL;
							const gchar* _tmp26_ = NULL;
							gchar _tmp27_ = '\0';
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp25_ = sb;
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp26_ = p;
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp27_ = ((gchar*) _tmp26_)[0];
#line 954 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp25_, _tmp27_);
#line 955 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9778 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'b':
#line 9782 "tracker-sparql-expression.c"
						{
							GString* _tmp28_ = NULL;
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp28_ = sb;
#line 957 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp28_, '\b');
#line 958 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9791 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'f':
#line 9795 "tracker-sparql-expression.c"
						{
							GString* _tmp29_ = NULL;
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp29_ = sb;
#line 960 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp29_, '\f');
#line 961 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9804 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'n':
#line 9808 "tracker-sparql-expression.c"
						{
							GString* _tmp30_ = NULL;
#line 963 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp30_ = sb;
#line 963 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp30_, '\n');
#line 964 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9817 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'r':
#line 9821 "tracker-sparql-expression.c"
						{
							GString* _tmp31_ = NULL;
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp31_ = sb;
#line 966 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp31_, '\r');
#line 967 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9830 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 't':
#line 9834 "tracker-sparql-expression.c"
						{
							GString* _tmp32_ = NULL;
#line 969 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp32_ = sb;
#line 969 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp32_, '\t');
#line 970 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9843 "tracker-sparql-expression.c"
						}
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'u':
#line 9847 "tracker-sparql-expression.c"
						{
							gchar* ptr = NULL;
							const gchar* _tmp33_ = NULL;
							gunichar c = 0U;
							gchar* _tmp34_ = NULL;
							gchar _tmp35_ = '\0';
							gint _tmp36_ = 0;
							gchar* _tmp37_ = NULL;
							gchar _tmp38_ = '\0';
							gint _tmp39_ = 0;
							gchar* _tmp40_ = NULL;
							gchar _tmp41_ = '\0';
							gint _tmp42_ = 0;
							gchar* _tmp43_ = NULL;
							gchar _tmp44_ = '\0';
							gint _tmp45_ = 0;
							GString* _tmp46_ = NULL;
							gunichar _tmp47_ = 0U;
							const gchar* _tmp48_ = NULL;
#line 972 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp33_ = p;
#line 972 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							ptr = ((gchar*) _tmp33_) + 1;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp34_ = ptr;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp35_ = _tmp34_[0];
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp36_ = g_ascii_xdigit_value (_tmp35_);
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp37_ = ptr;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp38_ = _tmp37_[1];
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp39_ = g_ascii_xdigit_value (_tmp38_);
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp40_ = ptr;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp41_ = _tmp40_[2];
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp42_ = g_ascii_xdigit_value (_tmp41_);
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp43_ = ptr;
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp44_ = _tmp43_[3];
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp45_ = g_ascii_xdigit_value (_tmp44_);
#line 973 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							c = (((((((gunichar) _tmp36_) * 16) + _tmp39_) * 16) + _tmp42_) * 16) + _tmp45_;
#line 974 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp46_ = sb;
#line 974 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp47_ = c;
#line 974 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_unichar (_tmp46_, _tmp47_);
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp48_ = p;
#line 975 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							p = _tmp48_ + 4;
#line 976 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 9909 "tracker-sparql-expression.c"
						}
						default:
#line 950 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						break;
#line 9914 "tracker-sparql-expression.c"
					}
#line 978 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp49_ = p;
#line 978 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp49_ + 1;
#line 9920 "tracker-sparql-expression.c"
				}
			}
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp50_ = _tmp51_;
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (s);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_string_free0 (sb);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 9939 "tracker-sparql-expression.c"
				} else {
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (s);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_string_free0 (sb);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 9951 "tracker-sparql-expression.c"
				}
			}
#line 982 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp50_) {
#line 9956 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp52_ = 0;
				TrackerPropertyType _tmp53_ = 0;
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp53_ = tracker_sparql_expression_parse_type_uri (self, &_inner_error_);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp52_ = _tmp53_;
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (s);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_string_free0 (sb);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 9975 "tracker-sparql-expression.c"
					} else {
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (s);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_string_free0 (sb);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 9987 "tracker-sparql-expression.c"
					}
				}
#line 984 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_vala_type = _tmp52_;
#line 9992 "tracker-sparql-expression.c"
			}
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp54_ = sb;
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp55_ = _tmp54_->str;
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp56_ = g_strdup (_tmp55_);
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp56_;
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (s);
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_string_free0 (sb);
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (type) {
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				*type = _vala_type;
#line 10010 "tracker-sparql-expression.c"
			}
#line 987 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10014 "tracker-sparql-expression.c"
		}
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1:
#line 934 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2:
#line 10020 "tracker-sparql-expression.c"
		{
			gchar* _result_ = NULL;
			gchar* _tmp57_ = NULL;
			gboolean _tmp58_ = FALSE;
			gboolean _tmp59_ = FALSE;
#line 990 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp57_ = tracker_sparql_expression_get_last_string (self, 3);
#line 990 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_result_ = _tmp57_;
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp59_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_);
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp58_ = _tmp59_;
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_result_);
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 10044 "tracker-sparql-expression.c"
				} else {
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_result_);
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 10054 "tracker-sparql-expression.c"
				}
			}
#line 992 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp58_) {
#line 10059 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp60_ = 0;
				TrackerPropertyType _tmp61_ = 0;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp61_ = tracker_sparql_expression_parse_type_uri (self, &_inner_error_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp60_ = _tmp61_;
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_result_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 10076 "tracker-sparql-expression.c"
					} else {
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_result_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 10086 "tracker-sparql-expression.c"
					}
				}
#line 994 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_vala_type = _tmp60_;
#line 10091 "tracker-sparql-expression.c"
			}
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _result_;
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (type) {
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				*type = _vala_type;
#line 10099 "tracker-sparql-expression.c"
			}
#line 997 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10103 "tracker-sparql-expression.c"
		}
		default:
		{
			GError* _tmp62_ = NULL;
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp62_ = tracker_sparql_expression_get_error (self, "expected string literal");
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp62_;
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return NULL;
#line 10118 "tracker-sparql-expression.c"
			} else {
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 999 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return NULL;
#line 10126 "tracker-sparql-expression.c"
			}
		}
	}
#line 930 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (type) {
#line 930 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*type = _vala_type;
#line 10134 "tracker-sparql-expression.c"
	}
}


static TrackerPropertyType tracker_sparql_expression_translate_uri_expression (TrackerSparqlExpression* self, GString* sql, const gchar* uri, GError** error) {
	TrackerPropertyType result = 0;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
#line 1003 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1003 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1003 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (uri != NULL, 0);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 10162 "tracker-sparql-expression.c"
		} else {
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 10170 "tracker-sparql-expression.c"
		}
	}
#line 1004 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 10175 "tracker-sparql-expression.c"
		TrackerPropertyType _result_ = 0;
		GString* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		TrackerPropertyType _tmp4_ = 0;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = uri;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_translate_function (self, _tmp2_, _tmp3_, &_inner_error_);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_result_ = _tmp4_;
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 10196 "tracker-sparql-expression.c"
			} else {
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1006 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 10204 "tracker-sparql-expression.c"
			}
		}
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 10217 "tracker-sparql-expression.c"
			} else {
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1007 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 10225 "tracker-sparql-expression.c"
			}
		}
#line 1008 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _result_;
#line 1008 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 10232 "tracker-sparql-expression.c"
	} else {
		GString* _tmp5_ = NULL;
		TrackerSparqlLiteralBinding* binding = NULL;
		TrackerSparqlLiteralBinding* _tmp6_ = NULL;
		TrackerSparqlLiteralBinding* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		TrackerSparqlQuery* _tmp10_ = NULL;
		TrackerSparqlLiteralBinding* _tmp11_ = NULL;
		TrackerSparqlLiteralBinding* _tmp12_ = NULL;
#line 1011 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 1011 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp5_, "COALESCE((SELECT ID FROM Resource WHERE Uri = ?), 0)");
#line 1012 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_literal_binding_new ();
#line 1012 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		binding = _tmp6_;
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = binding;
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = uri;
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp7_->literal);
#line 1013 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_->literal = _tmp9_;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = self->priv->query;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = binding;
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _g_object_ref0 (_tmp11_);
#line 1014 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_->bindings = g_list_append (_tmp10_->bindings, _tmp12_);
#line 1015 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 1015 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (binding);
#line 1015 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 10275 "tracker-sparql-expression.c"
	}
}


static TrackerPropertyType tracker_sparql_expression_translate_primary_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerPropertyType type = 0;
	TrackerSparqlTokenType _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 1019 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1019 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 10295 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _tmp1_ = 0;
			GString* _tmp2_ = NULL;
			TrackerPropertyType _tmp3_ = 0;
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = sql;
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = tracker_sparql_expression_translate_bracketted_expression (self, _tmp2_, &_inner_error_);
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = _tmp3_;
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10314 "tracker-sparql-expression.c"
				} else {
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10322 "tracker-sparql-expression.c"
				}
			}
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp1_;
#line 1024 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10329 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IRI_REF:
#line 10333 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _tmp4_ = 0;
			GString* _tmp5_ = NULL;
			gchar* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			TrackerPropertyType _tmp8_ = 0;
			TrackerPropertyType _tmp9_ = 0;
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10351 "tracker-sparql-expression.c"
				} else {
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1026 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10359 "tracker-sparql-expression.c"
				}
			}
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = sql;
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = tracker_sparql_expression_get_last_string (self, 1);
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = _tmp6_;
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = tracker_sparql_expression_translate_uri_expression (self, _tmp5_, _tmp7_, &_inner_error_);
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = _tmp8_;
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp7_);
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = _tmp9_;
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10384 "tracker-sparql-expression.c"
				} else {
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10392 "tracker-sparql-expression.c"
				}
			}
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp4_;
#line 1027 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10399 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DECIMAL:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DOUBLE:
#line 10405 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp10_ = NULL;
			gboolean _tmp11_ = FALSE;
			gboolean _tmp12_ = FALSE;
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10420 "tracker-sparql-expression.c"
				} else {
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1030 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10428 "tracker-sparql-expression.c"
				}
			}
#line 1032 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = self->priv->query;
#line 1032 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = tracker_sparql_query_get_no_cache (_tmp10_);
#line 1032 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp11_;
#line 1032 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp12_) {
#line 10439 "tracker-sparql-expression.c"
				GString* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
#line 1033 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = sql;
#line 1033 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1033 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = _tmp14_;
#line 1033 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp13_, _tmp15_);
#line 1033 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp15_);
#line 10453 "tracker-sparql-expression.c"
			} else {
				GString* _tmp16_ = NULL;
				TrackerSparqlLiteralBinding* binding = NULL;
				TrackerSparqlLiteralBinding* _tmp17_ = NULL;
				TrackerSparqlLiteralBinding* _tmp18_ = NULL;
				gchar* _tmp19_ = NULL;
				TrackerSparqlQuery* _tmp20_ = NULL;
				TrackerSparqlLiteralBinding* _tmp21_ = NULL;
				TrackerSparqlLiteralBinding* _tmp22_ = NULL;
#line 1035 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = sql;
#line 1035 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp16_, "?");
#line 1037 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = tracker_sparql_literal_binding_new ();
#line 1037 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp17_;
#line 1038 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = binding;
#line 1038 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp19_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1038 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp18_->literal);
#line 1038 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_->literal = _tmp19_;
#line 1039 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = self->priv->query;
#line 1039 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = binding;
#line 1039 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp22_ = _g_object_ref0 (_tmp21_);
#line 1039 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_->bindings = g_list_append (_tmp20_->bindings, _tmp22_);
#line 1032 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 10489 "tracker-sparql-expression.c"
			}
#line 1042 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 1042 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10495 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_TRUE:
#line 10499 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp23_ = NULL;
			gboolean _tmp24_ = FALSE;
			gboolean _tmp25_ = FALSE;
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10514 "tracker-sparql-expression.c"
				} else {
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1044 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10522 "tracker-sparql-expression.c"
				}
			}
#line 1046 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = self->priv->query;
#line 1046 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = tracker_sparql_query_get_no_cache (_tmp23_);
#line 1046 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = _tmp24_;
#line 1046 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp25_) {
#line 10533 "tracker-sparql-expression.c"
				GString* _tmp26_ = NULL;
#line 1047 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 1047 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp26_, "1");
#line 10539 "tracker-sparql-expression.c"
			} else {
				GString* _tmp27_ = NULL;
				TrackerSparqlLiteralBinding* binding = NULL;
				TrackerSparqlLiteralBinding* _tmp28_ = NULL;
				TrackerSparqlLiteralBinding* _tmp29_ = NULL;
				gchar* _tmp30_ = NULL;
				TrackerSparqlLiteralBinding* _tmp31_ = NULL;
				TrackerSparqlQuery* _tmp32_ = NULL;
				TrackerSparqlLiteralBinding* _tmp33_ = NULL;
				TrackerSparqlLiteralBinding* _tmp34_ = NULL;
#line 1049 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = sql;
#line 1049 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp27_, "?");
#line 1051 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = tracker_sparql_literal_binding_new ();
#line 1051 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp28_;
#line 1052 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = binding;
#line 1052 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = g_strdup ("1");
#line 1052 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp29_->literal);
#line 1052 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_->literal = _tmp30_;
#line 1053 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = binding;
#line 1053 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp31_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1054 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = self->priv->query;
#line 1054 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp33_ = binding;
#line 1054 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp34_ = _g_object_ref0 (_tmp33_);
#line 1054 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_->bindings = g_list_append (_tmp32_->bindings, _tmp34_);
#line 1046 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 10580 "tracker-sparql-expression.c"
			}
#line 1057 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1057 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10586 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_FALSE:
#line 10590 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp35_ = NULL;
			gboolean _tmp36_ = FALSE;
			gboolean _tmp37_ = FALSE;
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10605 "tracker-sparql-expression.c"
				} else {
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1059 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10613 "tracker-sparql-expression.c"
				}
			}
#line 1061 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = self->priv->query;
#line 1061 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp36_ = tracker_sparql_query_get_no_cache (_tmp35_);
#line 1061 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp37_ = _tmp36_;
#line 1061 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp37_) {
#line 10624 "tracker-sparql-expression.c"
				GString* _tmp38_ = NULL;
#line 1062 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp38_ = sql;
#line 1062 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp38_, "0");
#line 10630 "tracker-sparql-expression.c"
			} else {
				GString* _tmp39_ = NULL;
				TrackerSparqlLiteralBinding* binding = NULL;
				TrackerSparqlLiteralBinding* _tmp40_ = NULL;
				TrackerSparqlLiteralBinding* _tmp41_ = NULL;
				gchar* _tmp42_ = NULL;
				TrackerSparqlLiteralBinding* _tmp43_ = NULL;
				TrackerSparqlQuery* _tmp44_ = NULL;
				TrackerSparqlLiteralBinding* _tmp45_ = NULL;
				TrackerSparqlLiteralBinding* _tmp46_ = NULL;
#line 1064 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp39_ = sql;
#line 1064 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp39_, "?");
#line 1066 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp40_ = tracker_sparql_literal_binding_new ();
#line 1066 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp40_;
#line 1067 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp41_ = binding;
#line 1067 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp42_ = g_strdup ("0");
#line 1067 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp41_->literal);
#line 1067 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp41_->literal = _tmp42_;
#line 1068 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp43_ = binding;
#line 1068 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp43_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1069 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp44_ = self->priv->query;
#line 1069 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp45_ = binding;
#line 1069 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp46_ = _g_object_ref0 (_tmp45_);
#line 1069 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp44_->bindings = g_list_append (_tmp44_->bindings, _tmp46_);
#line 1061 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 10671 "tracker-sparql-expression.c"
			}
#line 1072 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1072 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10677 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2:
#line 10687 "tracker-sparql-expression.c"
		{
			gchar* literal = NULL;
			TrackerPropertyType _tmp47_ = 0;
			gchar* _tmp48_ = NULL;
			TrackerPropertyType _tmp49_ = 0;
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp48_ = tracker_sparql_expression_parse_string_literal (self, &_tmp47_, &_inner_error_);
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp47_;
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			literal = _tmp48_;
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10707 "tracker-sparql-expression.c"
				} else {
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1077 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10715 "tracker-sparql-expression.c"
				}
			}
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp49_ = type;
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			switch (_tmp49_) {
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_INTEGER:
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_BOOLEAN:
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DOUBLE:
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DATE:
#line 1079 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DATETIME:
#line 10732 "tracker-sparql-expression.c"
				{
					TrackerSparqlQuery* _tmp50_ = NULL;
					gboolean _tmp51_ = FALSE;
					gboolean _tmp52_ = FALSE;
#line 1085 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp50_ = self->priv->query;
#line 1085 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp51_ = tracker_sparql_query_get_no_cache (_tmp50_);
#line 1085 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp52_ = _tmp51_;
#line 1085 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp52_) {
#line 10745 "tracker-sparql-expression.c"
						GString* _tmp53_ = NULL;
						const gchar* _tmp54_ = NULL;
						gchar* _tmp55_ = NULL;
						gchar* _tmp56_ = NULL;
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp53_ = sql;
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp54_ = literal;
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp55_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp54_);
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp56_ = _tmp55_;
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp53_, _tmp56_);
#line 1086 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp56_);
#line 10762 "tracker-sparql-expression.c"
					} else {
						TrackerSparqlLiteralBinding* binding = NULL;
						TrackerSparqlLiteralBinding* _tmp57_ = NULL;
						TrackerSparqlLiteralBinding* _tmp58_ = NULL;
						const gchar* _tmp59_ = NULL;
						gchar* _tmp60_ = NULL;
						TrackerSparqlLiteralBinding* _tmp61_ = NULL;
						TrackerPropertyType _tmp62_ = 0;
						TrackerSparqlQuery* _tmp63_ = NULL;
						TrackerSparqlLiteralBinding* _tmp64_ = NULL;
						TrackerSparqlLiteralBinding* _tmp65_ = NULL;
						GString* _tmp66_ = NULL;
#line 1088 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp57_ = tracker_sparql_literal_binding_new ();
#line 1088 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						binding = _tmp57_;
#line 1089 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp58_ = binding;
#line 1089 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp59_ = literal;
#line 1089 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp60_ = g_strdup (_tmp59_);
#line 1089 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp58_->literal);
#line 1089 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp58_->literal = _tmp60_;
#line 1090 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp61_ = binding;
#line 1090 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp62_ = type;
#line 1090 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						((TrackerSparqlDataBinding*) _tmp61_)->data_type = _tmp62_;
#line 1091 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp63_ = self->priv->query;
#line 1091 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp64_ = binding;
#line 1091 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp65_ = _g_object_ref0 (_tmp64_);
#line 1091 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp63_->bindings = g_list_append (_tmp63_->bindings, _tmp65_);
#line 1092 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp66_ = sql;
#line 1092 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp66_, "?");
#line 1085 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 10809 "tracker-sparql-expression.c"
					}
#line 1094 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = type;
#line 1094 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (literal);
#line 1094 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 10817 "tracker-sparql-expression.c"
				}
				default:
				{
					TrackerSparqlQuery* _tmp67_ = NULL;
					gboolean _tmp68_ = FALSE;
					gboolean _tmp69_ = FALSE;
					GString* _tmp82_ = NULL;
#line 1096 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp67_ = self->priv->query;
#line 1096 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp68_ = tracker_sparql_query_get_no_cache (_tmp67_);
#line 1096 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp69_ = _tmp68_;
#line 1096 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp69_) {
#line 10833 "tracker-sparql-expression.c"
						GString* _tmp70_ = NULL;
						const gchar* _tmp71_ = NULL;
						gchar* _tmp72_ = NULL;
						gchar* _tmp73_ = NULL;
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp70_ = sql;
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp71_ = literal;
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp72_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp71_);
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp73_ = _tmp72_;
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp70_, _tmp73_);
#line 1097 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp73_);
#line 10850 "tracker-sparql-expression.c"
					} else {
						TrackerSparqlLiteralBinding* binding = NULL;
						TrackerSparqlLiteralBinding* _tmp74_ = NULL;
						TrackerSparqlLiteralBinding* _tmp75_ = NULL;
						const gchar* _tmp76_ = NULL;
						gchar* _tmp77_ = NULL;
						TrackerSparqlQuery* _tmp78_ = NULL;
						TrackerSparqlLiteralBinding* _tmp79_ = NULL;
						TrackerSparqlLiteralBinding* _tmp80_ = NULL;
						GString* _tmp81_ = NULL;
#line 1099 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp74_ = tracker_sparql_literal_binding_new ();
#line 1099 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						binding = _tmp74_;
#line 1100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp75_ = binding;
#line 1100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp76_ = literal;
#line 1100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp77_ = g_strdup (_tmp76_);
#line 1100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp75_->literal);
#line 1100 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp75_->literal = _tmp77_;
#line 1101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp78_ = self->priv->query;
#line 1101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp79_ = binding;
#line 1101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp80_ = _g_object_ref0 (_tmp79_);
#line 1101 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp78_->bindings = g_list_append (_tmp78_->bindings, _tmp80_);
#line 1102 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp81_ = sql;
#line 1102 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp81_, "?");
#line 1096 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 10889 "tracker-sparql-expression.c"
					}
#line 1104 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp82_ = sql;
#line 1104 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_append_collate (self, _tmp82_);
#line 1105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = TRACKER_PROPERTY_TYPE_STRING;
#line 1105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (literal);
#line 1105 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 10901 "tracker-sparql-expression.c"
				}
			}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (literal);
#line 10906 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_INTEGER:
#line 10910 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp83_ = NULL;
			gboolean _tmp84_ = FALSE;
			gboolean _tmp85_ = FALSE;
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10925 "tracker-sparql-expression.c"
				} else {
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1108 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10933 "tracker-sparql-expression.c"
				}
			}
#line 1110 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp83_ = self->priv->query;
#line 1110 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp84_ = tracker_sparql_query_get_no_cache (_tmp83_);
#line 1110 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp85_ = _tmp84_;
#line 1110 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp85_) {
#line 10944 "tracker-sparql-expression.c"
				GString* _tmp86_ = NULL;
				gchar* _tmp87_ = NULL;
				gchar* _tmp88_ = NULL;
#line 1111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp86_ = sql;
#line 1111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp87_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp88_ = _tmp87_;
#line 1111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp86_, _tmp88_);
#line 1111 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp88_);
#line 10958 "tracker-sparql-expression.c"
			} else {
				GString* _tmp89_ = NULL;
				TrackerSparqlLiteralBinding* binding = NULL;
				TrackerSparqlLiteralBinding* _tmp90_ = NULL;
				TrackerSparqlLiteralBinding* _tmp91_ = NULL;
				gchar* _tmp92_ = NULL;
				TrackerSparqlLiteralBinding* _tmp93_ = NULL;
				TrackerSparqlQuery* _tmp94_ = NULL;
				TrackerSparqlLiteralBinding* _tmp95_ = NULL;
				TrackerSparqlLiteralBinding* _tmp96_ = NULL;
#line 1113 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp89_ = sql;
#line 1113 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp89_, "?");
#line 1115 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp90_ = tracker_sparql_literal_binding_new ();
#line 1115 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp90_;
#line 1116 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp91_ = binding;
#line 1116 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp92_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1116 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp91_->literal);
#line 1116 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp91_->literal = _tmp92_;
#line 1117 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp93_ = binding;
#line 1117 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp93_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp94_ = self->priv->query;
#line 1118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp95_ = binding;
#line 1118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp96_ = _g_object_ref0 (_tmp95_);
#line 1118 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp94_->bindings = g_list_append (_tmp94_->bindings, _tmp96_);
#line 1110 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 10999 "tracker-sparql-expression.c"
			}
#line 1121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1121 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11005 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_VAR:
#line 11009 "tracker-sparql-expression.c"
		{
			gchar* variable_name = NULL;
			gchar* _tmp97_ = NULL;
			gchar* _tmp98_ = NULL;
			gchar* _tmp99_ = NULL;
			gchar* _tmp100_ = NULL;
			TrackerSparqlVariable* variable = NULL;
			TrackerSparqlContext* _tmp101_ = NULL;
			TrackerSparqlContext* _tmp102_ = NULL;
			const gchar* _tmp103_ = NULL;
			TrackerSparqlVariable* _tmp104_ = NULL;
			TrackerSparqlVariable* _tmp105_ = NULL;
			GString* _tmp106_ = NULL;
			TrackerSparqlVariable* _tmp107_ = NULL;
			const gchar* _tmp108_ = NULL;
			const gchar* _tmp109_ = NULL;
			TrackerSparqlVariable* _tmp110_ = NULL;
			TrackerSparqlVariableBinding* _tmp111_ = NULL;
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11038 "tracker-sparql-expression.c"
				} else {
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1123 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11046 "tracker-sparql-expression.c"
				}
			}
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp97_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp98_ = _tmp97_;
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp99_ = string_substring (_tmp98_, (glong) 1, (glong) (-1));
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp100_ = _tmp99_;
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp98_);
#line 1124 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable_name = _tmp100_;
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp101_ = tracker_sparql_expression_get_context (self);
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp102_ = _tmp101_;
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp103_ = variable_name;
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp104_ = tracker_sparql_context_get_variable (_tmp102_, _tmp103_);
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp105_ = _g_object_ref0 (_tmp104_);
#line 1125 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp105_;
#line 1126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp106_ = sql;
#line 1126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp107_ = variable;
#line 1126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp108_ = tracker_sparql_variable_get_sql_expression (_tmp107_);
#line 1126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp109_ = _tmp108_;
#line 1126 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp106_, _tmp109_);
#line 1128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp110_ = variable;
#line 1128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp111_ = _tmp110_->binding;
#line 1128 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp111_ == NULL) {
#line 1129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 1129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 1129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 1129 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 11097 "tracker-sparql-expression.c"
			} else {
				TrackerSparqlVariable* _tmp112_ = NULL;
				TrackerSparqlVariableBinding* _tmp113_ = NULL;
				TrackerPropertyType _tmp114_ = 0;
				TrackerSparqlVariable* _tmp116_ = NULL;
				TrackerSparqlVariableBinding* _tmp117_ = NULL;
				TrackerPropertyType _tmp118_ = 0;
#line 1131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp112_ = variable;
#line 1131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp113_ = _tmp112_->binding;
#line 1131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp114_ = ((TrackerSparqlDataBinding*) _tmp113_)->data_type;
#line 1131 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp114_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 11113 "tracker-sparql-expression.c"
					GString* _tmp115_ = NULL;
#line 1132 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp115_ = sql;
#line 1132 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_append_collate (self, _tmp115_);
#line 11119 "tracker-sparql-expression.c"
				}
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp116_ = variable;
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp117_ = _tmp116_->binding;
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp118_ = ((TrackerSparqlDataBinding*) _tmp117_)->data_type;
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = _tmp118_;
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 1134 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 11135 "tracker-sparql-expression.c"
			}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (variable_name);
#line 11141 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STR:
#line 11145 "tracker-sparql-expression.c"
		{
			GString* _tmp119_ = NULL;
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp119_ = sql;
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_str (self, _tmp119_, &_inner_error_);
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11160 "tracker-sparql-expression.c"
				} else {
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1137 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11168 "tracker-sparql-expression.c"
				}
			}
#line 1138 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1138 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11175 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANG:
#line 11179 "tracker-sparql-expression.c"
		{
			GString* _tmp120_ = NULL;
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11192 "tracker-sparql-expression.c"
				} else {
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1140 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11200 "tracker-sparql-expression.c"
				}
			}
#line 1141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp120_ = sql;
#line 1141 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp120_, "''");
#line 1142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1142 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11211 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES:
#line 11215 "tracker-sparql-expression.c"
		{
			GString* _tmp121_ = NULL;
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11228 "tracker-sparql-expression.c"
				} else {
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1144 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11236 "tracker-sparql-expression.c"
				}
			}
#line 1145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp121_ = sql;
#line 1145 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp121_, "0");
#line 1146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1146 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11247 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DATATYPE:
#line 11251 "tracker-sparql-expression.c"
		{
			GString* _tmp122_ = NULL;
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp122_ = sql;
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_datatype (self, _tmp122_, &_inner_error_);
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11266 "tracker-sparql-expression.c"
				} else {
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1148 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11274 "tracker-sparql-expression.c"
				}
			}
#line 1149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 1149 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11281 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_BOUND:
#line 11285 "tracker-sparql-expression.c"
		{
			GString* _tmp123_ = NULL;
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp123_ = sql;
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_bound_call (self, _tmp123_, &_inner_error_);
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11300 "tracker-sparql-expression.c"
				} else {
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1151 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11308 "tracker-sparql-expression.c"
				}
			}
#line 1152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1152 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11315 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COALESCE:
#line 11319 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _result_ = 0;
			GString* _tmp124_ = NULL;
			TrackerPropertyType _tmp125_ = 0;
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11334 "tracker-sparql-expression.c"
				} else {
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1154 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11342 "tracker-sparql-expression.c"
				}
			}
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11355 "tracker-sparql-expression.c"
				} else {
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1155 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11363 "tracker-sparql-expression.c"
				}
			}
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp124_ = sql;
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp125_ = tracker_sparql_expression_translate_function (self, _tmp124_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "coalesce", &_inner_error_);
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_result_ = _tmp125_;
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11380 "tracker-sparql-expression.c"
				} else {
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1156 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11388 "tracker-sparql-expression.c"
				}
			}
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11401 "tracker-sparql-expression.c"
				} else {
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1157 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11409 "tracker-sparql-expression.c"
				}
			}
#line 1158 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _result_;
#line 1158 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11416 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IF:
#line 11420 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _tmp126_ = 0;
			GString* _tmp127_ = NULL;
			TrackerPropertyType _tmp128_ = 0;
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp127_ = sql;
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp128_ = tracker_sparql_expression_translate_if_call (self, _tmp127_, &_inner_error_);
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp126_ = _tmp128_;
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11439 "tracker-sparql-expression.c"
				} else {
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11447 "tracker-sparql-expression.c"
				}
			}
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp126_;
#line 1160 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11454 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SAMETERM:
#line 11458 "tracker-sparql-expression.c"
		{
			GString* _tmp129_ = NULL;
			GString* _tmp130_ = NULL;
			GString* _tmp131_ = NULL;
			GString* _tmp132_ = NULL;
			GString* _tmp133_ = NULL;
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11475 "tracker-sparql-expression.c"
				} else {
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1162 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11483 "tracker-sparql-expression.c"
				}
			}
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11496 "tracker-sparql-expression.c"
				} else {
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1163 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11504 "tracker-sparql-expression.c"
				}
			}
#line 1164 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp129_ = sql;
#line 1164 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp129_, "(");
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp130_ = sql;
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp130_, &_inner_error_);
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11523 "tracker-sparql-expression.c"
				} else {
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1165 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11531 "tracker-sparql-expression.c"
				}
			}
#line 1166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp131_ = sql;
#line 1166 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp131_, " = ");
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11548 "tracker-sparql-expression.c"
				} else {
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1167 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11556 "tracker-sparql-expression.c"
				}
			}
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp132_ = sql;
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp132_, &_inner_error_);
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11571 "tracker-sparql-expression.c"
				} else {
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1168 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11579 "tracker-sparql-expression.c"
				}
			}
#line 1169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp133_ = sql;
#line 1169 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp133_, ")");
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11596 "tracker-sparql-expression.c"
				} else {
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1170 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11604 "tracker-sparql-expression.c"
				}
			}
#line 1171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1171 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11611 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISIRI:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISURI:
#line 11617 "tracker-sparql-expression.c"
		{
			GString* _tmp134_ = NULL;
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp134_ = sql;
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_isuri (self, _tmp134_, &_inner_error_);
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11632 "tracker-sparql-expression.c"
				} else {
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1174 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11640 "tracker-sparql-expression.c"
				}
			}
#line 1175 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1175 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11647 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISBLANK:
#line 11651 "tracker-sparql-expression.c"
		{
			GString* _tmp135_ = NULL;
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11664 "tracker-sparql-expression.c"
				} else {
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1177 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11672 "tracker-sparql-expression.c"
				}
			}
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11685 "tracker-sparql-expression.c"
				} else {
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1178 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11693 "tracker-sparql-expression.c"
				}
			}
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11706 "tracker-sparql-expression.c"
				} else {
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1179 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11714 "tracker-sparql-expression.c"
				}
			}
#line 1181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp135_ = sql;
#line 1181 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp135_, "0");
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11731 "tracker-sparql-expression.c"
				} else {
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1182 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11739 "tracker-sparql-expression.c"
				}
			}
#line 1183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1183 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11746 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL:
#line 11750 "tracker-sparql-expression.c"
		{
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11762 "tracker-sparql-expression.c"
				} else {
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1185 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11770 "tracker-sparql-expression.c"
				}
			}
#line 1186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1186 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11777 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_REGEX:
#line 11781 "tracker-sparql-expression.c"
		{
			GString* _tmp136_ = NULL;
			TrackerSparqlQuery* _tmp137_ = NULL;
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp136_ = sql;
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_regex (self, _tmp136_, &_inner_error_);
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11797 "tracker-sparql-expression.c"
				} else {
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1188 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11805 "tracker-sparql-expression.c"
				}
			}
#line 1189 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp137_ = self->priv->query;
#line 1189 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_query_set_no_cache (_tmp137_, TRUE);
#line 1190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1190 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11816 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_EXISTS:
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_NOT:
#line 11822 "tracker-sparql-expression.c"
		{
			GString* _tmp138_ = NULL;
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp138_ = sql;
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_exists (self, _tmp138_, &_inner_error_);
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11837 "tracker-sparql-expression.c"
				} else {
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1193 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11845 "tracker-sparql-expression.c"
				}
			}
#line 1194 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1194 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11852 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COUNT:
#line 11856 "tracker-sparql-expression.c"
		{
			GString* _tmp139_ = NULL;
			GString* _tmp140_ = NULL;
			GString* _tmp141_ = NULL;
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11871 "tracker-sparql-expression.c"
				} else {
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1196 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11879 "tracker-sparql-expression.c"
				}
			}
#line 1197 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp139_ = sql;
#line 1197 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp139_, "COUNT(");
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp140_ = sql;
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_aggregate_expression (self, _tmp140_, &_inner_error_);
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11898 "tracker-sparql-expression.c"
				} else {
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1198 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11906 "tracker-sparql-expression.c"
				}
			}
#line 1199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp141_ = sql;
#line 1199 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp141_, ")");
#line 1200 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1200 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11917 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SUM:
#line 11921 "tracker-sparql-expression.c"
		{
			GString* _tmp142_ = NULL;
			TrackerPropertyType _tmp143_ = 0;
			GString* _tmp144_ = NULL;
			TrackerPropertyType _tmp145_ = 0;
			GString* _tmp146_ = NULL;
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11938 "tracker-sparql-expression.c"
				} else {
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1202 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11946 "tracker-sparql-expression.c"
				}
			}
#line 1203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp142_ = sql;
#line 1203 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp142_, "SUM(");
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp144_ = sql;
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp145_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp144_, &_inner_error_);
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp143_ = _tmp145_;
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11967 "tracker-sparql-expression.c"
				} else {
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11975 "tracker-sparql-expression.c"
				}
			}
#line 1204 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp143_;
#line 1205 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp146_ = sql;
#line 1205 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp146_, ")");
#line 1206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1206 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11988 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_AVG:
#line 11992 "tracker-sparql-expression.c"
		{
			GString* _tmp147_ = NULL;
			TrackerPropertyType _tmp148_ = 0;
			GString* _tmp149_ = NULL;
			TrackerPropertyType _tmp150_ = 0;
			GString* _tmp151_ = NULL;
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12009 "tracker-sparql-expression.c"
				} else {
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1208 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12017 "tracker-sparql-expression.c"
				}
			}
#line 1209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp147_ = sql;
#line 1209 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp147_, "AVG(");
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp149_ = sql;
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp150_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp149_, &_inner_error_);
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp148_ = _tmp150_;
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12038 "tracker-sparql-expression.c"
				} else {
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12046 "tracker-sparql-expression.c"
				}
			}
#line 1210 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp148_;
#line 1211 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp151_ = sql;
#line 1211 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp151_, ")");
#line 1212 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1212 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12059 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_MIN:
#line 12063 "tracker-sparql-expression.c"
		{
			GString* _tmp152_ = NULL;
			TrackerPropertyType _tmp153_ = 0;
			GString* _tmp154_ = NULL;
			TrackerPropertyType _tmp155_ = 0;
			GString* _tmp156_ = NULL;
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12080 "tracker-sparql-expression.c"
				} else {
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1214 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12088 "tracker-sparql-expression.c"
				}
			}
#line 1215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp152_ = sql;
#line 1215 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp152_, "MIN(");
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp154_ = sql;
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp155_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp154_, &_inner_error_);
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp153_ = _tmp155_;
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12109 "tracker-sparql-expression.c"
				} else {
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12117 "tracker-sparql-expression.c"
				}
			}
#line 1216 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp153_;
#line 1217 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp156_ = sql;
#line 1217 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp156_, ")");
#line 1218 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1218 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12130 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_MAX:
#line 12134 "tracker-sparql-expression.c"
		{
			GString* _tmp157_ = NULL;
			TrackerPropertyType _tmp158_ = 0;
			GString* _tmp159_ = NULL;
			TrackerPropertyType _tmp160_ = 0;
			GString* _tmp161_ = NULL;
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12151 "tracker-sparql-expression.c"
				} else {
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1220 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12159 "tracker-sparql-expression.c"
				}
			}
#line 1221 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp157_ = sql;
#line 1221 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp157_, "MAX(");
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp159_ = sql;
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp160_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp159_, &_inner_error_);
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp158_ = _tmp160_;
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12180 "tracker-sparql-expression.c"
				} else {
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12188 "tracker-sparql-expression.c"
				}
			}
#line 1222 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp158_;
#line 1223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp161_ = sql;
#line 1223 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp161_, ")");
#line 1224 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1224 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12201 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_GROUP_CONCAT:
#line 12205 "tracker-sparql-expression.c"
		{
			GString* _tmp162_ = NULL;
			GString* _tmp163_ = NULL;
			GString* _tmp164_ = NULL;
			gchar* _tmp165_ = NULL;
			gchar* _tmp166_ = NULL;
			GString* _tmp167_ = NULL;
			gchar* _tmp168_ = NULL;
			gchar* _tmp169_ = NULL;
			GString* _tmp170_ = NULL;
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12226 "tracker-sparql-expression.c"
				} else {
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1226 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12234 "tracker-sparql-expression.c"
				}
			}
#line 1227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp162_ = sql;
#line 1227 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp162_, "GROUP_CONCAT(");
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12251 "tracker-sparql-expression.c"
				} else {
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1228 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12259 "tracker-sparql-expression.c"
				}
			}
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp163_ = sql;
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_string (self, _tmp163_, &_inner_error_);
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12274 "tracker-sparql-expression.c"
				} else {
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1229 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12282 "tracker-sparql-expression.c"
				}
			}
#line 1230 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp164_ = sql;
#line 1230 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp164_, ", ");
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12299 "tracker-sparql-expression.c"
				} else {
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1231 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12307 "tracker-sparql-expression.c"
				}
			}
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp166_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp165_ = _tmp166_;
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12322 "tracker-sparql-expression.c"
				} else {
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12330 "tracker-sparql-expression.c"
				}
			}
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp167_ = sql;
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp168_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp165_);
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp169_ = _tmp168_;
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp167_, _tmp169_);
#line 1232 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp169_);
#line 1233 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp170_ = sql;
#line 1233 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp170_, ")");
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_tmp165_);
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12359 "tracker-sparql-expression.c"
				} else {
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_tmp165_);
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1234 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12369 "tracker-sparql-expression.c"
				}
			}
#line 1235 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1235 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp165_);
#line 1235 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12378 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX:
#line 12382 "tracker-sparql-expression.c"
		{
			gchar* ns = NULL;
			gchar* _tmp171_ = NULL;
			gchar* uri = NULL;
			TrackerSparqlQuery* _tmp172_ = NULL;
			const gchar* _tmp173_ = NULL;
			gchar* _tmp174_ = NULL;
			gchar* _tmp175_ = NULL;
			gchar* _tmp176_ = NULL;
			gchar* _tmp177_ = NULL;
			gchar* _tmp178_ = NULL;
			gchar* _tmp179_ = NULL;
			TrackerPropertyType _tmp180_ = 0;
			GString* _tmp181_ = NULL;
			const gchar* _tmp182_ = NULL;
			TrackerPropertyType _tmp183_ = 0;
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12409 "tracker-sparql-expression.c"
				} else {
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1237 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12417 "tracker-sparql-expression.c"
				}
			}
#line 1238 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp171_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1238 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			ns = _tmp171_;
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12436 "tracker-sparql-expression.c"
				} else {
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1239 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12446 "tracker-sparql-expression.c"
				}
			}
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp172_ = self->priv->query;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp173_ = ns;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp174_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp175_ = _tmp174_;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp176_ = string_substring (_tmp175_, (glong) 1, (glong) (-1));
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp177_ = _tmp176_;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp178_ = tracker_sparql_query_resolve_prefixed_name (_tmp172_, _tmp173_, _tmp177_, &_inner_error_);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp179_ = _tmp178_;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp177_);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp175_);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			uri = _tmp179_;
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12481 "tracker-sparql-expression.c"
				} else {
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1240 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12491 "tracker-sparql-expression.c"
				}
			}
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp181_ = sql;
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp182_ = uri;
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp183_ = tracker_sparql_expression_translate_uri_expression (self, _tmp181_, _tmp182_, &_inner_error_);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp180_ = _tmp183_;
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12514 "tracker-sparql-expression.c"
				} else {
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12526 "tracker-sparql-expression.c"
				}
			}
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp180_;
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (uri);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (ns);
#line 1241 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12537 "tracker-sparql-expression.c"
		}
#line 1022 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COLON:
#line 12541 "tracker-sparql-expression.c"
		{
			gchar* uri = NULL;
			TrackerSparqlQuery* _tmp184_ = NULL;
			gchar* _tmp185_ = NULL;
			gchar* _tmp186_ = NULL;
			gchar* _tmp187_ = NULL;
			gchar* _tmp188_ = NULL;
			gchar* _tmp189_ = NULL;
			gchar* _tmp190_ = NULL;
			TrackerPropertyType _tmp191_ = 0;
			GString* _tmp192_ = NULL;
			const gchar* _tmp193_ = NULL;
			TrackerPropertyType _tmp194_ = 0;
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12565 "tracker-sparql-expression.c"
				} else {
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1243 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12573 "tracker-sparql-expression.c"
				}
			}
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp184_ = self->priv->query;
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp185_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp186_ = _tmp185_;
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp187_ = string_substring (_tmp186_, (glong) 1, (glong) (-1));
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp188_ = _tmp187_;
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp189_ = tracker_sparql_query_resolve_prefixed_name (_tmp184_, "", _tmp188_, &_inner_error_);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp190_ = _tmp189_;
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp188_);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp186_);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			uri = _tmp190_;
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12604 "tracker-sparql-expression.c"
				} else {
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1244 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12612 "tracker-sparql-expression.c"
				}
			}
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp192_ = sql;
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp193_ = uri;
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp194_ = tracker_sparql_expression_translate_uri_expression (self, _tmp192_, _tmp193_, &_inner_error_);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp191_ = _tmp194_;
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12633 "tracker-sparql-expression.c"
				} else {
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12643 "tracker-sparql-expression.c"
				}
			}
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp191_;
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (uri);
#line 1245 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12652 "tracker-sparql-expression.c"
		}
		default:
		{
			GError* _tmp195_ = NULL;
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp195_ = tracker_sparql_expression_get_error (self, "expected primary expression");
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp195_;
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12667 "tracker-sparql-expression.c"
			} else {
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1247 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12675 "tracker-sparql-expression.c"
			}
		}
	}
}


static TrackerPropertyType tracker_sparql_expression_translate_unary_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	TrackerPropertyType _tmp19_ = 0;
	GString* _tmp20_ = NULL;
	TrackerPropertyType _tmp21_ = 0;
	GError * _inner_error_ = NULL;
#line 1251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1251 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_NEG, &_inner_error_);
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12706 "tracker-sparql-expression.c"
		} else {
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12714 "tracker-sparql-expression.c"
		}
	}
#line 1252 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 12719 "tracker-sparql-expression.c"
		GString* _tmp2_ = NULL;
		TrackerPropertyType optype = 0;
		GString* _tmp3_ = NULL;
		TrackerPropertyType _tmp4_ = 0;
		GString* _tmp5_ = NULL;
		TrackerPropertyType _tmp6_ = 0;
#line 1253 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 1253 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp2_, "NOT (");
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = sql;
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_translate_primary_expression (self, _tmp3_, &_inner_error_);
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp4_;
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12744 "tracker-sparql-expression.c"
			} else {
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1254 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12752 "tracker-sparql-expression.c"
			}
		}
#line 1255 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 1255 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp5_, ")");
#line 1256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1256 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 12763 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12775 "tracker-sparql-expression.c"
			} else {
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1257 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12783 "tracker-sparql-expression.c"
			}
		}
#line 1259 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1259 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 12790 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp8_ = FALSE;
		gboolean _tmp9_ = FALSE;
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PLUS, &_inner_error_);
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = _tmp9_;
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12806 "tracker-sparql-expression.c"
			} else {
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12814 "tracker-sparql-expression.c"
			}
		}
#line 1260 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp8_) {
#line 12819 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp10_ = 0;
			GString* _tmp11_ = NULL;
			TrackerPropertyType _tmp12_ = 0;
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = sql;
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = tracker_sparql_expression_translate_primary_expression (self, _tmp11_, &_inner_error_);
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = _tmp12_;
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12837 "tracker-sparql-expression.c"
				} else {
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12845 "tracker-sparql-expression.c"
				}
			}
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp10_;
#line 1261 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 12852 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp13_ = FALSE;
			gboolean _tmp14_ = FALSE;
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_MINUS, &_inner_error_);
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = _tmp14_;
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12868 "tracker-sparql-expression.c"
				} else {
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12876 "tracker-sparql-expression.c"
				}
			}
#line 1262 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp13_) {
#line 12881 "tracker-sparql-expression.c"
				GString* _tmp15_ = NULL;
				TrackerPropertyType optype = 0;
				GString* _tmp16_ = NULL;
				TrackerPropertyType _tmp17_ = 0;
				GString* _tmp18_ = NULL;
#line 1263 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = sql;
#line 1263 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp15_, "-(");
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = sql;
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = tracker_sparql_expression_translate_primary_expression (self, _tmp16_, &_inner_error_);
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				optype = _tmp17_;
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12905 "tracker-sparql-expression.c"
					} else {
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1264 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12913 "tracker-sparql-expression.c"
					}
				}
#line 1265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = sql;
#line 1265 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp18_, ")");
#line 1266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = optype;
#line 1266 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 12924 "tracker-sparql-expression.c"
			}
		}
	}
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp20_ = sql;
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp21_ = tracker_sparql_expression_translate_primary_expression (self, _tmp20_, &_inner_error_);
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = _tmp21_;
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12942 "tracker-sparql-expression.c"
		} else {
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12950 "tracker-sparql-expression.c"
		}
	}
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp19_;
#line 1268 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12957 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_multiplicative_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType optype = 0;
	GString* _tmp2_ = NULL;
	TrackerPropertyType _tmp3_ = 0;
	GError * _inner_error_ = NULL;
#line 1271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1271 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1272 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1272 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1272 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_unary_expression (self, _tmp2_, &_inner_error_);
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12994 "tracker-sparql-expression.c"
		} else {
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1273 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13002 "tracker-sparql-expression.c"
		}
	}
#line 1274 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 13007 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STAR, &_inner_error_);
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp5_;
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13022 "tracker-sparql-expression.c"
			} else {
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13030 "tracker-sparql-expression.c"
			}
		}
#line 1275 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp4_) {
#line 13035 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp6_ = 0;
			gboolean _tmp7_ = FALSE;
			GString* _tmp9_ = NULL;
			glong _tmp10_ = 0L;
			GString* _tmp11_ = NULL;
			TrackerPropertyType _tmp12_ = 0;
			GString* _tmp13_ = NULL;
			TrackerPropertyType _tmp14_ = 0;
			gboolean _tmp15_ = FALSE;
			GString* _tmp17_ = NULL;
#line 1276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = optype;
#line 1276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_maybe_numeric (self, _tmp6_);
#line 1276 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp7_) {
#line 13052 "tracker-sparql-expression.c"
				GError* _tmp8_ = NULL;
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp8_;
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13064 "tracker-sparql-expression.c"
				} else {
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1277 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13072 "tracker-sparql-expression.c"
				}
			}
#line 1279 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1279 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = begin;
#line 1279 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp9_, (gssize) _tmp10_, "(");
#line 1280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = sql;
#line 1280 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp11_, " * ");
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = sql;
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = tracker_sparql_expression_translate_unary_expression (self, _tmp13_, &_inner_error_);
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp14_;
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13099 "tracker-sparql-expression.c"
				} else {
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13107 "tracker-sparql-expression.c"
				}
			}
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = tracker_sparql_expression_maybe_numeric (self, _tmp12_);
#line 1281 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp15_) {
#line 13114 "tracker-sparql-expression.c"
				GError* _tmp16_ = NULL;
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp16_;
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13126 "tracker-sparql-expression.c"
				} else {
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1282 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13134 "tracker-sparql-expression.c"
				}
			}
#line 1284 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1284 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp17_, ")");
#line 13141 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_ = FALSE;
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DIV, &_inner_error_);
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = _tmp19_;
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13157 "tracker-sparql-expression.c"
				} else {
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13165 "tracker-sparql-expression.c"
				}
			}
#line 1285 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp18_) {
#line 13170 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp20_ = 0;
				gboolean _tmp21_ = FALSE;
				GString* _tmp23_ = NULL;
				glong _tmp24_ = 0L;
				GString* _tmp25_ = NULL;
				TrackerPropertyType _tmp26_ = 0;
				GString* _tmp27_ = NULL;
				TrackerPropertyType _tmp28_ = 0;
				gboolean _tmp29_ = FALSE;
				GString* _tmp31_ = NULL;
#line 1286 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = optype;
#line 1286 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = tracker_sparql_expression_maybe_numeric (self, _tmp20_);
#line 1286 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp21_) {
#line 13187 "tracker-sparql-expression.c"
					GError* _tmp22_ = NULL;
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp22_;
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13199 "tracker-sparql-expression.c"
					} else {
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1287 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13207 "tracker-sparql-expression.c"
					}
				}
#line 1289 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = sql;
#line 1289 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp24_ = begin;
#line 1289 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_insert (_tmp23_, (gssize) _tmp24_, "(");
#line 1290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = sql;
#line 1290 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp25_, " / ");
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = sql;
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = tracker_sparql_expression_translate_unary_expression (self, _tmp27_, &_inner_error_);
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = _tmp28_;
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13234 "tracker-sparql-expression.c"
					} else {
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13242 "tracker-sparql-expression.c"
					}
				}
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = tracker_sparql_expression_maybe_numeric (self, _tmp26_);
#line 1291 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp29_) {
#line 13249 "tracker-sparql-expression.c"
					GError* _tmp30_ = NULL;
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp30_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp30_;
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13261 "tracker-sparql-expression.c"
					} else {
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1292 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13269 "tracker-sparql-expression.c"
					}
				}
#line 1294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 1294 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 13276 "tracker-sparql-expression.c"
			} else {
#line 1296 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 13280 "tracker-sparql-expression.c"
			}
		}
	}
#line 1299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1299 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13288 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_additive_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType optype = 0;
	GString* _tmp2_ = NULL;
	TrackerPropertyType _tmp3_ = 0;
	GError * _inner_error_ = NULL;
#line 1302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1302 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1303 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1303 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1303 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp2_, &_inner_error_);
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13325 "tracker-sparql-expression.c"
		} else {
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1304 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13333 "tracker-sparql-expression.c"
		}
	}
#line 1305 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 13338 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PLUS, &_inner_error_);
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp5_;
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13353 "tracker-sparql-expression.c"
			} else {
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13361 "tracker-sparql-expression.c"
			}
		}
#line 1306 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp4_) {
#line 13366 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp6_ = 0;
			gboolean _tmp7_ = FALSE;
			GString* _tmp9_ = NULL;
			glong _tmp10_ = 0L;
			GString* _tmp11_ = NULL;
			TrackerPropertyType _tmp12_ = 0;
			GString* _tmp13_ = NULL;
			TrackerPropertyType _tmp14_ = 0;
			gboolean _tmp15_ = FALSE;
			GString* _tmp17_ = NULL;
#line 1307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = optype;
#line 1307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_maybe_numeric (self, _tmp6_);
#line 1307 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp7_) {
#line 13383 "tracker-sparql-expression.c"
				GError* _tmp8_ = NULL;
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp8_;
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13395 "tracker-sparql-expression.c"
				} else {
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1308 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13403 "tracker-sparql-expression.c"
				}
			}
#line 1310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = begin;
#line 1310 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp9_, (gssize) _tmp10_, "(");
#line 1311 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = sql;
#line 1311 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp11_, " + ");
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = sql;
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp13_, &_inner_error_);
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp14_;
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13430 "tracker-sparql-expression.c"
				} else {
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13438 "tracker-sparql-expression.c"
				}
			}
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = tracker_sparql_expression_maybe_numeric (self, _tmp12_);
#line 1312 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp15_) {
#line 13445 "tracker-sparql-expression.c"
				GError* _tmp16_ = NULL;
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp16_;
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13457 "tracker-sparql-expression.c"
				} else {
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1313 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13465 "tracker-sparql-expression.c"
				}
			}
#line 1315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1315 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp17_, ")");
#line 13472 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_ = FALSE;
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_MINUS, &_inner_error_);
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = _tmp19_;
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13488 "tracker-sparql-expression.c"
				} else {
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13496 "tracker-sparql-expression.c"
				}
			}
#line 1316 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp18_) {
#line 13501 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp20_ = 0;
				gboolean _tmp21_ = FALSE;
				GString* _tmp23_ = NULL;
				glong _tmp24_ = 0L;
				GString* _tmp25_ = NULL;
				TrackerPropertyType _tmp26_ = 0;
				GString* _tmp27_ = NULL;
				TrackerPropertyType _tmp28_ = 0;
				gboolean _tmp29_ = FALSE;
				GString* _tmp31_ = NULL;
#line 1317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = optype;
#line 1317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = tracker_sparql_expression_maybe_numeric (self, _tmp20_);
#line 1317 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp21_) {
#line 13518 "tracker-sparql-expression.c"
					GError* _tmp22_ = NULL;
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp22_;
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13530 "tracker-sparql-expression.c"
					} else {
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1318 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13538 "tracker-sparql-expression.c"
					}
				}
#line 1320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = sql;
#line 1320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp24_ = begin;
#line 1320 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_insert (_tmp23_, (gssize) _tmp24_, "(");
#line 1321 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = sql;
#line 1321 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp25_, " - ");
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = sql;
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp27_, &_inner_error_);
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = _tmp28_;
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13565 "tracker-sparql-expression.c"
					} else {
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13573 "tracker-sparql-expression.c"
					}
				}
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = tracker_sparql_expression_maybe_numeric (self, _tmp26_);
#line 1322 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp29_) {
#line 13580 "tracker-sparql-expression.c"
					GError* _tmp30_ = NULL;
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp30_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp30_;
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13592 "tracker-sparql-expression.c"
					} else {
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1323 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13600 "tracker-sparql-expression.c"
					}
				}
#line 1325 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 1325 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 13607 "tracker-sparql-expression.c"
			} else {
#line 1327 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 13611 "tracker-sparql-expression.c"
			}
		}
	}
#line 1330 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1330 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13619 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_numeric_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerPropertyType _tmp0_ = 0;
	GString* _tmp1_ = NULL;
	TrackerPropertyType _tmp2_ = 0;
	GError * _inner_error_ = NULL;
#line 1333 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1333 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_expression_translate_additive_expression (self, _tmp1_, &_inner_error_);
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp2_;
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13647 "tracker-sparql-expression.c"
		} else {
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13655 "tracker-sparql-expression.c"
		}
	}
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 1334 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13662 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_process_relational_expression (TrackerSparqlExpression* self, GString* sql, glong begin, guint n_bindings, TrackerPropertyType op1type, const gchar* operator, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	GString* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	TrackerPropertyType op2type = 0;
	GString* _tmp4_ = NULL;
	TrackerPropertyType _tmp5_ = 0;
	GString* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	TrackerPropertyType _tmp9_ = 0;
	GError * _inner_error_ = NULL;
#line 1337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1337 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (operator != NULL, 0);
#line 1338 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1338 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = begin;
#line 1338 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_insert (_tmp0_, (gssize) _tmp1_, "(");
#line 1339 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1339 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = operator;
#line 1339 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, _tmp3_);
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = tracker_sparql_expression_translate_numeric_expression (self, _tmp4_, &_inner_error_);
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	op2type = _tmp5_;
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13712 "tracker-sparql-expression.c"
		} else {
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1340 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13720 "tracker-sparql-expression.c"
		}
	}
#line 1341 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = sql;
#line 1341 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp6_, ")");
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = op1type;
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp9_ == TRACKER_PROPERTY_TYPE_DATETIME) {
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = op2type == TRACKER_PROPERTY_TYPE_STRING;
#line 13733 "tracker-sparql-expression.c"
	} else {
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = FALSE;
#line 13737 "tracker-sparql-expression.c"
	}
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp8_) {
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = TRUE;
#line 13743 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp10_ = FALSE;
		TrackerPropertyType _tmp11_ = 0;
#line 1343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = op1type;
#line 1343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp11_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 1343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = op2type == TRACKER_PROPERTY_TYPE_DATETIME;
#line 13753 "tracker-sparql-expression.c"
		} else {
#line 1343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = FALSE;
#line 13757 "tracker-sparql-expression.c"
		}
#line 1343 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp10_;
#line 13761 "tracker-sparql-expression.c"
	}
#line 1342 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp7_) {
#line 13765 "tracker-sparql-expression.c"
		TrackerSparqlQuery* _tmp12_ = NULL;
		GList* _tmp13_ = NULL;
		guint _tmp14_ = 0U;
		guint _tmp15_ = 0U;
#line 1345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = self->priv->query;
#line 1345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _tmp12_->bindings;
#line 1345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = g_list_length (_tmp13_);
#line 1345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = n_bindings;
#line 1345 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp14_ == (_tmp15_ + 1)) {
#line 13780 "tracker-sparql-expression.c"
			TrackerSparqlQuery* _tmp16_ = NULL;
			GList* _tmp17_ = NULL;
			GList* _tmp18_ = NULL;
			gconstpointer _tmp19_ = NULL;
#line 1347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = self->priv->query;
#line 1347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = _tmp16_->bindings;
#line 1347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = g_list_last (_tmp17_);
#line 1347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_->data;
#line 1347 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			((TrackerSparqlDataBinding*) ((TrackerSparqlLiteralBinding*) _tmp19_))->data_type = TRACKER_PROPERTY_TYPE_DATETIME;
#line 13795 "tracker-sparql-expression.c"
		}
	} else {
		gboolean _tmp20_ = FALSE;
		gboolean _tmp21_ = FALSE;
		TrackerPropertyType _tmp22_ = 0;
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp22_ = op1type;
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp22_ == TRACKER_PROPERTY_TYPE_DATE) {
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = op2type == TRACKER_PROPERTY_TYPE_STRING;
#line 13807 "tracker-sparql-expression.c"
		} else {
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = FALSE;
#line 13811 "tracker-sparql-expression.c"
		}
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp21_) {
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = TRUE;
#line 13817 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp23_ = FALSE;
			TrackerPropertyType _tmp24_ = 0;
#line 1350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = op1type;
#line 1350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp24_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 1350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = op2type == TRACKER_PROPERTY_TYPE_DATE;
#line 13827 "tracker-sparql-expression.c"
			} else {
#line 1350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = FALSE;
#line 13831 "tracker-sparql-expression.c"
			}
#line 1350 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp23_;
#line 13835 "tracker-sparql-expression.c"
		}
#line 1349 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp20_) {
#line 13839 "tracker-sparql-expression.c"
			TrackerSparqlQuery* _tmp25_ = NULL;
			GList* _tmp26_ = NULL;
			guint _tmp27_ = 0U;
			guint _tmp28_ = 0U;
#line 1352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = self->priv->query;
#line 1352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = _tmp25_->bindings;
#line 1352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = g_list_length (_tmp26_);
#line 1352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = n_bindings;
#line 1352 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp27_ == (_tmp28_ + 1)) {
#line 13854 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp29_ = NULL;
				GList* _tmp30_ = NULL;
				GList* _tmp31_ = NULL;
				gconstpointer _tmp32_ = NULL;
#line 1354 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = self->priv->query;
#line 1354 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = _tmp29_->bindings;
#line 1354 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = g_list_last (_tmp30_);
#line 1354 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = _tmp31_->data;
#line 1354 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) ((TrackerSparqlLiteralBinding*) _tmp32_))->data_type = TRACKER_PROPERTY_TYPE_DATE;
#line 13869 "tracker-sparql-expression.c"
			}
		}
	}
#line 1357 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1357 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13877 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_in (TrackerSparqlExpression* self, GString* sql, gboolean not, GError** error) {
	TrackerPropertyType result = 0;
	gint in_variable_count = 0;
	gboolean _tmp0_ = FALSE;
	GString* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GString* _tmp18_ = NULL;
	GError * _inner_error_ = NULL;
#line 1360 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1360 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1362 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	in_variable_count = 0;
#line 1364 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = not;
#line 1364 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 13900 "tracker-sparql-expression.c"
		GString* _tmp1_ = NULL;
#line 1365 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 1365 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp1_, " NOT");
#line 13906 "tracker-sparql-expression.c"
	}
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13918 "tracker-sparql-expression.c"
		} else {
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1368 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13926 "tracker-sparql-expression.c"
		}
	}
#line 1369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1369 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " IN (");
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp4_;
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13945 "tracker-sparql-expression.c"
		} else {
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13953 "tracker-sparql-expression.c"
		}
	}
#line 1370 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp3_) {
#line 13958 "tracker-sparql-expression.c"
		gint _tmp5_ = 0;
		GString* _tmp6_ = NULL;
#line 1371 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = in_variable_count;
#line 1371 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		in_variable_count = _tmp5_ + 1;
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression (self, _tmp6_, &_inner_error_);
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13977 "tracker-sparql-expression.c"
			} else {
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1372 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13985 "tracker-sparql-expression.c"
			}
		}
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		while (TRUE) {
#line 13990 "tracker-sparql-expression.c"
			gboolean _tmp7_ = FALSE;
			gboolean _tmp8_ = FALSE;
			GString* _tmp9_ = NULL;
			gint _tmp10_ = 0;
			gboolean _tmp11_ = FALSE;
			gint _tmp12_ = 0;
			GString* _tmp17_ = NULL;
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = _tmp8_;
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14010 "tracker-sparql-expression.c"
				} else {
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14018 "tracker-sparql-expression.c"
				}
			}
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp7_) {
#line 1373 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 14025 "tracker-sparql-expression.c"
			}
#line 1374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1374 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp9_, ", ");
#line 1376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = in_variable_count;
#line 1376 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			in_variable_count = _tmp10_ + 1;
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = in_variable_count;
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp12_ > TRACKER_SPARQL_EXPRESSION_MAX_VARIABLES_FOR_IN) {
#line 14039 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp13_ = NULL;
				gboolean _tmp14_ = FALSE;
				gboolean _tmp15_ = FALSE;
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = self->priv->query;
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = tracker_sparql_query_get_no_cache (_tmp13_);
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = _tmp14_;
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = !_tmp15_;
#line 14051 "tracker-sparql-expression.c"
			} else {
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = FALSE;
#line 14055 "tracker-sparql-expression.c"
			}
#line 1378 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp11_) {
#line 14059 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp16_ = NULL;
#line 1379 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = self->priv->query;
#line 1379 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_query_set_no_cache (_tmp16_, TRUE);
#line 14065 "tracker-sparql-expression.c"
			}
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp17_, &_inner_error_);
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14079 "tracker-sparql-expression.c"
				} else {
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1382 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14087 "tracker-sparql-expression.c"
				}
			}
		}
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14101 "tracker-sparql-expression.c"
			} else {
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1384 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14109 "tracker-sparql-expression.c"
			}
		}
	}
#line 1386 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp18_ = sql;
#line 1386 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp18_, ")");
#line 1388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1388 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14121 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_relational_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	guint n_bindings = 0U;
	TrackerSparqlQuery* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
	TrackerPropertyType optype = 0;
	GString* _tmp5_ = NULL;
	TrackerPropertyType _tmp6_ = 0;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	GError * _inner_error_ = NULL;
#line 1391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1391 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1392 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1392 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1392 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1394 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = self->priv->query;
#line 1394 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_->bindings;
#line 1394 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = g_list_length (_tmp3_);
#line 1394 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	n_bindings = _tmp4_;
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = tracker_sparql_expression_translate_numeric_expression (self, _tmp5_, &_inner_error_);
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp6_;
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14172 "tracker-sparql-expression.c"
		} else {
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1395 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14180 "tracker-sparql-expression.c"
		}
	}
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp8_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_GE, &_inner_error_);
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = _tmp8_;
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14195 "tracker-sparql-expression.c"
		} else {
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14203 "tracker-sparql-expression.c"
		}
	}
#line 1396 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp7_) {
#line 14208 "tracker-sparql-expression.c"
		TrackerPropertyType _tmp9_ = 0;
		GString* _tmp10_ = NULL;
		glong _tmp11_ = 0L;
		guint _tmp12_ = 0U;
		TrackerPropertyType _tmp13_ = 0;
		TrackerPropertyType _tmp14_ = 0;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = sql;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = begin;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = n_bindings;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = optype;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = tracker_sparql_expression_process_relational_expression (self, _tmp10_, _tmp11_, _tmp12_, _tmp13_, " >= ", &_inner_error_);
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = _tmp14_;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14235 "tracker-sparql-expression.c"
			} else {
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14243 "tracker-sparql-expression.c"
			}
		}
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _tmp9_;
#line 1397 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 14250 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp15_ = FALSE;
		gboolean _tmp16_ = FALSE;
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp16_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_EQ, &_inner_error_);
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = _tmp16_;
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14266 "tracker-sparql-expression.c"
			} else {
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14274 "tracker-sparql-expression.c"
			}
		}
#line 1398 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_) {
#line 14279 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp17_ = 0;
			GString* _tmp18_ = NULL;
			glong _tmp19_ = 0L;
			guint _tmp20_ = 0U;
			TrackerPropertyType _tmp21_ = 0;
			TrackerPropertyType _tmp22_ = 0;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = sql;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = begin;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = n_bindings;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = optype;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = tracker_sparql_expression_process_relational_expression (self, _tmp18_, _tmp19_, _tmp20_, _tmp21_, " = ", &_inner_error_);
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = _tmp22_;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14306 "tracker-sparql-expression.c"
				} else {
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14314 "tracker-sparql-expression.c"
				}
			}
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp17_;
#line 1399 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 14321 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp23_ = FALSE;
			gboolean _tmp24_ = FALSE;
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_NE, &_inner_error_);
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = _tmp24_;
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14337 "tracker-sparql-expression.c"
				} else {
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14345 "tracker-sparql-expression.c"
				}
			}
#line 1400 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp23_) {
#line 14350 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp25_ = 0;
				GString* _tmp26_ = NULL;
				glong _tmp27_ = 0L;
				guint _tmp28_ = 0U;
				TrackerPropertyType _tmp29_ = 0;
				TrackerPropertyType _tmp30_ = 0;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = begin;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = n_bindings;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = optype;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = tracker_sparql_expression_process_relational_expression (self, _tmp26_, _tmp27_, _tmp28_, _tmp29_, " <> ", &_inner_error_);
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = _tmp30_;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 14377 "tracker-sparql-expression.c"
					} else {
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 14385 "tracker-sparql-expression.c"
					}
				}
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = _tmp25_;
#line 1401 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 14392 "tracker-sparql-expression.c"
			} else {
				gboolean _tmp31_ = FALSE;
				gboolean _tmp32_ = FALSE;
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_LT, &_inner_error_);
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = _tmp32_;
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 14408 "tracker-sparql-expression.c"
					} else {
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 14416 "tracker-sparql-expression.c"
					}
				}
#line 1402 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp31_) {
#line 14421 "tracker-sparql-expression.c"
					TrackerPropertyType _tmp33_ = 0;
					GString* _tmp34_ = NULL;
					glong _tmp35_ = 0L;
					guint _tmp36_ = 0U;
					TrackerPropertyType _tmp37_ = 0;
					TrackerPropertyType _tmp38_ = 0;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp34_ = sql;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp35_ = begin;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp36_ = n_bindings;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp37_ = optype;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp38_ = tracker_sparql_expression_process_relational_expression (self, _tmp34_, _tmp35_, _tmp36_, _tmp37_, " < ", &_inner_error_);
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp33_ = _tmp38_;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 14448 "tracker-sparql-expression.c"
						} else {
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 14456 "tracker-sparql-expression.c"
						}
					}
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = _tmp33_;
#line 1403 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 14463 "tracker-sparql-expression.c"
				} else {
					gboolean _tmp39_ = FALSE;
					gboolean _tmp40_ = FALSE;
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp40_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_LE, &_inner_error_);
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp39_ = _tmp40_;
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 14479 "tracker-sparql-expression.c"
						} else {
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 14487 "tracker-sparql-expression.c"
						}
					}
#line 1404 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp39_) {
#line 14492 "tracker-sparql-expression.c"
						TrackerPropertyType _tmp41_ = 0;
						GString* _tmp42_ = NULL;
						glong _tmp43_ = 0L;
						guint _tmp44_ = 0U;
						TrackerPropertyType _tmp45_ = 0;
						TrackerPropertyType _tmp46_ = 0;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp42_ = sql;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp43_ = begin;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp44_ = n_bindings;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp45_ = optype;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp46_ = tracker_sparql_expression_process_relational_expression (self, _tmp42_, _tmp43_, _tmp44_, _tmp45_, " <= ", &_inner_error_);
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp41_ = _tmp46_;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 14519 "tracker-sparql-expression.c"
							} else {
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 14527 "tracker-sparql-expression.c"
							}
						}
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						result = _tmp41_;
#line 1405 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return result;
#line 14534 "tracker-sparql-expression.c"
					} else {
						gboolean _tmp47_ = FALSE;
						gboolean _tmp48_ = FALSE;
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp48_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_GT, &_inner_error_);
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp47_ = _tmp48_;
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 14550 "tracker-sparql-expression.c"
							} else {
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 14558 "tracker-sparql-expression.c"
							}
						}
#line 1406 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_tmp47_) {
#line 14563 "tracker-sparql-expression.c"
							TrackerPropertyType _tmp49_ = 0;
							GString* _tmp50_ = NULL;
							glong _tmp51_ = 0L;
							guint _tmp52_ = 0U;
							TrackerPropertyType _tmp53_ = 0;
							TrackerPropertyType _tmp54_ = 0;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp50_ = sql;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp51_ = begin;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp52_ = n_bindings;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp53_ = optype;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp54_ = tracker_sparql_expression_process_relational_expression (self, _tmp50_, _tmp51_, _tmp52_, _tmp53_, " > ", &_inner_error_);
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp49_ = _tmp54_;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 14590 "tracker-sparql-expression.c"
								} else {
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 14598 "tracker-sparql-expression.c"
								}
							}
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							result = _tmp49_;
#line 1407 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return result;
#line 14605 "tracker-sparql-expression.c"
						} else {
							gboolean _tmp55_ = FALSE;
							gboolean _tmp56_ = FALSE;
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp56_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_IN, &_inner_error_);
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp55_ = _tmp56_;
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 14621 "tracker-sparql-expression.c"
								} else {
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 14629 "tracker-sparql-expression.c"
								}
							}
#line 1408 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_tmp55_) {
#line 14634 "tracker-sparql-expression.c"
								TrackerPropertyType _tmp57_ = 0;
								GString* _tmp58_ = NULL;
								TrackerPropertyType _tmp59_ = 0;
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp58_ = sql;
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp59_ = tracker_sparql_expression_translate_in (self, _tmp58_, FALSE, &_inner_error_);
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp57_ = _tmp59_;
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 14652 "tracker-sparql-expression.c"
									} else {
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 14660 "tracker-sparql-expression.c"
									}
								}
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								result = _tmp57_;
#line 1409 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return result;
#line 14667 "tracker-sparql-expression.c"
							} else {
								gboolean _tmp60_ = FALSE;
								gboolean _tmp61_ = FALSE;
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp61_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_NOT, &_inner_error_);
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp60_ = _tmp61_;
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 14683 "tracker-sparql-expression.c"
									} else {
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 14691 "tracker-sparql-expression.c"
									}
								}
#line 1410 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_tmp60_) {
#line 14696 "tracker-sparql-expression.c"
									TrackerPropertyType _tmp62_ = 0;
									GString* _tmp63_ = NULL;
									TrackerPropertyType _tmp64_ = 0;
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OP_IN, &_inner_error_);
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 14710 "tracker-sparql-expression.c"
										} else {
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 1411 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 14718 "tracker-sparql-expression.c"
										}
									}
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp63_ = sql;
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp64_ = tracker_sparql_expression_translate_in (self, _tmp63_, TRUE, &_inner_error_);
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp62_ = _tmp64_;
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 14735 "tracker-sparql-expression.c"
										} else {
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 14743 "tracker-sparql-expression.c"
										}
									}
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									result = _tmp62_;
#line 1412 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return result;
#line 14750 "tracker-sparql-expression.c"
								}
							}
						}
					}
				}
			}
		}
	}
#line 1414 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1414 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14763 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_value_logical (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerPropertyType _tmp0_ = 0;
	GString* _tmp1_ = NULL;
	TrackerPropertyType _tmp2_ = 0;
	GError * _inner_error_ = NULL;
#line 1417 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1417 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_expression_translate_relational_expression (self, _tmp1_, &_inner_error_);
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp2_;
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14791 "tracker-sparql-expression.c"
		} else {
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14799 "tracker-sparql-expression.c"
		}
	}
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 1418 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14806 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_conditional_and_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType optype = 0;
	GString* _tmp2_ = NULL;
	TrackerPropertyType _tmp3_ = 0;
	GError * _inner_error_ = NULL;
#line 1421 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1421 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1422 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_value_logical (self, _tmp2_, &_inner_error_);
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14843 "tracker-sparql-expression.c"
		} else {
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1423 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14851 "tracker-sparql-expression.c"
		}
	}
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 14856 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
		TrackerPropertyType _tmp6_ = 0;
		GString* _tmp8_ = NULL;
		glong _tmp9_ = 0L;
		GString* _tmp10_ = NULL;
		TrackerPropertyType _tmp11_ = 0;
		GString* _tmp12_ = NULL;
		TrackerPropertyType _tmp13_ = 0;
		GString* _tmp14_ = NULL;
		TrackerPropertyType _tmp15_ = 0;
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_AND, &_inner_error_);
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp5_;
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14880 "tracker-sparql-expression.c"
			} else {
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14888 "tracker-sparql-expression.c"
			}
		}
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (!_tmp4_) {
#line 1424 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 14895 "tracker-sparql-expression.c"
		}
#line 1425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1425 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 14901 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14913 "tracker-sparql-expression.c"
			} else {
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1426 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14921 "tracker-sparql-expression.c"
			}
		}
#line 1428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = sql;
#line 1428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = begin;
#line 1428 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp8_, (gssize) _tmp9_, "(");
#line 1429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = sql;
#line 1429 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp10_, " AND ");
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = sql;
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = tracker_sparql_expression_translate_value_logical (self, _tmp12_, &_inner_error_);
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp13_;
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14948 "tracker-sparql-expression.c"
			} else {
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14956 "tracker-sparql-expression.c"
			}
		}
#line 1430 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp11_;
#line 1431 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = sql;
#line 1431 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp14_, ")");
#line 1432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = optype;
#line 1432 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 14969 "tracker-sparql-expression.c"
			GError* _tmp16_ = NULL;
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp16_;
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14981 "tracker-sparql-expression.c"
			} else {
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1433 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14989 "tracker-sparql-expression.c"
			}
		}
	}
#line 1436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1436 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14997 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_conditional_or_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	glong begin = 0L;
	GString* _tmp0_ = NULL;
	gssize _tmp1_ = 0L;
	TrackerPropertyType optype = 0;
	GString* _tmp2_ = NULL;
	TrackerPropertyType _tmp3_ = 0;
	GError * _inner_error_ = NULL;
#line 1439 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1439 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1440 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1440 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1440 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_conditional_and_expression (self, _tmp2_, &_inner_error_);
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15034 "tracker-sparql-expression.c"
		} else {
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1441 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15042 "tracker-sparql-expression.c"
		}
	}
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 15047 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
		TrackerPropertyType _tmp6_ = 0;
		GString* _tmp8_ = NULL;
		glong _tmp9_ = 0L;
		GString* _tmp10_ = NULL;
		TrackerPropertyType _tmp11_ = 0;
		GString* _tmp12_ = NULL;
		TrackerPropertyType _tmp13_ = 0;
		GString* _tmp14_ = NULL;
		TrackerPropertyType _tmp15_ = 0;
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_OR, &_inner_error_);
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp5_;
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15071 "tracker-sparql-expression.c"
			} else {
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15079 "tracker-sparql-expression.c"
			}
		}
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (!_tmp4_) {
#line 1442 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 15086 "tracker-sparql-expression.c"
		}
#line 1443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1443 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 15092 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15104 "tracker-sparql-expression.c"
			} else {
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1444 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15112 "tracker-sparql-expression.c"
			}
		}
#line 1446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = sql;
#line 1446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = begin;
#line 1446 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp8_, (gssize) _tmp9_, "(");
#line 1447 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = sql;
#line 1447 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp10_, " OR ");
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = sql;
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = tracker_sparql_expression_translate_conditional_and_expression (self, _tmp12_, &_inner_error_);
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp13_;
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15139 "tracker-sparql-expression.c"
			} else {
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15147 "tracker-sparql-expression.c"
			}
		}
#line 1448 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp11_;
#line 1449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = sql;
#line 1449 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp14_, ")");
#line 1450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = optype;
#line 1450 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 15160 "tracker-sparql-expression.c"
			GError* _tmp16_ = NULL;
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp16_;
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15172 "tracker-sparql-expression.c"
			} else {
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1451 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15180 "tracker-sparql-expression.c"
			}
		}
	}
#line 1454 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1454 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15188 "tracker-sparql-expression.c"
}


TrackerPropertyType tracker_sparql_expression_translate_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerPropertyType _tmp0_ = 0;
	GString* _tmp1_ = NULL;
	TrackerPropertyType _tmp2_ = 0;
	GError * _inner_error_ = NULL;
#line 1457 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1457 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_expression_translate_conditional_or_expression (self, _tmp1_, &_inner_error_);
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp2_;
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15216 "tracker-sparql-expression.c"
		} else {
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15224 "tracker-sparql-expression.c"
		}
	}
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp0_;
#line 1458 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15231 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_bracketted_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerSparqlTokenType _tmp0_ = 0;
	TrackerPropertyType optype = 0;
	GString* _tmp9_ = NULL;
	TrackerPropertyType _tmp10_ = 0;
	GError * _inner_error_ = NULL;
#line 1461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1461 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15256 "tracker-sparql-expression.c"
		} else {
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1462 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15264 "tracker-sparql-expression.c"
		}
	}
#line 1464 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 1464 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_ == TRACKER_SPARQL_TOKEN_TYPE_SELECT) {
#line 15271 "tracker-sparql-expression.c"
		GString* _tmp1_ = NULL;
		TrackerSparqlSelectContext* select_context = NULL;
		TrackerSparqlPattern* _tmp2_ = NULL;
		TrackerSparqlPattern* _tmp3_ = NULL;
		GString* _tmp4_ = NULL;
		TrackerSparqlSelectContext* _tmp5_ = NULL;
		GString* _tmp6_ = NULL;
		TrackerSparqlSelectContext* _tmp7_ = NULL;
		TrackerPropertyType _tmp8_ = 0;
#line 1467 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 1467 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp1_, "(");
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_pattern (self);
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp2_;
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = sql;
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_pattern_translate_select (_tmp3_, _tmp4_, TRUE, TRUE, &_inner_error_);
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		select_context = _tmp5_;
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15303 "tracker-sparql-expression.c"
			} else {
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1468 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15311 "tracker-sparql-expression.c"
			}
		}
#line 1469 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 1469 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp6_, ")");
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15330 "tracker-sparql-expression.c"
			} else {
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1471 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 15340 "tracker-sparql-expression.c"
			}
		}
#line 1472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = select_context;
#line 1472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = _tmp7_->type;
#line 1472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _tmp8_;
#line 1472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tracker_sparql_context_unref0 (select_context);
#line 1472 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 15353 "tracker-sparql-expression.c"
	}
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = sql;
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = tracker_sparql_expression_translate_expression (self, _tmp9_, &_inner_error_);
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp10_;
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15369 "tracker-sparql-expression.c"
		} else {
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1475 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15377 "tracker-sparql-expression.c"
		}
	}
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15390 "tracker-sparql-expression.c"
		} else {
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1476 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15398 "tracker-sparql-expression.c"
		}
	}
#line 1477 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1477 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15405 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_aggregate_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	TrackerPropertyType optype = 0;
	GString* _tmp3_ = NULL;
	TrackerPropertyType _tmp4_ = 0;
	GError * _inner_error_ = NULL;
#line 1480 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1480 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15431 "tracker-sparql-expression.c"
		} else {
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1481 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15439 "tracker-sparql-expression.c"
		}
	}
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DISTINCT, &_inner_error_);
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = _tmp1_;
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15454 "tracker-sparql-expression.c"
		} else {
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15462 "tracker-sparql-expression.c"
		}
	}
#line 1482 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 15467 "tracker-sparql-expression.c"
		GString* _tmp2_ = NULL;
#line 1483 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 1483 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp2_, "DISTINCT ");
#line 15473 "tracker-sparql-expression.c"
	}
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp4_;
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15489 "tracker-sparql-expression.c"
		} else {
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1485 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15497 "tracker-sparql-expression.c"
		}
	}
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15510 "tracker-sparql-expression.c"
		} else {
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1486 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 15518 "tracker-sparql-expression.c"
		}
	}
#line 1487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1487 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15525 "tracker-sparql-expression.c"
}


TrackerPropertyType tracker_sparql_expression_translate_constraint (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerSparqlTokenType _tmp0_ = 0;
	GError * _inner_error_ = NULL;
#line 1490 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1490 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STR:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANG:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DATATYPE:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_BOUND:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IF:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SAMETERM:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISIRI:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISURI:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISBLANK:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_REGEX:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_EXISTS:
#line 1491 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_NOT:
#line 15569 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _tmp1_ = 0;
			GString* _tmp2_ = NULL;
			TrackerPropertyType _tmp3_ = 0;
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = sql;
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = tracker_sparql_expression_translate_primary_expression (self, _tmp2_, &_inner_error_);
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = _tmp3_;
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 15588 "tracker-sparql-expression.c"
				} else {
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 15596 "tracker-sparql-expression.c"
				}
			}
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp1_;
#line 1506 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 15603 "tracker-sparql-expression.c"
		}
		default:
		{
			TrackerPropertyType _tmp4_ = 0;
			GString* _tmp5_ = NULL;
			TrackerPropertyType _tmp6_ = 0;
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = sql;
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = tracker_sparql_expression_translate_bracketted_expression (self, _tmp5_, &_inner_error_);
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = _tmp6_;
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 15624 "tracker-sparql-expression.c"
				} else {
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.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 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 15632 "tracker-sparql-expression.c"
				}
			}
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp4_;
#line 1508 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 15639 "tracker-sparql-expression.c"
		}
	}
}


static TrackerSparqlContext* tracker_sparql_expression_get_context (TrackerSparqlExpression* self) {
	TrackerSparqlContext* result;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlContext* _tmp1_ = NULL;
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->context;
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 36 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15659 "tracker-sparql-expression.c"
}


static TrackerSparqlPattern* tracker_sparql_expression_get_pattern (TrackerSparqlExpression* self) {
	TrackerSparqlPattern* result;
	TrackerSparqlQuery* _tmp0_ = NULL;
	TrackerSparqlPattern* _tmp1_ = NULL;
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->pattern;
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 40 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 15677 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_class_init (TrackerSparqlExpressionClass * klass) {
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_type_class_add_private (klass, sizeof (TrackerSparqlExpressionPrivate));
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tracker_sparql_expression_get_property;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	G_OBJECT_CLASS (klass)->finalize = tracker_sparql_expression_finalize;
#line 15690 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_instance_init (TrackerSparqlExpression * self) {
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self->priv = TRACKER_SPARQL_EXPRESSION_GET_PRIVATE (self);
#line 15697 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_finalize (GObject* obj) {
	TrackerSparqlExpression * self;
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpression);
#line 29 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (self->priv->fts_sql);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	G_OBJECT_CLASS (tracker_sparql_expression_parent_class)->finalize (obj);
#line 15709 "tracker-sparql-expression.c"
}


GType tracker_sparql_expression_get_type (void) {
	static volatile gsize tracker_sparql_expression_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_sparql_expression_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TrackerSparqlExpressionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_sparql_expression_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerSparqlExpression), 0, (GInstanceInitFunc) tracker_sparql_expression_instance_init, NULL };
		GType tracker_sparql_expression_type_id;
		tracker_sparql_expression_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerSparqlExpression", &g_define_type_info, 0);
		g_once_init_leave (&tracker_sparql_expression_type_id__volatile, tracker_sparql_expression_type_id);
	}
	return tracker_sparql_expression_type_id__volatile;
}


static void _vala_tracker_sparql_expression_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TrackerSparqlExpression * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_SPARQL_TYPE_EXPRESSION, TrackerSparqlExpression);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (property_id) {
#line 15730 "tracker-sparql-expression.c"
		default:
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/martyn/Source/checkout/gnome/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 15736 "tracker-sparql-expression.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);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



