Simple Question (Direct)
Simple Question
Q13633
P6
Q502895
USER
Who is the head of the government of Sant Feliu de Buixalleu ?
(Q13633,P6,c(Q502895))
action filter_type
action find
entity Q13633
relation P6
type Q502895
['Q13633', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q13633 property:P6 ?s }
Sant Feliu de Buixalleu
action filter_type
action find
entity Sant Feliu de Buixalleu
relation head of government
type common name
['Sant Feliu de Buixalleu', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Sant_Feliu_de_Buixalleu property:head_of_government ?s }
[]
common name
Q14076262
SYSTEM
Josep Roquet Avellaneda
Q14076262
(Q13633,P6,c(Q502895))
action filter_type
action find
entity Q13633
relation P6
type Q502895
The head of the government of Sant Feliu de Buixalleu is [ANSWER]
['Q13633', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q13633 property:P6 ?s }
Josep Roquet Avellaneda
The head of the government of Sant Feliu de Buixalleu is Josep Roquet Avellaneda
Josep Roquet Avellaneda
action filter_type
action find
entity Sant Feliu de Buixalleu
relation head of government
type common name
['Sant Feliu de Buixalleu', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Sant_Feliu_de_Buixalleu property:head_of_government ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13633
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
(Q14076262,P1313,c(Q12737077))
action filter_type
action find
entity Q13633
relation P1313
type Q12737077
['Q14076262', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q13633 property:P1313 ?x }
Sant Feliu de Buixalleu
action filter_type
action find
entity Sant Feliu de Buixalleu
relation office held by head of government
type occupation
['Josep Roquet Avellaneda', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Sant_Feliu_de_Buixalleu property:office_held_by_head_of_government ?x }
[]
occupation
Q26690929
SYSTEM
mayor of San Felíu de Buxalleu
Q26690929
(Q14076262,P1313,c(Q12737077))
action filter_type
action find
entity Q13633
relation P1313
type Q12737077
[ANSWER] is fulfilled by that political territory
['Q14076262', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q13633 property:P1313 ?x }
mayor of San Felíu de Buxalleu
Mayor of San Felíu de Buxalleu is fulfilled by that political territory
mayor of San Felíu de Buxalleu
action filter_type
action find
entity Sant Feliu de Buixalleu
relation office held by head of government
type occupation
['Josep Roquet Avellaneda', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Sant_Feliu_de_Buixalleu property:office_held_by_head_of_government ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q26690929 Q13633
P1313
Q1048835
USER
Does Sant Feliu de Buixalleu have that occupation as title of head of government ?
(Q13633,P1313,Q26690929)
action is_in
entity Q26690929
action find
entity Q13633
relation P1313
['Q13633', 'P1313', 'Q26690929']
ASK WHERE { resource:Q13633 property:P1313 resource:Q26690929 }
mayor of San Felíu de Buxalleu Sant Feliu de Buixalleu
action is_in
entity mayor of San Felíu de Buxalleu
action find
entity Sant Feliu de Buixalleu
relation office held by head of government
['Sant Feliu de Buixalleu', 'office held by head of government', 'mayor of San Felíu de Buxalleu']
ASK WHERE { resource:Sant_Feliu_de_Buixalleu property:office_held_by_head_of_government resource:mayor_of_San_Felíu_de_Buxalleu }
[]
political territorial entity
SYSTEM
YES
(Q13633,P1313,Q26690929)
action is_in
entity Q26690929
action find
entity Q13633
relation P1313
[ANSWER]
['Q13633', 'P1313', 'Q26690929']
ASK WHERE { resource:Q13633 property:P1313 resource:Q26690929 }
Yes
action is_in
entity mayor of San Felíu de Buxalleu
action find
entity Sant Feliu de Buixalleu
relation office held by head of government
['Sant Feliu de Buixalleu', 'office held by head of government', 'mayor of San Felíu de Buxalleu']
ASK WHERE { resource:Sant_Feliu_de_Buixalleu property:office_held_by_head_of_government resource:mayor_of_San_Felíu_de_Buxalleu }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26700740 Q26690929
P1313
Q1048835
USER
Which political territories have mayor of San Felíu de Buxalleu or mayor of Duruelo de la Sierra as position of head of government ?
OR((c(Q1048835),P1313,Q26690929), (c(Q1048835),P1313,Q26700740))
action filter_type
action union
action find_reverse
entity Q26690929
relation P1313
action find_reverse
entity Q26700740
relation P1313
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26690929'], [{'concept': 'Q1048835'}, 'P1313', 'Q26700740']]}
SELECT DISTINCT ?m WHERE { { ?m property:P1313 ?x . VALUES ( ?x ) { ( resource:Q26690929 ) ( resource:Q26700740 ) } } . ?m rdf:type ontology:Q1048835 }
mayor of Duruelo de la Sierra mayor of San Felíu de Buxalleu
action filter_type
action union
action find_reverse
entity mayor of San Felíu de Buxalleu
relation office held by head of government
action find_reverse
entity mayor of Duruelo de la Sierra
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of San Felíu de Buxalleu'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Duruelo de la Sierra']]}
SELECT DISTINCT ?m WHERE { { ?m property:office_held_by_head_of_government ?x . VALUES ( ?x ) { ( resource:mayor_of_San_Felíu_de_Buxalleu ) ( resource:mayor_of_Duruelo_de_la_Sierra ) } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q832246 Q13633
SYSTEM
Duruelo de la Sierra, Sant Feliu de Buixalleu
Q832246 Q13633
OR((c(Q1048835),P1313,Q26690929), (c(Q1048835),P1313,Q26700740))
action filter_type
action union
action find_reverse
entity Q26690929
relation P1313
action find_reverse
entity Q26700740
relation P1313
type Q1048835
[ANSWERS] have mayor of San Felíu de Buxalleu or mayor of Duruelo de la Sierra as position of head of government
{'OR': [[{'concept': 'Q1048835'}, 'P1313', 'Q26690929'], [{'concept': 'Q1048835'}, 'P1313', 'Q26700740']]}
SELECT DISTINCT ?m WHERE { { ?m property:P1313 ?x . VALUES ( ?x ) { ( resource:Q26690929 ) ( resource:Q26700740 ) } } . ?m rdf:type ontology:Q1048835 }
Duruelo de la Sierra Sant Feliu de Buixalleu
Duruelo de la Sierra and Sant Feliu de Buixalleu have mayor of San Felíu de Buxalleu or mayor of Duruelo de la Sierra as position of head of government
Duruelo de la Sierra Sant Feliu de Buixalleu
action filter_type
action union
action find_reverse
entity mayor of San Felíu de Buxalleu
relation office held by head of government
action find_reverse
entity mayor of Duruelo de la Sierra
relation office held by head of government
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of San Felíu de Buxalleu'], [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Duruelo de la Sierra']]}
SELECT DISTINCT ?m WHERE { { ?m property:office_held_by_head_of_government ?x . VALUES ( ?x ) { ( resource:mayor_of_San_Felíu_de_Buxalleu ) ( resource:mayor_of_Duruelo_de_la_Sierra ) } } . ?m rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q50197 Q13633
P17
Q15617994
USER
Which administrative territories are Sant Feliu de Buixalleu or Ferentino located in ?
OR((Q13633,P17,c(Q15617994)), (Q50197,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13633
relation P17
action find
entity Q50197
relation P17
type Q15617994
{'OR': [['Q13633', 'P17', {'concept': 'Q15617994'}], ['Q50197', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:P17 ?j . VALUES ( ?r ) { ( resource:Q13633 ) ( resource:Q50197 ) } } . ?j rdf:type ontology:Q15617994 }
Ferentino Sant Feliu de Buixalleu
action filter_type
action union
action find
entity Sant Feliu de Buixalleu
relation country
action find
entity Ferentino
relation country
type designation for an administrative territorial entity
{'OR': [['Sant Feliu de Buixalleu', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ferentino', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:country ?j . VALUES ( ?r ) { ( resource:Sant_Feliu_de_Buixalleu ) ( resource:Ferentino ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q38
SYSTEM
Spain, Italy
Q29 Q38
OR((Q13633,P17,c(Q15617994)), (Q50197,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13633
relation P17
action find
entity Q50197
relation P17
type Q15617994
[ANSWERS] are Sant Feliu de Buixalleu or Ferentino located in
{'OR': [['Q13633', 'P17', {'concept': 'Q15617994'}], ['Q50197', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:P17 ?j . VALUES ( ?r ) { ( resource:Q13633 ) ( resource:Q50197 ) } } . ?j rdf:type ontology:Q15617994 }
Spain Italy
Spain and Italy are Sant Feliu de Buixalleu or Ferentino located in
Spain Italy
action filter_type
action union
action find
entity Sant Feliu de Buixalleu
relation country
action find
entity Ferentino
relation country
type designation for an administrative territorial entity
{'OR': [['Sant Feliu de Buixalleu', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ferentino', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:country ?j . VALUES ( ?r ) { ( resource:Sant_Feliu_de_Buixalleu ) ( resource:Ferentino ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q29 Q38
P138
Q811979
USER
Which architectural structures are the eponym of those administrative territories ?
(c(Q811979),P138,Q29) (c(Q811979),P138,Q38)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q38']
SELECT DISTINCT ?s WHERE { ?s property:P138 ?x . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q38 ) } . ?s rdf:type ontology:Q811979 }
Spain Italy
action filter_type
action find_reverse
entity prev_answer
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Italy']
SELECT DISTINCT ?s WHERE { ?s property:named_after ?x . VALUES ( ?x ) { ( resource:Spain ) ( resource:Italy ) } . ?s rdf:type ontology:architectural_structure }
[]
architectural structure
Q1966521 Q956018 Q2013874
SYSTEM
place d'Italie, Plaza de España, Plaça d'Espanya
Q2013874 Q1326261 Q956018 Q2532668 Q6079604 Q1966521
(c(Q811979),P138,Q29) (c(Q811979),P138,Q38)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q811979
[ANSWERS] are the eponym of those administrative territories
[{'concept': 'Q811979'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q38']
SELECT DISTINCT ?s WHERE { ?s property:P138 ?x . VALUES ( ?x ) { ( resource:Q29 ) ( resource:Q38 ) } . ?s rdf:type ontology:Q811979 }
Plaça d'Espanya plaza de España Plaza de España Plaza Italia, Buenos Aires Plaza Italia place d'Italie
Place d'Italie, Plaza de España and Plaça d'Espanya are the eponym of those administrative territories
place d'Italie Plaza de España Plaça d'Espanya
action filter_type
action find_reverse
entity prev_answer
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Italy']
SELECT DISTINCT ?s WHERE { ?s property:named_after ?x . VALUES ( ?x ) { ( resource:Spain ) ( resource:Italy ) } . ?s rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1966521 Q956018 Q2013874
P138
Q15617994
USER
Which administrative territories are the etymology of those architectural structures ?
(Q1966521,P138,c(Q15617994)) (Q956018,P138,c(Q15617994)) (Q2013874,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
['Q1966521', 'P138', {'concept': 'Q15617994'}] ['Q956018', 'P138', {'concept': 'Q15617994'}] ['Q2013874', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?w property:P138 ?x . ?x rdf:type ontology:Q15617994 . VALUES ( ?w ) { ( resource:Q2013874 ) ( resource:Q1326261 ) ( resource:Q956018 ) } }
place d'Italie Plaza de España Plaça d'Espanya
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
["place d'Italie", 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Plaza de España', 'named after', {'concept': 'designation for an administrative territorial entity'}] ["Plaça d'Espanya", 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?w property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?w ) { ( resource:Plaça_d'Espanya ) ( resource:plaza_de_España ) ( resource:Plaza_de_España ) } }
[]
designation for an administrative territorial entity
Q38 Q29 Q29
SYSTEM
Spain for 2nd, 3rd, Italy for 1st
Q38 Q29 Q29
(Q1966521,P138,c(Q15617994)) (Q956018,P138,c(Q15617994)) (Q2013874,P138,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P138
type Q15617994
[ANSWERS]
['Q1966521', 'P138', {'concept': 'Q15617994'}] ['Q956018', 'P138', {'concept': 'Q15617994'}] ['Q2013874', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?w property:P138 ?x . ?x rdf:type ontology:Q15617994 . VALUES ( ?w ) { ( resource:Q2013874 ) ( resource:Q1326261 ) ( resource:Q956018 ) } }
Italy Spain Spain
Italy, Spain and Spain are the etymology of those architectural structures
Italy Spain Spain
action filter_type
action find
entity prev_answer
relation named after
type designation for an administrative territorial entity
["place d'Italie", 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Plaza de España', 'named after', {'concept': 'designation for an administrative territorial entity'}] ["Plaça d'Espanya", 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?w property:named_after ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?w ) { ( resource:Plaça_d'Espanya ) ( resource:plaza_de_España ) ( resource:Plaza_de_España ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1966521
P669
Q838948
USER
Which works of art are located on that architectural structure ?
(c(Q838948),P669,Q1966521)
action filter_type
action find_reverse
entity Q1966521
relation P669
type Q838948
[{'concept': 'Q838948'}, 'P669', 'Q1966521']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q838948 . ?j property:P669 resource:Q1966521 }
place d'Italie
action filter_type
action find_reverse
entity place d'Italie
relation located on street
type work of art
[{'concept': 'work of art'}, 'located on street', "place d'Italie"]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:work_of_art . ?j property:located_on_street resource:place_d'Italie }
[]
work of art
Clarification for simple ques.
Q1966521
SYSTEM
Did you mean place d'Italie ?
Q38 Q29 Q29
(c(Q838948),P669,Q38) (c(Q838948),P669,Q29) (c(Q838948),P669,Q29)
[ANSWER]
[{'concept': 'Q838948'}, 'P669', 'Q38'] [{'concept': 'Q838948'}, 'P669', 'Q29'] [{'concept': 'Q838948'}, 'P669', 'Q29']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q838948 . ?j property:P669 resource:Q1966521 }
Italy Spain Spain
Did you mean place d'Italie ?
place d'Italie
[{'concept': 'work of art'}, 'located on street', 'Italy'] [{'concept': 'work of art'}, 'located on street', 'Spain'] [{'concept': 'work of art'}, 'located on street', 'Spain']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:work_of_art . ?j property:located_on_street resource:place_d'Italie }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P669,Q1966521)
[{'concept': 'Q838948'}, 'P669', 'Q1966521']
[{'concept': 'work of art'}, 'located on street', "place d'Italie"]
[]
Q23385498 Q23383642
SYSTEM
The Return of the Prodigal Son, Monument to Maréchal Juin
Q23385498 Q23383642
(c(Q838948),P669,Q1966521)
action filter_type
action find_reverse
entity Q1966521
relation P669
type Q838948
[ANSWERS] are located on that architectural structure
[{'concept': 'Q838948'}, 'P669', 'Q1966521']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q838948 . ?j property:P669 resource:Q1966521 }
The Return of the Prodigal Son Monument to Maréchal Juin
The Return of the Prodigal Son and Monument to Maréchal Juin are located on that architectural structure
The Return of the Prodigal Son Monument to Maréchal Juin
action filter_type
action find_reverse
entity place d'Italie
relation located on street
type work of art
[{'concept': 'work of art'}, 'located on street', "place d'Italie"]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:work_of_art . ?j property:located_on_street resource:place_d'Italie }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q913272 Q13633
P47
Q1048835
USER
Which political territories are bordered by Sant Feliu de Buixalleu or Erandio ?
OR((Q13633,P47,c(Q1048835)), (Q913272,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q13633
relation P47
action find
entity Q913272
relation P47
type Q1048835
{'OR': [['Q13633', 'P47', {'concept': 'Q1048835'}], ['Q913272', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q13633 property:P47 ?d } UNION { resource:Q913272 property:P47 ?d } } }
Erandio Sant Feliu de Buixalleu
action filter_type
action union
action find
entity Sant Feliu de Buixalleu
relation shares border with
action find
entity Erandio
relation shares border with
type political territorial entity
{'OR': [['Sant Feliu de Buixalleu', 'shares border with', {'concept': 'political territorial entity'}], ['Erandio', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Sant_Feliu_de_Buixalleu property:shares_border_with ?d } UNION { resource:Erandio property:shares_border_with ?d } } }
[]
political territorial entity
Q1246777 Q13010 Q942025 Q1228023 Q13637 Q530302 Q13638 Q1242343 Q487801 Q13032
SYSTEM
Some of them are Laukiz, Arbúcies, Sondika, Loiu, Massanes, Leioa, Breda, Berango, Barakaldo, Santa Coloma de Farners
Q13010 Q13073 Q1246777 Q734099 Q13638 Q492420 Q13637 Q13083 Q1242343 Q487801 Q13078 Q13643 Q15441 Q13032 Q942025 Q1228023 Q909707 Q530302
OR((Q13633,P47,c(Q1048835)), (Q913272,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q13633
relation P47
action find
entity Q913272
relation P47
type Q1048835
[ANSWERS] are bordered by Sant Feliu de Buixalleu or Erandio
{'OR': [['Q13633', 'P47', {'concept': 'Q1048835'}], ['Q913272', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q13633 property:P47 ?d } UNION { resource:Q913272 property:P47 ?d } } }
Arbúcies Riells i Viabrea Laukiz Urduliz Breda Getxo Massanes Fogars de la Selva Berango Barakaldo Riudarenes Hostalric Sant Celoni Santa Coloma de Farners Sondika Loiu Sestao Leioa
Laukiz, Arbúcies, Sondika, Loiu, Massanes, Leioa, Breda, Berango, Barakaldo and Santa Coloma de Farners are bordered by Sant Feliu de Buixalleu or Erandio
Laukiz Arbúcies Sondika Loiu Massanes Leioa Breda Berango Barakaldo Santa Coloma de Farners
action filter_type
action union
action find
entity Sant Feliu de Buixalleu
relation shares border with
action find
entity Erandio
relation shares border with
type political territorial entity
{'OR': [['Sant Feliu de Buixalleu', 'shares border with', {'concept': 'political territorial entity'}], ['Erandio', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Sant_Feliu_de_Buixalleu property:shares_border_with ?d } UNION { resource:Erandio property:shares_border_with ?d } } }
[]