Simple Question (Direct)
Simple Question
Q465777
P937
Q56061
USER
Which administrative territory is the work location of Vija Celmins ?
(Q465777,P937,c(Q56061))
action filter_type
action find
entity Q465777
relation P937
type Q56061
['Q465777', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q465777 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Vija Celmins
action filter_type
action find
entity Vija Celmins
relation work location
type administrative territorial entity
['Vija Celmins', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vija_Celmins property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q465777,P937,c(Q56061))
action filter_type
action find
entity Q465777
relation P937
type Q56061
[ANSWER] is the work location of Vija Celmins
['Q465777', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q465777 property:P937 ?e . ?e rdf:type ontology:Q56061 }
New York City
New York City is the work location of Vija Celmins
New York City
action filter_type
action find
entity Vija Celmins
relation work location
type administrative territorial entity
['Vija Celmins', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vija_Celmins property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q60,P1313,c(Q12737077))
action filter_type
action find
entity Q60
relation P1313
type Q12737077
['Q60', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q60 property:P1313 ?s . ?s rdf:type ontology:Q12737077 }
New York City
action filter_type
action find
entity New York City
relation office held by head of government
type occupation
['New York City', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:New_York_City property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q785304
SYSTEM
Mayor of New York City
Q785304
(Q60,P1313,c(Q12737077))
action filter_type
action find
entity Q60
relation P1313
type Q12737077
[ANSWER] serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q60', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q60 property:P1313 ?s . ?s rdf:type ontology:Q12737077 }
Mayor of New York City
Mayor of New York City serves as the political office that is fulfilled by the head of the government of that administrative territory
Mayor of New York City
action filter_type
action find
entity New York City
relation office held by head of government
type occupation
['New York City', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:New_York_City property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q785304
P1001
Q56061
USER
Which administrative territory belongs to jurisdiction of that occupation ?
(Q785304,P1001,c(Q56061))
action filter_type
action find
entity Q785304
relation P1001
type Q56061
['Q785304', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q785304 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
Mayor of New York City
action filter_type
action find
entity Mayor of New York City
relation applies to jurisdiction
type administrative territorial entity
['Mayor of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_New_York_City property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q785304,P1001,c(Q56061))
action filter_type
action find
entity Q785304
relation P1001
type Q56061
[ANSWER] belongs to jurisdiction of that occupation
['Q785304', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q785304 property:P1001 ?o . ?o rdf:type ontology:Q56061 }
New York City
New York City belongs to jurisdiction of that occupation
New York City
action filter_type
action find
entity Mayor of New York City
relation applies to jurisdiction
type administrative territorial entity
['Mayor of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mayor_of_New_York_City property:applies_to_jurisdiction ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q60 Q17428172
P20
Q502895
USER
Does Édouard Poullet have that administrative territory as the area of death ?
(Q17428172,P20,Q60)
action is_in
entity Q17428172
action find
entity Q60
relation P20
['Q17428172', 'P20', 'Q60']
ASK WHERE { resource:Q60 property:P20 resource:Q17428172 }
New York City Édouard Poullet
action is_in
entity Édouard Poullet
action find
entity New York City
relation place of death
['Édouard Poullet', 'place of death', 'New York City']
ASK WHERE { resource:New_York_City property:place_of_death resource:Édouard_Poullet }
[]
common name
SYSTEM
NO
(Q17428172,P20,Q60)
action is_in
entity Q17428172
action find
entity Q60
relation P20
[ANSWER]
['Q17428172', 'P20', 'Q60']
ASK WHERE { resource:Q60 property:P20 resource:Q17428172 }
No
action is_in
entity Édouard Poullet
action find
entity New York City
relation place of death
['Édouard Poullet', 'place of death', 'New York City']
ASK WHERE { resource:New_York_City property:place_of_death resource:Édouard_Poullet }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q380760 Q60
P19 P190
Q56061
USER
Which administrative territories are twin cities of New York City or are the birthplace of Walter Gay ?
OR((Q60,P190,c(Q56061)), (Q380760,P19,c(Q56061)))
action filter_type
action union
action find
entity Q60
relation P190
action find
entity Q380760
relation P19
type Q56061
{'OR': [['Q60', 'P190', {'concept': 'Q56061'}], ['Q380760', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q380760 property:P19 ?a } UNION { resource:Q60 property:P190 ?a } } . ?a rdf:type ontology:Q56061 }
Walter Gay New York City
action filter_type
action union
action find
entity New York City
relation sister city
action find
entity Walter Gay
relation place of birth
type administrative territorial entity
{'OR': [['New York City', 'sister city', {'concept': 'administrative territorial entity'}], ['Walter Gay', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Walter_Gay property:place_of_birth ?a } UNION { resource:New_York_City property:sister_city ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q34647 Q51103 Q85 Q956 Q2807 Q100 Q585 Q1490 Q3630 Q1218
SYSTEM
Some of them are Johannesburg, Cali, Cairo, Beijing, Madrid, Boston, Oslo, Tokyo, Jakarta, Jerusalem
Q84 Q3630 Q33935 Q34820 Q34647 Q2807 Q956 Q1781 Q100 Q85 Q1490 Q1218 Q3561 Q51103 Q585
OR((Q60,P190,c(Q56061)), (Q380760,P19,c(Q56061)))
action filter_type
action union
action find
entity Q60
relation P190
action find
entity Q380760
relation P19
type Q56061
[ANSWERS] are twin cities of New York City or are the birthplace of Walter Gay
{'OR': [['Q60', 'P190', {'concept': 'Q56061'}], ['Q380760', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q380760 property:P19 ?a } UNION { resource:Q60 property:P190 ?a } } . ?a rdf:type ontology:Q56061 }
London Jakarta Tel Aviv Santo Domingo Johannesburg Madrid Beijing Budapest Boston Cairo Tokyo Jerusalem Algiers Cali Oslo
Johannesburg, Cali, Cairo, Beijing, Madrid, Boston, Oslo, Tokyo, Jakarta and Jerusalem are twin cities of New York City or are the birthplace of Walter Gay
Johannesburg Cali Cairo Beijing Madrid Boston Oslo Tokyo Jakarta Jerusalem
action filter_type
action union
action find
entity New York City
relation sister city
action find
entity Walter Gay
relation place of birth
type administrative territorial entity
{'OR': [['New York City', 'sister city', {'concept': 'administrative territorial entity'}], ['Walter Gay', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Walter_Gay property:place_of_birth ?a } UNION { resource:New_York_City property:sister_city ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2807
P17
Q15617994 Q7275
USER
How many administrative territories and states do Madrid belong to ?
(Q2807,P17,c(Q15617994)) (Q2807,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q2807
relation P17
type Q15617994
action filter_type
action find
entity Q2807
relation P17
type Q7275
['Q2807', 'P17', {'concept': 'Q15617994'}] ['Q2807', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?h rdf:type ?z }
Madrid
action count
action union
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Madrid
relation country
type state
['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?h rdf:type ?z }
[]
designation for an administrative territorial entity state
SYSTEM
1 administrative territories and 2 states
Q29 Q179293 Q217196
(Q2807,P17,c(Q15617994)) (Q2807,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q2807
relation P17
type Q15617994
action filter_type
action find
entity Q2807
relation P17
type Q7275
[ANSWER]
['Q2807', 'P17', {'concept': 'Q15617994'}] ['Q2807', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?h rdf:type ?z }
Spain Kingdom of Castile Crown of Castile
1 administrative territories and 2 states
action count
action union
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Madrid
relation country
type state
['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?h rdf:type ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2807
P272
Q838948
USER
Which works of art were produced by that administrative territory ?
action filter_type
action find_reverse
entity Q2807
relation P272
type Q838948
SELECT DISTINCT ?k WHERE { ?k property:P272 resource:Q2807 . ?k rdf:type ontology:Q838948 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation production company
type work of art
SELECT DISTINCT ?k WHERE { ?k property:production_company resource:Madrid . ?k rdf:type ontology:work_of_art }
[]
work of art
Q575980 Q3961749 Q2891298
SYSTEM
Vampyros Lesbos, The Sadistic Baron Von Klaus, We Are 18 Years Old
Q575980 Q3961749 Q2891298
action filter_type
action find_reverse
entity Q2807
relation P272
type Q838948
Vampyros Lesbos, The Sadistic Baron Von Klaus and We are 18 Years Old were produced by that administrative territory
SELECT DISTINCT ?k WHERE { ?k property:P272 resource:Q2807 . ?k rdf:type ontology:Q838948 }
Vampyros Lesbos The Sadistic Baron Von Klaus We Are 18 Years Old
Vampyros Lesbos, The Sadistic Baron Von Klaus and We are 18 Years Old were produced by that administrative territory
Vampyros Lesbos The Sadistic Baron Von Klaus We Are 18 Years Old
action filter_type
action find_reverse
entity Madrid
relation production company
type work of art
SELECT DISTINCT ?k WHERE { ?k property:production_company resource:Madrid . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P1376
Q15617994
USER
Which administrative territory has Madrid has its center of administration ?
(Q2807,P1376,c(Q15617994))
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q2807 property:P1376 ?r . ?r rdf:type ontology:Q15617994 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Madrid property:capital_of ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q2807,P1376,c(Q15617994))
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
Madrid [ANSWER] has Madrid has its center of administration
['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q2807 property:P1376 ?r . ?r rdf:type ontology:Q15617994 }
Spain
Madrid Spain has Madrid has its center of administration
Spain
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Madrid property:capital_of ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]