Simple Question (Direct)
Simple Question
Q837930
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Barca ?
(Q837930,P1313,c(Q12737077))
action filter_type
action find
entity Q837930
relation P1313
type Q12737077
['Q837930', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q837930 property:P1313 ?m . ?m rdf:type ontology:Q12737077 }
Barca
action filter_type
action find
entity Barca
relation office held by head of government
type occupation
['Barca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Barca property:office_held_by_head_of_government ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q26700842
SYSTEM
mayor of Barca
Q26700842
(Q837930,P1313,c(Q12737077))
action filter_type
action find
entity Q837930
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Barca
['Q837930', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q837930 property:P1313 ?m . ?m rdf:type ontology:Q12737077 }
mayor of Barca
The mayor of Barca serves as the political office that is fulfilled by the head of the government of Barca
mayor of Barca
action filter_type
action find
entity Barca
relation office held by head of government
type occupation
['Barca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Barca property:office_held_by_head_of_government ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q837930
P47
Q1048835
USER
Which political territories have a shared border with that one ?
(Q26700842,P47,c(Q1048835))
action filter_type
action find
entity Q837930
relation P47
type Q1048835
['Q26700842', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q837930 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Barca
action filter_type
action find
entity Barca
relation shares border with
type political territorial entity
['mayor of Barca', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Barca property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5202 Q836175 Q177501
SYSTEM
Almazán, Matamala de Almazán, Caltojar
Q832876 Q831346 Q5202 Q836175 Q177501
(Q26700842,P47,c(Q1048835))
action filter_type
action find
entity Q837930
relation P47
type Q1048835
[ANSWERS] have a shared border with that one
['Q26700842', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q837930 property:P47 ?j . ?j rdf:type ontology:Q1048835 }
Velamazán Villasayas Almazán Matamala de Almazán Caltojar
Almazán, Matamala de Almazán and Caltojar have a shared border with that one
Almazán Matamala de Almazán Caltojar
action filter_type
action find
entity Barca
relation shares border with
type political territorial entity
['mayor of Barca', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Barca property:shares_border_with ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4734504
P47
Q1048835
USER
Are Alonso de Alvarado District next to the border of those ones ?
(Q4734504,P47,Q5202) (Q4734504,P47,Q836175) (Q4734504,P47,Q177501)
action is_in
entity prev_answer
action find
entity Q4734504
relation P47
['Q4734504', 'P47', 'Q5202'] ['Q4734504', 'P47', 'Q836175'] ['Q4734504', 'P47', 'Q177501']
ASK WHERE { VALUES ( ?v ) { ( resource:Q832876 ) ( resource:Q831346 ) ( resource:Q5202 ) } . resource:Q4734504 property:P47 ?v }
Alonso de Alvarado District
action is_in
entity prev_answer
action find
entity Alonso de Alvarado District
relation shares border with
['Alonso de Alvarado District', 'shares border with', 'Almazán'] ['Alonso de Alvarado District', 'shares border with', 'Matamala de Almazán'] ['Alonso de Alvarado District', 'shares border with', 'Caltojar']
ASK WHERE { VALUES ( ?v ) { ( resource:Velamazán ) ( resource:Villasayas ) ( resource:Almazán ) } . resource:Alonso_de_Alvarado_District property:shares_border_with ?v }
[]
political territorial entity
SYSTEM
NO
(Q4734504,P47,Q5202) (Q4734504,P47,Q836175) (Q4734504,P47,Q177501)
action is_in
entity prev_answer
action find
entity Q4734504
relation P47
[ANSWER]
['Q4734504', 'P47', 'Q5202'] ['Q4734504', 'P47', 'Q836175'] ['Q4734504', 'P47', 'Q177501']
ASK WHERE { VALUES ( ?v ) { ( resource:Q832876 ) ( resource:Q831346 ) ( resource:Q5202 ) } . resource:Q4734504 property:P47 ?v }
No
action is_in
entity prev_answer
action find
entity Alonso de Alvarado District
relation shares border with
['Alonso de Alvarado District', 'shares border with', 'Almazán'] ['Alonso de Alvarado District', 'shares border with', 'Matamala de Almazán'] ['Alonso de Alvarado District', 'shares border with', 'Caltojar']
ASK WHERE { VALUES ( ?v ) { ( resource:Velamazán ) ( resource:Villasayas ) ( resource:Almazán ) } . resource:Alonso_de_Alvarado_District property:shares_border_with ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q26700842 Q7179147 Q1332136
P17
Q15617994
USER
Is mayor of Barca present in Petrovouni, Messenia and Tiedong District ?
(Q26700842,P17,Q7179147) (Q26700842,P17,Q1332136)
action is_in
entity Q26700842
action intersection
action find_reverse
entity Q7179147
relation P17
action find_reverse
entity Q1332136
relation P17
['Q26700842', 'P17', 'Q7179147'] ['Q26700842', 'P17', 'Q1332136']
ASK WHERE { resource:Q26700842 property:P17 resource:Q7179147 . resource:Q26700842 property:P17 resource:Q1332136 }
mayor of Barca Petrovouni, Messenia Tiedong District
action is_in
entity mayor of Barca
action intersection
action find_reverse
entity Petrovouni, Messenia
relation country
action find_reverse
entity Tiedong District
relation country
['mayor of Barca', 'country', 'Petrovouni, Messenia'] ['mayor of Barca', 'country', 'Tiedong District']
ASK WHERE { resource:mayor_of_Barca property:country resource:Petrovouni,_Messenia . resource:mayor_of_Barca property:country resource:Tiedong_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q26700842,P17,Q7179147) (Q26700842,P17,Q1332136)
action is_in
entity Q26700842
action intersection
action find_reverse
entity Q7179147
relation P17
action find_reverse
entity Q1332136
relation P17
[ANSWER]
['Q26700842', 'P17', 'Q7179147'] ['Q26700842', 'P17', 'Q1332136']
ASK WHERE { resource:Q26700842 property:P17 resource:Q7179147 . resource:Q26700842 property:P17 resource:Q1332136 }
No
action is_in
entity mayor of Barca
action intersection
action find_reverse
entity Petrovouni, Messenia
relation country
action find_reverse
entity Tiedong District
relation country
['mayor of Barca', 'country', 'Petrovouni, Messenia'] ['mayor of Barca', 'country', 'Tiedong District']
ASK WHERE { resource:mayor_of_Barca property:country resource:Petrovouni,_Messenia . resource:mayor_of_Barca property:country resource:Tiedong_District }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q40153 Q837930
P47 P17
Q15617994
USER
Which administrative territories are Barca located in or are bordered by Auronzo di Cadore ?
OR((Q837930,P17,c(Q15617994)), (Q40153,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q837930
relation P17
action find
entity Q40153
relation P47
type Q15617994
{'OR': [['Q837930', 'P17', {'concept': 'Q15617994'}], ['Q40153', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q837930 property:P17 ?w } UNION { resource:Q40153 property:P47 ?w } } . ?w rdf:type ontology:Q15617994 }
Auronzo di Cadore Barca
action filter_type
action union
action find
entity Barca
relation country
action find
entity Auronzo di Cadore
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Barca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Auronzo di Cadore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Barca property:country ?w } UNION { resource:Auronzo_di_Cadore property:shares_border_with ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q41021 Q40919 Q39744 Q39780 Q29 Q41158 Q40145 Q40141 Q40790
SYSTEM
Calalzo di Cadore, Danta di Cadore, Vigo di Cadore, Lozzo di Cadore, Spain, Cortina d'Ampezzo, Domegge di Cadore, Comelico Superiore, Santo Stefano di Cadore
Q41021 Q40919 Q39744 Q39780 Q29 Q41158 Q40145 Q40141 Q40790
OR((Q837930,P17,c(Q15617994)), (Q40153,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q837930
relation P17
action find
entity Q40153
relation P47
type Q15617994
[ANSWERS] are Barca located in or are bordered by Auronzo di Cadore
{'OR': [['Q837930', 'P17', {'concept': 'Q15617994'}], ['Q40153', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q837930 property:P17 ?w } UNION { resource:Q40153 property:P47 ?w } } . ?w rdf:type ontology:Q15617994 }
Calalzo di Cadore Danta di Cadore Vigo di Cadore Lozzo di Cadore Spain Cortina d'Ampezzo Domegge di Cadore Comelico Superiore Santo Stefano di Cadore
Calalzo di Cadore, Danta di Cadore, Vigo di Cadore, Lozzo di Cadore, Spain, Cortina d'Ampezzo, Domegge di Cadore, Comelico Superiore and Santo Stefano di Cadore are Barca located in or are bordered by Auronzo di Cadore
Calalzo di Cadore Danta di Cadore Vigo di Cadore Lozzo di Cadore Spain Cortina d'Ampezzo Domegge di Cadore Comelico Superiore Santo Stefano di Cadore
action filter_type
action union
action find
entity Barca
relation country
action find
entity Auronzo di Cadore
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Barca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Auronzo di Cadore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Barca property:country ?w } UNION { resource:Auronzo_di_Cadore property:shares_border_with ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5486598
P19
Q56061
USER
How many administrative territories were Frank Fernández born in ?
(Q5486598,P19,c(Q56061))
action count
action filter_type
action find
entity Q5486598
relation P19
type Q56061
['Q5486598', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q5486598 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Frank Fernández
action count
action filter_type
action find
entity Frank Fernández
relation place of birth
type administrative territorial entity
['Frank Fernández', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Frank_Fernández property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q1563
(Q5486598,P19,c(Q56061))
action count
action filter_type
action find
entity Q5486598
relation P19
type Q56061
[ANSWER]
['Q5486598', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q5486598 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Havana
1
action count
action filter_type
action find
entity Frank Fernández
relation place of birth
type administrative territorial entity
['Frank Fernández', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Frank_Fernández property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q4831473
P19
Q56061
USER
And what about Ayman Mohyeldin?
(Q4831473,P19,c(Q56061))
action count
action filter_type
action find
entity Q4831473
relation P19
type Q56061
['Q4831473', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q4831473 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Ayman Mohyeldin
action count
action filter_type
action find
entity Ayman Mohyeldin
relation place of birth
type administrative territorial entity
['Ayman Mohyeldin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Ayman_Mohyeldin property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q85
(Q4831473,P19,c(Q56061))
action count
action filter_type
action find
entity Q4831473
relation P19
type Q56061
[ANSWER]
['Q4831473', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q4831473 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Cairo
1
action count
action filter_type
action find
entity Ayman Mohyeldin
relation place of birth
type administrative territorial entity
['Ayman Mohyeldin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Ayman_Mohyeldin property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20190584
Q56061
USER
And also tell me about Rina Macrelli?
(Q20190584,P19,c(Q56061))
action count
action filter_type
action find
entity Q20190584
relation P19
type Q56061
['Q20190584', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q20190584 property:P19 ?a }
Rina Macrelli
action count
action filter_type
action find
entity Rina Macrelli
relation place of birth
type administrative territorial entity
['Rina Macrelli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Rina_Macrelli property:place_of_birth ?a }
[]
administrative territorial entity
SYSTEM
1
(Q20190584,P19,c(Q56061))
action count
action filter_type
action find
entity Q20190584
relation P19
type Q56061
[ANSWER]
['Q20190584', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q20190584 property:P19 ?a }
1
action count
action filter_type
action find
entity Rina Macrelli
relation place of birth
type administrative territorial entity
['Rina Macrelli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Rina_Macrelli property:place_of_birth ?a }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22679191 Q26700842
P17
Q15617994
USER
Which administrative territories are mayor of Barca or Singila Central Primary School situated in ?
OR((Q26700842,P17,c(Q15617994)), (Q22679191,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26700842
relation P17
action find
entity Q22679191
relation P17
type Q15617994
{'OR': [['Q26700842', 'P17', {'concept': 'Q15617994'}], ['Q22679191', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q26700842 property:P17 ?l } UNION { resource:Q22679191 property:P17 ?l } } }
Singila Central Primary School mayor of Barca
action filter_type
action union
action find
entity mayor of Barca
relation country
action find
entity Singila Central Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Barca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Singila Central Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:mayor_of_Barca property:country ?l } UNION { resource:Singila_Central_Primary_School property:country ?l } } }
[]
designation for an administrative territorial entity
Q1036 Q29
SYSTEM
Uganda, Spain
Q1036 Q29
OR((Q26700842,P17,c(Q15617994)), (Q22679191,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26700842
relation P17
action find
entity Q22679191
relation P17
type Q15617994
Mayor of Barca or Singila Central Primary School are situated in [ANSWERS]
{'OR': [['Q26700842', 'P17', {'concept': 'Q15617994'}], ['Q22679191', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q26700842 property:P17 ?l } UNION { resource:Q22679191 property:P17 ?l } } }
Uganda Spain
Mayor of Barca or Singila Central Primary School are situated in Uganda and Spain
Uganda Spain
action filter_type
action union
action find
entity mayor of Barca
relation country
action find
entity Singila Central Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['mayor of Barca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Singila Central Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:mayor_of_Barca property:country ?l } UNION { resource:Singila_Central_Primary_School property:country ?l } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1036 Q29
P530
Q15617994
USER
Which administrative territories have diplomatic relations with those ones ?
(c(Q15617994),P530,Q1036) (c(Q15617994),P530,Q29)
action filter_type
action find_reverse
entity prev_answer
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q1036'] [{'concept': 'Q15617994'}, 'P530', 'Q29']
SELECT DISTINCT ?v WHERE { ?v property:P530 ?d . ?v rdf:type ontology:Q15617994 . VALUES ( ?d ) { ( resource:Q1036 ) ( resource:Q29 ) } }
Uganda Spain
action filter_type
action find_reverse
entity prev_answer
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Uganda'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Spain']
SELECT DISTINCT ?v WHERE { ?v property:diplomatic_relation ?d . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?d ) { ( resource:Uganda ) ( resource:Spain ) } }
[]
designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q114 Q230 Q155 Q38
(c(Q15617994),P530,Q1036) (c(Q15617994),P530,Q29)
action filter_type
action find_reverse
entity prev_answer
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with those ones
[{'concept': 'Q15617994'}, 'P530', 'Q1036'] [{'concept': 'Q15617994'}, 'P530', 'Q29']
SELECT DISTINCT ?v WHERE { ?v property:P530 ?d . ?v rdf:type ontology:Q15617994 . VALUES ( ?d ) { ( resource:Q1036 ) ( resource:Q29 ) } }
Kenya Georgia Brazil Italy
Italy, Brazil and Georgia have diplomatic relations with those ones
Italy Brazil Georgia
action filter_type
action find_reverse
entity prev_answer
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Uganda'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Spain']
SELECT DISTINCT ?v WHERE { ?v property:diplomatic_relation ?d . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?d ) { ( resource:Uganda ) ( resource:Spain ) } }
[]