/* tracker-sparql-expression.c generated by valac 0.14.0, 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 TRACKER_TYPE_SPARQL_TOKEN_TYPE (tracker_sparql_token_type_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))

#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_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_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_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)))

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

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 _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_pattern_get_type (void) G_GNUC_CONST;
static TrackerSparqlPattern* tracker_sparql_expression_get_pattern (TrackerSparqlExpression* self);
GType tracker_sparql_select_context_get_type (void) G_GNUC_CONST;
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 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);
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_new (void);
TrackerSparqlLiteralBinding* tracker_sparql_literal_binding_construct (GType object_type);
GType tracker_sparql_literal_binding_get_type (void) G_GNUC_CONST;
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_;
#line 29 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 29 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self = (TrackerSparqlExpression*) g_object_new (object_type, NULL);
#line 30 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = query;
#line 30 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self->priv->query = _tmp0_;
#line 29 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return self;
#line 500 "tracker-sparql-expression.c"
}


TrackerSparqlExpression* tracker_sparql_expression_new (TrackerSparqlQuery* query) {
#line 29 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return tracker_sparql_expression_construct (TRACKER_SPARQL_TYPE_EXPRESSION, query);
#line 507 "tracker-sparql-expression.c"
}


static inline gboolean tracker_sparql_expression_next (TrackerSparqlExpression* self, GError** error) {
	gboolean result = FALSE;
	TrackerSparqlQuery* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 41 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_query_next (_tmp0_, &_inner_error_);
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 533 "tracker-sparql-expression.c"
		} else {
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 541 "tracker-sparql-expression.c"
		}
	}
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 42 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 548 "tracker-sparql-expression.c"
}


static inline TrackerSparqlTokenType tracker_sparql_expression_current (TrackerSparqlExpression* self) {
	TrackerSparqlTokenType result = 0;
	TrackerSparqlQuery* _tmp0_;
	TrackerSparqlTokenType _tmp1_ = 0;
#line 45 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 46 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 46 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_query_current (_tmp0_);
#line 46 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 46 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 566 "tracker-sparql-expression.c"
}


static inline TrackerSparqlTokenType tracker_sparql_expression_last (TrackerSparqlExpression* self) {
	TrackerSparqlTokenType result = 0;
	TrackerSparqlQuery* _tmp0_;
	TrackerSparqlTokenType _tmp1_ = 0;
#line 49 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 50 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 50 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_query_last (_tmp0_);
#line 50 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp1_;
#line 50 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 584 "tracker-sparql-expression.c"
}


static inline gboolean tracker_sparql_expression_accept (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	TrackerSparqlQuery* _tmp0_;
	TrackerSparqlTokenType _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	GError * _inner_error_ = NULL;
#line 53 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = type;
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_accept (_tmp0_, _tmp1_, &_inner_error_);
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_;
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 613 "tracker-sparql-expression.c"
		} else {
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 621 "tracker-sparql-expression.c"
		}
	}
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp3_;
#line 54 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 628 "tracker-sparql-expression.c"
}


static GError* tracker_sparql_expression_get_error (TrackerSparqlExpression* self, const gchar* msg) {
	GError* result = NULL;
	TrackerSparqlQuery* _tmp0_;
	const gchar* _tmp1_;
	GError* _tmp2_ = NULL;
#line 57 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 57 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 58 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 58 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = msg;
#line 58 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_get_error (_tmp0_, _tmp1_);
#line 58 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 58 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 651 "tracker-sparql-expression.c"
}


static gboolean tracker_sparql_expression_expect (TrackerSparqlExpression* self, TrackerSparqlTokenType type, GError** error) {
	gboolean result = FALSE;
	TrackerSparqlQuery* _tmp0_;
	TrackerSparqlTokenType _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	GError * _inner_error_ = NULL;
#line 61 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = type;
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_expect (_tmp0_, _tmp1_, &_inner_error_);
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_;
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 680 "tracker-sparql-expression.c"
		} else {
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return FALSE;
#line 688 "tracker-sparql-expression.c"
		}
	}
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp3_;
#line 62 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 695 "tracker-sparql-expression.c"
}


static gchar* tracker_sparql_expression_get_last_string (TrackerSparqlExpression* self, gint strip) {
	gchar* result = NULL;
	TrackerSparqlQuery* _tmp0_;
	gint _tmp1_;
	gchar* _tmp2_ = NULL;
#line 65 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 66 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = self->priv->query;
#line 66 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = strip;
#line 66 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_query_get_last_string (_tmp0_, _tmp1_);
#line 66 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 66 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 716 "tracker-sparql-expression.c"
}


static gchar* tracker_sparql_expression_escape_sql_string_literal (TrackerSparqlExpression* self, const gchar* literal) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_;
#line 69 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 69 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (literal != NULL, NULL);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = literal;
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_ = g_strsplit (_tmp0_, "'", 0);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_;
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3__length1 = _vala_array_length (_tmp1_);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = g_strjoinv ("''", _tmp3_);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = _tmp4_;
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = g_strdup_printf ("'%s'", _tmp5_);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = _tmp6_;
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp5_);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp7_;
#line 70 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 759 "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_;
	gboolean _tmp6_;
	gboolean _tmp8_;
	gboolean _tmp10_;
	gboolean _tmp12_;
#line 73 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = type;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp4_ == TRACKER_PROPERTY_TYPE_INTEGER) {
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = TRUE;
#line 782 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp5_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = type;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp5_ == TRACKER_PROPERTY_TYPE_DOUBLE;
#line 789 "tracker-sparql-expression.c"
	}
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = _tmp3_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp6_) {
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = TRUE;
#line 797 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp7_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = type;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = _tmp7_ == TRACKER_PROPERTY_TYPE_DATE;
#line 804 "tracker-sparql-expression.c"
	}
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp8_ = _tmp2_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp8_) {
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = TRUE;
#line 812 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp9_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = type;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = _tmp9_ == TRACKER_PROPERTY_TYPE_DATETIME;
#line 819 "tracker-sparql-expression.c"
	}
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = _tmp1_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp10_) {
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = TRUE;
#line 827 "tracker-sparql-expression.c"
	} else {
		TrackerPropertyType _tmp11_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = type;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = _tmp11_ == TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 834 "tracker-sparql-expression.c"
	}
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp12_ = _tmp0_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp12_;
#line 74 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 842 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_append_collate (TrackerSparqlExpression* self, GString* sql) {
	GString* _tmp0_;
#line 77 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 77 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 78 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 78 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append_printf (_tmp0_, " COLLATE %s", TRACKER_COLLATION_NAME);
#line 856 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_skip_bracketted_expression (TrackerSparqlExpression* self, GError** error) {
	GError * _inner_error_ = NULL;
#line 81 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 874 "tracker-sparql-expression.c"
		} else {
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 82 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 882 "tracker-sparql-expression.c"
		}
	}
#line 83 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 887 "tracker-sparql-expression.c"
		TrackerSparqlTokenType _tmp0_ = 0;
#line 84 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = tracker_sparql_expression_current (self);
#line 84 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		switch (_tmp0_) {
#line 84 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 895 "tracker-sparql-expression.c"
			{
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_skip_bracketted_expression (self, &_inner_error_);
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 907 "tracker-sparql-expression.c"
					} else {
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 87 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 915 "tracker-sparql-expression.c"
					}
				}
#line 88 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 920 "tracker-sparql-expression.c"
			}
#line 84 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS:
#line 84 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_EOF:
#line 926 "tracker-sparql-expression.c"
			{
#line 91 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 930 "tracker-sparql-expression.c"
			}
			default:
			{
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_next (self, &_inner_error_);
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 944 "tracker-sparql-expression.c"
					} else {
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 93 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 952 "tracker-sparql-expression.c"
					}
				}
#line 94 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 957 "tracker-sparql-expression.c"
			}
		}
#line 96 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 962 "tracker-sparql-expression.c"
	}
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 974 "tracker-sparql-expression.c"
		} else {
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 98 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 982 "tracker-sparql-expression.c"
		}
	}
}


void tracker_sparql_expression_skip_select_variables (TrackerSparqlExpression* self, GError** error) {
	GError * _inner_error_ = NULL;
#line 101 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 102 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 994 "tracker-sparql-expression.c"
		TrackerSparqlTokenType _tmp0_ = 0;
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp0_ = tracker_sparql_expression_current (self);
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		switch (_tmp0_) {
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 1002 "tracker-sparql-expression.c"
			{
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_skip_bracketted_expression (self, &_inner_error_);
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1014 "tracker-sparql-expression.c"
					} else {
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 105 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1022 "tracker-sparql-expression.c"
					}
				}
#line 106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1027 "tracker-sparql-expression.c"
			}
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_FROM:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_WHERE:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_GROUP:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_ORDER:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_LIMIT:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_OFFSET:
#line 103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			case TRACKER_SPARQL_TOKEN_TYPE_EOF:
#line 1045 "tracker-sparql-expression.c"
			{
#line 115 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 1049 "tracker-sparql-expression.c"
			}
			default:
			{
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_next (self, &_inner_error_);
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1063 "tracker-sparql-expression.c"
					} else {
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 1071 "tracker-sparql-expression.c"
					}
				}
#line 118 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				continue;
#line 1076 "tracker-sparql-expression.c"
			}
		}
#line 120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 1081 "tracker-sparql-expression.c"
	}
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* _tmp0_;
	glong _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* end;
	gchar* _tmp3_;
#line 1301 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1301 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1301 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1301 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1302 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1302 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 1105 "tracker-sparql-expression.c"
		glong _tmp4_;
#line 1303 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1303 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1303 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		return result;
#line 1113 "tracker-sparql-expression.c"
	} else {
		gchar* _tmp5_;
		gchar* _tmp6_;
#line 1305 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1305 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1305 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1305 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		return result;
#line 1125 "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_;
	gboolean _tmp3_;
	glong _tmp9_;
	glong _tmp15_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	glong _tmp22_;
	gchar* _tmp23_ = NULL;
#line 1312 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 1150 "tracker-sparql-expression.c"
		glong _tmp2_;
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 1156 "tracker-sparql-expression.c"
	} else {
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 1160 "tracker-sparql-expression.c"
	}
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp3_ = _tmp0_;
#line 1314 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp3_) {
#line 1166 "tracker-sparql-expression.c"
		glong _tmp4_;
		glong _tmp5_;
		glong _tmp6_ = 0L;
#line 1316 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp4_ = offset;
#line 1316 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp5_ = len;
#line 1316 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);
#line 1316 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		string_length = _tmp6_;
#line 1178 "tracker-sparql-expression.c"
	} else {
		gint _tmp7_;
		gint _tmp8_;
#line 1318 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp7_ = strlen (self);
#line 1318 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp7_;
#line 1318 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp8_;
#line 1188 "tracker-sparql-expression.c"
	}
#line 1321 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp9_ = offset;
#line 1321 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp9_ < ((glong) 0)) {
#line 1194 "tracker-sparql-expression.c"
		glong _tmp10_;
		glong _tmp11_;
		glong _tmp12_;
#line 1322 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp10_ = string_length;
#line 1322 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1322 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		offset = _tmp10_ + _tmp11_;
#line 1323 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1323 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);
#line 1208 "tracker-sparql-expression.c"
	} else {
		glong _tmp13_;
		glong _tmp14_;
#line 1325 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp13_ = offset;
#line 1325 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp14_ = string_length;
#line 1325 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
#line 1218 "tracker-sparql-expression.c"
	}
#line 1327 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp15_ = len;
#line 1327 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	if (_tmp15_ < ((glong) 0)) {
#line 1224 "tracker-sparql-expression.c"
		glong _tmp16_;
		glong _tmp17_;
#line 1328 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp16_ = string_length;
#line 1328 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		_tmp17_ = offset;
#line 1328 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
		len = _tmp16_ - _tmp17_;
#line 1233 "tracker-sparql-expression.c"
	}
#line 1330 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp18_ = offset;
#line 1330 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp19_ = len;
#line 1330 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp20_ = string_length;
#line 1330 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);
#line 1331 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp21_ = offset;
#line 1331 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp22_ = len;
#line 1331 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);
#line 1331 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	result = _tmp23_;
#line 1331 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	return result;
#line 1253 "tracker-sparql-expression.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return self ? g_object_ref (self) : NULL;
#line 1260 "tracker-sparql-expression.c"
}


static void _vala_array_add1 (gchar*** array, int* length, int* size, gchar* value) {
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1271 "tracker-sparql-expression.c"
	}
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1277 "tracker-sparql-expression.c"
}


static void _vala_array_add2 (gchar*** array, int* length, int* size, gchar* value) {
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if ((*length) == (*size)) {
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1288 "tracker-sparql-expression.c"
	}
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[(*length)++] = value;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	(*array)[*length] = NULL;
#line 1294 "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;
	gboolean expect_close_parens;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	TrackerPropertyType type;
	TrackerSparqlTokenType _tmp2_ = 0;
	gboolean _tmp42_;
	gboolean _tmp46_ = FALSE;
	gboolean _tmp47_;
	gboolean _tmp83_;
	TrackerSparqlVariable* _tmp84_;
	GError * _inner_error_ = NULL;
#line 124 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 124 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 125 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	variable = NULL;
#line 126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	expect_close_parens = FALSE;
#line 128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 129 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	type = TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 130 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = tracker_sparql_expression_current (self);
#line 130 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp2_ == TRACKER_SPARQL_TOKEN_TYPE_VAR) {
#line 1333 "tracker-sparql-expression.c"
		GString* _tmp3_;
		TrackerPropertyType _tmp4_ = 0;
		TrackerPropertyType _tmp5_;
		TrackerSparqlContext* _tmp6_;
		TrackerSparqlContext* _tmp7_;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_;
		TrackerSparqlVariable* _tmp12_ = NULL;
		TrackerSparqlVariable* _tmp13_;
		TrackerSparqlVariable* _tmp14_;
		TrackerSparqlVariableBinding* _tmp15_;
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = sql;
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1363 "tracker-sparql-expression.c"
			} else {
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1373 "tracker-sparql-expression.c"
			}
		}
#line 131 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type = _tmp5_;
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_expression_get_context (self);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp6_;
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = tracker_sparql_expression_get_last_string (self, 0);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = _tmp8_;
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = string_substring (_tmp9_, (glong) 1, (glong) (-1));
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp10_;
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_context_get_variable (_tmp7_, _tmp11_);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _g_object_ref0 (_tmp12_);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (variable);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable = _tmp13_;
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp11_);
#line 133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp9_);
#line 135 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = variable;
#line 135 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = _tmp14_->binding;
#line 135 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ == NULL) {
#line 1408 "tracker-sparql-expression.c"
			TrackerSparqlVariable* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			gchar* _tmp19_ = NULL;
			gchar* _tmp20_;
			GError* _tmp21_ = NULL;
			GError* _tmp22_;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = variable;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = tracker_sparql_variable_get_name (_tmp16_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = _tmp17_;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = g_strdup_printf ("use of undefined variable `%s'", _tmp18_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp19_;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = tracker_sparql_expression_get_error (self, _tmp20_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = _tmp21_;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp20_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp22_;
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1442 "tracker-sparql-expression.c"
			} else {
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1452 "tracker-sparql-expression.c"
			}
		}
	} else {
		gboolean _tmp23_ = FALSE;
		gboolean _tmp24_;
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp23_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp24_ = _tmp23_;
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1472 "tracker-sparql-expression.c"
			} else {
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1482 "tracker-sparql-expression.c"
			}
		}
#line 138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp24_) {
#line 1487 "tracker-sparql-expression.c"
			TrackerSparqlTokenType _tmp25_ = 0;
#line 139 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = tracker_sparql_expression_current (self);
#line 139 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp25_ == TRACKER_SPARQL_TOKEN_TYPE_SELECT) {
#line 1493 "tracker-sparql-expression.c"
				GString* _tmp26_;
				TrackerSparqlPattern* _tmp27_;
				TrackerSparqlPattern* _tmp28_;
				GString* _tmp29_;
				TrackerSparqlSelectContext* _tmp30_ = NULL;
				TrackerSparqlSelectContext* select_context;
				GString* _tmp31_;
				TrackerSparqlSelectContext* _tmp32_;
				TrackerPropertyType _tmp33_;
#line 142 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 142 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp26_, "(");
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = tracker_sparql_expression_get_pattern (self);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = _tmp27_;
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = sql;
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = tracker_sparql_pattern_translate_select (_tmp28_, _tmp29_, TRUE, TRUE, &_inner_error_);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				select_context = _tmp30_;
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1527 "tracker-sparql-expression.c"
					} else {
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 143 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1537 "tracker-sparql-expression.c"
					}
				}
#line 144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tracker_sparql_context_unref0 (select_context);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1558 "tracker-sparql-expression.c"
					} else {
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tracker_sparql_context_unref0 (select_context);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1570 "tracker-sparql-expression.c"
					}
				}
#line 147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = select_context;
#line 147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp33_ = _tmp32_->type;
#line 147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp33_;
#line 139 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 1581 "tracker-sparql-expression.c"
			} else {
				GString* _tmp34_;
				TrackerPropertyType _tmp35_ = 0;
				TrackerPropertyType _tmp36_;
				gboolean _tmp37_ = FALSE;
				gboolean _tmp38_;
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp34_ = sql;
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp35_ = tracker_sparql_expression_translate_expression (self, _tmp34_, &_inner_error_);
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp36_ = _tmp35_;
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1604 "tracker-sparql-expression.c"
					} else {
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1614 "tracker-sparql-expression.c"
					}
				}
#line 149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp36_;
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp37_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp38_ = _tmp37_;
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1633 "tracker-sparql-expression.c"
					} else {
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (variable);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 1643 "tracker-sparql-expression.c"
					}
				}
#line 150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp38_) {
#line 1648 "tracker-sparql-expression.c"
				} else {
#line 156 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					expect_close_parens = TRUE;
#line 1652 "tracker-sparql-expression.c"
				}
			}
		} else {
			GString* _tmp39_;
			TrackerPropertyType _tmp40_ = 0;
			TrackerPropertyType _tmp41_;
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp39_ = sql;
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp40_ = tracker_sparql_expression_translate_expression (self, _tmp39_, &_inner_error_);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp41_ = _tmp40_;
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 1675 "tracker-sparql-expression.c"
				} else {
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 1685 "tracker-sparql-expression.c"
				}
			}
#line 162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp41_;
#line 1690 "tracker-sparql-expression.c"
		}
	}
#line 165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp42_ = subquery;
#line 165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp42_) {
#line 1697 "tracker-sparql-expression.c"
		GString* _tmp43_;
		TrackerPropertyType _tmp44_;
		glong _tmp45_;
#line 166 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp43_ = sql;
#line 166 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp44_ = type;
#line 166 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp45_ = begin;
#line 166 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_convert_expression_to_string (_tmp43_, _tmp44_, _tmp45_);
#line 1709 "tracker-sparql-expression.c"
	}
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp46_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_AS, &_inner_error_);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp47_ = _tmp46_;
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 1725 "tracker-sparql-expression.c"
		} else {
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 1735 "tracker-sparql-expression.c"
		}
	}
#line 169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp47_) {
#line 1740 "tracker-sparql-expression.c"
		gboolean _tmp48_ = FALSE;
		gboolean _tmp49_;
		GString* _tmp64_;
		TrackerSparqlVariable* _tmp65_;
		const gchar* _tmp66_;
		const gchar* _tmp67_;
		gboolean _tmp68_;
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp48_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp49_ = _tmp48_;
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1762 "tracker-sparql-expression.c"
			} else {
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1772 "tracker-sparql-expression.c"
			}
		}
#line 170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp49_) {
#line 1777 "tracker-sparql-expression.c"
			TrackerSparqlContext* _tmp50_;
			TrackerSparqlContext* _tmp51_;
			gchar* _tmp52_ = NULL;
			gchar* _tmp53_;
			TrackerSparqlVariable* _tmp54_ = NULL;
			TrackerSparqlVariable* _tmp55_;
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp50_ = tracker_sparql_expression_get_context (self);
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = _tmp50_;
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp52_ = tracker_sparql_expression_get_last_string (self, 0);
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp53_ = _tmp52_;
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp54_ = tracker_sparql_context_get_variable (_tmp51_, _tmp53_);
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp55_ = _g_object_ref0 (_tmp54_);
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp55_;
#line 173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp53_);
#line 1802 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlContext* _tmp56_;
			TrackerSparqlContext* _tmp57_;
			gchar* _tmp58_ = NULL;
			gchar* _tmp59_;
			gchar* _tmp60_ = NULL;
			gchar* _tmp61_;
			TrackerSparqlVariable* _tmp62_ = NULL;
			TrackerSparqlVariable* _tmp63_;
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 1824 "tracker-sparql-expression.c"
				} else {
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (variable);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 1834 "tracker-sparql-expression.c"
				}
			}
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp56_ = tracker_sparql_expression_get_context (self);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp57_ = _tmp56_;
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp58_ = tracker_sparql_expression_get_last_string (self, 0);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp59_ = _tmp58_;
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp60_ = string_substring (_tmp59_, (glong) 1, (glong) (-1));
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp61_ = _tmp60_;
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp62_ = tracker_sparql_context_get_variable (_tmp57_, _tmp61_);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp63_ = _g_object_ref0 (_tmp62_);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp63_;
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp61_);
#line 178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp59_);
#line 1861 "tracker-sparql-expression.c"
		}
#line 180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp64_ = sql;
#line 180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp65_ = variable;
#line 180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp66_ = tracker_sparql_variable_get_sql_expression (_tmp65_);
#line 180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp67_ = _tmp66_;
#line 180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append_printf (_tmp64_, " AS %s", _tmp67_);
#line 182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp68_ = subquery;
#line 182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp68_) {
#line 1877 "tracker-sparql-expression.c"
			TrackerSparqlVariableBinding* _tmp69_;
			TrackerSparqlVariableBinding* binding;
			TrackerSparqlVariableBinding* _tmp70_;
			TrackerPropertyType _tmp71_;
			TrackerSparqlVariableBinding* _tmp72_;
			TrackerSparqlVariable* _tmp73_;
			TrackerSparqlVariableBinding* _tmp74_;
			TrackerSparqlVariable* _tmp75_;
			const gchar* _tmp76_;
			const gchar* _tmp77_;
			TrackerSparqlPattern* _tmp78_;
			TrackerSparqlPattern* _tmp79_;
			GString* _tmp80_;
			GString* _tmp81_;
			TrackerSparqlVariableBinding* _tmp82_;
#line 183 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp69_ = tracker_sparql_variable_binding_new ();
#line 183 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			binding = _tmp69_;
#line 184 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp70_ = binding;
#line 184 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp71_ = type;
#line 184 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			((TrackerSparqlDataBinding*) _tmp70_)->data_type = _tmp71_;
#line 185 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp72_ = binding;
#line 185 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp73_ = variable;
#line 185 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp72_->variable = _tmp73_;
#line 186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp74_ = binding;
#line 186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp75_ = variable;
#line 186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp76_ = tracker_sparql_variable_get_sql_expression (_tmp75_);
#line 186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp77_ = _tmp76_;
#line 186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_data_binding_set_sql_expression ((TrackerSparqlDataBinding*) _tmp74_, _tmp77_);
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp78_ = tracker_sparql_expression_get_pattern (self);
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp79_ = _tmp78_;
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp80_ = g_string_new ("");
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp81_ = _tmp80_;
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp82_ = binding;
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_pattern_add_variable_binding (_tmp79_, _tmp81_, _tmp82_, TRACKER_SPARQL_VARIABLE_STATE_BOUND);
#line 187 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_string_free0 (_tmp81_);
#line 182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (binding);
#line 1935 "tracker-sparql-expression.c"
		}
	}
#line 191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp83_ = expect_close_parens;
#line 191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp83_) {
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1954 "tracker-sparql-expression.c"
			} else {
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 1964 "tracker-sparql-expression.c"
			}
		}
	}
#line 195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp84_ = variable;
#line 195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp84_ != NULL) {
#line 1972 "tracker-sparql-expression.c"
		TrackerSparqlContext* _tmp85_;
		TrackerSparqlContext* _tmp86_;
		GHashTable* _tmp87_;
		TrackerSparqlVariable* _tmp88_;
		gconstpointer _tmp89_ = NULL;
		gint state;
		gint _tmp90_;
		TrackerSparqlContext* _tmp91_;
		TrackerSparqlContext* _tmp92_;
		GHashTable* _tmp93_;
		TrackerSparqlVariable* _tmp94_;
		TrackerSparqlVariable* _tmp95_;
		gint _tmp96_;
		TrackerSparqlContext* _tmp97_;
		TrackerSparqlContext* _tmp98_;
		TrackerSparqlContext* _tmp99_;
		TrackerSparqlContext* _tmp100_;
		gchar** _tmp101_;
		gint _tmp101__length1;
		TrackerSparqlVariable* _tmp102_;
		const gchar* _tmp103_;
		const gchar* _tmp104_;
		gchar* _tmp105_;
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp85_ = tracker_sparql_expression_get_context (self);
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp86_ = _tmp85_;
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp87_ = _tmp86_->var_set;
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp88_ = variable;
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp89_ = g_hash_table_lookup (_tmp87_, _tmp88_);
#line 196 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		state = GPOINTER_TO_INT (_tmp89_);
#line 197 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp90_ = state;
#line 197 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp90_ == 0) {
#line 198 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			state = (gint) TRACKER_SPARQL_VARIABLE_STATE_BOUND;
#line 2014 "tracker-sparql-expression.c"
		}
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp91_ = tracker_sparql_expression_get_context (self);
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp92_ = _tmp91_;
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp93_ = _tmp92_->select_var_set;
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp94_ = variable;
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp95_ = _g_object_ref0 (_tmp94_);
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp96_ = state;
#line 200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_hash_table_insert (_tmp93_, _tmp95_, GINT_TO_POINTER (_tmp96_));
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp97_ = tracker_sparql_expression_get_context (self);
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp98_ = _tmp97_;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp99_ = tracker_sparql_expression_get_context (self);
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp100_ = _tmp99_;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp101_ = TRACKER_SPARQL_SELECT_CONTEXT (_tmp100_)->variable_names;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp101__length1 = TRACKER_SPARQL_SELECT_CONTEXT (_tmp100_)->variable_names_length1;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp102_ = variable;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp103_ = tracker_sparql_variable_get_name (_tmp102_);
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp104_ = _tmp103_;
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp105_ = g_strdup (_tmp104_);
#line 202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_vala_array_add1 (&TRACKER_SPARQL_SELECT_CONTEXT (_tmp98_)->variable_names, &TRACKER_SPARQL_SELECT_CONTEXT (_tmp98_)->variable_names_length1, &TRACKER_SPARQL_SELECT_CONTEXT (_tmp98_)->_variable_names_size_, _tmp105_);
#line 2052 "tracker-sparql-expression.c"
	} else {
		TrackerSparqlContext* _tmp106_;
		TrackerSparqlContext* _tmp107_;
		TrackerSparqlContext* _tmp108_;
		TrackerSparqlContext* _tmp109_;
		gchar** _tmp110_;
		gint _tmp110__length1;
		gint _tmp111_;
		gchar* _tmp112_ = NULL;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp106_ = tracker_sparql_expression_get_context (self);
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp107_ = _tmp106_;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp108_ = tracker_sparql_expression_get_context (self);
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp109_ = _tmp108_;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp110_ = TRACKER_SPARQL_SELECT_CONTEXT (_tmp109_)->variable_names;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp110__length1 = TRACKER_SPARQL_SELECT_CONTEXT (_tmp109_)->variable_names_length1;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp111_ = variable_index;
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp112_ = g_strdup_printf ("var%d", _tmp111_ + 1);
#line 204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_vala_array_add2 (&TRACKER_SPARQL_SELECT_CONTEXT (_tmp107_)->variable_names, &TRACKER_SPARQL_SELECT_CONTEXT (_tmp107_)->variable_names_length1, &TRACKER_SPARQL_SELECT_CONTEXT (_tmp107_)->_variable_names_size_, _tmp112_);
#line 2080 "tracker-sparql-expression.c"
	}
#line 207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_object_unref0 (variable);
#line 207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 2088 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_expression_as_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	TrackerPropertyType _tmp3_ = 0;
	TrackerPropertyType _tmp4_;
	GError * _inner_error_ = NULL;
#line 210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 211 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 211 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 211 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_expression (self, _tmp2_, &_inner_error_);
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = _tmp3_;
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2124 "tracker-sparql-expression.c"
		} else {
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2132 "tracker-sparql-expression.c"
		}
	}
#line 212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp4_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 2137 "tracker-sparql-expression.c"
		GString* _tmp5_;
		GString* _tmp6_;
#line 214 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 214 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp5_, (gssize) begin, "(SELECT Uri FROM Resource WHERE ID = ");
#line 215 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 215 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp6_, ")");
#line 2148 "tracker-sparql-expression.c"
	}
}


void tracker_sparql_expression_translate_order_condition (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
#line 219 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 219 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ASC, &_inner_error_);
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2173 "tracker-sparql-expression.c"
		} else {
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2181 "tracker-sparql-expression.c"
		}
	}
#line 220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 2186 "tracker-sparql-expression.c"
		GString* _tmp2_;
		GString* _tmp3_;
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp2_, &_inner_error_);
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2201 "tracker-sparql-expression.c"
			} else {
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2209 "tracker-sparql-expression.c"
			}
		}
#line 222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = sql;
#line 222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp3_, " ASC");
#line 2216 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DESC, &_inner_error_);
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2232 "tracker-sparql-expression.c"
			} else {
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2240 "tracker-sparql-expression.c"
			}
		}
#line 223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp5_) {
#line 2245 "tracker-sparql-expression.c"
			GString* _tmp6_;
			GString* _tmp7_;
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = sql;
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp6_, &_inner_error_);
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2260 "tracker-sparql-expression.c"
				} else {
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2268 "tracker-sparql-expression.c"
				}
			}
#line 225 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = sql;
#line 225 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp7_, " DESC");
#line 2275 "tracker-sparql-expression.c"
		} else {
			GString* _tmp8_;
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = sql;
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_order_condition (self, _tmp8_, &_inner_error_);
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2290 "tracker-sparql-expression.c"
				} else {
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 227 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 2298 "tracker-sparql-expression.c"
				}
			}
		}
	}
}


static void tracker_sparql_expression_translate_bound_call (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_;
	GString* _tmp1_;
	GString* _tmp2_;
	GError * _inner_error_ = NULL;
#line 231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_BOUND, &_inner_error_);
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2325 "tracker-sparql-expression.c"
		} else {
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 232 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2333 "tracker-sparql-expression.c"
		}
	}
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2346 "tracker-sparql-expression.c"
		} else {
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2354 "tracker-sparql-expression.c"
		}
	}
#line 234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(");
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp1_, &_inner_error_);
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2373 "tracker-sparql-expression.c"
		} else {
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2381 "tracker-sparql-expression.c"
		}
	}
#line 236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " IS NOT NULL)");
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2398 "tracker-sparql-expression.c"
		} else {
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 237 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2406 "tracker-sparql-expression.c"
		}
	}
}


static TrackerPropertyType tracker_sparql_expression_translate_if_call (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	GString* _tmp1_;
	GString* _tmp2_;
	GString* _tmp3_;
	TrackerPropertyType _tmp4_ = 0;
	TrackerPropertyType type;
	GString* _tmp5_;
	GString* _tmp6_;
	GString* _tmp7_;
	GError * _inner_error_ = NULL;
#line 240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IF, &_inner_error_);
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2438 "tracker-sparql-expression.c"
		} else {
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2446 "tracker-sparql-expression.c"
		}
	}
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2459 "tracker-sparql-expression.c"
		} else {
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 242 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2467 "tracker-sparql-expression.c"
		}
	}
#line 245 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 245 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(CASE ");
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp1_, &_inner_error_);
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2486 "tracker-sparql-expression.c"
		} else {
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 246 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2494 "tracker-sparql-expression.c"
		}
	}
#line 249 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 249 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " WHEN 1 THEN ");
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2511 "tracker-sparql-expression.c"
		} else {
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 250 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2519 "tracker-sparql-expression.c"
		}
	}
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	type = _tmp4_;
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2536 "tracker-sparql-expression.c"
		} else {
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2544 "tracker-sparql-expression.c"
		}
	}
#line 254 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 254 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp5_, " WHEN 0 THEN ");
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2561 "tracker-sparql-expression.c"
		} else {
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2569 "tracker-sparql-expression.c"
		}
	}
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = sql;
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression (self, _tmp6_, &_inner_error_);
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2584 "tracker-sparql-expression.c"
		} else {
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2592 "tracker-sparql-expression.c"
		}
	}
#line 258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = sql;
#line 258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp7_, " ELSE NULL END)");
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2609 "tracker-sparql-expression.c"
		} else {
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 2617 "tracker-sparql-expression.c"
		}
	}
#line 262 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 262 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 2624 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_regex (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_;
	GString* _tmp1_;
	GString* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	GString* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_;
	GString* _tmp9_;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_;
	GString* _tmp19_;
	GError * _inner_error_ = NULL;
#line 265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_REGEX, &_inner_error_);
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2657 "tracker-sparql-expression.c"
		} else {
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 266 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2665 "tracker-sparql-expression.c"
		}
	}
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2678 "tracker-sparql-expression.c"
		} else {
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2686 "tracker-sparql-expression.c"
		}
	}
#line 268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "SparqlRegex(");
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = sql;
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression_as_string (self, _tmp1_, &_inner_error_);
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2705 "tracker-sparql-expression.c"
		} else {
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 269 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2713 "tracker-sparql-expression.c"
		}
	}
#line 270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, ", ");
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2730 "tracker-sparql-expression.c"
		} else {
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 271 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2738 "tracker-sparql-expression.c"
		}
	}
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = _tmp3_;
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2753 "tracker-sparql-expression.c"
		} else {
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2761 "tracker-sparql-expression.c"
		}
	}
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = _tmp4_;
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp6_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp8_ = _tmp7_;
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp5_, _tmp8_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp8_);
#line 275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (_tmp6_);
#line 276 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = sql;
#line 276 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp9_, ", ");
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp11_ = _tmp10_;
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2794 "tracker-sparql-expression.c"
		} else {
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2802 "tracker-sparql-expression.c"
		}
	}
#line 277 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp11_) {
#line 2807 "tracker-sparql-expression.c"
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_;
		GString* _tmp14_;
		gchar* _tmp15_;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_;
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _tmp12_;
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2826 "tracker-sparql-expression.c"
			} else {
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 2834 "tracker-sparql-expression.c"
			}
		}
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = sql;
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = _tmp13_;
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp16_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp15_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp17_ = _tmp16_;
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp14_, _tmp17_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp17_);
#line 280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp15_);
#line 2851 "tracker-sparql-expression.c"
	} else {
		GString* _tmp18_;
#line 282 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp18_ = sql;
#line 282 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp18_, "''");
#line 2858 "tracker-sparql-expression.c"
	}
#line 284 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = sql;
#line 284 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp19_, ")");
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2874 "tracker-sparql-expression.c"
		} else {
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 285 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2882 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_exists (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_;
	TrackerSparqlPattern* _tmp1_;
	TrackerSparqlPattern* _tmp2_;
	GString* _tmp3_;
	GString* _tmp4_;
	GError * _inner_error_ = NULL;
#line 288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 289 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 289 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp0_, "(");
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_get_pattern (self);
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_pattern_translate_exists (_tmp2_, _tmp3_, &_inner_error_);
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2919 "tracker-sparql-expression.c"
		} else {
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 2927 "tracker-sparql-expression.c"
		}
	}
#line 291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp4_, ")");
#line 2934 "tracker-sparql-expression.c"
}


void tracker_sparql_expression_append_expression_as_string (GString* sql, const gchar* expression, TrackerPropertyType type) {
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	const gchar* _tmp3_;
	GString* _tmp4_;
	TrackerPropertyType _tmp5_;
#line 294 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 294 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (expression != NULL);
#line 295 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 295 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 295 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = expression;
#line 296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, _tmp3_);
#line 297 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 297 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = type;
#line 297 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_convert_expression_to_string (_tmp4_, _tmp5_, begin);
#line 2968 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_convert_expression_to_string (GString* sql, TrackerPropertyType type, glong begin) {
	TrackerPropertyType _tmp0_;
#line 300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = type;
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_STRING:
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_INTEGER:
#line 2984 "tracker-sparql-expression.c"
		{
#line 307 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 2988 "tracker-sparql-expression.c"
		}
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_RESOURCE:
#line 2992 "tracker-sparql-expression.c"
		{
			GString* _tmp1_;
			glong _tmp2_;
			GString* _tmp3_;
#line 310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = sql;
#line 310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = begin;
#line 310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp1_, (gssize) _tmp2_, "(SELECT Uri FROM Resource WHERE ID = ");
#line 311 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = sql;
#line 311 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp3_, ")");
#line 312 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3009 "tracker-sparql-expression.c"
		}
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_BOOLEAN:
#line 3013 "tracker-sparql-expression.c"
		{
			GString* _tmp4_;
			glong _tmp5_;
			GString* _tmp6_;
#line 315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = begin;
#line 315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp4_, (gssize) _tmp5_, "CASE ");
#line 316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = sql;
#line 316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp6_, " WHEN 1 THEN 'true' WHEN 0 THEN 'false' ELSE NULL END");
#line 317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3030 "tracker-sparql-expression.c"
		}
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_DATE:
#line 3034 "tracker-sparql-expression.c"
		{
			GString* _tmp7_;
			glong _tmp8_;
			GString* _tmp9_;
#line 320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = sql;
#line 320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = begin;
#line 320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp7_, (gssize) _tmp8_, "strftime (\"%Y-%m-%d\", ");
#line 321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp9_, ", \"unixepoch\")");
#line 322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3051 "tracker-sparql-expression.c"
		}
#line 301 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_PROPERTY_TYPE_DATETIME:
#line 3055 "tracker-sparql-expression.c"
		{
			GString* _tmp10_;
			glong _tmp11_;
			GString* _tmp12_;
#line 325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = sql;
#line 325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = begin;
#line 325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp10_, (gssize) _tmp11_, "strftime (\"%Y-%m-%dT%H:%M:%SZ\", ");
#line 326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = sql;
#line 326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp12_, ", \"unixepoch\")");
#line 327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3072 "tracker-sparql-expression.c"
		}
		default:
		{
			GString* _tmp13_;
			glong _tmp14_;
			GString* _tmp15_;
#line 330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = sql;
#line 330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = begin;
#line 330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp13_, (gssize) _tmp14_, "CAST (");
#line 331 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = sql;
#line 331 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp15_, " AS TEXT)");
#line 332 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3091 "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 336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 337 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 337 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 337 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IRI_REF:
#line 337 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX:
#line 337 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COLON:
#line 3114 "tracker-sparql-expression.c"
		{
			TrackerSparqlLiteralBinding* _tmp1_;
			TrackerSparqlLiteralBinding* binding;
			gboolean is_var = FALSE;
			TrackerSparqlPattern* _tmp2_;
			TrackerSparqlPattern* _tmp3_;
			gboolean _tmp4_ = FALSE;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_;
			TrackerSparqlLiteralBinding* _tmp7_;
			gboolean _tmp8_ = FALSE;
			gboolean _tmp9_;
#line 342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = tracker_sparql_literal_binding_new ();
#line 342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			binding = _tmp1_;
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = tracker_sparql_expression_get_pattern (self);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = _tmp2_;
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = tracker_sparql_pattern_parse_var_or_term (_tmp3_, NULL, &_tmp4_, &_inner_error_);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			is_var = _tmp4_;
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = _tmp5_;
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3151 "tracker-sparql-expression.c"
				} else {
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3161 "tracker-sparql-expression.c"
				}
			}
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = binding;
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp7_->literal);
#line 344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_->literal = _tmp6_;
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = _tmp8_;
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3184 "tracker-sparql-expression.c"
				} else {
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_object_unref0 (binding);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3194 "tracker-sparql-expression.c"
				}
			}
#line 345 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp9_) {
#line 3199 "tracker-sparql-expression.c"
				GString* _tmp10_;
				gssize _tmp11_;
				glong begin;
				GString* _tmp12_;
				TrackerSparqlLiteralBinding* _tmp13_;
				const gchar* _tmp14_;
				TrackerPropertyType _tmp15_ = 0;
				TrackerPropertyType type;
				GString* _tmp16_;
				TrackerPropertyType _tmp17_;
				glong _tmp18_;
#line 347 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp10_ = sql;
#line 347 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = _tmp10_->len;
#line 347 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				begin = (glong) _tmp11_;
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp12_ = sql;
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = binding;
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = _tmp13_->literal;
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = tracker_sparql_expression_translate_function (self, _tmp12_, _tmp14_, &_inner_error_);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = _tmp15_;
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3237 "tracker-sparql-expression.c"
					} else {
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3247 "tracker-sparql-expression.c"
					}
				}
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3262 "tracker-sparql-expression.c"
					} else {
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return;
#line 3272 "tracker-sparql-expression.c"
					}
				}
#line 350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = sql;
#line 350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = type;
#line 350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = begin;
#line 350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_convert_expression_to_string (_tmp16_, _tmp17_, _tmp18_);
#line 3283 "tracker-sparql-expression.c"
			} else {
				GString* _tmp19_;
				TrackerSparqlQuery* _tmp20_;
				TrackerSparqlLiteralBinding* _tmp21_;
				TrackerSparqlLiteralBinding* _tmp22_;
#line 352 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp19_ = sql;
#line 352 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp19_, "?");
#line 353 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = self->priv->query;
#line 353 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = binding;
#line 353 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp22_ = _g_object_ref0 (_tmp21_);
#line 353 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_->bindings = g_list_append (_tmp20_->bindings, _tmp22_);
#line 3301 "tracker-sparql-expression.c"
			}
#line 355 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (binding);
#line 355 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3307 "tracker-sparql-expression.c"
		}
		default:
		{
			GString* _tmp23_;
			gssize _tmp24_;
			glong begin;
			GString* _tmp25_;
			TrackerPropertyType _tmp26_ = 0;
			TrackerPropertyType type;
			GString* _tmp27_;
			TrackerPropertyType _tmp28_;
			glong _tmp29_;
#line 357 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = sql;
#line 357 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = _tmp23_->len;
#line 357 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			begin = (glong) _tmp24_;
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = sql;
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = tracker_sparql_expression_translate_expression (self, _tmp25_, &_inner_error_);
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp26_;
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3340 "tracker-sparql-expression.c"
				} else {
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return;
#line 3348 "tracker-sparql-expression.c"
				}
			}
#line 359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = sql;
#line 359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = type;
#line 359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = begin;
#line 359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_convert_expression_to_string (_tmp27_, _tmp28_, _tmp29_);
#line 360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 3361 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_str (TrackerSparqlExpression* self, GString* sql, GError** error) {
	GString* _tmp0_;
	GError * _inner_error_ = NULL;
#line 364 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 364 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_STR, &_inner_error_);
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3384 "tracker-sparql-expression.c"
		} else {
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3392 "tracker-sparql-expression.c"
		}
	}
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3405 "tracker-sparql-expression.c"
		} else {
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3413 "tracker-sparql-expression.c"
		}
	}
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_translate_expression_as_string (self, _tmp0_, &_inner_error_);
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3428 "tracker-sparql-expression.c"
		} else {
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3436 "tracker-sparql-expression.c"
		}
	}
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3449 "tracker-sparql-expression.c"
		} else {
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 370 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3457 "tracker-sparql-expression.c"
		}
	}
}


static void tracker_sparql_expression_translate_isuri (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_;
	GString* _tmp2_;
	TrackerSparqlLiteralBinding* _tmp3_;
	TrackerSparqlLiteralBinding* new_binding;
	TrackerSparqlLiteralBinding* _tmp4_;
	TrackerSparqlTokenType _tmp5_ = 0;
	TrackerSparqlQuery* _tmp17_;
	TrackerSparqlLiteralBinding* _tmp18_;
	TrackerSparqlLiteralBinding* _tmp19_;
	GError * _inner_error_ = NULL;
#line 373 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 373 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ISURI, &_inner_error_);
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3491 "tracker-sparql-expression.c"
		} else {
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3499 "tracker-sparql-expression.c"
		}
	}
#line 374 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp1_) {
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_ISIRI, &_inner_error_);
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3514 "tracker-sparql-expression.c"
			} else {
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3522 "tracker-sparql-expression.c"
			}
		}
	}
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3536 "tracker-sparql-expression.c"
		} else {
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 378 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3544 "tracker-sparql-expression.c"
		}
	}
#line 380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, "?");
#line 381 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_literal_binding_new ();
#line 381 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	new_binding = _tmp3_;
#line 382 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = new_binding;
#line 382 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	((TrackerSparqlDataBinding*) _tmp4_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 384 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = tracker_sparql_expression_current (self);
#line 384 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp5_ == TRACKER_SPARQL_TOKEN_TYPE_IRI_REF) {
#line 3563 "tracker-sparql-expression.c"
		TrackerSparqlLiteralBinding* _tmp6_;
		gchar* _tmp7_;
#line 385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = new_binding;
#line 385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = g_strdup ("1");
#line 385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp6_->literal);
#line 385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_->literal = _tmp7_;
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_next (self, &_inner_error_);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3586 "tracker-sparql-expression.c"
			} else {
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3596 "tracker-sparql-expression.c"
			}
		}
	} else {
		GString* _tmp8_;
		GString* _tmp9_;
		TrackerPropertyType _tmp10_ = 0;
		TrackerPropertyType _tmp11_;
		TrackerPropertyType _tmp12_;
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = g_string_new ("");
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = _tmp8_;
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = tracker_sparql_expression_translate_expression (self, _tmp9_, &_inner_error_);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = _tmp10_;
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_string_free0 (_tmp9_);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _tmp11_;
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3627 "tracker-sparql-expression.c"
			} else {
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (new_binding);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3637 "tracker-sparql-expression.c"
			}
		}
#line 387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp12_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 3642 "tracker-sparql-expression.c"
			TrackerSparqlLiteralBinding* _tmp13_;
			gchar* _tmp14_;
#line 388 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = new_binding;
#line 388 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = g_strdup ("1");
#line 388 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp13_->literal);
#line 388 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_->literal = _tmp14_;
#line 3653 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlLiteralBinding* _tmp15_;
			gchar* _tmp16_;
#line 390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = new_binding;
#line 390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = g_strdup ("0");
#line 390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp15_->literal);
#line 390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_->literal = _tmp16_;
#line 3665 "tracker-sparql-expression.c"
		}
	}
#line 393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp17_ = self->priv->query;
#line 393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp18_ = new_binding;
#line 393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = _g_object_ref0 (_tmp18_);
#line 393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp17_->bindings = g_list_append (_tmp17_->bindings, _tmp19_);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (new_binding);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3688 "tracker-sparql-expression.c"
		} else {
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (new_binding);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3698 "tracker-sparql-expression.c"
		}
	}
#line 373 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_object_unref0 (new_binding);
#line 3703 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_translate_datatype (TrackerSparqlExpression* self, GString* sql, GError** error) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
#line 398 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (self != NULL);
#line 398 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_if_fail (sql != NULL);
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_DATATYPE, &_inner_error_);
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3725 "tracker-sparql-expression.c"
		} else {
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3733 "tracker-sparql-expression.c"
		}
	}
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3746 "tracker-sparql-expression.c"
		} else {
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3754 "tracker-sparql-expression.c"
		}
	}
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3769 "tracker-sparql-expression.c"
		} else {
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 3777 "tracker-sparql-expression.c"
		}
	}
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 3782 "tracker-sparql-expression.c"
		gchar* _tmp2_ = NULL;
		gchar* _tmp3_;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_;
		gchar* variable_name;
		TrackerSparqlContext* _tmp6_;
		TrackerSparqlContext* _tmp7_;
		const gchar* _tmp8_;
		TrackerSparqlVariable* _tmp9_ = NULL;
		TrackerSparqlVariable* _tmp10_;
		TrackerSparqlVariable* variable;
		TrackerSparqlVariable* _tmp11_;
		TrackerSparqlVariableBinding* _tmp12_;
		gboolean _tmp20_ = FALSE;
		TrackerSparqlVariable* _tmp21_;
		TrackerSparqlVariableBinding* _tmp22_;
		TrackerPropertyType _tmp23_;
		gboolean _tmp27_;
		GString* _tmp29_;
		TrackerSparqlLiteralBinding* _tmp30_;
		TrackerSparqlLiteralBinding* new_binding;
		TrackerSparqlLiteralBinding* _tmp31_;
		TrackerSparqlVariable* _tmp32_;
		TrackerSparqlVariableBinding* _tmp33_;
		TrackerClass* _tmp34_;
		const gchar* _tmp35_;
		const gchar* _tmp36_;
		gchar* _tmp37_;
		TrackerSparqlQuery* _tmp38_;
		TrackerSparqlLiteralBinding* _tmp39_;
		TrackerSparqlLiteralBinding* _tmp40_;
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_last_string (self, 0);
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp2_;
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = string_substring (_tmp3_, (glong) 1, (glong) (-1));
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp3_);
#line 403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable_name = _tmp5_;
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_expression_get_context (self);
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp6_;
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = variable_name;
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = tracker_sparql_context_get_variable (_tmp7_, _tmp8_);
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = _g_object_ref0 (_tmp9_);
#line 404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		variable = _tmp10_;
#line 406 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = variable;
#line 406 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _tmp11_->binding;
#line 406 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp12_ == NULL) {
#line 3844 "tracker-sparql-expression.c"
			TrackerSparqlVariable* _tmp13_;
			const gchar* _tmp14_;
			const gchar* _tmp15_;
			gchar* _tmp16_ = NULL;
			gchar* _tmp17_;
			GError* _tmp18_ = NULL;
			GError* _tmp19_;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = variable;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = tracker_sparql_variable_get_name (_tmp13_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = _tmp14_;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = g_strdup_printf ("`%s' is not a valid variable", _tmp15_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = _tmp16_;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = tracker_sparql_expression_get_error (self, _tmp17_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp17_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp19_;
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3880 "tracker-sparql-expression.c"
			} else {
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 407 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3892 "tracker-sparql-expression.c"
			}
		}
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp21_ = variable;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp22_ = _tmp21_->binding;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp23_ = ((TrackerSparqlDataBinding*) _tmp22_)->data_type;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp23_ == TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = TRUE;
#line 3905 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlVariable* _tmp24_;
			TrackerSparqlVariableBinding* _tmp25_;
			TrackerClass* _tmp26_;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = variable;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = _tmp24_->binding;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = _tmp25_->type;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp26_ == NULL;
#line 3918 "tracker-sparql-expression.c"
		}
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp27_ = _tmp20_;
#line 410 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp27_) {
#line 3924 "tracker-sparql-expression.c"
			GError* _tmp28_ = NULL;
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = tracker_sparql_expression_get_error (self, "Invalid FILTER");
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp28_;
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3940 "tracker-sparql-expression.c"
			} else {
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 411 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return;
#line 3952 "tracker-sparql-expression.c"
			}
		}
#line 414 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp29_ = sql;
#line 414 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp29_, "(SELECT ID FROM Resource WHERE Uri = ?)");
#line 416 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp30_ = tracker_sparql_literal_binding_new ();
#line 416 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		new_binding = _tmp30_;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp31_ = new_binding;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp32_ = variable;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp33_ = _tmp32_->binding;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp34_ = _tmp33_->type;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp35_ = tracker_class_get_uri (_tmp34_);
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp36_ = _tmp35_;
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp37_ = g_strdup (_tmp36_);
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp31_->literal);
#line 417 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp31_->literal = _tmp37_;
#line 418 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp38_ = self->priv->query;
#line 418 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp39_ = new_binding;
#line 418 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp40_ = _g_object_ref0 (_tmp39_);
#line 418 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp38_->bindings = g_list_append (_tmp38_->bindings, _tmp40_);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (new_binding);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (variable);
#line 402 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (variable_name);
#line 3995 "tracker-sparql-expression.c"
	} else {
		GError* _tmp41_ = NULL;
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp41_ = tracker_sparql_expression_get_error (self, "Invalid FILTER");
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_inner_error_ = _tmp41_;
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4008 "tracker-sparql-expression.c"
		} else {
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 421 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4016 "tracker-sparql-expression.c"
		}
	}
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4029 "tracker-sparql-expression.c"
		} else {
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return;
#line 4037 "tracker-sparql-expression.c"
		}
	}
}


static gchar* g_unichar_to_string (gunichar self) {
	gchar* result = NULL;
	gchar* _tmp0_ = NULL;
	gchar* str;
	const gchar* _tmp1_;
#line 841 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp0_ = g_new0 (gchar, 7);
#line 841 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	str = (gchar*) _tmp0_;
#line 842 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	_tmp1_ = str;
#line 842 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	g_unichar_to_utf8 (self, _tmp1_);
#line 843 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	result = str;
#line 843 "/usr/share/vala-0.14/vapi/glib-2.0.vapi"
	return result;
#line 4060 "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_;
	GError * _inner_error_ = NULL;
#line 427 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 427 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 427 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (uri != NULL, 0);
#line 428 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = uri;
#line 428 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (g_strcmp0 (_tmp0_, TRACKER_SPARQL_EXPRESSION_XSD_NS "string") == 0) {
#line 4078 "tracker-sparql-expression.c"
		GString* _tmp1_;
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression_as_string (self, _tmp1_, &_inner_error_);
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 4092 "tracker-sparql-expression.c"
			} else {
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 430 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 4100 "tracker-sparql-expression.c"
			}
		}
#line 432 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_STRING;
#line 432 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 4107 "tracker-sparql-expression.c"
	} else {
		const gchar* _tmp2_;
#line 433 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = uri;
#line 433 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (g_strcmp0 (_tmp2_, TRACKER_SPARQL_EXPRESSION_XSD_NS "integer") == 0) {
#line 4114 "tracker-sparql-expression.c"
			GString* _tmp3_;
			GString* _tmp4_;
			GString* _tmp5_;
#line 435 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = sql;
#line 435 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp3_, "CAST (");
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_string (self, _tmp4_, &_inner_error_);
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 4134 "tracker-sparql-expression.c"
				} else {
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 436 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 4142 "tracker-sparql-expression.c"
				}
			}
#line 437 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = sql;
#line 437 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp5_, " AS INTEGER)");
#line 439 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 439 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 4153 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp6_;
#line 440 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = uri;
#line 440 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (g_strcmp0 (_tmp6_, TRACKER_SPARQL_EXPRESSION_XSD_NS "double") == 0) {
#line 4160 "tracker-sparql-expression.c"
				GString* _tmp7_;
				GString* _tmp8_;
				GString* _tmp9_;
#line 442 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp7_ = sql;
#line 442 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp7_, "CAST (");
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = sql;
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_expression_translate_expression_as_string (self, _tmp8_, &_inner_error_);
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 4180 "tracker-sparql-expression.c"
					} else {
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 443 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 4188 "tracker-sparql-expression.c"
					}
				}
#line 444 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp9_ = sql;
#line 444 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp9_, " AS REAL)");
#line 446 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 446 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 4199 "tracker-sparql-expression.c"
			} else {
				const gchar* _tmp10_;
#line 447 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp10_ = uri;
#line 447 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (g_strcmp0 (_tmp10_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "case-fold") == 0) {
#line 4206 "tracker-sparql-expression.c"
					GString* _tmp11_;
					GString* _tmp12_;
					GString* _tmp13_;
#line 449 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp11_ = sql;
#line 449 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append (_tmp11_, "SparqlCaseFold (");
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp12_ = sql;
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_translate_expression_as_string (self, _tmp12_, &_inner_error_);
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 4226 "tracker-sparql-expression.c"
						} else {
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 450 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 4234 "tracker-sparql-expression.c"
						}
					}
#line 451 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp13_ = sql;
#line 451 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append (_tmp13_, ")");
#line 452 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = TRACKER_PROPERTY_TYPE_STRING;
#line 452 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 4245 "tracker-sparql-expression.c"
				} else {
					const gchar* _tmp14_;
#line 453 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp14_ = uri;
#line 453 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (g_strcmp0 (_tmp14_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "ascii-lower-case") == 0) {
#line 4252 "tracker-sparql-expression.c"
						GString* _tmp15_;
						GString* _tmp16_;
						GString* _tmp17_;
#line 455 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp15_ = sql;
#line 455 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp15_, "lower (");
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp16_ = sql;
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						tracker_sparql_expression_translate_expression_as_string (self, _tmp16_, &_inner_error_);
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 4272 "tracker-sparql-expression.c"
							} else {
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 456 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 4280 "tracker-sparql-expression.c"
							}
						}
#line 457 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp17_ = sql;
#line 457 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp17_, ")");
#line 458 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						result = TRACKER_PROPERTY_TYPE_STRING;
#line 458 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return result;
#line 4291 "tracker-sparql-expression.c"
					} else {
						const gchar* _tmp18_;
#line 459 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp18_ = uri;
#line 459 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (g_strcmp0 (_tmp18_, TRACKER_SPARQL_EXPRESSION_FN_NS "lower-case") == 0) {
#line 4298 "tracker-sparql-expression.c"
							GString* _tmp19_;
							GString* _tmp20_;
							GString* _tmp21_;
#line 461 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp19_ = sql;
#line 461 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append (_tmp19_, "SparqlLowerCase (");
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp20_ = sql;
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							tracker_sparql_expression_translate_expression_as_string (self, _tmp20_, &_inner_error_);
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 4318 "tracker-sparql-expression.c"
								} else {
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 462 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 4326 "tracker-sparql-expression.c"
								}
							}
#line 463 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp21_ = sql;
#line 463 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append (_tmp21_, ")");
#line 464 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							result = TRACKER_PROPERTY_TYPE_STRING;
#line 464 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return result;
#line 4337 "tracker-sparql-expression.c"
						} else {
							const gchar* _tmp22_;
#line 465 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp22_ = uri;
#line 465 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (g_strcmp0 (_tmp22_, TRACKER_SPARQL_EXPRESSION_FN_NS "contains") == 0) {
#line 4344 "tracker-sparql-expression.c"
								GString* _tmp23_;
								GString* _tmp24_;
								GString* _tmp25_;
								GString* _tmp26_;
								TrackerSparqlLiteralBinding* _tmp27_;
								TrackerSparqlLiteralBinding* binding;
								gchar* _tmp28_ = NULL;
								gchar* _tmp29_;
								TrackerSparqlLiteralBinding* _tmp30_;
								gchar* _tmp31_;
								gchar* _tmp32_ = NULL;
								TrackerSparqlQuery* _tmp33_;
								TrackerSparqlLiteralBinding* _tmp34_;
								TrackerSparqlLiteralBinding* _tmp35_;
								GString* _tmp36_;
#line 467 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp23_ = sql;
#line 467 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp23_, "(");
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp24_ = sql;
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								tracker_sparql_expression_translate_expression_as_string (self, _tmp24_, &_inner_error_);
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4376 "tracker-sparql-expression.c"
									} else {
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 468 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4384 "tracker-sparql-expression.c"
									}
								}
#line 469 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp25_ = sql;
#line 469 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp25_, " GLOB ");
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4401 "tracker-sparql-expression.c"
									} else {
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 470 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4409 "tracker-sparql-expression.c"
									}
								}
#line 472 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp26_ = sql;
#line 472 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp26_, "?");
#line 473 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp27_ = tracker_sparql_literal_binding_new ();
#line 473 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								binding = _tmp27_;
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp28_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp29_ = _tmp28_;
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_object_unref0 (binding);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4434 "tracker-sparql-expression.c"
									} else {
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_object_unref0 (binding);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 4444 "tracker-sparql-expression.c"
									}
								}
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp30_ = binding;
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp31_ = _tmp29_;
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp32_ = g_strdup_printf ("*%s*", _tmp31_);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_g_free0 (_tmp30_->literal);
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp30_->literal = _tmp32_;
#line 474 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_g_free0 (_tmp31_);
#line 475 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp33_ = self->priv->query;
#line 475 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp34_ = binding;
#line 475 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp35_ = _g_object_ref0 (_tmp34_);
#line 475 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp33_->bindings = g_list_append (_tmp33_->bindings, _tmp35_);
#line 477 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp36_ = sql;
#line 477 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_string_append (_tmp36_, ")");
#line 479 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 479 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_g_object_unref0 (binding);
#line 479 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return result;
#line 4477 "tracker-sparql-expression.c"
							} else {
								const gchar* _tmp37_;
#line 480 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp37_ = uri;
#line 480 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (g_strcmp0 (_tmp37_, TRACKER_SPARQL_EXPRESSION_FN_NS "starts-with") == 0) {
#line 4484 "tracker-sparql-expression.c"
									GString* _tmp38_;
									GString* _tmp39_;
									gchar* _tmp40_ = NULL;
									gchar* prefix;
									GString* _tmp41_;
									TrackerSparqlLiteralBinding* _tmp42_;
									TrackerSparqlLiteralBinding* binding;
									TrackerSparqlLiteralBinding* _tmp43_;
									const gchar* _tmp44_;
									gchar* _tmp45_;
									TrackerSparqlQuery* _tmp46_;
									TrackerSparqlLiteralBinding* _tmp47_;
									TrackerSparqlLiteralBinding* _tmp48_;
									GString* _tmp49_;
									GString* _tmp50_;
									TrackerSparqlLiteralBinding* _tmp51_;
									TrackerSparqlLiteralBinding* _tmp52_;
									const gchar* _tmp53_;
									gchar* _tmp54_ = NULL;
									gchar* _tmp55_;
									gchar* _tmp56_;
									TrackerSparqlQuery* _tmp57_;
									TrackerSparqlLiteralBinding* _tmp58_;
									TrackerSparqlLiteralBinding* _tmp59_;
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp38_ = sql;
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									tracker_sparql_expression_translate_expression_as_string (self, _tmp38_, &_inner_error_);
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4521 "tracker-sparql-expression.c"
										} else {
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 484 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4529 "tracker-sparql-expression.c"
										}
									}
#line 485 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp39_ = sql;
#line 485 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp39_, " BETWEEN ");
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4546 "tracker-sparql-expression.c"
										} else {
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 487 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4554 "tracker-sparql-expression.c"
										}
									}
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp40_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									prefix = _tmp40_;
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4569 "tracker-sparql-expression.c"
										} else {
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 488 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 4577 "tracker-sparql-expression.c"
										}
									}
#line 490 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp41_ = sql;
#line 490 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp41_, "?");
#line 491 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp42_ = tracker_sparql_literal_binding_new ();
#line 491 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									binding = _tmp42_;
#line 492 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp43_ = binding;
#line 492 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp44_ = prefix;
#line 492 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp45_ = g_strdup (_tmp44_);
#line 492 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_free0 (_tmp43_->literal);
#line 492 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp43_->literal = _tmp45_;
#line 493 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp46_ = self->priv->query;
#line 493 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp47_ = binding;
#line 493 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp48_ = _g_object_ref0 (_tmp47_);
#line 493 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp46_->bindings = g_list_append (_tmp46_->bindings, _tmp48_);
#line 495 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp49_ = sql;
#line 495 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp49_, " AND ");
#line 497 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp50_ = sql;
#line 497 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_string_append (_tmp50_, "?");
#line 498 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp51_ = tracker_sparql_literal_binding_new ();
#line 498 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_object_unref0 (binding);
#line 498 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									binding = _tmp51_;
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp52_ = binding;
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp53_ = prefix;
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp54_ = g_unichar_to_string (TRACKER_COLLATION_LAST_CHAR);
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp55_ = _tmp54_;
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp56_ = g_strconcat (_tmp53_, _tmp55_, NULL);
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_free0 (_tmp52_->literal);
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp52_->literal = _tmp56_;
#line 499 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_free0 (_tmp55_);
#line 500 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp57_ = self->priv->query;
#line 500 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp58_ = binding;
#line 500 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp59_ = _g_object_ref0 (_tmp58_);
#line 500 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp57_->bindings = g_list_append (_tmp57_->bindings, _tmp59_);
#line 502 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 502 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_object_unref0 (binding);
#line 502 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_g_free0 (prefix);
#line 502 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return result;
#line 4652 "tracker-sparql-expression.c"
								} else {
									const gchar* _tmp60_;
#line 503 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp60_ = uri;
#line 503 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (g_strcmp0 (_tmp60_, TRACKER_SPARQL_EXPRESSION_FN_NS "ends-with") == 0) {
#line 4659 "tracker-sparql-expression.c"
										GString* _tmp61_;
										GString* _tmp62_;
										GString* _tmp63_;
										GString* _tmp64_;
										TrackerSparqlLiteralBinding* _tmp65_;
										TrackerSparqlLiteralBinding* binding;
										gchar* _tmp66_ = NULL;
										gchar* _tmp67_;
										TrackerSparqlLiteralBinding* _tmp68_;
										gchar* _tmp69_;
										gchar* _tmp70_ = NULL;
										TrackerSparqlQuery* _tmp71_;
										TrackerSparqlLiteralBinding* _tmp72_;
										TrackerSparqlLiteralBinding* _tmp73_;
										GString* _tmp74_;
#line 505 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp61_ = sql;
#line 505 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp61_, "(");
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp62_ = sql;
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										tracker_sparql_expression_translate_expression_as_string (self, _tmp62_, &_inner_error_);
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4691 "tracker-sparql-expression.c"
											} else {
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 506 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4699 "tracker-sparql-expression.c"
											}
										}
#line 507 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp63_ = sql;
#line 507 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp63_, " GLOB ");
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4716 "tracker-sparql-expression.c"
											} else {
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 508 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4724 "tracker-sparql-expression.c"
											}
										}
#line 510 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp64_ = sql;
#line 510 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp64_, "?");
#line 511 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp65_ = tracker_sparql_literal_binding_new ();
#line 511 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										binding = _tmp65_;
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp66_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp67_ = _tmp66_;
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_ != NULL) {
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_propagate_error (error, _inner_error_);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_object_unref0 (binding);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4749 "tracker-sparql-expression.c"
											} else {
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_g_object_unref0 (binding);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_clear_error (&_inner_error_);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return 0;
#line 4759 "tracker-sparql-expression.c"
											}
										}
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp68_ = binding;
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp69_ = _tmp67_;
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp70_ = g_strdup_printf ("*%s", _tmp69_);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_free0 (_tmp68_->literal);
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp68_->literal = _tmp70_;
#line 512 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_free0 (_tmp69_);
#line 513 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp71_ = self->priv->query;
#line 513 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp72_ = binding;
#line 513 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp73_ = _g_object_ref0 (_tmp72_);
#line 513 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp71_->bindings = g_list_append (_tmp71_->bindings, _tmp73_);
#line 515 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp74_ = sql;
#line 515 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_string_append (_tmp74_, ")");
#line 517 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 517 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_g_object_unref0 (binding);
#line 517 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return result;
#line 4792 "tracker-sparql-expression.c"
									} else {
										const gchar* _tmp75_;
#line 518 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										_tmp75_ = uri;
#line 518 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (g_strcmp0 (_tmp75_, TRACKER_SPARQL_EXPRESSION_FN_NS "substring") == 0) {
#line 4799 "tracker-sparql-expression.c"
											GString* _tmp76_;
											GString* _tmp77_;
											GString* _tmp78_;
											GString* _tmp79_;
											gboolean _tmp80_ = FALSE;
											gboolean _tmp81_;
											GString* _tmp84_;
#line 519 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp76_ = sql;
#line 519 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp76_, "substr(");
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp77_ = sql;
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											tracker_sparql_expression_translate_expression_as_string (self, _tmp77_, &_inner_error_);
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4823 "tracker-sparql-expression.c"
												} else {
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 520 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4831 "tracker-sparql-expression.c"
												}
											}
#line 522 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp78_ = sql;
#line 522 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp78_, ", ");
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4848 "tracker-sparql-expression.c"
												} else {
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 523 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4856 "tracker-sparql-expression.c"
												}
											}
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp79_ = sql;
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											tracker_sparql_expression_translate_expression_as_string (self, _tmp79_, &_inner_error_);
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4871 "tracker-sparql-expression.c"
												} else {
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 524 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4879 "tracker-sparql-expression.c"
												}
											}
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp80_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp81_ = _tmp80_;
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_inner_error_ != NULL) {
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_propagate_error (error, _inner_error_);
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4894 "tracker-sparql-expression.c"
												} else {
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_clear_error (&_inner_error_);
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return 0;
#line 4902 "tracker-sparql-expression.c"
												}
											}
#line 526 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (_tmp81_) {
#line 4907 "tracker-sparql-expression.c"
												GString* _tmp82_;
												GString* _tmp83_;
#line 527 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp82_ = sql;
#line 527 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp82_, ", ");
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp83_ = sql;
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_translate_expression_as_string (self, _tmp83_, &_inner_error_);
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 4926 "tracker-sparql-expression.c"
													} else {
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_clear_error (&_inner_error_);
#line 528 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 4934 "tracker-sparql-expression.c"
													}
												}
											}
#line 531 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp84_ = sql;
#line 531 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_string_append (_tmp84_, ")");
#line 533 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											result = TRACKER_PROPERTY_TYPE_STRING;
#line 533 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return result;
#line 4946 "tracker-sparql-expression.c"
										} else {
											const gchar* _tmp85_;
#line 534 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											_tmp85_ = uri;
#line 534 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											if (g_strcmp0 (_tmp85_, TRACKER_SPARQL_EXPRESSION_FN_NS "concat") == 0) {
#line 4953 "tracker-sparql-expression.c"
												GString* _tmp86_;
												GString* _tmp87_;
												GString* _tmp88_;
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp86_ = sql;
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_translate_expression_as_string (self, _tmp86_, &_inner_error_);
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 4969 "tracker-sparql-expression.c"
													} else {
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_clear_error (&_inner_error_);
#line 535 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 4977 "tracker-sparql-expression.c"
													}
												}
#line 536 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp87_ = sql;
#line 536 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												g_string_append (_tmp87_, "||");
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 4994 "tracker-sparql-expression.c"
													} else {
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_clear_error (&_inner_error_);
#line 537 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5002 "tracker-sparql-expression.c"
													}
												}
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp88_ = sql;
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												tracker_sparql_expression_translate_expression_as_string (self, _tmp88_, &_inner_error_);
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (_inner_error_ != NULL) {
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_propagate_error (error, _inner_error_);
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5017 "tracker-sparql-expression.c"
													} else {
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_clear_error (&_inner_error_);
#line 538 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return 0;
#line 5025 "tracker-sparql-expression.c"
													}
												}
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												while (TRUE) {
#line 5030 "tracker-sparql-expression.c"
													gboolean _tmp89_ = FALSE;
													gboolean _tmp90_;
													GString* _tmp91_;
													GString* _tmp92_;
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp89_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp90_ = _tmp89_;
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5047 "tracker-sparql-expression.c"
														} else {
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5055 "tracker-sparql-expression.c"
														}
													}
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (!_tmp90_) {
#line 539 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														break;
#line 5062 "tracker-sparql-expression.c"
													}
#line 540 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp91_ = sql;
#line 540 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp91_, "||");
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp92_ = sql;
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression_as_string (self, _tmp92_, &_inner_error_);
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5080 "tracker-sparql-expression.c"
														} else {
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 541 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5088 "tracker-sparql-expression.c"
														}
													}
												}
#line 544 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												result = TRACKER_PROPERTY_TYPE_STRING;
#line 544 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												return result;
#line 5096 "tracker-sparql-expression.c"
											} else {
												const gchar* _tmp93_;
#line 545 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												_tmp93_ = uri;
#line 545 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
												if (g_strcmp0 (_tmp93_, TRACKER_SPARQL_EXPRESSION_FN_NS "string-join") == 0) {
#line 5103 "tracker-sparql-expression.c"
													GString* _tmp94_;
													GString* _tmp95_;
													GString* _tmp96_;
													GString* _tmp97_;
													GString* _tmp102_;
													GString* _tmp103_;
													GString* _tmp104_;
#line 546 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp94_ = sql;
#line 546 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp94_, "SparqlStringJoin(");
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5125 "tracker-sparql-expression.c"
														} else {
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 547 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5133 "tracker-sparql-expression.c"
														}
													}
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp95_ = sql;
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression_as_string (self, _tmp95_, &_inner_error_);
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5148 "tracker-sparql-expression.c"
														} else {
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 549 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5156 "tracker-sparql-expression.c"
														}
													}
#line 550 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp96_ = sql;
#line 550 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp96_, ", ");
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5173 "tracker-sparql-expression.c"
														} else {
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 551 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5181 "tracker-sparql-expression.c"
														}
													}
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp97_ = sql;
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression_as_string (self, _tmp97_, &_inner_error_);
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5196 "tracker-sparql-expression.c"
														} else {
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 552 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5204 "tracker-sparql-expression.c"
														}
													}
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													while (TRUE) {
#line 5209 "tracker-sparql-expression.c"
														gboolean _tmp98_ = FALSE;
														gboolean _tmp99_;
														GString* _tmp100_;
														GString* _tmp101_;
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp98_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp99_ = _tmp98_;
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5226 "tracker-sparql-expression.c"
															} else {
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5234 "tracker-sparql-expression.c"
															}
														}
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (!_tmp99_) {
#line 553 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															break;
#line 5241 "tracker-sparql-expression.c"
														}
#line 554 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp100_ = sql;
#line 554 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp100_, ", ");
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp101_ = sql;
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_translate_expression_as_string (self, _tmp101_, &_inner_error_);
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5259 "tracker-sparql-expression.c"
															} else {
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 555 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5267 "tracker-sparql-expression.c"
															}
														}
													}
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5281 "tracker-sparql-expression.c"
														} else {
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 558 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5289 "tracker-sparql-expression.c"
														}
													}
#line 559 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp102_ = sql;
#line 559 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp102_, ",");
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5306 "tracker-sparql-expression.c"
														} else {
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 560 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5314 "tracker-sparql-expression.c"
														}
													}
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp103_ = sql;
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													tracker_sparql_expression_translate_expression (self, _tmp103_, &_inner_error_);
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (_inner_error_ != NULL) {
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_propagate_error (error, _inner_error_);
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5329 "tracker-sparql-expression.c"
														} else {
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_clear_error (&_inner_error_);
#line 561 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return 0;
#line 5337 "tracker-sparql-expression.c"
														}
													}
#line 562 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp104_ = sql;
#line 562 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													g_string_append (_tmp104_, ")");
#line 564 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													result = TRACKER_PROPERTY_TYPE_STRING;
#line 564 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													return result;
#line 5348 "tracker-sparql-expression.c"
												} else {
													const gchar* _tmp105_;
#line 565 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													_tmp105_ = uri;
#line 565 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
													if (g_strcmp0 (_tmp105_, TRACKER_SPARQL_EXPRESSION_FN_NS "year-from-dateTime") == 0) {
#line 5355 "tracker-sparql-expression.c"
														gchar* _tmp106_ = NULL;
														gchar* _tmp107_;
														gchar* _tmp108_ = NULL;
														gchar* _tmp109_;
														gchar* variable_name;
														TrackerSparqlContext* _tmp110_;
														TrackerSparqlContext* _tmp111_;
														const gchar* _tmp112_;
														TrackerSparqlVariable* _tmp113_ = NULL;
														TrackerSparqlVariable* _tmp114_;
														TrackerSparqlVariable* variable;
														GString* _tmp115_;
														GString* _tmp116_;
														TrackerSparqlVariable* _tmp117_;
														gchar* _tmp118_ = NULL;
														gchar* _tmp119_;
														GString* _tmp120_;
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (_inner_error_ != NULL) {
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_propagate_error (error, _inner_error_);
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5383 "tracker-sparql-expression.c"
															} else {
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_clear_error (&_inner_error_);
#line 566 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return 0;
#line 5391 "tracker-sparql-expression.c"
															}
														}
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp106_ = tracker_sparql_expression_get_last_string (self, 0);
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp107_ = _tmp106_;
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp108_ = string_substring (_tmp107_, (glong) 1, (glong) (-1));
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp109_ = _tmp108_;
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_free0 (_tmp107_);
#line 567 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														variable_name = _tmp109_;
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp110_ = tracker_sparql_expression_get_context (self);
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp111_ = _tmp110_;
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp112_ = variable_name;
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp113_ = tracker_sparql_context_get_variable (_tmp111_, _tmp112_);
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp114_ = _g_object_ref0 (_tmp113_);
#line 568 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														variable = _tmp114_;
#line 570 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp115_ = sql;
#line 570 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp115_, "strftime (\"%Y\", ");
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp116_ = sql;
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp117_ = variable;
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp118_ = tracker_sparql_variable_get_extra_sql_expression (_tmp117_, "localDate");
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp119_ = _tmp118_;
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp116_, _tmp119_);
#line 571 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_free0 (_tmp119_);
#line 572 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp120_ = sql;
#line 572 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														g_string_append (_tmp120_, " * 24 * 3600, \"unixepoch\")");
#line 574 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 574 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_object_unref0 (variable);
#line 574 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_g_free0 (variable_name);
#line 574 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														return result;
#line 5446 "tracker-sparql-expression.c"
													} else {
														const gchar* _tmp121_;
#line 575 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														_tmp121_ = uri;
#line 575 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
														if (g_strcmp0 (_tmp121_, TRACKER_SPARQL_EXPRESSION_FN_NS "month-from-dateTime") == 0) {
#line 5453 "tracker-sparql-expression.c"
															gchar* _tmp122_ = NULL;
															gchar* _tmp123_;
															gchar* _tmp124_ = NULL;
															gchar* _tmp125_;
															gchar* variable_name;
															TrackerSparqlContext* _tmp126_;
															TrackerSparqlContext* _tmp127_;
															const gchar* _tmp128_;
															TrackerSparqlVariable* _tmp129_ = NULL;
															TrackerSparqlVariable* _tmp130_;
															TrackerSparqlVariable* variable;
															GString* _tmp131_;
															GString* _tmp132_;
															TrackerSparqlVariable* _tmp133_;
															gchar* _tmp134_ = NULL;
															gchar* _tmp135_;
															GString* _tmp136_;
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (_inner_error_ != NULL) {
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_propagate_error (error, _inner_error_);
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5481 "tracker-sparql-expression.c"
																} else {
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_clear_error (&_inner_error_);
#line 576 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return 0;
#line 5489 "tracker-sparql-expression.c"
																}
															}
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp122_ = tracker_sparql_expression_get_last_string (self, 0);
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp123_ = _tmp122_;
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp124_ = string_substring (_tmp123_, (glong) 1, (glong) (-1));
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp125_ = _tmp124_;
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_g_free0 (_tmp123_);
#line 577 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															variable_name = _tmp125_;
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp126_ = tracker_sparql_expression_get_context (self);
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp127_ = _tmp126_;
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp128_ = variable_name;
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp129_ = tracker_sparql_context_get_variable (_tmp127_, _tmp128_);
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp130_ = _g_object_ref0 (_tmp129_);
#line 578 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															variable = _tmp130_;
#line 580 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp131_ = sql;
#line 580 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp131_, "strftime (\"%m\", ");
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp132_ = sql;
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp133_ = variable;
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp134_ = tracker_sparql_variable_get_extra_sql_expression (_tmp133_, "localDate");
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp135_ = _tmp134_;
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp132_, _tmp135_);
#line 581 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_g_free0 (_tmp135_);
#line 582 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp136_ = sql;
#line 582 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															g_string_append (_tmp136_, " * 24 * 3600, \"unixepoch\")");
#line 584 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 584 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_g_object_unref0 (variable);
#line 584 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_g_free0 (variable_name);
#line 584 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															return result;
#line 5544 "tracker-sparql-expression.c"
														} else {
															const gchar* _tmp137_;
#line 585 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															_tmp137_ = uri;
#line 585 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
															if (g_strcmp0 (_tmp137_, TRACKER_SPARQL_EXPRESSION_FN_NS "day-from-dateTime") == 0) {
#line 5551 "tracker-sparql-expression.c"
																gchar* _tmp138_ = NULL;
																gchar* _tmp139_;
																gchar* _tmp140_ = NULL;
																gchar* _tmp141_;
																gchar* variable_name;
																TrackerSparqlContext* _tmp142_;
																TrackerSparqlContext* _tmp143_;
																const gchar* _tmp144_;
																TrackerSparqlVariable* _tmp145_ = NULL;
																TrackerSparqlVariable* _tmp146_;
																TrackerSparqlVariable* variable;
																GString* _tmp147_;
																GString* _tmp148_;
																TrackerSparqlVariable* _tmp149_;
																gchar* _tmp150_ = NULL;
																gchar* _tmp151_;
																GString* _tmp152_;
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (_inner_error_ != NULL) {
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_propagate_error (error, _inner_error_);
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 5579 "tracker-sparql-expression.c"
																	} else {
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_clear_error (&_inner_error_);
#line 586 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return 0;
#line 5587 "tracker-sparql-expression.c"
																	}
																}
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp138_ = tracker_sparql_expression_get_last_string (self, 0);
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp139_ = _tmp138_;
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp140_ = string_substring (_tmp139_, (glong) 1, (glong) (-1));
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp141_ = _tmp140_;
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (_tmp139_);
#line 587 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																variable_name = _tmp141_;
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp142_ = tracker_sparql_expression_get_context (self);
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp143_ = _tmp142_;
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp144_ = variable_name;
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp145_ = tracker_sparql_context_get_variable (_tmp143_, _tmp144_);
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp146_ = _g_object_ref0 (_tmp145_);
#line 588 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																variable = _tmp146_;
#line 590 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp147_ = sql;
#line 590 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp147_, "strftime (\"%d\", ");
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp148_ = sql;
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp149_ = variable;
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp150_ = tracker_sparql_variable_get_extra_sql_expression (_tmp149_, "localDate");
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp151_ = _tmp150_;
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp148_, _tmp151_);
#line 591 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (_tmp151_);
#line 592 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp152_ = sql;
#line 592 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																g_string_append (_tmp152_, " * 24 * 3600, \"unixepoch\")");
#line 594 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 594 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_object_unref0 (variable);
#line 594 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_g_free0 (variable_name);
#line 594 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																return result;
#line 5642 "tracker-sparql-expression.c"
															} else {
																const gchar* _tmp153_;
#line 595 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																_tmp153_ = uri;
#line 595 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																if (g_strcmp0 (_tmp153_, TRACKER_SPARQL_EXPRESSION_FN_NS "hours-from-dateTime") == 0) {
#line 5649 "tracker-sparql-expression.c"
																	gchar* _tmp154_ = NULL;
																	gchar* _tmp155_;
																	gchar* _tmp156_ = NULL;
																	gchar* _tmp157_;
																	gchar* variable_name;
																	TrackerSparqlContext* _tmp158_;
																	TrackerSparqlContext* _tmp159_;
																	const gchar* _tmp160_;
																	TrackerSparqlVariable* _tmp161_ = NULL;
																	TrackerSparqlVariable* _tmp162_;
																	TrackerSparqlVariable* variable;
																	GString* _tmp163_;
																	GString* _tmp164_;
																	TrackerSparqlVariable* _tmp165_;
																	gchar* _tmp166_ = NULL;
																	gchar* _tmp167_;
																	GString* _tmp168_;
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (_inner_error_ != NULL) {
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_propagate_error (error, _inner_error_);
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return 0;
#line 5677 "tracker-sparql-expression.c"
																		} else {
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_clear_error (&_inner_error_);
#line 596 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return 0;
#line 5685 "tracker-sparql-expression.c"
																		}
																	}
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp154_ = tracker_sparql_expression_get_last_string (self, 0);
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp155_ = _tmp154_;
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp156_ = string_substring (_tmp155_, (glong) 1, (glong) (-1));
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp157_ = _tmp156_;
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (_tmp155_);
#line 597 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	variable_name = _tmp157_;
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp158_ = tracker_sparql_expression_get_context (self);
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp159_ = _tmp158_;
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp160_ = variable_name;
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp161_ = tracker_sparql_context_get_variable (_tmp159_, _tmp160_);
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp162_ = _g_object_ref0 (_tmp161_);
#line 598 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	variable = _tmp162_;
#line 600 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp163_ = sql;
#line 600 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp163_, "(");
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp164_ = sql;
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp165_ = variable;
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp166_ = tracker_sparql_variable_get_extra_sql_expression (_tmp165_, "localTime");
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp167_ = _tmp166_;
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp164_, _tmp167_);
#line 601 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (_tmp167_);
#line 602 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp168_ = sql;
#line 602 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	g_string_append (_tmp168_, " / 3600)");
#line 604 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 604 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_object_unref0 (variable);
#line 604 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_g_free0 (variable_name);
#line 604 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	return result;
#line 5740 "tracker-sparql-expression.c"
																} else {
																	const gchar* _tmp169_;
#line 605 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	_tmp169_ = uri;
#line 605 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																	if (g_strcmp0 (_tmp169_, TRACKER_SPARQL_EXPRESSION_FN_NS "minutes-from-dateTime") == 0) {
#line 5747 "tracker-sparql-expression.c"
																		gchar* _tmp170_ = NULL;
																		gchar* _tmp171_;
																		gchar* _tmp172_ = NULL;
																		gchar* _tmp173_;
																		gchar* variable_name;
																		TrackerSparqlContext* _tmp174_;
																		TrackerSparqlContext* _tmp175_;
																		const gchar* _tmp176_;
																		TrackerSparqlVariable* _tmp177_ = NULL;
																		TrackerSparqlVariable* _tmp178_;
																		TrackerSparqlVariable* variable;
																		GString* _tmp179_;
																		GString* _tmp180_;
																		TrackerSparqlVariable* _tmp181_;
																		gchar* _tmp182_ = NULL;
																		gchar* _tmp183_;
																		GString* _tmp184_;
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (_inner_error_ != NULL) {
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_propagate_error (error, _inner_error_);
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return 0;
#line 5775 "tracker-sparql-expression.c"
																			} else {
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_clear_error (&_inner_error_);
#line 606 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return 0;
#line 5783 "tracker-sparql-expression.c"
																			}
																		}
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp170_ = tracker_sparql_expression_get_last_string (self, 0);
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp171_ = _tmp170_;
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp172_ = string_substring (_tmp171_, (glong) 1, (glong) (-1));
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp173_ = _tmp172_;
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (_tmp171_);
#line 607 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		variable_name = _tmp173_;
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp174_ = tracker_sparql_expression_get_context (self);
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp175_ = _tmp174_;
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp176_ = variable_name;
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp177_ = tracker_sparql_context_get_variable (_tmp175_, _tmp176_);
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp178_ = _g_object_ref0 (_tmp177_);
#line 608 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		variable = _tmp178_;
#line 610 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp179_ = sql;
#line 610 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp179_, "(");
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp180_ = sql;
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp181_ = variable;
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp182_ = tracker_sparql_variable_get_extra_sql_expression (_tmp181_, "localTime");
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp183_ = _tmp182_;
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp180_, _tmp183_);
#line 611 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (_tmp183_);
#line 612 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp184_ = sql;
#line 612 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		g_string_append (_tmp184_, " / 60 % 60)");
#line 614 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 614 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_object_unref0 (variable);
#line 614 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_g_free0 (variable_name);
#line 614 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		return result;
#line 5838 "tracker-sparql-expression.c"
																	} else {
																		const gchar* _tmp185_;
#line 615 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		_tmp185_ = uri;
#line 615 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																		if (g_strcmp0 (_tmp185_, TRACKER_SPARQL_EXPRESSION_FN_NS "seconds-from-dateTime") == 0) {
#line 5845 "tracker-sparql-expression.c"
																			gchar* _tmp186_ = NULL;
																			gchar* _tmp187_;
																			gchar* _tmp188_ = NULL;
																			gchar* _tmp189_;
																			gchar* variable_name;
																			TrackerSparqlContext* _tmp190_;
																			TrackerSparqlContext* _tmp191_;
																			const gchar* _tmp192_;
																			TrackerSparqlVariable* _tmp193_ = NULL;
																			TrackerSparqlVariable* _tmp194_;
																			TrackerSparqlVariable* variable;
																			GString* _tmp195_;
																			GString* _tmp196_;
																			TrackerSparqlVariable* _tmp197_;
																			gchar* _tmp198_ = NULL;
																			gchar* _tmp199_;
																			GString* _tmp200_;
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (_inner_error_ != NULL) {
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_propagate_error (error, _inner_error_);
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return 0;
#line 5873 "tracker-sparql-expression.c"
																				} else {
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_clear_error (&_inner_error_);
#line 616 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return 0;
#line 5881 "tracker-sparql-expression.c"
																				}
																			}
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp186_ = tracker_sparql_expression_get_last_string (self, 0);
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp187_ = _tmp186_;
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp188_ = string_substring (_tmp187_, (glong) 1, (glong) (-1));
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp189_ = _tmp188_;
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (_tmp187_);
#line 617 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			variable_name = _tmp189_;
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp190_ = tracker_sparql_expression_get_context (self);
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp191_ = _tmp190_;
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp192_ = variable_name;
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp193_ = tracker_sparql_context_get_variable (_tmp191_, _tmp192_);
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp194_ = _g_object_ref0 (_tmp193_);
#line 618 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			variable = _tmp194_;
#line 620 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp195_ = sql;
#line 620 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp195_, "(");
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp196_ = sql;
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp197_ = variable;
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp198_ = tracker_sparql_variable_get_extra_sql_expression (_tmp197_, "localTime");
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp199_ = _tmp198_;
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp196_, _tmp199_);
#line 621 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (_tmp199_);
#line 622 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp200_ = sql;
#line 622 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			g_string_append (_tmp200_, "% 60)");
#line 624 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 624 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_object_unref0 (variable);
#line 624 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_g_free0 (variable_name);
#line 624 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			return result;
#line 5936 "tracker-sparql-expression.c"
																		} else {
																			const gchar* _tmp201_;
#line 625 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			_tmp201_ = uri;
#line 625 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																			if (g_strcmp0 (_tmp201_, TRACKER_SPARQL_EXPRESSION_FN_NS "timezone-from-dateTime") == 0) {
#line 5943 "tracker-sparql-expression.c"
																				gchar* _tmp202_ = NULL;
																				gchar* _tmp203_;
																				gchar* _tmp204_ = NULL;
																				gchar* _tmp205_;
																				gchar* variable_name;
																				TrackerSparqlContext* _tmp206_;
																				TrackerSparqlContext* _tmp207_;
																				const gchar* _tmp208_;
																				TrackerSparqlVariable* _tmp209_ = NULL;
																				TrackerSparqlVariable* _tmp210_;
																				TrackerSparqlVariable* variable;
																				GString* _tmp211_;
																				GString* _tmp212_;
																				TrackerSparqlVariable* _tmp213_;
																				gchar* _tmp214_ = NULL;
																				gchar* _tmp215_;
																				GString* _tmp216_;
																				GString* _tmp217_;
																				TrackerSparqlVariable* _tmp218_;
																				gchar* _tmp219_ = NULL;
																				gchar* _tmp220_;
																				GString* _tmp221_;
																				GString* _tmp222_;
																				TrackerSparqlVariable* _tmp223_;
																				const gchar* _tmp224_;
																				const gchar* _tmp225_;
																				GString* _tmp226_;
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_VAR, &_inner_error_);
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (_inner_error_ != NULL) {
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_propagate_error (error, _inner_error_);
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return 0;
#line 5981 "tracker-sparql-expression.c"
																					} else {
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_clear_error (&_inner_error_);
#line 626 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return 0;
#line 5989 "tracker-sparql-expression.c"
																					}
																				}
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp202_ = tracker_sparql_expression_get_last_string (self, 0);
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp203_ = _tmp202_;
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp204_ = string_substring (_tmp203_, (glong) 1, (glong) (-1));
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp205_ = _tmp204_;
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (_tmp203_);
#line 627 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				variable_name = _tmp205_;
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp206_ = tracker_sparql_expression_get_context (self);
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp207_ = _tmp206_;
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp208_ = variable_name;
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp209_ = tracker_sparql_context_get_variable (_tmp207_, _tmp208_);
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp210_ = _g_object_ref0 (_tmp209_);
#line 628 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				variable = _tmp210_;
#line 630 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp211_ = sql;
#line 630 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp211_, "(");
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp212_ = sql;
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp213_ = variable;
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp214_ = tracker_sparql_variable_get_extra_sql_expression (_tmp213_, "localDate");
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp215_ = _tmp214_;
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp212_, _tmp215_);
#line 631 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (_tmp215_);
#line 632 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp216_ = sql;
#line 632 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp216_, " * 24 * 3600 + ");
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp217_ = sql;
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp218_ = variable;
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp219_ = tracker_sparql_variable_get_extra_sql_expression (_tmp218_, "localTime");
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp220_ = _tmp219_;
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp217_, _tmp220_);
#line 633 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (_tmp220_);
#line 634 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp221_ = sql;
#line 634 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp221_, "- ");
#line 635 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp222_ = sql;
#line 635 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp223_ = variable;
#line 635 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp224_ = tracker_sparql_variable_get_sql_expression (_tmp223_);
#line 635 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp225_ = _tmp224_;
#line 635 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp222_, _tmp225_);
#line 636 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp226_ = sql;
#line 636 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				g_string_append (_tmp226_, ")");
#line 638 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 638 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_object_unref0 (variable);
#line 638 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_g_free0 (variable_name);
#line 638 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				return result;
#line 6074 "tracker-sparql-expression.c"
																			} else {
																				const gchar* _tmp227_;
#line 639 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				_tmp227_ = uri;
#line 639 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																				if (g_strcmp0 (_tmp227_, TRACKER_SPARQL_EXPRESSION_FTS_NS "rank") == 0) {
#line 6081 "tracker-sparql-expression.c"
																					gboolean is_var = FALSE;
																					TrackerSparqlPattern* _tmp228_;
																					TrackerSparqlPattern* _tmp229_;
																					gboolean _tmp230_ = FALSE;
																					gchar* _tmp231_ = NULL;
																					gchar* v;
																					GString* _tmp232_;
																					const gchar* _tmp233_;
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp228_ = tracker_sparql_expression_get_pattern (self);
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp229_ = _tmp228_;
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp231_ = tracker_sparql_pattern_parse_var_or_term (_tmp229_, NULL, &_tmp230_, &_inner_error_);
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					is_var = _tmp230_;
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					v = _tmp231_;
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (_inner_error_ != NULL) {
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_propagate_error (error, _inner_error_);
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return 0;
#line 6108 "tracker-sparql-expression.c"
																						} else {
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							g_clear_error (&_inner_error_);
#line 641 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return 0;
#line 6116 "tracker-sparql-expression.c"
																						}
																					}
#line 642 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp232_ = sql;
#line 642 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp233_ = v;
#line 642 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					g_string_append_printf (_tmp232_, "\"%s_u_rank\"", _tmp233_);
#line 644 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 644 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_g_free0 (v);
#line 644 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					return result;
#line 6131 "tracker-sparql-expression.c"
																				} else {
																					const gchar* _tmp234_;
#line 645 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					_tmp234_ = uri;
#line 645 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																					if (g_strcmp0 (_tmp234_, TRACKER_SPARQL_EXPRESSION_FTS_NS "offsets") == 0) {
#line 6138 "tracker-sparql-expression.c"
																						gboolean is_var = FALSE;
																						TrackerSparqlPattern* _tmp235_;
																						TrackerSparqlPattern* _tmp236_;
																						gboolean _tmp237_ = FALSE;
																						gchar* _tmp238_ = NULL;
																						gchar* v;
																						GString* _tmp239_;
																						const gchar* _tmp240_;
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp235_ = tracker_sparql_expression_get_pattern (self);
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp236_ = _tmp235_;
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp238_ = tracker_sparql_pattern_parse_var_or_term (_tmp236_, NULL, &_tmp237_, &_inner_error_);
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						is_var = _tmp237_;
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						v = _tmp238_;
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (_inner_error_ != NULL) {
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_propagate_error (error, _inner_error_);
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return 0;
#line 6165 "tracker-sparql-expression.c"
																							} else {
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								g_clear_error (&_inner_error_);
#line 647 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return 0;
#line 6173 "tracker-sparql-expression.c"
																							}
																						}
#line 648 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp239_ = sql;
#line 648 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp240_ = v;
#line 648 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						g_string_append_printf (_tmp239_, "\"%s_u_offsets\"", _tmp240_);
#line 650 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						result = TRACKER_PROPERTY_TYPE_STRING;
#line 650 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_g_free0 (v);
#line 650 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						return result;
#line 6188 "tracker-sparql-expression.c"
																					} else {
																						const gchar* _tmp241_;
#line 651 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						_tmp241_ = uri;
#line 651 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																						if (g_strcmp0 (_tmp241_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "id") == 0) {
#line 6195 "tracker-sparql-expression.c"
																							GString* _tmp242_;
																							TrackerPropertyType _tmp243_ = 0;
																							TrackerPropertyType type;
																							TrackerPropertyType _tmp244_;
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp242_ = sql;
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp243_ = tracker_sparql_expression_translate_expression (self, _tmp242_, &_inner_error_);
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							type = _tmp243_;
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (_inner_error_ != NULL) {
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_propagate_error (error, _inner_error_);
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6214 "tracker-sparql-expression.c"
																								} else {
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_clear_error (&_inner_error_);
#line 652 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6222 "tracker-sparql-expression.c"
																								}
																							}
#line 653 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp244_ = type;
#line 653 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (_tmp244_ != TRACKER_PROPERTY_TYPE_RESOURCE) {
#line 6229 "tracker-sparql-expression.c"
																								GError* _tmp245_ = NULL;
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp245_ = tracker_sparql_expression_get_error (self, "expected resource");
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_inner_error_ = _tmp245_;
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_propagate_error (error, _inner_error_);
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6241 "tracker-sparql-expression.c"
																								} else {
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_clear_error (&_inner_error_);
#line 654 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return 0;
#line 6249 "tracker-sparql-expression.c"
																								}
																							}
#line 657 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 657 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							return result;
#line 6256 "tracker-sparql-expression.c"
																						} else {
																							const gchar* _tmp246_;
#line 658 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							_tmp246_ = uri;
#line 658 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																							if (g_strcmp0 (_tmp246_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri") == 0) {
#line 6263 "tracker-sparql-expression.c"
																								GString* _tmp247_;
																								TrackerPropertyType _tmp248_ = 0;
																								TrackerPropertyType type;
																								TrackerPropertyType _tmp249_;
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp247_ = sql;
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp248_ = tracker_sparql_expression_translate_expression (self, _tmp247_, &_inner_error_);
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								type = _tmp248_;
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_inner_error_ != NULL) {
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_propagate_error (error, _inner_error_);
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6282 "tracker-sparql-expression.c"
																									} else {
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_clear_error (&_inner_error_);
#line 659 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6290 "tracker-sparql-expression.c"
																									}
																								}
#line 660 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp249_ = type;
#line 660 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (_tmp249_ != TRACKER_PROPERTY_TYPE_INTEGER) {
#line 6297 "tracker-sparql-expression.c"
																									GError* _tmp250_ = NULL;
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp250_ = tracker_sparql_expression_get_error (self, "expected integer ID");
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_inner_error_ = _tmp250_;
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_propagate_error (error, _inner_error_);
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6309 "tracker-sparql-expression.c"
																									} else {
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_clear_error (&_inner_error_);
#line 661 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return 0;
#line 6317 "tracker-sparql-expression.c"
																									}
																								}
#line 664 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 664 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								return result;
#line 6324 "tracker-sparql-expression.c"
																							} else {
																								const gchar* _tmp251_;
#line 665 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								_tmp251_ = uri;
#line 665 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																								if (g_strcmp0 (_tmp251_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "cartesian-distance") == 0) {
#line 6331 "tracker-sparql-expression.c"
																									GString* _tmp252_;
																									GString* _tmp253_;
																									GString* _tmp254_;
																									GString* _tmp255_;
																									GString* _tmp256_;
																									GString* _tmp257_;
																									GString* _tmp258_;
																									GString* _tmp259_;
																									GString* _tmp260_;
#line 666 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp252_ = sql;
#line 666 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp252_, "SparqlCartesianDistance(");
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp253_ = sql;
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_translate_expression (self, _tmp253_, &_inner_error_);
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6357 "tracker-sparql-expression.c"
																										} else {
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 667 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6365 "tracker-sparql-expression.c"
																										}
																									}
#line 668 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp254_ = sql;
#line 668 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp254_, ", ");
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6382 "tracker-sparql-expression.c"
																										} else {
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 669 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6390 "tracker-sparql-expression.c"
																										}
																									}
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp255_ = sql;
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_translate_expression (self, _tmp255_, &_inner_error_);
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6405 "tracker-sparql-expression.c"
																										} else {
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 670 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6413 "tracker-sparql-expression.c"
																										}
																									}
#line 671 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp256_ = sql;
#line 671 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp256_, ", ");
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6430 "tracker-sparql-expression.c"
																										} else {
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 672 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6438 "tracker-sparql-expression.c"
																										}
																									}
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp257_ = sql;
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_translate_expression (self, _tmp257_, &_inner_error_);
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6453 "tracker-sparql-expression.c"
																										} else {
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 673 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6461 "tracker-sparql-expression.c"
																										}
																									}
#line 674 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp258_ = sql;
#line 674 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp258_, ", ");
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6478 "tracker-sparql-expression.c"
																										} else {
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 675 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6486 "tracker-sparql-expression.c"
																										}
																									}
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp259_ = sql;
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									tracker_sparql_expression_translate_expression (self, _tmp259_, &_inner_error_);
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (_inner_error_ != NULL) {
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_propagate_error (error, _inner_error_);
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6501 "tracker-sparql-expression.c"
																										} else {
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_clear_error (&_inner_error_);
#line 676 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return 0;
#line 6509 "tracker-sparql-expression.c"
																										}
																									}
#line 677 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp260_ = sql;
#line 677 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									g_string_append (_tmp260_, ")");
#line 679 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 679 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									return result;
#line 6520 "tracker-sparql-expression.c"
																								} else {
																									const gchar* _tmp261_;
#line 680 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									_tmp261_ = uri;
#line 680 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																									if (g_strcmp0 (_tmp261_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "haversine-distance") == 0) {
#line 6527 "tracker-sparql-expression.c"
																										GString* _tmp262_;
																										GString* _tmp263_;
																										GString* _tmp264_;
																										GString* _tmp265_;
																										GString* _tmp266_;
																										GString* _tmp267_;
																										GString* _tmp268_;
																										GString* _tmp269_;
																										GString* _tmp270_;
#line 681 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp262_ = sql;
#line 681 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp262_, "SparqlHaversineDistance(");
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp263_ = sql;
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression (self, _tmp263_, &_inner_error_);
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6553 "tracker-sparql-expression.c"
																											} else {
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 682 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6561 "tracker-sparql-expression.c"
																											}
																										}
#line 683 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp264_ = sql;
#line 683 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp264_, ", ");
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6578 "tracker-sparql-expression.c"
																											} else {
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 684 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6586 "tracker-sparql-expression.c"
																											}
																										}
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp265_ = sql;
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression (self, _tmp265_, &_inner_error_);
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6601 "tracker-sparql-expression.c"
																											} else {
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 685 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6609 "tracker-sparql-expression.c"
																											}
																										}
#line 686 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp266_ = sql;
#line 686 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp266_, ", ");
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6626 "tracker-sparql-expression.c"
																											} else {
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 687 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6634 "tracker-sparql-expression.c"
																											}
																										}
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp267_ = sql;
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression (self, _tmp267_, &_inner_error_);
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6649 "tracker-sparql-expression.c"
																											} else {
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 688 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6657 "tracker-sparql-expression.c"
																											}
																										}
#line 689 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp268_ = sql;
#line 689 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp268_, ", ");
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6674 "tracker-sparql-expression.c"
																											} else {
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 690 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6682 "tracker-sparql-expression.c"
																											}
																										}
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp269_ = sql;
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										tracker_sparql_expression_translate_expression (self, _tmp269_, &_inner_error_);
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (_inner_error_ != NULL) {
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_propagate_error (error, _inner_error_);
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6697 "tracker-sparql-expression.c"
																											} else {
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_clear_error (&_inner_error_);
#line 691 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return 0;
#line 6705 "tracker-sparql-expression.c"
																											}
																										}
#line 692 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp270_ = sql;
#line 692 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										g_string_append (_tmp270_, ")");
#line 694 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 694 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										return result;
#line 6716 "tracker-sparql-expression.c"
																									} else {
																										const gchar* _tmp271_;
#line 695 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										_tmp271_ = uri;
#line 695 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																										if (g_strcmp0 (_tmp271_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "coalesce") == 0) {
#line 6723 "tracker-sparql-expression.c"
																											GString* _tmp272_;
																											GString* _tmp273_;
																											GString* _tmp274_;
																											GString* _tmp275_;
																											GString* _tmp280_;
#line 696 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp272_ = sql;
#line 696 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_string_append (_tmp272_, "COALESCE(");
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp273_ = sql;
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											tracker_sparql_expression_translate_expression_as_string (self, _tmp273_, &_inner_error_);
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_ != NULL) {
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_propagate_error (error, _inner_error_);
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6745 "tracker-sparql-expression.c"
																												} else {
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_clear_error (&_inner_error_);
#line 697 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6753 "tracker-sparql-expression.c"
																												}
																											}
#line 698 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp274_ = sql;
#line 698 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_string_append (_tmp274_, ", ");
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_ != NULL) {
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_propagate_error (error, _inner_error_);
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6770 "tracker-sparql-expression.c"
																												} else {
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_clear_error (&_inner_error_);
#line 699 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6778 "tracker-sparql-expression.c"
																												}
																											}
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp275_ = sql;
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											tracker_sparql_expression_translate_expression_as_string (self, _tmp275_, &_inner_error_);
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (_inner_error_ != NULL) {
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_propagate_error (error, _inner_error_);
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6793 "tracker-sparql-expression.c"
																												} else {
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_clear_error (&_inner_error_);
#line 700 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return 0;
#line 6801 "tracker-sparql-expression.c"
																												}
																											}
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											while (TRUE) {
#line 6806 "tracker-sparql-expression.c"
																												gboolean _tmp276_ = FALSE;
																												gboolean _tmp277_;
																												GString* _tmp278_;
																												GString* _tmp279_;
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp276_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp277_ = _tmp276_;
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6823 "tracker-sparql-expression.c"
																													} else {
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6831 "tracker-sparql-expression.c"
																													}
																												}
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (!_tmp277_) {
#line 701 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													break;
#line 6838 "tracker-sparql-expression.c"
																												}
#line 702 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp278_ = sql;
#line 702 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp278_, ", ");
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp279_ = sql;
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression_as_string (self, _tmp279_, &_inner_error_);
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6856 "tracker-sparql-expression.c"
																													} else {
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 703 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6864 "tracker-sparql-expression.c"
																													}
																												}
																											}
#line 705 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp280_ = sql;
#line 705 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											g_string_append (_tmp280_, ")");
#line 707 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											result = TRACKER_PROPERTY_TYPE_STRING;
#line 707 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											return result;
#line 6876 "tracker-sparql-expression.c"
																										} else {
																											const gchar* _tmp281_;
#line 708 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											_tmp281_ = uri;
#line 708 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																											if (g_strcmp0 (_tmp281_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri-is-parent") == 0) {
#line 6883 "tracker-sparql-expression.c"
																												GString* _tmp282_;
																												GString* _tmp283_;
																												GString* _tmp284_;
																												GString* _tmp285_;
																												GString* _tmp286_;
#line 709 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp282_ = sql;
#line 709 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp282_, "SparqlUriIsParent(");
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp283_ = sql;
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression_as_string (self, _tmp283_, &_inner_error_);
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6905 "tracker-sparql-expression.c"
																													} else {
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 710 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6913 "tracker-sparql-expression.c"
																													}
																												}
#line 711 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp284_ = sql;
#line 711 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp284_, ", ");
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6930 "tracker-sparql-expression.c"
																													} else {
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 712 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6938 "tracker-sparql-expression.c"
																													}
																												}
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp285_ = sql;
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												tracker_sparql_expression_translate_expression_as_string (self, _tmp285_, &_inner_error_);
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (_inner_error_ != NULL) {
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_propagate_error (error, _inner_error_);
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6953 "tracker-sparql-expression.c"
																													} else {
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_clear_error (&_inner_error_);
#line 714 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return 0;
#line 6961 "tracker-sparql-expression.c"
																													}
																												}
#line 715 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp286_ = sql;
#line 715 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												g_string_append (_tmp286_, ")");
#line 717 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 717 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												return result;
#line 6972 "tracker-sparql-expression.c"
																											} else {
																												const gchar* _tmp287_;
#line 718 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												_tmp287_ = uri;
#line 718 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																												if (g_strcmp0 (_tmp287_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "uri-is-descendant") == 0) {
#line 6979 "tracker-sparql-expression.c"
																													GString* _tmp288_;
																													GString* _tmp289_;
																													GString* _tmp290_;
																													GString* _tmp291_;
																													GString* _tmp296_;
#line 719 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp288_ = sql;
#line 719 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp288_, "SparqlUriIsDescendant(");
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp289_ = sql;
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression_as_string (self, _tmp289_, &_inner_error_);
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7001 "tracker-sparql-expression.c"
																														} else {
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 720 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7009 "tracker-sparql-expression.c"
																														}
																													}
#line 721 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp290_ = sql;
#line 721 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp290_, ", ");
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7026 "tracker-sparql-expression.c"
																														} else {
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 722 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7034 "tracker-sparql-expression.c"
																														}
																													}
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp291_ = sql;
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													tracker_sparql_expression_translate_expression_as_string (self, _tmp291_, &_inner_error_);
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (_inner_error_ != NULL) {
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_propagate_error (error, _inner_error_);
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7049 "tracker-sparql-expression.c"
																														} else {
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_clear_error (&_inner_error_);
#line 724 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return 0;
#line 7057 "tracker-sparql-expression.c"
																														}
																													}
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													while (TRUE) {
#line 7062 "tracker-sparql-expression.c"
																														gboolean _tmp292_ = FALSE;
																														gboolean _tmp293_;
																														GString* _tmp294_;
																														GString* _tmp295_;
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp292_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp293_ = _tmp292_;
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7079 "tracker-sparql-expression.c"
																															} else {
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7087 "tracker-sparql-expression.c"
																															}
																														}
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (!_tmp293_) {
#line 725 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															break;
#line 7094 "tracker-sparql-expression.c"
																														}
#line 726 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp294_ = sql;
#line 726 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp294_, ", ");
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp295_ = sql;
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_translate_expression_as_string (self, _tmp295_, &_inner_error_);
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7112 "tracker-sparql-expression.c"
																															} else {
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 727 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7120 "tracker-sparql-expression.c"
																															}
																														}
																													}
#line 729 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp296_ = sql;
#line 729 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													g_string_append (_tmp296_, ")");
#line 731 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 731 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													return result;
#line 7132 "tracker-sparql-expression.c"
																												} else {
																													const gchar* _tmp297_;
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													_tmp297_ = uri;
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																													if (g_strcmp0 (_tmp297_, TRACKER_SPARQL_EXPRESSION_TRACKER_NS "string-from-filename") == 0) {
#line 7139 "tracker-sparql-expression.c"
																														GString* _tmp298_;
																														GString* _tmp299_;
																														GString* _tmp300_;
#line 733 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp298_ = sql;
#line 733 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp298_, "SparqlStringFromFilename(");
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp299_ = sql;
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_translate_expression_as_string (self, _tmp299_, &_inner_error_);
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7159 "tracker-sparql-expression.c"
																															} else {
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 734 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7167 "tracker-sparql-expression.c"
																															}
																														}
#line 735 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp300_ = sql;
#line 735 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														g_string_append (_tmp300_, ")");
#line 737 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														result = TRACKER_PROPERTY_TYPE_STRING;
#line 737 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														return result;
#line 7178 "tracker-sparql-expression.c"
																													} else {
																														const gchar* _tmp301_;
																														TrackerProperty* _tmp302_ = NULL;
																														TrackerProperty* _tmp303_;
																														TrackerProperty* prop;
																														TrackerProperty* _tmp304_;
																														GString* _tmp306_;
																														GString* expr;
																														GString* _tmp307_;
																														gchar* _tmp308_;
																														gchar* value_separator;
																														gchar* graph_separator;
																														gboolean _tmp309_ = FALSE;
																														gboolean _tmp310_;
																														TrackerProperty* _tmp317_;
																														gboolean _tmp318_;
																														gboolean _tmp319_;
#line 740 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp301_ = uri;
#line 740 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp302_ = tracker_ontologies_get_property_by_uri (_tmp301_);
#line 740 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp303_ = _g_object_ref0 (_tmp302_);
#line 740 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														prop = _tmp303_;
#line 741 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp304_ = prop;
#line 741 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_tmp304_ == NULL) {
#line 7208 "tracker-sparql-expression.c"
																															GError* _tmp305_ = NULL;
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp305_ = tracker_sparql_expression_get_error (self, "Unknown function");
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_inner_error_ = _tmp305_;
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7222 "tracker-sparql-expression.c"
																															} else {
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 742 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7232 "tracker-sparql-expression.c"
																															}
																														}
#line 745 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp306_ = g_string_new ("");
#line 745 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														expr = _tmp306_;
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp307_ = expr;
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														tracker_sparql_expression_translate_expression (self, _tmp307_, &_inner_error_);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7255 "tracker-sparql-expression.c"
																															} else {
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 746 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7267 "tracker-sparql-expression.c"
																															}
																														}
#line 748 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp308_ = g_strdup (",");
#line 748 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														value_separator = _tmp308_;
#line 749 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														graph_separator = NULL;
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp309_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp310_ = _tmp309_;
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_inner_error_ != NULL) {
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_propagate_error (error, _inner_error_);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (graph_separator);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (value_separator);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7296 "tracker-sparql-expression.c"
																															} else {
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (graph_separator);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (value_separator);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_clear_error (&_inner_error_);
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return 0;
#line 7312 "tracker-sparql-expression.c"
																															}
																														}
#line 751 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_tmp310_) {
#line 7317 "tracker-sparql-expression.c"
																															gchar* _tmp311_ = NULL;
																															gchar* _tmp312_;
																															gboolean _tmp313_ = FALSE;
																															gboolean _tmp314_;
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp311_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp312_ = _tmp311_;
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (graph_separator);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (value_separator);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_string_free0 (expr);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_object_unref0 (prop);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 7342 "tracker-sparql-expression.c"
																																} else {
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (graph_separator);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (value_separator);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_string_free0 (expr);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_object_unref0 (prop);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 7358 "tracker-sparql-expression.c"
																																}
																															}
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_free0 (value_separator);
#line 752 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															value_separator = _tmp312_;
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp313_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp314_ = _tmp313_;
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_inner_error_ != NULL) {
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_propagate_error (error, _inner_error_);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (graph_separator);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (value_separator);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_string_free0 (expr);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_object_unref0 (prop);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 7385 "tracker-sparql-expression.c"
																																} else {
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (graph_separator);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_free0 (value_separator);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_string_free0 (expr);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_g_object_unref0 (prop);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	g_clear_error (&_inner_error_);
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	return 0;
#line 7401 "tracker-sparql-expression.c"
																																}
																															}
#line 754 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_tmp314_) {
#line 7406 "tracker-sparql-expression.c"
																																gchar* _tmp315_ = NULL;
																																gchar* _tmp316_;
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp315_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp316_ = _tmp315_;
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_inner_error_ != NULL) {
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_propagate_error (error, _inner_error_);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (graph_separator);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (value_separator);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_string_free0 (expr);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_object_unref0 (prop);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 7429 "tracker-sparql-expression.c"
																																	} else {
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (graph_separator);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_free0 (value_separator);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_string_free0 (expr);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		_g_object_unref0 (prop);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		g_clear_error (&_inner_error_);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																		return 0;
#line 7445 "tracker-sparql-expression.c"
																																	}
																																}
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (graph_separator);
#line 755 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																graph_separator = _tmp316_;
#line 7452 "tracker-sparql-expression.c"
																															}
																														}
#line 759 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp317_ = prop;
#line 759 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp318_ = tracker_property_get_multiple_values (_tmp317_);
#line 759 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_tmp319_ = _tmp318_;
#line 759 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														if (_tmp319_) {
#line 7463 "tracker-sparql-expression.c"
																															GString* _tmp320_;
																															GString* _tmp321_;
																															gssize _tmp322_;
																															glong begin;
																															GString* _tmp323_;
																															TrackerProperty* _tmp324_;
																															const gchar* _tmp325_;
																															const gchar* _tmp326_;
																															GString* _tmp327_;
																															TrackerProperty* _tmp328_;
																															TrackerPropertyType _tmp329_;
																															TrackerPropertyType _tmp330_;
																															glong _tmp331_;
																															const gchar* _tmp332_;
																															GString* _tmp340_;
																															const gchar* _tmp341_;
																															gchar* _tmp342_ = NULL;
																															gchar* _tmp343_;
																															GString* _tmp344_;
																															TrackerProperty* _tmp345_;
																															const gchar* _tmp346_;
																															const gchar* _tmp347_;
																															GString* _tmp348_;
																															const gchar* _tmp349_;
#line 761 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp320_ = sql;
#line 761 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append (_tmp320_, "(SELECT GROUP_CONCAT(");
#line 762 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp321_ = sql;
#line 762 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp322_ = _tmp321_->len;
#line 762 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															begin = (glong) _tmp322_;
#line 763 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp323_ = sql;
#line 763 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp324_ = prop;
#line 763 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp325_ = tracker_property_get_name (_tmp324_);
#line 763 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp326_ = _tmp325_;
#line 763 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append_printf (_tmp323_, "\"%s\"", _tmp326_);
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp327_ = sql;
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp328_ = prop;
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp329_ = tracker_property_get_data_type (_tmp328_);
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp330_ = _tmp329_;
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp331_ = begin;
#line 764 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															tracker_sparql_expression_convert_expression_to_string (_tmp327_, _tmp330_, _tmp331_);
#line 765 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp332_ = graph_separator;
#line 765 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_tmp332_ != NULL) {
#line 7524 "tracker-sparql-expression.c"
																																GString* _tmp333_;
																																const gchar* _tmp334_;
																																gchar* _tmp335_ = NULL;
																																gchar* _tmp336_;
																																TrackerProperty* _tmp337_;
																																const gchar* _tmp338_;
																																const gchar* _tmp339_;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp333_ = sql;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp334_ = graph_separator;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp335_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp334_);
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp336_ = _tmp335_;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp337_ = prop;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp338_ = tracker_property_get_name (_tmp337_);
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp339_ = _tmp338_;
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append_printf (_tmp333_, " || %s || COALESCE((SELECT Uri FROM Resource WHERE ID = \"%s:graph\")," \
" '')", _tmp336_, _tmp339_);
#line 766 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (_tmp336_);
#line 7550 "tracker-sparql-expression.c"
																															}
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp340_ = sql;
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp341_ = value_separator;
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp342_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp341_);
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp343_ = _tmp342_;
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append_printf (_tmp340_, ",%s)", _tmp343_);
#line 768 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_free0 (_tmp343_);
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp344_ = sql;
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp345_ = prop;
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp346_ = tracker_property_get_table_name (_tmp345_);
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp347_ = _tmp346_;
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp348_ = expr;
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp349_ = _tmp348_->str;
#line 769 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															g_string_append_printf (_tmp344_, " FROM \"%s\" WHERE ID = %s)", _tmp347_, _tmp349_);
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															result = TRACKER_PROPERTY_TYPE_STRING;
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_free0 (graph_separator);
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_free0 (value_separator);
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_string_free0 (expr);
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_g_object_unref0 (prop);
#line 771 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															return result;
#line 7590 "tracker-sparql-expression.c"
																														} else {
																															const gchar* _tmp350_;
#line 774 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															_tmp350_ = graph_separator;
#line 774 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																															if (_tmp350_ == NULL) {
#line 7597 "tracker-sparql-expression.c"
																																GString* _tmp351_;
																																TrackerProperty* _tmp352_;
																																const gchar* _tmp353_;
																																const gchar* _tmp354_;
																																TrackerProperty* _tmp355_;
																																const gchar* _tmp356_;
																																const gchar* _tmp357_;
																																GString* _tmp358_;
																																const gchar* _tmp359_;
																																TrackerProperty* _tmp360_;
																																TrackerPropertyType _tmp361_;
																																TrackerPropertyType _tmp362_;
																																TrackerProperty* _tmp364_;
																																TrackerPropertyType _tmp365_;
																																TrackerPropertyType _tmp366_;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp351_ = sql;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp352_ = prop;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp353_ = tracker_property_get_name (_tmp352_);
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp354_ = _tmp353_;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp355_ = prop;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp356_ = tracker_property_get_table_name (_tmp355_);
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp357_ = _tmp356_;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp358_ = expr;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp359_ = _tmp358_->str;
#line 775 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append_printf (_tmp351_, "(SELECT \"%s\" FROM \"%s\" WHERE ID = %s)", _tmp354_, _tmp357_, _tmp359_);
#line 777 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp360_ = prop;
#line 777 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp361_ = tracker_property_get_data_type (_tmp360_);
#line 777 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp362_ = _tmp361_;
#line 777 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																if (_tmp362_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 7641 "tracker-sparql-expression.c"
																																	GString* _tmp363_;
#line 778 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	_tmp363_ = sql;
#line 778 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																	tracker_sparql_expression_append_collate (self, _tmp363_);
#line 7647 "tracker-sparql-expression.c"
																																}
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp364_ = prop;
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp365_ = tracker_property_get_data_type (_tmp364_);
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp366_ = _tmp365_;
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																result = _tmp366_;
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (graph_separator);
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (value_separator);
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 781 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return result;
#line 7667 "tracker-sparql-expression.c"
																															} else {
																																GString* _tmp367_;
																																GString* _tmp368_;
																																gssize _tmp369_;
																																glong begin;
																																GString* _tmp370_;
																																TrackerProperty* _tmp371_;
																																const gchar* _tmp372_;
																																const gchar* _tmp373_;
																																GString* _tmp374_;
																																TrackerProperty* _tmp375_;
																																TrackerPropertyType _tmp376_;
																																TrackerPropertyType _tmp377_;
																																glong _tmp378_;
																																GString* _tmp379_;
																																const gchar* _tmp380_;
																																gchar* _tmp381_ = NULL;
																																gchar* _tmp382_;
																																TrackerProperty* _tmp383_;
																																const gchar* _tmp384_;
																																const gchar* _tmp385_;
																																GString* _tmp386_;
																																TrackerProperty* _tmp387_;
																																const gchar* _tmp388_;
																																const gchar* _tmp389_;
																																GString* _tmp390_;
																																const gchar* _tmp391_;
#line 783 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp367_ = sql;
#line 783 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append (_tmp367_, "(SELECT ");
#line 784 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp368_ = sql;
#line 784 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp369_ = _tmp368_->len;
#line 784 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																begin = (glong) _tmp369_;
#line 785 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp370_ = sql;
#line 785 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp371_ = prop;
#line 785 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp372_ = tracker_property_get_name (_tmp371_);
#line 785 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp373_ = _tmp372_;
#line 785 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append_printf (_tmp370_, "\"%s\"", _tmp373_);
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp374_ = sql;
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp375_ = prop;
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp376_ = tracker_property_get_data_type (_tmp375_);
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp377_ = _tmp376_;
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp378_ = begin;
#line 786 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																tracker_sparql_expression_convert_expression_to_string (_tmp374_, _tmp377_, _tmp378_);
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp379_ = sql;
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp380_ = graph_separator;
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp381_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp380_);
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp382_ = _tmp381_;
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp383_ = prop;
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp384_ = tracker_property_get_name (_tmp383_);
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp385_ = _tmp384_;
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append_printf (_tmp379_, " || %s || COALESCE((SELECT Uri FROM Resource WHERE ID = \"%s:graph\")," \
" '')", _tmp382_, _tmp385_);
#line 787 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (_tmp382_);
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp386_ = sql;
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp387_ = prop;
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp388_ = tracker_property_get_table_name (_tmp387_);
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp389_ = _tmp388_;
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp390_ = expr;
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_tmp391_ = _tmp390_->str;
#line 788 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																g_string_append_printf (_tmp386_, " FROM \"%s\" WHERE ID = %s)", _tmp389_, _tmp391_);
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																result = TRACKER_PROPERTY_TYPE_STRING;
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (graph_separator);
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_free0 (value_separator);
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_string_free0 (expr);
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																_g_object_unref0 (prop);
#line 790 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																																return result;
#line 7771 "tracker-sparql-expression.c"
																															}
																														}
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_g_free0 (graph_separator);
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_g_free0 (value_separator);
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_g_string_free0 (expr);
#line 732 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
																														_g_object_unref0 (prop);
#line 7782 "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_;
	const gchar* _tmp23_;
	GError * _inner_error_ = NULL;
#line 796 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 7839 "tracker-sparql-expression.c"
		} else {
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 7849 "tracker-sparql-expression.c"
		}
	}
#line 800 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 7854 "tracker-sparql-expression.c"
		gchar* _tmp2_ = NULL;
#line 801 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_last_string (self, 1);
#line 801 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (type_iri);
#line 801 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type_iri = _tmp2_;
#line 7862 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_;
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_);
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = _tmp3_;
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (type_iri);
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 7880 "tracker-sparql-expression.c"
			} else {
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (type_iri);
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 7890 "tracker-sparql-expression.c"
			}
		}
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp4_) {
#line 7895 "tracker-sparql-expression.c"
			gchar* _tmp5_ = NULL;
			gchar* ns;
			TrackerSparqlQuery* _tmp6_;
			const gchar* _tmp7_;
			gchar* _tmp8_ = NULL;
			gchar* _tmp9_;
			gchar* _tmp10_ = NULL;
			gchar* _tmp11_;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_;
			gchar* _tmp14_;
#line 803 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = tracker_sparql_expression_get_last_string (self, 0);
#line 803 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			ns = _tmp5_;
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 7925 "tracker-sparql-expression.c"
				} else {
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 804 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 7937 "tracker-sparql-expression.c"
				}
			}
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = self->priv->query;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = ns;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = tracker_sparql_expression_get_last_string (self, 0);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = _tmp8_;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = string_substring (_tmp9_, (glong) 1, (glong) (-1));
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = _tmp10_;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = tracker_sparql_query_resolve_prefixed_name (_tmp6_, _tmp7_, _tmp11_, &_inner_error_);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = _tmp12_;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp11_);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp9_);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = _tmp13_;
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 7974 "tracker-sparql-expression.c"
				} else {
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 7986 "tracker-sparql-expression.c"
				}
			}
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 805 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type_iri = _tmp14_;
#line 802 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (ns);
#line 7995 "tracker-sparql-expression.c"
		} else {
			TrackerSparqlQuery* _tmp15_;
			gchar* _tmp16_ = NULL;
			gchar* _tmp17_;
			gchar* _tmp18_ = NULL;
			gchar* _tmp19_;
			gchar* _tmp20_ = NULL;
			gchar* _tmp21_;
			gchar* _tmp22_;
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 8017 "tracker-sparql-expression.c"
				} else {
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 807 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 8027 "tracker-sparql-expression.c"
				}
			}
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = self->priv->query;
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = tracker_sparql_expression_get_last_string (self, 0);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = _tmp16_;
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = string_substring (_tmp17_, (glong) 1, (glong) (-1));
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = tracker_sparql_query_resolve_prefixed_name (_tmp15_, "", _tmp19_, &_inner_error_);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = _tmp20_;
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp19_);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp17_);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = _tmp21_;
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 8060 "tracker-sparql-expression.c"
				} else {
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (type_iri);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 8070 "tracker-sparql-expression.c"
				}
			}
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (type_iri);
#line 808 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type_iri = _tmp22_;
#line 8077 "tracker-sparql-expression.c"
		}
	}
#line 811 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp23_ = type_iri;
#line 811 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (g_strcmp0 (_tmp23_, TRACKER_SPARQL_EXPRESSION_XSD_NS "boolean") == 0) {
#line 812 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		type = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 8086 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp24_ = FALSE;
		gboolean _tmp25_ = FALSE;
		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;
		const gchar* _tmp36_;
		gboolean _tmp38_;
		gboolean _tmp40_;
		gboolean _tmp42_;
		gboolean _tmp44_;
		gboolean _tmp46_;
		gboolean _tmp48_;
		gboolean _tmp50_;
		gboolean _tmp52_;
		gboolean _tmp54_;
		gboolean _tmp56_;
		gboolean _tmp58_;
		gboolean _tmp60_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp36_ = type_iri;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (g_strcmp0 (_tmp36_, TRACKER_SPARQL_EXPRESSION_XSD_NS "integer") == 0) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = TRUE;
#line 8119 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp37_;
#line 814 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp37_ = type_iri;
#line 814 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = g_strcmp0 (_tmp37_, TRACKER_SPARQL_EXPRESSION_XSD_NS "nonPositiveInteger") == 0;
#line 8126 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp38_ = _tmp35_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp38_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp34_ = TRUE;
#line 8134 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp39_;
#line 815 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp39_ = type_iri;
#line 815 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp34_ = g_strcmp0 (_tmp39_, TRACKER_SPARQL_EXPRESSION_XSD_NS "negativeInteger") == 0;
#line 8141 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp40_ = _tmp34_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp40_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp33_ = TRUE;
#line 8149 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp41_;
#line 816 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp41_ = type_iri;
#line 816 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp33_ = g_strcmp0 (_tmp41_, TRACKER_SPARQL_EXPRESSION_XSD_NS "long") == 0;
#line 8156 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp42_ = _tmp33_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp42_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp32_ = TRUE;
#line 8164 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp43_;
#line 817 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp43_ = type_iri;
#line 817 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp32_ = g_strcmp0 (_tmp43_, TRACKER_SPARQL_EXPRESSION_XSD_NS "int") == 0;
#line 8171 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp44_ = _tmp32_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp44_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp31_ = TRUE;
#line 8179 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp45_;
#line 818 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp45_ = type_iri;
#line 818 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp31_ = g_strcmp0 (_tmp45_, TRACKER_SPARQL_EXPRESSION_XSD_NS "short") == 0;
#line 8186 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp46_ = _tmp31_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp46_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp30_ = TRUE;
#line 8194 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp47_;
#line 819 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp47_ = type_iri;
#line 819 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp30_ = g_strcmp0 (_tmp47_, TRACKER_SPARQL_EXPRESSION_XSD_NS "byte") == 0;
#line 8201 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp48_ = _tmp30_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp48_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = TRUE;
#line 8209 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp49_;
#line 820 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp49_ = type_iri;
#line 820 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = g_strcmp0 (_tmp49_, TRACKER_SPARQL_EXPRESSION_XSD_NS "nonNegativeInteger") == 0;
#line 8216 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp50_ = _tmp29_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp50_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = TRUE;
#line 8224 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp51_;
#line 821 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = type_iri;
#line 821 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = g_strcmp0 (_tmp51_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedLong") == 0;
#line 8231 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp52_ = _tmp28_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp52_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = TRUE;
#line 8239 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp53_;
#line 822 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp53_ = type_iri;
#line 822 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp27_ = g_strcmp0 (_tmp53_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedInt") == 0;
#line 8246 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp54_ = _tmp27_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp54_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = TRUE;
#line 8254 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp55_;
#line 823 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp55_ = type_iri;
#line 823 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp26_ = g_strcmp0 (_tmp55_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedShort") == 0;
#line 8261 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp56_ = _tmp26_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp56_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = TRUE;
#line 8269 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp57_;
#line 824 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp57_ = type_iri;
#line 824 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = g_strcmp0 (_tmp57_, TRACKER_SPARQL_EXPRESSION_XSD_NS "unsignedByte") == 0;
#line 8276 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp58_ = _tmp25_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp58_) {
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = TRUE;
#line 8284 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp59_;
#line 825 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp59_ = type_iri;
#line 825 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = g_strcmp0 (_tmp59_, TRACKER_SPARQL_EXPRESSION_XSD_NS "positiveInteger") == 0;
#line 8291 "tracker-sparql-expression.c"
		}
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp60_ = _tmp24_;
#line 813 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp60_) {
#line 826 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 8299 "tracker-sparql-expression.c"
		} else {
			const gchar* _tmp61_;
#line 827 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp61_ = type_iri;
#line 827 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (g_strcmp0 (_tmp61_, TRACKER_SPARQL_EXPRESSION_XSD_NS "double") == 0) {
#line 828 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				type = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 8308 "tracker-sparql-expression.c"
			} else {
				const gchar* _tmp62_;
#line 829 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp62_ = type_iri;
#line 829 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (g_strcmp0 (_tmp62_, TRACKER_SPARQL_EXPRESSION_XSD_NS "date") == 0) {
#line 830 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					type = TRACKER_PROPERTY_TYPE_DATE;
#line 8317 "tracker-sparql-expression.c"
				} else {
					const gchar* _tmp63_;
#line 831 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp63_ = type_iri;
#line 831 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (g_strcmp0 (_tmp63_, TRACKER_SPARQL_EXPRESSION_XSD_NS "dateTime") == 0) {
#line 832 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						type = TRACKER_PROPERTY_TYPE_DATETIME;
#line 8326 "tracker-sparql-expression.c"
					} else {
#line 834 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						type = TRACKER_PROPERTY_TYPE_STRING;
#line 8330 "tracker-sparql-expression.c"
					}
				}
			}
		}
	}
#line 837 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = type;
#line 837 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_g_free0 (type_iri);
#line 837 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 8342 "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 840 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_next (self, &_inner_error_);
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return NULL;
#line 8363 "tracker-sparql-expression.c"
		} else {
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 841 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return NULL;
#line 8371 "tracker-sparql-expression.c"
		}
	}
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_last (self);
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1:
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2:
#line 8382 "tracker-sparql-expression.c"
		{
			GString* _tmp1_;
			GString* sb;
			gchar* _tmp2_ = NULL;
			gchar* s;
			const gchar* _tmp3_;
			const gchar* p;
			const gchar* _tmp4_;
			const gchar* _tmp5_;
			gint _tmp6_;
			gint _tmp7_;
			const gchar* end;
			gboolean _tmp50_ = FALSE;
			gboolean _tmp51_;
			GString* _tmp54_;
			const gchar* _tmp55_;
			gchar* _tmp56_;
#line 845 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = g_string_new ("");
#line 845 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			sb = _tmp1_;
#line 847 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = tracker_sparql_expression_get_last_string (self, 1);
#line 847 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			s = _tmp2_;
#line 848 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = s;
#line 848 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			p = _tmp3_;
#line 849 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = p;
#line 849 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = s;
#line 849 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = strlen (_tmp5_);
#line 849 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = _tmp6_;
#line 849 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			end = _tmp4_ + _tmp7_;
#line 850 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			while (TRUE) {
#line 8424 "tracker-sparql-expression.c"
				const gchar* _tmp8_;
				const gchar* _tmp9_;
				const gchar* _tmp10_;
				const gchar* _tmp11_ = NULL;
				const gchar* q;
				const gchar* _tmp12_;
#line 850 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = p;
#line 850 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp9_ = end;
#line 850 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!(((glong) _tmp8_) < ((glong) _tmp9_))) {
#line 850 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					break;
#line 8439 "tracker-sparql-expression.c"
				}
#line 851 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp10_ = p;
#line 851 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = strchr (_tmp10_, (gint) '\\');
#line 851 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				q = _tmp11_;
#line 852 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp12_ = q;
#line 852 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp12_ == NULL) {
#line 8451 "tracker-sparql-expression.c"
					GString* _tmp13_;
					const gchar* _tmp14_;
					const gchar* _tmp15_;
					const gchar* _tmp16_;
					const gchar* _tmp17_;
#line 853 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp13_ = sb;
#line 853 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp14_ = p;
#line 853 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp15_ = end;
#line 853 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp16_ = p;
#line 853 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append_len (_tmp13_, _tmp14_, (gssize) ((glong) (_tmp15_ - _tmp16_)));
#line 854 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp17_ = end;
#line 854 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp17_;
#line 8471 "tracker-sparql-expression.c"
				} else {
					GString* _tmp18_;
					const gchar* _tmp19_;
					const gchar* _tmp20_;
					const gchar* _tmp21_;
					const gchar* _tmp22_;
					const gchar* _tmp23_;
					gchar _tmp24_;
					const gchar* _tmp49_;
#line 856 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp18_ = sb;
#line 856 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp19_ = p;
#line 856 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp20_ = q;
#line 856 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp21_ = p;
#line 856 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_string_append_len (_tmp18_, _tmp19_, (gssize) ((glong) (_tmp20_ - _tmp21_)));
#line 857 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = q;
#line 857 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp22_ + 1;
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp23_ = p;
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp24_ = ((gchar*) _tmp23_)[0];
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					switch (_tmp24_) {
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '\'':
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '"':
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case '\\':
#line 8507 "tracker-sparql-expression.c"
						{
							GString* _tmp25_;
							const gchar* _tmp26_;
							gchar _tmp27_;
#line 862 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp25_ = sb;
#line 862 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp26_ = p;
#line 862 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp27_ = ((gchar*) _tmp26_)[0];
#line 862 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp25_, _tmp27_);
#line 863 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8522 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'b':
#line 8526 "tracker-sparql-expression.c"
						{
							GString* _tmp28_;
#line 865 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp28_ = sb;
#line 865 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp28_, '\b');
#line 866 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8535 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'f':
#line 8539 "tracker-sparql-expression.c"
						{
							GString* _tmp29_;
#line 868 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp29_ = sb;
#line 868 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp29_, '\f');
#line 869 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8548 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'n':
#line 8552 "tracker-sparql-expression.c"
						{
							GString* _tmp30_;
#line 871 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp30_ = sb;
#line 871 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp30_, '\n');
#line 872 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8561 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'r':
#line 8565 "tracker-sparql-expression.c"
						{
							GString* _tmp31_;
#line 874 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp31_ = sb;
#line 874 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp31_, '\r');
#line 875 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8574 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 't':
#line 8578 "tracker-sparql-expression.c"
						{
							GString* _tmp32_;
#line 877 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp32_ = sb;
#line 877 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_c (_tmp32_, '\t');
#line 878 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8587 "tracker-sparql-expression.c"
						}
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						case 'u':
#line 8591 "tracker-sparql-expression.c"
						{
							const gchar* _tmp33_;
							gchar* ptr;
							gchar* _tmp34_;
							gchar _tmp35_;
							gint _tmp36_ = 0;
							gchar* _tmp37_;
							gchar _tmp38_;
							gint _tmp39_ = 0;
							gchar* _tmp40_;
							gchar _tmp41_;
							gint _tmp42_ = 0;
							gchar* _tmp43_;
							gchar _tmp44_;
							gint _tmp45_ = 0;
							gunichar c;
							GString* _tmp46_;
							gunichar _tmp47_;
							const gchar* _tmp48_;
#line 880 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp33_ = p;
#line 880 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							ptr = ((gchar*) _tmp33_) + 1;
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp34_ = ptr;
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp35_ = _tmp34_[0];
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp36_ = g_ascii_xdigit_value (_tmp35_);
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp37_ = ptr;
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp38_ = _tmp37_[1];
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp39_ = g_ascii_xdigit_value (_tmp38_);
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp40_ = ptr;
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp41_ = _tmp40_[2];
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp42_ = g_ascii_xdigit_value (_tmp41_);
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp43_ = ptr;
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp44_ = _tmp43_[3];
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp45_ = g_ascii_xdigit_value (_tmp44_);
#line 881 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							c = (((((((gunichar) _tmp36_) * 16) + _tmp39_) * 16) + _tmp42_) * 16) + _tmp45_;
#line 882 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp46_ = sb;
#line 882 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp47_ = c;
#line 882 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_string_append_unichar (_tmp46_, _tmp47_);
#line 883 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp48_ = p;
#line 883 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							p = _tmp48_ + 4;
#line 884 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							break;
#line 8653 "tracker-sparql-expression.c"
						}
						default:
#line 858 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						break;
#line 8658 "tracker-sparql-expression.c"
					}
#line 886 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp49_ = p;
#line 886 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					p = _tmp49_ + 1;
#line 8664 "tracker-sparql-expression.c"
				}
			}
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp50_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp51_ = _tmp50_;
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (s);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_string_free0 (sb);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 8683 "tracker-sparql-expression.c"
				} else {
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (s);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_string_free0 (sb);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 8695 "tracker-sparql-expression.c"
				}
			}
#line 890 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp51_) {
#line 8700 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp52_ = 0;
				TrackerPropertyType parsed_type;
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp52_ = tracker_sparql_expression_parse_type_uri (self, &_inner_error_);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				parsed_type = _tmp52_;
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (s);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_string_free0 (sb);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 8719 "tracker-sparql-expression.c"
					} else {
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (s);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_string_free0 (sb);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 892 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 8731 "tracker-sparql-expression.c"
					}
				}
#line 893 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if ((&_vala_type) == NULL) {
#line 8736 "tracker-sparql-expression.c"
				} else {
					TrackerPropertyType _tmp53_;
#line 896 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp53_ = parsed_type;
#line 896 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_vala_type = _tmp53_;
#line 8743 "tracker-sparql-expression.c"
				}
			}
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp54_ = sb;
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp55_ = _tmp54_->str;
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp56_ = g_strdup (_tmp55_);
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp56_;
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (s);
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_string_free0 (sb);
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (type) {
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				*type = _vala_type;
#line 8762 "tracker-sparql-expression.c"
			}
#line 900 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 8766 "tracker-sparql-expression.c"
		}
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1:
#line 842 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2:
#line 8772 "tracker-sparql-expression.c"
		{
			gchar* _tmp57_ = NULL;
			gchar* _result_;
			gboolean _tmp58_ = FALSE;
			gboolean _tmp59_;
#line 903 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp57_ = tracker_sparql_expression_get_last_string (self, 3);
#line 903 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_result_ = _tmp57_;
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp58_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp59_ = _tmp58_;
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_result_);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 8796 "tracker-sparql-expression.c"
				} else {
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (_result_);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return NULL;
#line 8806 "tracker-sparql-expression.c"
				}
			}
#line 905 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp59_) {
#line 8811 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp60_ = 0;
				TrackerPropertyType parsed_type;
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp60_ = tracker_sparql_expression_parse_type_uri (self, &_inner_error_);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				parsed_type = _tmp60_;
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_result_);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 8828 "tracker-sparql-expression.c"
					} else {
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_result_);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 907 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return NULL;
#line 8838 "tracker-sparql-expression.c"
					}
				}
#line 908 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if ((&_vala_type) == NULL) {
#line 8843 "tracker-sparql-expression.c"
				} else {
					TrackerPropertyType _tmp61_;
#line 911 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp61_ = parsed_type;
#line 911 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_vala_type = _tmp61_;
#line 8850 "tracker-sparql-expression.c"
				}
			}
#line 915 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _result_;
#line 915 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (type) {
#line 915 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				*type = _vala_type;
#line 8859 "tracker-sparql-expression.c"
			}
#line 915 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 8863 "tracker-sparql-expression.c"
		}
		default:
		{
			GError* _tmp62_ = NULL;
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp62_ = tracker_sparql_expression_get_error (self, "expected string literal");
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp62_;
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return NULL;
#line 8878 "tracker-sparql-expression.c"
			} else {
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 917 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return NULL;
#line 8886 "tracker-sparql-expression.c"
			}
		}
	}
#line 840 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (type) {
#line 840 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		*type = _vala_type;
#line 8894 "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_;
	GError * _inner_error_ = NULL;
#line 921 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 921 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 921 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (uri != NULL, 0);
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 8922 "tracker-sparql-expression.c"
		} else {
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 8930 "tracker-sparql-expression.c"
		}
	}
#line 922 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 8935 "tracker-sparql-expression.c"
		GString* _tmp2_;
		const gchar* _tmp3_;
		TrackerPropertyType _tmp4_ = 0;
		TrackerPropertyType _result_;
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = uri;
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_translate_function (self, _tmp2_, _tmp3_, &_inner_error_);
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_result_ = _tmp4_;
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 8956 "tracker-sparql-expression.c"
			} else {
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 924 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 8964 "tracker-sparql-expression.c"
			}
		}
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 8977 "tracker-sparql-expression.c"
			} else {
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 925 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 8985 "tracker-sparql-expression.c"
			}
		}
#line 926 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _result_;
#line 926 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 8992 "tracker-sparql-expression.c"
	} else {
		GString* _tmp5_;
		TrackerSparqlLiteralBinding* _tmp6_;
		TrackerSparqlLiteralBinding* binding;
		TrackerSparqlLiteralBinding* _tmp7_;
		const gchar* _tmp8_;
		gchar* _tmp9_;
		TrackerSparqlQuery* _tmp10_;
		TrackerSparqlLiteralBinding* _tmp11_;
		TrackerSparqlLiteralBinding* _tmp12_;
#line 929 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 929 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp5_, "COALESCE((SELECT ID FROM Resource WHERE Uri = ?), 0)");
#line 930 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = tracker_sparql_literal_binding_new ();
#line 930 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		binding = _tmp6_;
#line 931 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = binding;
#line 931 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = uri;
#line 931 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 931 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_free0 (_tmp7_->literal);
#line 931 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_->literal = _tmp9_;
#line 932 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = self->priv->query;
#line 932 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = binding;
#line 932 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = _g_object_ref0 (_tmp11_);
#line 932 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_->bindings = g_list_append (_tmp10_->bindings, _tmp12_);
#line 933 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 933 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_g_object_unref0 (binding);
#line 933 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 9035 "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 937 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 937 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS:
#line 9055 "tracker-sparql-expression.c"
		{
			GString* _tmp1_;
			TrackerPropertyType _tmp2_ = 0;
			TrackerPropertyType _tmp3_;
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = sql;
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = tracker_sparql_expression_translate_bracketted_expression (self, _tmp1_, &_inner_error_);
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = _tmp2_;
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9074 "tracker-sparql-expression.c"
				} else {
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9082 "tracker-sparql-expression.c"
				}
			}
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp3_;
#line 942 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9089 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IRI_REF:
#line 9093 "tracker-sparql-expression.c"
		{
			GString* _tmp4_;
			gchar* _tmp5_ = NULL;
			gchar* _tmp6_;
			TrackerPropertyType _tmp7_ = 0;
			TrackerPropertyType _tmp8_;
			TrackerPropertyType _tmp9_;
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9111 "tracker-sparql-expression.c"
				} else {
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 944 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9119 "tracker-sparql-expression.c"
				}
			}
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = tracker_sparql_expression_get_last_string (self, 1);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = _tmp5_;
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_translate_uri_expression (self, _tmp4_, _tmp6_, &_inner_error_);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = _tmp7_;
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp6_);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = _tmp8_;
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9144 "tracker-sparql-expression.c"
				} else {
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9152 "tracker-sparql-expression.c"
				}
			}
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp9_;
#line 945 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9159 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DECIMAL:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DOUBLE:
#line 9165 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp10_;
			gboolean _tmp11_;
			gboolean _tmp12_;
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9180 "tracker-sparql-expression.c"
				} else {
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 948 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9188 "tracker-sparql-expression.c"
				}
			}
#line 950 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = self->priv->query;
#line 950 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = tracker_sparql_query_get_no_cache (_tmp10_);
#line 950 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp11_;
#line 950 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp12_) {
#line 9199 "tracker-sparql-expression.c"
				GString* _tmp13_;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_;
#line 951 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = sql;
#line 951 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = tracker_sparql_expression_get_last_string (self, 0);
#line 951 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = _tmp14_;
#line 951 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp13_, _tmp15_);
#line 951 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp15_);
#line 9213 "tracker-sparql-expression.c"
			} else {
				GString* _tmp16_;
				TrackerSparqlLiteralBinding* _tmp17_;
				TrackerSparqlLiteralBinding* binding;
				TrackerSparqlLiteralBinding* _tmp18_;
				gchar* _tmp19_ = NULL;
				TrackerSparqlQuery* _tmp20_;
				TrackerSparqlLiteralBinding* _tmp21_;
				TrackerSparqlLiteralBinding* _tmp22_;
#line 953 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = sql;
#line 953 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp16_, "?");
#line 955 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = tracker_sparql_literal_binding_new ();
#line 955 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp17_;
#line 956 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = binding;
#line 956 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp19_ = tracker_sparql_expression_get_last_string (self, 0);
#line 956 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp18_->literal);
#line 956 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_->literal = _tmp19_;
#line 957 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = self->priv->query;
#line 957 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = binding;
#line 957 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp22_ = _g_object_ref0 (_tmp21_);
#line 957 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_->bindings = g_list_append (_tmp20_->bindings, _tmp22_);
#line 950 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 9249 "tracker-sparql-expression.c"
			}
#line 960 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_DOUBLE;
#line 960 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9255 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_TRUE:
#line 9259 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp23_;
			gboolean _tmp24_;
			gboolean _tmp25_;
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9274 "tracker-sparql-expression.c"
				} else {
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 962 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9282 "tracker-sparql-expression.c"
				}
			}
#line 964 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = self->priv->query;
#line 964 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = tracker_sparql_query_get_no_cache (_tmp23_);
#line 964 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp25_ = _tmp24_;
#line 964 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp25_) {
#line 9293 "tracker-sparql-expression.c"
				GString* _tmp26_;
#line 965 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 965 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp26_, "1");
#line 9299 "tracker-sparql-expression.c"
			} else {
				GString* _tmp27_;
				TrackerSparqlLiteralBinding* _tmp28_;
				TrackerSparqlLiteralBinding* binding;
				TrackerSparqlLiteralBinding* _tmp29_;
				gchar* _tmp30_;
				TrackerSparqlLiteralBinding* _tmp31_;
				TrackerSparqlQuery* _tmp32_;
				TrackerSparqlLiteralBinding* _tmp33_;
				TrackerSparqlLiteralBinding* _tmp34_;
#line 967 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = sql;
#line 967 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp27_, "?");
#line 969 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = tracker_sparql_literal_binding_new ();
#line 969 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp28_;
#line 970 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = binding;
#line 970 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = g_strdup ("1");
#line 970 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp29_->literal);
#line 970 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_->literal = _tmp30_;
#line 971 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = binding;
#line 971 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp31_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 972 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = self->priv->query;
#line 972 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp33_ = binding;
#line 972 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp34_ = _g_object_ref0 (_tmp33_);
#line 972 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_->bindings = g_list_append (_tmp32_->bindings, _tmp34_);
#line 964 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 9340 "tracker-sparql-expression.c"
			}
#line 975 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 975 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9346 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_FALSE:
#line 9350 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp35_;
			gboolean _tmp36_;
			gboolean _tmp37_;
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9365 "tracker-sparql-expression.c"
				} else {
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 977 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9373 "tracker-sparql-expression.c"
				}
			}
#line 979 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp35_ = self->priv->query;
#line 979 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp36_ = tracker_sparql_query_get_no_cache (_tmp35_);
#line 979 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp37_ = _tmp36_;
#line 979 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp37_) {
#line 9384 "tracker-sparql-expression.c"
				GString* _tmp38_;
#line 980 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp38_ = sql;
#line 980 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp38_, "0");
#line 9390 "tracker-sparql-expression.c"
			} else {
				GString* _tmp39_;
				TrackerSparqlLiteralBinding* _tmp40_;
				TrackerSparqlLiteralBinding* binding;
				TrackerSparqlLiteralBinding* _tmp41_;
				gchar* _tmp42_;
				TrackerSparqlLiteralBinding* _tmp43_;
				TrackerSparqlQuery* _tmp44_;
				TrackerSparqlLiteralBinding* _tmp45_;
				TrackerSparqlLiteralBinding* _tmp46_;
#line 982 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp39_ = sql;
#line 982 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp39_, "?");
#line 984 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp40_ = tracker_sparql_literal_binding_new ();
#line 984 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp40_;
#line 985 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp41_ = binding;
#line 985 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp42_ = g_strdup ("0");
#line 985 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp41_->literal);
#line 985 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp41_->literal = _tmp42_;
#line 986 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp43_ = binding;
#line 986 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp43_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 987 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp44_ = self->priv->query;
#line 987 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp45_ = binding;
#line 987 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp46_ = _g_object_ref0 (_tmp45_);
#line 987 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp44_->bindings = g_list_append (_tmp44_->bindings, _tmp46_);
#line 979 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 9431 "tracker-sparql-expression.c"
			}
#line 990 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 990 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9437 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2:
#line 9447 "tracker-sparql-expression.c"
		{
			TrackerPropertyType _tmp47_ = 0;
			gchar* _tmp48_ = NULL;
			gchar* literal;
			TrackerPropertyType _tmp49_;
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp48_ = tracker_sparql_expression_parse_string_literal (self, &_tmp47_, &_inner_error_);
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp47_;
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			literal = _tmp48_;
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9467 "tracker-sparql-expression.c"
				} else {
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 995 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9475 "tracker-sparql-expression.c"
				}
			}
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp49_ = type;
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			switch (_tmp49_) {
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_INTEGER:
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_BOOLEAN:
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DOUBLE:
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DATE:
#line 997 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				case TRACKER_PROPERTY_TYPE_DATETIME:
#line 9492 "tracker-sparql-expression.c"
				{
					TrackerSparqlQuery* _tmp50_;
					gboolean _tmp51_;
					gboolean _tmp52_;
#line 1003 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp50_ = self->priv->query;
#line 1003 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp51_ = tracker_sparql_query_get_no_cache (_tmp50_);
#line 1003 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp52_ = _tmp51_;
#line 1003 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp52_) {
#line 9505 "tracker-sparql-expression.c"
						GString* _tmp53_;
						const gchar* _tmp54_;
						gchar* _tmp55_ = NULL;
						gchar* _tmp56_;
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp53_ = sql;
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp54_ = literal;
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp55_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp54_);
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp56_ = _tmp55_;
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp53_, _tmp56_);
#line 1004 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp56_);
#line 9522 "tracker-sparql-expression.c"
					} else {
						TrackerSparqlLiteralBinding* _tmp57_;
						TrackerSparqlLiteralBinding* binding;
						TrackerSparqlLiteralBinding* _tmp58_;
						const gchar* _tmp59_;
						gchar* _tmp60_;
						TrackerSparqlLiteralBinding* _tmp61_;
						TrackerPropertyType _tmp62_;
						TrackerSparqlQuery* _tmp63_;
						TrackerSparqlLiteralBinding* _tmp64_;
						TrackerSparqlLiteralBinding* _tmp65_;
						GString* _tmp66_;
#line 1006 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp57_ = tracker_sparql_literal_binding_new ();
#line 1006 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						binding = _tmp57_;
#line 1007 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp58_ = binding;
#line 1007 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp59_ = literal;
#line 1007 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp60_ = g_strdup (_tmp59_);
#line 1007 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp58_->literal);
#line 1007 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp58_->literal = _tmp60_;
#line 1008 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp61_ = binding;
#line 1008 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp62_ = type;
#line 1008 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						((TrackerSparqlDataBinding*) _tmp61_)->data_type = _tmp62_;
#line 1009 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp63_ = self->priv->query;
#line 1009 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp64_ = binding;
#line 1009 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp65_ = _g_object_ref0 (_tmp64_);
#line 1009 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp63_->bindings = g_list_append (_tmp63_->bindings, _tmp65_);
#line 1010 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp66_ = sql;
#line 1010 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp66_, "?");
#line 1003 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 9569 "tracker-sparql-expression.c"
					}
#line 1012 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = type;
#line 1012 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (literal);
#line 1012 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 9577 "tracker-sparql-expression.c"
				}
				default:
				{
					TrackerSparqlQuery* _tmp67_;
					gboolean _tmp68_;
					gboolean _tmp69_;
					GString* _tmp82_;
#line 1014 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp67_ = self->priv->query;
#line 1014 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp68_ = tracker_sparql_query_get_no_cache (_tmp67_);
#line 1014 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp69_ = _tmp68_;
#line 1014 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp69_) {
#line 9593 "tracker-sparql-expression.c"
						GString* _tmp70_;
						const gchar* _tmp71_;
						gchar* _tmp72_ = NULL;
						gchar* _tmp73_;
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp70_ = sql;
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp71_ = literal;
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp72_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp71_);
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp73_ = _tmp72_;
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp70_, _tmp73_);
#line 1015 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp73_);
#line 9610 "tracker-sparql-expression.c"
					} else {
						TrackerSparqlLiteralBinding* _tmp74_;
						TrackerSparqlLiteralBinding* binding;
						TrackerSparqlLiteralBinding* _tmp75_;
						const gchar* _tmp76_;
						gchar* _tmp77_;
						TrackerSparqlQuery* _tmp78_;
						TrackerSparqlLiteralBinding* _tmp79_;
						TrackerSparqlLiteralBinding* _tmp80_;
						GString* _tmp81_;
#line 1017 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp74_ = tracker_sparql_literal_binding_new ();
#line 1017 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						binding = _tmp74_;
#line 1018 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp75_ = binding;
#line 1018 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp76_ = literal;
#line 1018 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp77_ = g_strdup (_tmp76_);
#line 1018 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_free0 (_tmp75_->literal);
#line 1018 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp75_->literal = _tmp77_;
#line 1019 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp78_ = self->priv->query;
#line 1019 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp79_ = binding;
#line 1019 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp80_ = _g_object_ref0 (_tmp79_);
#line 1019 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp78_->bindings = g_list_append (_tmp78_->bindings, _tmp80_);
#line 1020 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp81_ = sql;
#line 1020 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_string_append (_tmp81_, "?");
#line 1014 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_g_object_unref0 (binding);
#line 9649 "tracker-sparql-expression.c"
					}
#line 1022 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp82_ = sql;
#line 1022 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_append_collate (self, _tmp82_);
#line 1023 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = TRACKER_PROPERTY_TYPE_STRING;
#line 1023 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (literal);
#line 1023 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 9661 "tracker-sparql-expression.c"
				}
			}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (literal);
#line 9666 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_INTEGER:
#line 9670 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp83_;
			gboolean _tmp84_;
			gboolean _tmp85_;
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9685 "tracker-sparql-expression.c"
				} else {
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1026 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9693 "tracker-sparql-expression.c"
				}
			}
#line 1028 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp83_ = self->priv->query;
#line 1028 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp84_ = tracker_sparql_query_get_no_cache (_tmp83_);
#line 1028 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp85_ = _tmp84_;
#line 1028 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp85_) {
#line 9704 "tracker-sparql-expression.c"
				GString* _tmp86_;
				gchar* _tmp87_ = NULL;
				gchar* _tmp88_;
#line 1029 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp86_ = sql;
#line 1029 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp87_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1029 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp88_ = _tmp87_;
#line 1029 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp86_, _tmp88_);
#line 1029 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp88_);
#line 9718 "tracker-sparql-expression.c"
			} else {
				GString* _tmp89_;
				TrackerSparqlLiteralBinding* _tmp90_;
				TrackerSparqlLiteralBinding* binding;
				TrackerSparqlLiteralBinding* _tmp91_;
				gchar* _tmp92_ = NULL;
				TrackerSparqlLiteralBinding* _tmp93_;
				TrackerSparqlQuery* _tmp94_;
				TrackerSparqlLiteralBinding* _tmp95_;
				TrackerSparqlLiteralBinding* _tmp96_;
#line 1031 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp89_ = sql;
#line 1031 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp89_, "?");
#line 1033 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp90_ = tracker_sparql_literal_binding_new ();
#line 1033 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				binding = _tmp90_;
#line 1034 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp91_ = binding;
#line 1034 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp92_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1034 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (_tmp91_->literal);
#line 1034 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp91_->literal = _tmp92_;
#line 1035 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp93_ = binding;
#line 1035 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) _tmp93_)->data_type = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1036 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp94_ = self->priv->query;
#line 1036 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp95_ = binding;
#line 1036 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp96_ = _g_object_ref0 (_tmp95_);
#line 1036 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp94_->bindings = g_list_append (_tmp94_->bindings, _tmp96_);
#line 1028 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (binding);
#line 9759 "tracker-sparql-expression.c"
			}
#line 1039 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1039 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9765 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_VAR:
#line 9769 "tracker-sparql-expression.c"
		{
			gchar* _tmp97_ = NULL;
			gchar* _tmp98_;
			gchar* _tmp99_ = NULL;
			gchar* _tmp100_;
			gchar* variable_name;
			TrackerSparqlContext* _tmp101_;
			TrackerSparqlContext* _tmp102_;
			const gchar* _tmp103_;
			TrackerSparqlVariable* _tmp104_ = NULL;
			TrackerSparqlVariable* _tmp105_;
			TrackerSparqlVariable* variable;
			GString* _tmp106_;
			TrackerSparqlVariable* _tmp107_;
			const gchar* _tmp108_;
			const gchar* _tmp109_;
			TrackerSparqlVariable* _tmp110_;
			TrackerSparqlVariableBinding* _tmp111_;
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9798 "tracker-sparql-expression.c"
				} else {
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1041 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9806 "tracker-sparql-expression.c"
				}
			}
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp97_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp98_ = _tmp97_;
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp99_ = string_substring (_tmp98_, (glong) 1, (glong) (-1));
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp100_ = _tmp99_;
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp98_);
#line 1042 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable_name = _tmp100_;
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp101_ = tracker_sparql_expression_get_context (self);
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp102_ = _tmp101_;
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp103_ = variable_name;
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp104_ = tracker_sparql_context_get_variable (_tmp102_, _tmp103_);
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp105_ = _g_object_ref0 (_tmp104_);
#line 1043 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			variable = _tmp105_;
#line 1044 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp106_ = sql;
#line 1044 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp107_ = variable;
#line 1044 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp108_ = tracker_sparql_variable_get_sql_expression (_tmp107_);
#line 1044 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp109_ = _tmp108_;
#line 1044 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp106_, _tmp109_);
#line 1046 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp110_ = variable;
#line 1046 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp111_ = _tmp110_->binding;
#line 1046 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp111_ == NULL) {
#line 1047 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = TRACKER_PROPERTY_TYPE_UNKNOWN;
#line 1047 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 1047 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 1047 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 9857 "tracker-sparql-expression.c"
			} else {
				TrackerSparqlVariable* _tmp112_;
				TrackerSparqlVariableBinding* _tmp113_;
				TrackerPropertyType _tmp114_;
				TrackerSparqlVariable* _tmp116_;
				TrackerSparqlVariableBinding* _tmp117_;
				TrackerPropertyType _tmp118_;
#line 1049 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp112_ = variable;
#line 1049 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp113_ = _tmp112_->binding;
#line 1049 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp114_ = ((TrackerSparqlDataBinding*) _tmp113_)->data_type;
#line 1049 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp114_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 9873 "tracker-sparql-expression.c"
					GString* _tmp115_;
#line 1050 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp115_ = sql;
#line 1050 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					tracker_sparql_expression_append_collate (self, _tmp115_);
#line 9879 "tracker-sparql-expression.c"
				}
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp116_ = variable;
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp117_ = _tmp116_->binding;
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp118_ = ((TrackerSparqlDataBinding*) _tmp117_)->data_type;
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = _tmp118_;
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_object_unref0 (variable);
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_g_free0 (variable_name);
#line 1052 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 9895 "tracker-sparql-expression.c"
			}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_object_unref0 (variable);
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (variable_name);
#line 9901 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STR:
#line 9905 "tracker-sparql-expression.c"
		{
			GString* _tmp119_;
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp119_ = sql;
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_str (self, _tmp119_, &_inner_error_);
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9920 "tracker-sparql-expression.c"
				} else {
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1055 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9928 "tracker-sparql-expression.c"
				}
			}
#line 1056 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1056 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9935 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANG:
#line 9939 "tracker-sparql-expression.c"
		{
			GString* _tmp120_;
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9952 "tracker-sparql-expression.c"
				} else {
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1058 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9960 "tracker-sparql-expression.c"
				}
			}
#line 1059 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp120_ = sql;
#line 1059 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp120_, "''");
#line 1060 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1060 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 9971 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES:
#line 9975 "tracker-sparql-expression.c"
		{
			GString* _tmp121_;
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9988 "tracker-sparql-expression.c"
				} else {
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1062 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 9996 "tracker-sparql-expression.c"
				}
			}
#line 1063 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp121_ = sql;
#line 1063 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp121_, "0");
#line 1064 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1064 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10007 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DATATYPE:
#line 10011 "tracker-sparql-expression.c"
		{
			GString* _tmp122_;
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp122_ = sql;
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_datatype (self, _tmp122_, &_inner_error_);
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10026 "tracker-sparql-expression.c"
				} else {
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1066 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10034 "tracker-sparql-expression.c"
				}
			}
#line 1067 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_RESOURCE;
#line 1067 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10041 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_BOUND:
#line 10045 "tracker-sparql-expression.c"
		{
			GString* _tmp123_;
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp123_ = sql;
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_bound_call (self, _tmp123_, &_inner_error_);
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10060 "tracker-sparql-expression.c"
				} else {
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1069 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10068 "tracker-sparql-expression.c"
				}
			}
#line 1070 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1070 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10075 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COALESCE:
#line 10079 "tracker-sparql-expression.c"
		{
			GString* _tmp124_;
			TrackerPropertyType _tmp125_ = 0;
			TrackerPropertyType _result_;
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10094 "tracker-sparql-expression.c"
				} else {
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1072 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10102 "tracker-sparql-expression.c"
				}
			}
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10115 "tracker-sparql-expression.c"
				} else {
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1073 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10123 "tracker-sparql-expression.c"
				}
			}
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp124_ = sql;
#line 1074 "/home/juerg/Code/tracker/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 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_result_ = _tmp125_;
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10140 "tracker-sparql-expression.c"
				} else {
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1074 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10148 "tracker-sparql-expression.c"
				}
			}
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10161 "tracker-sparql-expression.c"
				} else {
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1075 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10169 "tracker-sparql-expression.c"
				}
			}
#line 1076 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _result_;
#line 1076 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10176 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IF:
#line 10180 "tracker-sparql-expression.c"
		{
			GString* _tmp126_;
			TrackerPropertyType _tmp127_ = 0;
			TrackerPropertyType _tmp128_;
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp126_ = sql;
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp127_ = tracker_sparql_expression_translate_if_call (self, _tmp126_, &_inner_error_);
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp128_ = _tmp127_;
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10199 "tracker-sparql-expression.c"
				} else {
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10207 "tracker-sparql-expression.c"
				}
			}
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp128_;
#line 1078 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10214 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SAMETERM:
#line 10218 "tracker-sparql-expression.c"
		{
			GString* _tmp129_;
			GString* _tmp130_;
			GString* _tmp131_;
			GString* _tmp132_;
			GString* _tmp133_;
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10235 "tracker-sparql-expression.c"
				} else {
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1080 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10243 "tracker-sparql-expression.c"
				}
			}
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10256 "tracker-sparql-expression.c"
				} else {
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1081 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10264 "tracker-sparql-expression.c"
				}
			}
#line 1082 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp129_ = sql;
#line 1082 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp129_, "(");
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp130_ = sql;
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp130_, &_inner_error_);
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10283 "tracker-sparql-expression.c"
				} else {
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1083 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10291 "tracker-sparql-expression.c"
				}
			}
#line 1084 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp131_ = sql;
#line 1084 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp131_, " = ");
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10308 "tracker-sparql-expression.c"
				} else {
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1085 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10316 "tracker-sparql-expression.c"
				}
			}
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp132_ = sql;
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp132_, &_inner_error_);
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10331 "tracker-sparql-expression.c"
				} else {
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1086 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10339 "tracker-sparql-expression.c"
				}
			}
#line 1087 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp133_ = sql;
#line 1087 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp133_, ")");
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10356 "tracker-sparql-expression.c"
				} else {
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1088 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10364 "tracker-sparql-expression.c"
				}
			}
#line 1089 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1089 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10371 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISIRI:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISURI:
#line 10377 "tracker-sparql-expression.c"
		{
			GString* _tmp134_;
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp134_ = sql;
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_isuri (self, _tmp134_, &_inner_error_);
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10392 "tracker-sparql-expression.c"
				} else {
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1092 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10400 "tracker-sparql-expression.c"
				}
			}
#line 1093 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1093 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10407 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISBLANK:
#line 10411 "tracker-sparql-expression.c"
		{
			GString* _tmp135_;
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10424 "tracker-sparql-expression.c"
				} else {
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1095 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10432 "tracker-sparql-expression.c"
				}
			}
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10445 "tracker-sparql-expression.c"
				} else {
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1096 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10453 "tracker-sparql-expression.c"
				}
			}
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10466 "tracker-sparql-expression.c"
				} else {
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1097 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10474 "tracker-sparql-expression.c"
				}
			}
#line 1099 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp135_ = sql;
#line 1099 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp135_, "0");
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10491 "tracker-sparql-expression.c"
				} else {
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1100 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10499 "tracker-sparql-expression.c"
				}
			}
#line 1101 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1101 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10506 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL:
#line 10510 "tracker-sparql-expression.c"
		{
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10522 "tracker-sparql-expression.c"
				} else {
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1103 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10530 "tracker-sparql-expression.c"
				}
			}
#line 1104 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1104 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10537 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_REGEX:
#line 10541 "tracker-sparql-expression.c"
		{
			GString* _tmp136_;
			TrackerSparqlQuery* _tmp137_;
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp136_ = sql;
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_regex (self, _tmp136_, &_inner_error_);
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10557 "tracker-sparql-expression.c"
				} else {
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1106 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10565 "tracker-sparql-expression.c"
				}
			}
#line 1107 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp137_ = self->priv->query;
#line 1107 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_query_set_no_cache (_tmp137_, TRUE);
#line 1108 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1108 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10576 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_EXISTS:
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_NOT:
#line 10582 "tracker-sparql-expression.c"
		{
			GString* _tmp138_;
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp138_ = sql;
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_exists (self, _tmp138_, &_inner_error_);
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10597 "tracker-sparql-expression.c"
				} else {
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1111 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10605 "tracker-sparql-expression.c"
				}
			}
#line 1112 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1112 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10612 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COUNT:
#line 10616 "tracker-sparql-expression.c"
		{
			GString* _tmp139_;
			GString* _tmp140_;
			GString* _tmp141_;
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10631 "tracker-sparql-expression.c"
				} else {
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1114 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10639 "tracker-sparql-expression.c"
				}
			}
#line 1115 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp139_ = sql;
#line 1115 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp139_, "COUNT(");
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp140_ = sql;
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_aggregate_expression (self, _tmp140_, &_inner_error_);
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10658 "tracker-sparql-expression.c"
				} else {
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1116 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10666 "tracker-sparql-expression.c"
				}
			}
#line 1117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp141_ = sql;
#line 1117 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp141_, ")");
#line 1118 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_INTEGER;
#line 1118 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10677 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SUM:
#line 10681 "tracker-sparql-expression.c"
		{
			GString* _tmp142_;
			GString* _tmp143_;
			TrackerPropertyType _tmp144_ = 0;
			TrackerPropertyType _tmp145_;
			GString* _tmp146_;
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10698 "tracker-sparql-expression.c"
				} else {
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1120 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10706 "tracker-sparql-expression.c"
				}
			}
#line 1121 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp142_ = sql;
#line 1121 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp142_, "SUM(");
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp143_ = sql;
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp144_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp143_, &_inner_error_);
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp145_ = _tmp144_;
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10727 "tracker-sparql-expression.c"
				} else {
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10735 "tracker-sparql-expression.c"
				}
			}
#line 1122 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp145_;
#line 1123 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp146_ = sql;
#line 1123 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp146_, ")");
#line 1124 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1124 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10748 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_AVG:
#line 10752 "tracker-sparql-expression.c"
		{
			GString* _tmp147_;
			GString* _tmp148_;
			TrackerPropertyType _tmp149_ = 0;
			TrackerPropertyType _tmp150_;
			GString* _tmp151_;
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10769 "tracker-sparql-expression.c"
				} else {
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1126 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10777 "tracker-sparql-expression.c"
				}
			}
#line 1127 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp147_ = sql;
#line 1127 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp147_, "AVG(");
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp148_ = sql;
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp149_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp148_, &_inner_error_);
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp150_ = _tmp149_;
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10798 "tracker-sparql-expression.c"
				} else {
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10806 "tracker-sparql-expression.c"
				}
			}
#line 1128 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp150_;
#line 1129 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp151_ = sql;
#line 1129 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp151_, ")");
#line 1130 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1130 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10819 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_MIN:
#line 10823 "tracker-sparql-expression.c"
		{
			GString* _tmp152_;
			GString* _tmp153_;
			TrackerPropertyType _tmp154_ = 0;
			TrackerPropertyType _tmp155_;
			GString* _tmp156_;
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10840 "tracker-sparql-expression.c"
				} else {
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1132 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10848 "tracker-sparql-expression.c"
				}
			}
#line 1133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp152_ = sql;
#line 1133 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp152_, "MIN(");
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp153_ = sql;
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp154_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp153_, &_inner_error_);
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp155_ = _tmp154_;
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10869 "tracker-sparql-expression.c"
				} else {
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10877 "tracker-sparql-expression.c"
				}
			}
#line 1134 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp155_;
#line 1135 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp156_ = sql;
#line 1135 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp156_, ")");
#line 1136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1136 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10890 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_MAX:
#line 10894 "tracker-sparql-expression.c"
		{
			GString* _tmp157_;
			GString* _tmp158_;
			TrackerPropertyType _tmp159_ = 0;
			TrackerPropertyType _tmp160_;
			GString* _tmp161_;
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10911 "tracker-sparql-expression.c"
				} else {
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1138 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10919 "tracker-sparql-expression.c"
				}
			}
#line 1139 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp157_ = sql;
#line 1139 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp157_, "MAX(");
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp158_ = sql;
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp159_ = tracker_sparql_expression_translate_aggregate_expression (self, _tmp158_, &_inner_error_);
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp160_ = _tmp159_;
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10940 "tracker-sparql-expression.c"
				} else {
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10948 "tracker-sparql-expression.c"
				}
			}
#line 1140 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			type = _tmp160_;
#line 1141 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp161_ = sql;
#line 1141 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp161_, ")");
#line 1142 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = type;
#line 1142 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 10961 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_GROUP_CONCAT:
#line 10965 "tracker-sparql-expression.c"
		{
			GString* _tmp162_;
			GString* _tmp163_;
			GString* _tmp164_;
			gchar* _tmp165_ = NULL;
			gchar* _tmp166_;
			GString* _tmp167_;
			gchar* _tmp168_;
			gchar* _tmp169_ = NULL;
			gchar* _tmp170_;
			GString* _tmp171_;
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10987 "tracker-sparql-expression.c"
				} else {
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1144 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 10995 "tracker-sparql-expression.c"
				}
			}
#line 1145 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp162_ = sql;
#line 1145 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp162_, "GROUP_CONCAT(");
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11012 "tracker-sparql-expression.c"
				} else {
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1146 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11020 "tracker-sparql-expression.c"
				}
			}
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp163_ = sql;
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression_as_string (self, _tmp163_, &_inner_error_);
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11035 "tracker-sparql-expression.c"
				} else {
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1147 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11043 "tracker-sparql-expression.c"
				}
			}
#line 1148 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp164_ = sql;
#line 1148 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp164_, ", ");
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11060 "tracker-sparql-expression.c"
				} else {
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1149 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11068 "tracker-sparql-expression.c"
				}
			}
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp165_ = tracker_sparql_expression_parse_string_literal (self, NULL, &_inner_error_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp166_ = _tmp165_;
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11083 "tracker-sparql-expression.c"
				} else {
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11091 "tracker-sparql-expression.c"
				}
			}
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp167_ = sql;
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp168_ = _tmp166_;
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp169_ = tracker_sparql_expression_escape_sql_string_literal (self, _tmp168_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp170_ = _tmp169_;
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp167_, _tmp170_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp170_);
#line 1150 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp168_);
#line 1151 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp171_ = sql;
#line 1151 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp171_, ")");
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11122 "tracker-sparql-expression.c"
				} else {
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1152 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11130 "tracker-sparql-expression.c"
				}
			}
#line 1153 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = TRACKER_PROPERTY_TYPE_STRING;
#line 1153 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11137 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX:
#line 11141 "tracker-sparql-expression.c"
		{
			gchar* _tmp172_ = NULL;
			gchar* ns;
			TrackerSparqlQuery* _tmp173_;
			const gchar* _tmp174_;
			gchar* _tmp175_ = NULL;
			gchar* _tmp176_;
			gchar* _tmp177_ = NULL;
			gchar* _tmp178_;
			gchar* _tmp179_ = NULL;
			gchar* _tmp180_;
			gchar* uri;
			GString* _tmp181_;
			const gchar* _tmp182_;
			TrackerPropertyType _tmp183_ = 0;
			TrackerPropertyType _tmp184_;
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11168 "tracker-sparql-expression.c"
				} else {
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1155 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11176 "tracker-sparql-expression.c"
				}
			}
#line 1156 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp172_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1156 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			ns = _tmp172_;
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_);
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11195 "tracker-sparql-expression.c"
				} else {
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1157 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11205 "tracker-sparql-expression.c"
				}
			}
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp173_ = self->priv->query;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp174_ = ns;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp175_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp176_ = _tmp175_;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp177_ = string_substring (_tmp176_, (glong) 1, (glong) (-1));
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp178_ = _tmp177_;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp179_ = tracker_sparql_query_resolve_prefixed_name (_tmp173_, _tmp174_, _tmp178_, &_inner_error_);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp180_ = _tmp179_;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp178_);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp176_);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			uri = _tmp180_;
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11240 "tracker-sparql-expression.c"
				} else {
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1158 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11250 "tracker-sparql-expression.c"
				}
			}
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp181_ = sql;
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp182_ = uri;
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp183_ = tracker_sparql_expression_translate_uri_expression (self, _tmp181_, _tmp182_, &_inner_error_);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp184_ = _tmp183_;
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11273 "tracker-sparql-expression.c"
				} else {
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (ns);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11285 "tracker-sparql-expression.c"
				}
			}
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp184_;
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (uri);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (ns);
#line 1159 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11296 "tracker-sparql-expression.c"
		}
#line 940 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_COLON:
#line 11300 "tracker-sparql-expression.c"
		{
			TrackerSparqlQuery* _tmp185_;
			gchar* _tmp186_ = NULL;
			gchar* _tmp187_;
			gchar* _tmp188_ = NULL;
			gchar* _tmp189_;
			gchar* _tmp190_ = NULL;
			gchar* _tmp191_;
			gchar* uri;
			GString* _tmp192_;
			const gchar* _tmp193_;
			TrackerPropertyType _tmp194_ = 0;
			TrackerPropertyType _tmp195_;
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_next (self, &_inner_error_);
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11324 "tracker-sparql-expression.c"
				} else {
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1161 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11332 "tracker-sparql-expression.c"
				}
			}
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp185_ = self->priv->query;
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp186_ = tracker_sparql_expression_get_last_string (self, 0);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp187_ = _tmp186_;
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp188_ = string_substring (_tmp187_, (glong) 1, (glong) (-1));
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp189_ = _tmp188_;
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp190_ = tracker_sparql_query_resolve_prefixed_name (_tmp185_, "", _tmp189_, &_inner_error_);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp191_ = _tmp190_;
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp189_);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (_tmp187_);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			uri = _tmp191_;
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11363 "tracker-sparql-expression.c"
				} else {
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1162 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11371 "tracker-sparql-expression.c"
				}
			}
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp192_ = sql;
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp193_ = uri;
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp194_ = tracker_sparql_expression_translate_uri_expression (self, _tmp192_, _tmp193_, &_inner_error_);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp195_ = _tmp194_;
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11392 "tracker-sparql-expression.c"
				} else {
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_g_free0 (uri);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11402 "tracker-sparql-expression.c"
				}
			}
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp195_;
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_g_free0 (uri);
#line 1163 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11411 "tracker-sparql-expression.c"
		}
		default:
		{
			GError* _tmp196_ = NULL;
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp196_ = tracker_sparql_expression_get_error (self, "expected primary expression");
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp196_;
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11426 "tracker-sparql-expression.c"
			} else {
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1165 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11434 "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_;
	GString* _tmp19_;
	TrackerPropertyType _tmp20_ = 0;
	TrackerPropertyType _tmp21_;
	GError * _inner_error_ = NULL;
#line 1169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1169 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_NEG, &_inner_error_);
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11465 "tracker-sparql-expression.c"
		} else {
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11473 "tracker-sparql-expression.c"
		}
	}
#line 1170 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 11478 "tracker-sparql-expression.c"
		GString* _tmp2_;
		GString* _tmp3_;
		TrackerPropertyType _tmp4_ = 0;
		TrackerPropertyType optype;
		GString* _tmp5_;
		TrackerPropertyType _tmp6_;
#line 1171 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 1171 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp2_, "NOT (");
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = sql;
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_translate_primary_expression (self, _tmp3_, &_inner_error_);
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp4_;
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11503 "tracker-sparql-expression.c"
			} else {
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1172 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11511 "tracker-sparql-expression.c"
			}
		}
#line 1173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = sql;
#line 1173 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp5_, ")");
#line 1174 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1174 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 11522 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11534 "tracker-sparql-expression.c"
			} else {
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1175 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11542 "tracker-sparql-expression.c"
			}
		}
#line 1177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1177 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 11549 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp8_ = FALSE;
		gboolean _tmp9_;
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PLUS, &_inner_error_);
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = _tmp8_;
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11565 "tracker-sparql-expression.c"
			} else {
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11573 "tracker-sparql-expression.c"
			}
		}
#line 1178 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp9_) {
#line 11578 "tracker-sparql-expression.c"
			GString* _tmp10_;
			TrackerPropertyType _tmp11_ = 0;
			TrackerPropertyType _tmp12_;
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = sql;
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = tracker_sparql_expression_translate_primary_expression (self, _tmp10_, &_inner_error_);
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = _tmp11_;
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11596 "tracker-sparql-expression.c"
				} else {
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11604 "tracker-sparql-expression.c"
				}
			}
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp12_;
#line 1179 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 11611 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp13_ = FALSE;
			gboolean _tmp14_;
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_MINUS, &_inner_error_);
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = _tmp13_;
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11627 "tracker-sparql-expression.c"
				} else {
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11635 "tracker-sparql-expression.c"
				}
			}
#line 1180 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp14_) {
#line 11640 "tracker-sparql-expression.c"
				GString* _tmp15_;
				GString* _tmp16_;
				TrackerPropertyType _tmp17_ = 0;
				TrackerPropertyType optype;
				GString* _tmp18_;
#line 1181 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = sql;
#line 1181 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp15_, "-(");
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = sql;
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = tracker_sparql_expression_translate_primary_expression (self, _tmp16_, &_inner_error_);
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				optype = _tmp17_;
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 11664 "tracker-sparql-expression.c"
					} else {
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1182 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 11672 "tracker-sparql-expression.c"
					}
				}
#line 1183 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp18_ = sql;
#line 1183 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp18_, ")");
#line 1184 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = optype;
#line 1184 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 11683 "tracker-sparql-expression.c"
			}
		}
	}
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = sql;
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp20_ = tracker_sparql_expression_translate_primary_expression (self, _tmp19_, &_inner_error_);
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp21_ = _tmp20_;
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11701 "tracker-sparql-expression.c"
		} else {
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11709 "tracker-sparql-expression.c"
		}
	}
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp21_;
#line 1186 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 11716 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_multiplicative_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	TrackerPropertyType _tmp3_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1189 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1189 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1190 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1190 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1190 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_unary_expression (self, _tmp2_, &_inner_error_);
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11753 "tracker-sparql-expression.c"
		} else {
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1191 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 11761 "tracker-sparql-expression.c"
		}
	}
#line 1192 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 11766 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STAR, &_inner_error_);
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11781 "tracker-sparql-expression.c"
			} else {
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 11789 "tracker-sparql-expression.c"
			}
		}
#line 1193 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp5_) {
#line 11794 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp6_;
			gboolean _tmp7_ = FALSE;
			GString* _tmp9_;
			glong _tmp10_;
			GString* _tmp11_;
			GString* _tmp12_;
			TrackerPropertyType _tmp13_ = 0;
			TrackerPropertyType _tmp14_;
			gboolean _tmp15_ = FALSE;
			GString* _tmp17_;
#line 1194 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = optype;
#line 1194 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_maybe_numeric (self, _tmp6_);
#line 1194 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp7_) {
#line 11811 "tracker-sparql-expression.c"
				GError* _tmp8_ = NULL;
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp8_;
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11823 "tracker-sparql-expression.c"
				} else {
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1195 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11831 "tracker-sparql-expression.c"
				}
			}
#line 1197 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1197 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = begin;
#line 1197 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp9_, (gssize) _tmp10_, "(");
#line 1198 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = sql;
#line 1198 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp11_, " * ");
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = sql;
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = tracker_sparql_expression_translate_unary_expression (self, _tmp12_, &_inner_error_);
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = _tmp13_;
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11858 "tracker-sparql-expression.c"
				} else {
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11866 "tracker-sparql-expression.c"
				}
			}
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = tracker_sparql_expression_maybe_numeric (self, _tmp14_);
#line 1199 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp15_) {
#line 11873 "tracker-sparql-expression.c"
				GError* _tmp16_ = NULL;
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp16_;
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11885 "tracker-sparql-expression.c"
				} else {
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1200 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11893 "tracker-sparql-expression.c"
				}
			}
#line 1202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1202 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp17_, ")");
#line 11900 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_;
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DIV, &_inner_error_);
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11916 "tracker-sparql-expression.c"
				} else {
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 11924 "tracker-sparql-expression.c"
				}
			}
#line 1203 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp19_) {
#line 11929 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp20_;
				gboolean _tmp21_ = FALSE;
				GString* _tmp23_;
				glong _tmp24_;
				GString* _tmp25_;
				GString* _tmp26_;
				TrackerPropertyType _tmp27_ = 0;
				TrackerPropertyType _tmp28_;
				gboolean _tmp29_ = FALSE;
				GString* _tmp31_;
#line 1204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = optype;
#line 1204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = tracker_sparql_expression_maybe_numeric (self, _tmp20_);
#line 1204 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp21_) {
#line 11946 "tracker-sparql-expression.c"
					GError* _tmp22_ = NULL;
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp22_;
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 11958 "tracker-sparql-expression.c"
					} else {
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1205 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 11966 "tracker-sparql-expression.c"
					}
				}
#line 1207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = sql;
#line 1207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp24_ = begin;
#line 1207 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_insert (_tmp23_, (gssize) _tmp24_, "(");
#line 1208 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = sql;
#line 1208 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp25_, " / ");
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = tracker_sparql_expression_translate_unary_expression (self, _tmp26_, &_inner_error_);
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = _tmp27_;
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 11993 "tracker-sparql-expression.c"
					} else {
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12001 "tracker-sparql-expression.c"
					}
				}
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = tracker_sparql_expression_maybe_numeric (self, _tmp28_);
#line 1209 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp29_) {
#line 12008 "tracker-sparql-expression.c"
					GError* _tmp30_ = NULL;
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp30_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp30_;
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12020 "tracker-sparql-expression.c"
					} else {
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1210 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12028 "tracker-sparql-expression.c"
					}
				}
#line 1212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 1212 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 12035 "tracker-sparql-expression.c"
			} else {
#line 1214 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 12039 "tracker-sparql-expression.c"
			}
		}
	}
#line 1217 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1217 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12047 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_additive_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	TrackerPropertyType _tmp3_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1220 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1221 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp2_, &_inner_error_);
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12084 "tracker-sparql-expression.c"
		} else {
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1222 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12092 "tracker-sparql-expression.c"
		}
	}
#line 1223 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 12097 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PLUS, &_inner_error_);
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12112 "tracker-sparql-expression.c"
			} else {
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12120 "tracker-sparql-expression.c"
			}
		}
#line 1224 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp5_) {
#line 12125 "tracker-sparql-expression.c"
			TrackerPropertyType _tmp6_;
			gboolean _tmp7_ = FALSE;
			GString* _tmp9_;
			glong _tmp10_;
			GString* _tmp11_;
			GString* _tmp12_;
			TrackerPropertyType _tmp13_ = 0;
			TrackerPropertyType _tmp14_;
			gboolean _tmp15_ = FALSE;
			GString* _tmp17_;
#line 1225 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = optype;
#line 1225 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_maybe_numeric (self, _tmp6_);
#line 1225 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp7_) {
#line 12142 "tracker-sparql-expression.c"
				GError* _tmp8_ = NULL;
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp8_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp8_;
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12154 "tracker-sparql-expression.c"
				} else {
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1226 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12162 "tracker-sparql-expression.c"
				}
			}
#line 1228 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1228 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = begin;
#line 1228 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_insert (_tmp9_, (gssize) _tmp10_, "(");
#line 1229 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = sql;
#line 1229 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp11_, " + ");
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = sql;
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp13_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp12_, &_inner_error_);
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp14_ = _tmp13_;
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12189 "tracker-sparql-expression.c"
				} else {
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12197 "tracker-sparql-expression.c"
				}
			}
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp15_ = tracker_sparql_expression_maybe_numeric (self, _tmp14_);
#line 1230 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp15_) {
#line 12204 "tracker-sparql-expression.c"
				GError* _tmp16_ = NULL;
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp16_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_inner_error_ = _tmp16_;
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12216 "tracker-sparql-expression.c"
				} else {
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1231 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12224 "tracker-sparql-expression.c"
				}
			}
#line 1233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1233 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp17_, ")");
#line 12231 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp18_ = FALSE;
			gboolean _tmp19_;
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_MINUS, &_inner_error_);
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = _tmp18_;
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12247 "tracker-sparql-expression.c"
				} else {
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12255 "tracker-sparql-expression.c"
				}
			}
#line 1234 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp19_) {
#line 12260 "tracker-sparql-expression.c"
				TrackerPropertyType _tmp20_;
				gboolean _tmp21_ = FALSE;
				GString* _tmp23_;
				glong _tmp24_;
				GString* _tmp25_;
				GString* _tmp26_;
				TrackerPropertyType _tmp27_ = 0;
				TrackerPropertyType _tmp28_;
				gboolean _tmp29_ = FALSE;
				GString* _tmp31_;
#line 1235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp20_ = optype;
#line 1235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp21_ = tracker_sparql_expression_maybe_numeric (self, _tmp20_);
#line 1235 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp21_) {
#line 12277 "tracker-sparql-expression.c"
					GError* _tmp22_ = NULL;
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp22_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp22_;
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12289 "tracker-sparql-expression.c"
					} else {
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1236 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12297 "tracker-sparql-expression.c"
					}
				}
#line 1238 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp23_ = sql;
#line 1238 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp24_ = begin;
#line 1238 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_insert (_tmp23_, (gssize) _tmp24_, "(");
#line 1239 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = sql;
#line 1239 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp25_, " - ");
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = sql;
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = tracker_sparql_expression_translate_multiplicative_expression (self, _tmp26_, &_inner_error_);
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = _tmp27_;
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12324 "tracker-sparql-expression.c"
					} else {
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12332 "tracker-sparql-expression.c"
					}
				}
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = tracker_sparql_expression_maybe_numeric (self, _tmp28_);
#line 1240 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (!_tmp29_) {
#line 12339 "tracker-sparql-expression.c"
					GError* _tmp30_ = NULL;
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp30_ = tracker_sparql_expression_get_error (self, "expected numeric operand");
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_inner_error_ = _tmp30_;
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12351 "tracker-sparql-expression.c"
					} else {
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1241 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 12359 "tracker-sparql-expression.c"
					}
				}
#line 1243 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = sql;
#line 1243 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_string_append (_tmp31_, ")");
#line 12366 "tracker-sparql-expression.c"
			} else {
#line 1245 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 12370 "tracker-sparql-expression.c"
			}
		}
	}
#line 1248 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1248 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12378 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_numeric_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	TrackerPropertyType _tmp1_ = 0;
	TrackerPropertyType _tmp2_;
	GError * _inner_error_ = NULL;
#line 1251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1251 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_translate_additive_expression (self, _tmp0_, &_inner_error_);
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12406 "tracker-sparql-expression.c"
		} else {
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12414 "tracker-sparql-expression.c"
		}
	}
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 1252 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12421 "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_;
	glong _tmp1_;
	GString* _tmp2_;
	const gchar* _tmp3_;
	GString* _tmp4_;
	TrackerPropertyType _tmp5_ = 0;
	TrackerPropertyType op2type;
	GString* _tmp6_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	TrackerPropertyType _tmp9_;
	gboolean _tmp10_;
	gboolean _tmp14_;
	GError * _inner_error_ = NULL;
#line 1255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1255 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (operator != NULL, 0);
#line 1256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = begin;
#line 1256 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_insert (_tmp0_, (gssize) _tmp1_, "(");
#line 1257 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1257 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = operator;
#line 1257 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, _tmp3_);
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = sql;
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = tracker_sparql_expression_translate_numeric_expression (self, _tmp4_, &_inner_error_);
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	op2type = _tmp5_;
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12473 "tracker-sparql-expression.c"
		} else {
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1258 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12481 "tracker-sparql-expression.c"
		}
	}
#line 1259 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = sql;
#line 1259 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp6_, ")");
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = op1type;
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp9_ == TRACKER_PROPERTY_TYPE_DATETIME) {
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = op2type == TRACKER_PROPERTY_TYPE_STRING;
#line 12494 "tracker-sparql-expression.c"
	} else {
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = FALSE;
#line 12498 "tracker-sparql-expression.c"
	}
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = _tmp8_;
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp10_) {
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = TRUE;
#line 12506 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp11_ = FALSE;
		TrackerPropertyType _tmp12_;
		gboolean _tmp13_;
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = op1type;
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp12_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = op2type == TRACKER_PROPERTY_TYPE_DATETIME;
#line 12517 "tracker-sparql-expression.c"
		} else {
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp11_ = FALSE;
#line 12521 "tracker-sparql-expression.c"
		}
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _tmp11_;
#line 1261 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = _tmp13_;
#line 12527 "tracker-sparql-expression.c"
	}
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp14_ = _tmp7_;
#line 1260 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp14_) {
#line 12533 "tracker-sparql-expression.c"
		TrackerSparqlQuery* _tmp15_;
		GList* _tmp16_;
		guint _tmp17_ = 0U;
		guint _tmp18_;
#line 1263 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = self->priv->query;
#line 1263 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp16_ = _tmp15_->bindings;
#line 1263 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp17_ = g_list_length (_tmp16_);
#line 1263 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp18_ = n_bindings;
#line 1263 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp17_ == (_tmp18_ + 1)) {
#line 12548 "tracker-sparql-expression.c"
			TrackerSparqlQuery* _tmp19_;
			GList* _tmp20_;
			GList* _tmp21_ = NULL;
			gconstpointer _tmp22_;
#line 1265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = self->priv->query;
#line 1265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = _tmp19_->bindings;
#line 1265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = g_list_last (_tmp20_);
#line 1265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = _tmp21_->data;
#line 1265 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			((TrackerSparqlDataBinding*) ((TrackerSparqlLiteralBinding*) _tmp22_))->data_type = TRACKER_PROPERTY_TYPE_DATETIME;
#line 12563 "tracker-sparql-expression.c"
		}
	} else {
		gboolean _tmp23_ = FALSE;
		gboolean _tmp24_ = FALSE;
		TrackerPropertyType _tmp25_;
		gboolean _tmp26_;
		gboolean _tmp30_;
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp25_ = op1type;
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp25_ == TRACKER_PROPERTY_TYPE_DATE) {
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = op2type == TRACKER_PROPERTY_TYPE_STRING;
#line 12577 "tracker-sparql-expression.c"
		} else {
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = FALSE;
#line 12581 "tracker-sparql-expression.c"
		}
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp26_ = _tmp24_;
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp26_) {
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = TRUE;
#line 12589 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp27_ = FALSE;
			TrackerPropertyType _tmp28_;
			gboolean _tmp29_;
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp28_ = op1type;
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp28_ == TRACKER_PROPERTY_TYPE_STRING) {
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = op2type == TRACKER_PROPERTY_TYPE_DATE;
#line 12600 "tracker-sparql-expression.c"
			} else {
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = FALSE;
#line 12604 "tracker-sparql-expression.c"
			}
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp29_ = _tmp27_;
#line 1268 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = _tmp29_;
#line 12610 "tracker-sparql-expression.c"
		}
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp30_ = _tmp23_;
#line 1267 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp30_) {
#line 12616 "tracker-sparql-expression.c"
			TrackerSparqlQuery* _tmp31_;
			GList* _tmp32_;
			guint _tmp33_ = 0U;
			guint _tmp34_;
#line 1270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp31_ = self->priv->query;
#line 1270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp32_ = _tmp31_->bindings;
#line 1270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp33_ = g_list_length (_tmp32_);
#line 1270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp34_ = n_bindings;
#line 1270 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp33_ == (_tmp34_ + 1)) {
#line 12631 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp35_;
				GList* _tmp36_;
				GList* _tmp37_ = NULL;
				gconstpointer _tmp38_;
#line 1272 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp35_ = self->priv->query;
#line 1272 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp36_ = _tmp35_->bindings;
#line 1272 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp37_ = g_list_last (_tmp36_);
#line 1272 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp38_ = _tmp37_->data;
#line 1272 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				((TrackerSparqlDataBinding*) ((TrackerSparqlLiteralBinding*) _tmp38_))->data_type = TRACKER_PROPERTY_TYPE_DATE;
#line 12646 "tracker-sparql-expression.c"
			}
		}
	}
#line 1275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1275 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12654 "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;
	gboolean _tmp0_;
	GString* _tmp2_;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_;
	GString* _tmp19_;
	GError * _inner_error_ = NULL;
#line 1278 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1278 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1280 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	in_variable_count = 0;
#line 1282 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = not;
#line 1282 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_) {
#line 12677 "tracker-sparql-expression.c"
		GString* _tmp1_;
#line 1283 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 1283 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp1_, " NOT");
#line 12683 "tracker-sparql-expression.c"
	}
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12695 "tracker-sparql-expression.c"
		} else {
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1286 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12703 "tracker-sparql-expression.c"
		}
	}
#line 1287 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1287 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp2_, " IN (");
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = _tmp3_;
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12722 "tracker-sparql-expression.c"
		} else {
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12730 "tracker-sparql-expression.c"
		}
	}
#line 1288 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (!_tmp4_) {
#line 12735 "tracker-sparql-expression.c"
		gint _tmp5_;
		GString* _tmp6_;
#line 1289 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = in_variable_count;
#line 1289 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		in_variable_count = _tmp5_ + 1;
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_translate_expression (self, _tmp6_, &_inner_error_);
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12754 "tracker-sparql-expression.c"
			} else {
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1290 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12762 "tracker-sparql-expression.c"
			}
		}
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		while (TRUE) {
#line 12767 "tracker-sparql-expression.c"
			gboolean _tmp7_ = FALSE;
			gboolean _tmp8_;
			GString* _tmp9_;
			gint _tmp10_;
			gboolean _tmp11_ = FALSE;
			gint _tmp12_;
			gboolean _tmp16_;
			GString* _tmp18_;
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_);
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp8_ = _tmp7_;
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12788 "tracker-sparql-expression.c"
				} else {
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12796 "tracker-sparql-expression.c"
				}
			}
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (!_tmp8_) {
#line 1291 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				break;
#line 12803 "tracker-sparql-expression.c"
			}
#line 1292 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp9_ = sql;
#line 1292 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_string_append (_tmp9_, ", ");
#line 1294 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp10_ = in_variable_count;
#line 1294 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			in_variable_count = _tmp10_ + 1;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp12_ = in_variable_count;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp12_ > TRACKER_SPARQL_EXPRESSION_MAX_VARIABLES_FOR_IN) {
#line 12817 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp13_;
				gboolean _tmp14_;
				gboolean _tmp15_;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp13_ = self->priv->query;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp14_ = tracker_sparql_query_get_no_cache (_tmp13_);
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp15_ = _tmp14_;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = !_tmp15_;
#line 12829 "tracker-sparql-expression.c"
			} else {
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp11_ = FALSE;
#line 12833 "tracker-sparql-expression.c"
			}
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = _tmp11_;
#line 1296 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp16_) {
#line 12839 "tracker-sparql-expression.c"
				TrackerSparqlQuery* _tmp17_;
#line 1297 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp17_ = self->priv->query;
#line 1297 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				tracker_sparql_query_set_no_cache (_tmp17_, TRUE);
#line 12845 "tracker-sparql-expression.c"
			}
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = sql;
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			tracker_sparql_expression_translate_expression (self, _tmp18_, &_inner_error_);
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12859 "tracker-sparql-expression.c"
				} else {
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1300 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 12867 "tracker-sparql-expression.c"
				}
			}
		}
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12881 "tracker-sparql-expression.c"
			} else {
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1302 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 12889 "tracker-sparql-expression.c"
			}
		}
	}
#line 1304 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp19_ = sql;
#line 1304 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_string_append (_tmp19_, ")");
#line 1306 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = TRACKER_PROPERTY_TYPE_BOOLEAN;
#line 1306 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 12901 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_relational_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	TrackerSparqlQuery* _tmp2_;
	GList* _tmp3_;
	guint _tmp4_ = 0U;
	guint n_bindings;
	GString* _tmp5_;
	TrackerPropertyType _tmp6_ = 0;
	TrackerPropertyType optype;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_;
	GError * _inner_error_ = NULL;
#line 1309 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1309 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1310 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1312 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = self->priv->query;
#line 1312 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = _tmp2_->bindings;
#line 1312 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = g_list_length (_tmp3_);
#line 1312 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	n_bindings = _tmp4_;
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp5_ = sql;
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp6_ = tracker_sparql_expression_translate_numeric_expression (self, _tmp5_, &_inner_error_);
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp6_;
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12952 "tracker-sparql-expression.c"
		} else {
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1313 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12960 "tracker-sparql-expression.c"
		}
	}
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp7_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_GE, &_inner_error_);
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp8_ = _tmp7_;
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12975 "tracker-sparql-expression.c"
		} else {
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 12983 "tracker-sparql-expression.c"
		}
	}
#line 1314 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp8_) {
#line 12988 "tracker-sparql-expression.c"
		GString* _tmp9_;
		glong _tmp10_;
		guint _tmp11_;
		TrackerPropertyType _tmp12_;
		TrackerPropertyType _tmp13_ = 0;
		TrackerPropertyType _tmp14_;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = sql;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = begin;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = n_bindings;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = optype;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = tracker_sparql_expression_process_relational_expression (self, _tmp9_, _tmp10_, _tmp11_, _tmp12_, " >= ", &_inner_error_);
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = _tmp13_;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13015 "tracker-sparql-expression.c"
			} else {
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13023 "tracker-sparql-expression.c"
			}
		}
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _tmp14_;
#line 1315 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 13030 "tracker-sparql-expression.c"
	} else {
		gboolean _tmp15_ = FALSE;
		gboolean _tmp16_;
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_EQ, &_inner_error_);
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp16_ = _tmp15_;
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13046 "tracker-sparql-expression.c"
			} else {
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13054 "tracker-sparql-expression.c"
			}
		}
#line 1316 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp16_) {
#line 13059 "tracker-sparql-expression.c"
			GString* _tmp17_;
			glong _tmp18_;
			guint _tmp19_;
			TrackerPropertyType _tmp20_;
			TrackerPropertyType _tmp21_ = 0;
			TrackerPropertyType _tmp22_;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp17_ = sql;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp18_ = begin;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp19_ = n_bindings;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp20_ = optype;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp21_ = tracker_sparql_expression_process_relational_expression (self, _tmp17_, _tmp18_, _tmp19_, _tmp20_, " = ", &_inner_error_);
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp22_ = _tmp21_;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13086 "tracker-sparql-expression.c"
				} else {
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13094 "tracker-sparql-expression.c"
				}
			}
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp22_;
#line 1317 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 13101 "tracker-sparql-expression.c"
		} else {
			gboolean _tmp23_ = FALSE;
			gboolean _tmp24_;
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp23_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_NE, &_inner_error_);
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp24_ = _tmp23_;
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13117 "tracker-sparql-expression.c"
				} else {
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 13125 "tracker-sparql-expression.c"
				}
			}
#line 1318 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_tmp24_) {
#line 13130 "tracker-sparql-expression.c"
				GString* _tmp25_;
				glong _tmp26_;
				guint _tmp27_;
				TrackerPropertyType _tmp28_;
				TrackerPropertyType _tmp29_ = 0;
				TrackerPropertyType _tmp30_;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp25_ = sql;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp26_ = begin;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp27_ = n_bindings;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp28_ = optype;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp29_ = tracker_sparql_expression_process_relational_expression (self, _tmp25_, _tmp26_, _tmp27_, _tmp28_, " <> ", &_inner_error_);
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp30_ = _tmp29_;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13157 "tracker-sparql-expression.c"
					} else {
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13165 "tracker-sparql-expression.c"
					}
				}
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				result = _tmp30_;
#line 1319 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return result;
#line 13172 "tracker-sparql-expression.c"
			} else {
				gboolean _tmp31_ = FALSE;
				gboolean _tmp32_;
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp31_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_LT, &_inner_error_);
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tmp32_ = _tmp31_;
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_ != NULL) {
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_propagate_error (error, _inner_error_);
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13188 "tracker-sparql-expression.c"
					} else {
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						g_clear_error (&_inner_error_);
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return 0;
#line 13196 "tracker-sparql-expression.c"
					}
				}
#line 1320 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_tmp32_) {
#line 13201 "tracker-sparql-expression.c"
					GString* _tmp33_;
					glong _tmp34_;
					guint _tmp35_;
					TrackerPropertyType _tmp36_;
					TrackerPropertyType _tmp37_ = 0;
					TrackerPropertyType _tmp38_;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp33_ = sql;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp34_ = begin;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp35_ = n_bindings;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp36_ = optype;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp37_ = tracker_sparql_expression_process_relational_expression (self, _tmp33_, _tmp34_, _tmp35_, _tmp36_, " < ", &_inner_error_);
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp38_ = _tmp37_;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 13228 "tracker-sparql-expression.c"
						} else {
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 13236 "tracker-sparql-expression.c"
						}
					}
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					result = _tmp38_;
#line 1321 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return result;
#line 13243 "tracker-sparql-expression.c"
				} else {
					gboolean _tmp39_ = FALSE;
					gboolean _tmp40_;
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp39_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_LE, &_inner_error_);
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					_tmp40_ = _tmp39_;
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_inner_error_ != NULL) {
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_propagate_error (error, _inner_error_);
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 13259 "tracker-sparql-expression.c"
						} else {
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							g_clear_error (&_inner_error_);
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return 0;
#line 13267 "tracker-sparql-expression.c"
						}
					}
#line 1322 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					if (_tmp40_) {
#line 13272 "tracker-sparql-expression.c"
						GString* _tmp41_;
						glong _tmp42_;
						guint _tmp43_;
						TrackerPropertyType _tmp44_;
						TrackerPropertyType _tmp45_ = 0;
						TrackerPropertyType _tmp46_;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp41_ = sql;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp42_ = begin;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp43_ = n_bindings;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp44_ = optype;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp45_ = tracker_sparql_expression_process_relational_expression (self, _tmp41_, _tmp42_, _tmp43_, _tmp44_, " <= ", &_inner_error_);
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp46_ = _tmp45_;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 13299 "tracker-sparql-expression.c"
							} else {
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 13307 "tracker-sparql-expression.c"
							}
						}
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						result = _tmp46_;
#line 1323 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						return result;
#line 13314 "tracker-sparql-expression.c"
					} else {
						gboolean _tmp47_ = FALSE;
						gboolean _tmp48_;
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp47_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_GT, &_inner_error_);
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						_tmp48_ = _tmp47_;
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_inner_error_ != NULL) {
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_propagate_error (error, _inner_error_);
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 13330 "tracker-sparql-expression.c"
							} else {
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								g_clear_error (&_inner_error_);
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return 0;
#line 13338 "tracker-sparql-expression.c"
							}
						}
#line 1324 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
						if (_tmp48_) {
#line 13343 "tracker-sparql-expression.c"
							GString* _tmp49_;
							glong _tmp50_;
							guint _tmp51_;
							TrackerPropertyType _tmp52_;
							TrackerPropertyType _tmp53_ = 0;
							TrackerPropertyType _tmp54_;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp49_ = sql;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp50_ = begin;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp51_ = n_bindings;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp52_ = optype;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp53_ = tracker_sparql_expression_process_relational_expression (self, _tmp49_, _tmp50_, _tmp51_, _tmp52_, " > ", &_inner_error_);
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp54_ = _tmp53_;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 13370 "tracker-sparql-expression.c"
								} else {
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 13378 "tracker-sparql-expression.c"
								}
							}
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							result = _tmp54_;
#line 1325 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							return result;
#line 13385 "tracker-sparql-expression.c"
						} else {
							gboolean _tmp55_ = FALSE;
							gboolean _tmp56_;
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp55_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_IN, &_inner_error_);
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							_tmp56_ = _tmp55_;
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_inner_error_ != NULL) {
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_propagate_error (error, _inner_error_);
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 13401 "tracker-sparql-expression.c"
								} else {
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									g_clear_error (&_inner_error_);
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return 0;
#line 13409 "tracker-sparql-expression.c"
								}
							}
#line 1326 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
							if (_tmp56_) {
#line 13414 "tracker-sparql-expression.c"
								GString* _tmp57_;
								TrackerPropertyType _tmp58_ = 0;
								TrackerPropertyType _tmp59_;
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp57_ = sql;
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp58_ = tracker_sparql_expression_translate_in (self, _tmp57_, FALSE, &_inner_error_);
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp59_ = _tmp58_;
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 13432 "tracker-sparql-expression.c"
									} else {
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 13440 "tracker-sparql-expression.c"
									}
								}
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								result = _tmp59_;
#line 1327 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								return result;
#line 13447 "tracker-sparql-expression.c"
							} else {
								gboolean _tmp60_ = FALSE;
								gboolean _tmp61_;
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp60_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_NOT, &_inner_error_);
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								_tmp61_ = _tmp60_;
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_inner_error_ != NULL) {
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_propagate_error (error, _inner_error_);
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 13463 "tracker-sparql-expression.c"
									} else {
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										g_clear_error (&_inner_error_);
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										return 0;
#line 13471 "tracker-sparql-expression.c"
									}
								}
#line 1328 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
								if (_tmp61_) {
#line 13476 "tracker-sparql-expression.c"
									GString* _tmp62_;
									TrackerPropertyType _tmp63_ = 0;
									TrackerPropertyType _tmp64_;
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OP_IN, &_inner_error_);
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 13490 "tracker-sparql-expression.c"
										} else {
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 1329 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 13498 "tracker-sparql-expression.c"
										}
									}
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp62_ = sql;
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp63_ = tracker_sparql_expression_translate_in (self, _tmp62_, TRUE, &_inner_error_);
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									_tmp64_ = _tmp63_;
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									if (_inner_error_ != NULL) {
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
										if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_propagate_error (error, _inner_error_);
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 13515 "tracker-sparql-expression.c"
										} else {
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											g_clear_error (&_inner_error_);
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
											return 0;
#line 13523 "tracker-sparql-expression.c"
										}
									}
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									result = _tmp64_;
#line 1330 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
									return result;
#line 13530 "tracker-sparql-expression.c"
								}
							}
						}
					}
				}
			}
		}
	}
#line 1332 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1332 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13543 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_value_logical (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	TrackerPropertyType _tmp1_ = 0;
	TrackerPropertyType _tmp2_;
	GError * _inner_error_ = NULL;
#line 1335 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1335 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_translate_relational_expression (self, _tmp0_, &_inner_error_);
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13571 "tracker-sparql-expression.c"
		} else {
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13579 "tracker-sparql-expression.c"
		}
	}
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 1336 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13586 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_conditional_and_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	TrackerPropertyType _tmp3_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1339 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1339 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1340 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1340 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1340 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_value_logical (self, _tmp2_, &_inner_error_);
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13623 "tracker-sparql-expression.c"
		} else {
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1341 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13631 "tracker-sparql-expression.c"
		}
	}
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 13636 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
		TrackerPropertyType _tmp6_;
		GString* _tmp8_;
		glong _tmp9_;
		GString* _tmp10_;
		GString* _tmp11_;
		TrackerPropertyType _tmp12_ = 0;
		TrackerPropertyType _tmp13_;
		GString* _tmp14_;
		TrackerPropertyType _tmp15_;
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_AND, &_inner_error_);
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13660 "tracker-sparql-expression.c"
			} else {
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13668 "tracker-sparql-expression.c"
			}
		}
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (!_tmp5_) {
#line 1342 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 13675 "tracker-sparql-expression.c"
		}
#line 1343 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1343 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 13681 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13693 "tracker-sparql-expression.c"
			} else {
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1344 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13701 "tracker-sparql-expression.c"
			}
		}
#line 1346 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = sql;
#line 1346 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = begin;
#line 1346 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp8_, (gssize) _tmp9_, "(");
#line 1347 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = sql;
#line 1347 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp10_, " AND ");
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = sql;
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_expression_translate_value_logical (self, _tmp11_, &_inner_error_);
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _tmp12_;
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13728 "tracker-sparql-expression.c"
			} else {
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13736 "tracker-sparql-expression.c"
			}
		}
#line 1348 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp13_;
#line 1349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = sql;
#line 1349 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp14_, ")");
#line 1350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = optype;
#line 1350 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 13749 "tracker-sparql-expression.c"
			GError* _tmp16_ = NULL;
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp16_;
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13761 "tracker-sparql-expression.c"
			} else {
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1351 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13769 "tracker-sparql-expression.c"
			}
		}
	}
#line 1354 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1354 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13777 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_conditional_or_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	gssize _tmp1_;
	glong begin;
	GString* _tmp2_;
	TrackerPropertyType _tmp3_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1357 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1357 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_->len;
#line 1358 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	begin = (glong) _tmp1_;
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = sql;
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = tracker_sparql_expression_translate_conditional_and_expression (self, _tmp2_, &_inner_error_);
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp3_;
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13814 "tracker-sparql-expression.c"
		} else {
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1359 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13822 "tracker-sparql-expression.c"
		}
	}
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	while (TRUE) {
#line 13827 "tracker-sparql-expression.c"
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
		TrackerPropertyType _tmp6_;
		GString* _tmp8_;
		glong _tmp9_;
		GString* _tmp10_;
		GString* _tmp11_;
		TrackerPropertyType _tmp12_ = 0;
		TrackerPropertyType _tmp13_;
		GString* _tmp14_;
		TrackerPropertyType _tmp15_;
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OP_OR, &_inner_error_);
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = _tmp4_;
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13851 "tracker-sparql-expression.c"
			} else {
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13859 "tracker-sparql-expression.c"
			}
		}
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (!_tmp5_) {
#line 1360 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			break;
#line 13866 "tracker-sparql-expression.c"
		}
#line 1361 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = optype;
#line 1361 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp6_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 13872 "tracker-sparql-expression.c"
			GError* _tmp7_ = NULL;
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp7_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp7_;
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13884 "tracker-sparql-expression.c"
			} else {
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1362 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13892 "tracker-sparql-expression.c"
			}
		}
#line 1364 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = sql;
#line 1364 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp9_ = begin;
#line 1364 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_insert (_tmp8_, (gssize) _tmp9_, "(");
#line 1365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp10_ = sql;
#line 1365 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp10_, " OR ");
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp11_ = sql;
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp12_ = tracker_sparql_expression_translate_conditional_and_expression (self, _tmp11_, &_inner_error_);
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp13_ = _tmp12_;
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13919 "tracker-sparql-expression.c"
			} else {
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13927 "tracker-sparql-expression.c"
			}
		}
#line 1366 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		optype = _tmp13_;
#line 1367 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp14_ = sql;
#line 1367 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp14_, ")");
#line 1368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp15_ = optype;
#line 1368 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_tmp15_ != TRACKER_PROPERTY_TYPE_BOOLEAN) {
#line 13940 "tracker-sparql-expression.c"
			GError* _tmp16_ = NULL;
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp16_ = tracker_sparql_expression_get_error (self, "expected boolean expression");
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_inner_error_ = _tmp16_;
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13952 "tracker-sparql-expression.c"
			} else {
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1369 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 13960 "tracker-sparql-expression.c"
			}
		}
	}
#line 1372 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1372 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 13968 "tracker-sparql-expression.c"
}


TrackerPropertyType tracker_sparql_expression_translate_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	GString* _tmp0_;
	TrackerPropertyType _tmp1_ = 0;
	TrackerPropertyType _tmp2_;
	GError * _inner_error_ = NULL;
#line 1375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1375 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = sql;
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = tracker_sparql_expression_translate_conditional_or_expression (self, _tmp0_, &_inner_error_);
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp2_ = _tmp1_;
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 13996 "tracker-sparql-expression.c"
		} else {
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14004 "tracker-sparql-expression.c"
		}
	}
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = _tmp2_;
#line 1376 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14011 "tracker-sparql-expression.c"
}


static TrackerPropertyType tracker_sparql_expression_translate_bracketted_expression (TrackerSparqlExpression* self, GString* sql, GError** error) {
	TrackerPropertyType result = 0;
	TrackerSparqlTokenType _tmp0_ = 0;
	GString* _tmp9_;
	TrackerPropertyType _tmp10_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1379 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1379 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14036 "tracker-sparql-expression.c"
		} else {
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1380 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14044 "tracker-sparql-expression.c"
		}
	}
#line 1382 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 1382 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp0_ == TRACKER_SPARQL_TOKEN_TYPE_SELECT) {
#line 14051 "tracker-sparql-expression.c"
		GString* _tmp1_;
		TrackerSparqlPattern* _tmp2_;
		TrackerSparqlPattern* _tmp3_;
		GString* _tmp4_;
		TrackerSparqlSelectContext* _tmp5_ = NULL;
		TrackerSparqlSelectContext* select_context;
		GString* _tmp6_;
		TrackerSparqlSelectContext* _tmp7_;
		TrackerPropertyType _tmp8_;
#line 1385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp1_ = sql;
#line 1385 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp1_, "(");
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = tracker_sparql_expression_get_pattern (self);
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp3_ = _tmp2_;
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp4_ = sql;
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp5_ = tracker_sparql_pattern_translate_select (_tmp3_, _tmp4_, TRUE, TRUE, &_inner_error_);
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		select_context = _tmp5_;
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14083 "tracker-sparql-expression.c"
			} else {
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1386 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14091 "tracker-sparql-expression.c"
			}
		}
#line 1387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp6_ = sql;
#line 1387 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp6_, ")");
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_ != NULL) {
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_propagate_error (error, _inner_error_);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14110 "tracker-sparql-expression.c"
			} else {
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				_tracker_sparql_context_unref0 (select_context);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				g_clear_error (&_inner_error_);
#line 1389 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				return 0;
#line 14120 "tracker-sparql-expression.c"
			}
		}
#line 1390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp7_ = select_context;
#line 1390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp8_ = _tmp7_->type;
#line 1390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		result = _tmp8_;
#line 1390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tracker_sparql_context_unref0 (select_context);
#line 1390 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		return result;
#line 14133 "tracker-sparql-expression.c"
	}
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp9_ = sql;
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp10_ = tracker_sparql_expression_translate_expression (self, _tmp9_, &_inner_error_);
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp10_;
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14149 "tracker-sparql-expression.c"
		} else {
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1393 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14157 "tracker-sparql-expression.c"
		}
	}
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14170 "tracker-sparql-expression.c"
		} else {
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1394 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14178 "tracker-sparql-expression.c"
		}
	}
#line 1395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1395 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14185 "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_;
	GString* _tmp3_;
	TrackerPropertyType _tmp4_ = 0;
	TrackerPropertyType optype;
	GError * _inner_error_ = NULL;
#line 1398 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1398 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14211 "tracker-sparql-expression.c"
		} else {
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1399 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14219 "tracker-sparql-expression.c"
		}
	}
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DISTINCT, &_inner_error_);
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp1_ = _tmp0_;
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14234 "tracker-sparql-expression.c"
		} else {
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14242 "tracker-sparql-expression.c"
		}
	}
#line 1400 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_tmp1_) {
#line 14247 "tracker-sparql-expression.c"
		GString* _tmp2_;
#line 1401 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		_tmp2_ = sql;
#line 1401 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		g_string_append (_tmp2_, "DISTINCT ");
#line 14253 "tracker-sparql-expression.c"
	}
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp3_ = sql;
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp4_ = tracker_sparql_expression_translate_expression (self, _tmp3_, &_inner_error_);
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	optype = _tmp4_;
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14269 "tracker-sparql-expression.c"
		} else {
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1403 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14277 "tracker-sparql-expression.c"
		}
	}
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	tracker_sparql_expression_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	if (_inner_error_ != NULL) {
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_propagate_error (error, _inner_error_);
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14290 "tracker-sparql-expression.c"
		} else {
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			g_clear_error (&_inner_error_);
#line 1404 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return 0;
#line 14298 "tracker-sparql-expression.c"
		}
	}
#line 1405 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	result = optype;
#line 1405 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	return result;
#line 14305 "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 1408 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 1408 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	g_return_val_if_fail (sql != NULL, 0);
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	_tmp0_ = tracker_sparql_expression_current (self);
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (_tmp0_) {
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_STR:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANG:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_DATATYPE:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_BOUND:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_IF:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_SAMETERM:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISIRI:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISURI:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISBLANK:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_REGEX:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_EXISTS:
#line 1409 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		case TRACKER_SPARQL_TOKEN_TYPE_NOT:
#line 14349 "tracker-sparql-expression.c"
		{
			GString* _tmp1_;
			TrackerPropertyType _tmp2_ = 0;
			TrackerPropertyType _tmp3_;
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp1_ = sql;
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp2_ = tracker_sparql_expression_translate_primary_expression (self, _tmp1_, &_inner_error_);
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp3_ = _tmp2_;
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14368 "tracker-sparql-expression.c"
				} else {
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14376 "tracker-sparql-expression.c"
				}
			}
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp3_;
#line 1424 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 14383 "tracker-sparql-expression.c"
		}
		default:
		{
			GString* _tmp4_;
			TrackerPropertyType _tmp5_ = 0;
			TrackerPropertyType _tmp6_;
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp4_ = sql;
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp5_ = tracker_sparql_expression_translate_bracketted_expression (self, _tmp4_, &_inner_error_);
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			_tmp6_ = _tmp5_;
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			if (_inner_error_ != NULL) {
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
				if (_inner_error_->domain == TRACKER_SPARQL_ERROR) {
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_propagate_error (error, _inner_error_);
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14404 "tracker-sparql-expression.c"
				} else {
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_critical ("file %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/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					g_clear_error (&_inner_error_);
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
					return 0;
#line 14412 "tracker-sparql-expression.c"
				}
			}
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			result = _tmp6_;
#line 1426 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
			return result;
#line 14419 "tracker-sparql-expression.c"
		}
	}
}


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


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


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


static void tracker_sparql_expression_instance_init (TrackerSparqlExpression * self) {
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self->priv = TRACKER_SPARQL_EXPRESSION_GET_PRIVATE (self);
#line 14477 "tracker-sparql-expression.c"
}


static void tracker_sparql_expression_finalize (GObject* obj) {
	TrackerSparqlExpression * self;
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	self = TRACKER_SPARQL_EXPRESSION (obj);
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	G_OBJECT_CLASS (tracker_sparql_expression_parent_class)->finalize (obj);
#line 14487 "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 = TRACKER_SPARQL_EXPRESSION (object);
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
	switch (property_id) {
#line 14508 "tracker-sparql-expression.c"
		default:
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 20 "/home/juerg/Code/tracker/tracker/src/libtracker-data/tracker-sparql-expression.vala"
		break;
#line 14514 "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;
}



