Simple Question (Direct)
Simple Question
Q3958320
P840
Q56061
USER
What location is Seven Minutes in Heaven set in ?
(Q3958320,P840,c(Q56061))
action filter_type
action find
entity Q3958320
relation P840
type Q56061
['Q3958320', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q3958320 property:P840 ?v . ?v rdf:type ontology:Q56061 }
Seven Minutes in Heaven
action filter_type
action find
entity Seven Minutes in Heaven
relation narrative location
type administrative territorial entity
['Seven Minutes in Heaven', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Seven_Minutes_in_Heaven property:narrative_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q3958320,P840,c(Q56061))
action filter_type
action find
entity Q3958320
relation P840
type Q56061
Seven Minutes in Heaven is set in [ANSWER]
['Q3958320', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q3958320 property:P840 ?v . ?v rdf:type ontology:Q56061 }
New York City
Seven Minutes in Heaven is set in New York City
New York City
action filter_type
action find
entity Seven Minutes in Heaven
relation narrative location
type administrative territorial entity
['Seven Minutes in Heaven', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Seven_Minutes_in_Heaven property:narrative_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P163
Q14660
USER
What is associated with that administrative territory ?
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q60 property:P163 ?y . ?y rdf:type ontology:Q14660 }
New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:New_York_City property:flag ?y . ?y rdf:type ontology:flag }
[]
flag
Q1414813
SYSTEM
Flag of New York City
Q1414813
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
City [ANSWER] is associated with that administrative territory
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q60 property:P163 ?y . ?y rdf:type ontology:Q14660 }
Flag of New York City
City Flag of New York City is associated with that administrative territory
Flag of New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:New_York_City property:flag ?y . ?y rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1414813
P1001
Q56061
USER
How many administrative territories come under the supervision of Flag of New York City ?
(Q1414813,P1001,c(Q56061))
action count
action filter_type
action find
entity Q1414813
relation P1001
type Q56061
['Q1414813', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q1414813 property:P1001 ?w }
Flag of New York City
action count
action filter_type
action find
entity Flag of New York City
relation applies to jurisdiction
type administrative territorial entity
['Flag of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Flag_of_New_York_City property:applies_to_jurisdiction ?w }
[]
administrative territorial entity
SYSTEM
1
Q60
(Q1414813,P1001,c(Q56061))
action count
action filter_type
action find
entity Q1414813
relation P1001
type Q56061
[ANSWER]
['Q1414813', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q1414813 property:P1001 ?w }
New York City
1
action count
action filter_type
action find
entity Flag of New York City
relation applies to jurisdiction
type administrative territorial entity
['Flag of New York City', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Flag_of_New_York_City property:applies_to_jurisdiction ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1414813
P1001
Q56061
USER
Which administrative territory applies to jurisdiction of that flag ?
action filter_type
action find
entity Q1414813
relation P1001
type Q56061
SELECT DISTINCT ?e WHERE { resource:Q1414813 property:P1001 ?e . ?e rdf:type ontology:Q56061 }
Flag of New York City
action filter_type
action find
entity Flag of New York City
relation applies to jurisdiction
type administrative territorial entity
SELECT DISTINCT ?e WHERE { resource:Flag_of_New_York_City property:applies_to_jurisdiction ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
action filter_type
action find
entity Q1414813
relation P1001
type Q56061
[ANSWER] applies to jurisdiction of that flag
SELECT DISTINCT ?e WHERE { resource:Q1414813 property:P1001 ?e . ?e rdf:type ontology:Q56061 }
New York City
New York City applies to jurisdiction of that flag
New York City
action filter_type
action find
entity Flag of New York City
relation applies to jurisdiction
type administrative territorial entity
SELECT DISTINCT ?e WHERE { resource:Flag_of_New_York_City property:applies_to_jurisdiction ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P276
Q573
USER
Which day has its location as that administrative territory ?
(c(Q573),P276,Q60)
action filter_type
action find_reverse
entity Q60
relation P276
type Q573
[{'concept': 'Q573'}, 'P276', 'Q60']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q60 . ?o rdf:type ontology:Q573 }
New York City
action filter_type
action find_reverse
entity New York City
relation location
type day
[{'concept': 'day'}, 'location', 'New York City']
SELECT DISTINCT ?o WHERE { ?o property:location resource:New_York_City . ?o rdf:type ontology:day }
[]
day
Q3133590
SYSTEM
Evacuation Day
Q3133590
(c(Q573),P276,Q60)
action filter_type
action find_reverse
entity Q60
relation P276
type Q573
Day [ANSWER] has its location as that administrative territory
[{'concept': 'Q573'}, 'P276', 'Q60']
SELECT DISTINCT ?o WHERE { ?o property:P276 resource:Q60 . ?o rdf:type ontology:Q573 }
Evacuation Day
Day Evacuation Day has its location as that administrative territory
Evacuation Day
action filter_type
action find_reverse
entity New York City
relation location
type day
[{'concept': 'day'}, 'location', 'New York City']
SELECT DISTINCT ?o WHERE { ?o property:location resource:New_York_City . ?o rdf:type ontology:day }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q244095 Q60
P190
Q56061
USER
Which administrative territories are partner towns of New York City or Bellagio ?
OR((Q60,P190,c(Q56061)), (Q244095,P190,c(Q56061)))
action filter_type
action union
action find
entity Q60
relation P190
action find
entity Q244095
relation P190
type Q56061
{'OR': [['Q60', 'P190', {'concept': 'Q56061'}], ['Q244095', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q60 property:P190 ?w } UNION { resource:Q244095 property:P190 ?w } } . ?w rdf:type ontology:Q56061 }
Bellagio New York City
action filter_type
action union
action find
entity New York City
relation sister city
action find
entity Bellagio
relation sister city
type administrative territorial entity
{'OR': [['New York City', 'sister city', {'concept': 'administrative territorial entity'}], ['Bellagio', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:New_York_City property:sister_city ?w } UNION { resource:Bellagio property:sister_city ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1006408 Q51103 Q586895 Q499318 Q1218 Q954157 Q353854 Q985402 Q33935 Q530309
SYSTEM
Some of them are Sesimbra Municipality, Cali, Sherborne, Prienai, Jerusalem, Chojna, Agros, Niederanven, Tel Aviv, Karkkila
Q15922 Q1009405 Q11874 Q34820 Q353854 Q1006408 Q1781 Q586895 Q3630 Q499318 Q141796 Q33935 Q213898 Q985402 Q954157 Q3561 Q84 Q85 Q405136 Q51103 Q27678 Q34647 Q2807 Q956 Q530309 Q1490 Q1218 Q585
OR((Q60,P190,c(Q56061)), (Q244095,P190,c(Q56061)))
action filter_type
action union
action find
entity Q60
relation P190
action find
entity Q244095
relation P190
type Q56061
[ANSWERS] are partner towns of New York City or Bellagio
{'OR': [['Q60', 'P190', {'concept': 'Q56061'}], ['Q244095', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q60 property:P190 ?w } UNION { resource:Q244095 property:P190 ?w } } . ?w rdf:type ontology:Q56061 }
Škofja Loka Bundoran Zvolen Santo Domingo Agros Sesimbra Municipality Budapest Sherborne Jakarta Prienai Türi Tel Aviv Preveza Niederanven Chojna Algiers London Cairo Tryavna Cali Holstebro Johannesburg Madrid Beijing Karkkila Tokyo Jerusalem Oslo
Sesimbra Municipality, Cali, Sherborne, Prienai, Jerusalem, Chojna, Agros, Niederanven, Tel Aviv and Karkkila are partner towns of New York City or Bellagio
Sesimbra Municipality Cali Sherborne Prienai Jerusalem Chojna Agros Niederanven Tel Aviv Karkkila
action filter_type
action union
action find
entity New York City
relation sister city
action find
entity Bellagio
relation sister city
type administrative territorial entity
{'OR': [['New York City', 'sister city', {'concept': 'administrative territorial entity'}], ['Bellagio', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:New_York_City property:sister_city ?w } UNION { resource:Bellagio property:sister_city ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q64 Q1218
P190
Q56061
USER
Which administrative territories are sister towns of Jerusalem and Berlin ?
AND((Q1218,P190,c(Q56061)), (Q64,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1218
relation P190
action find
entity Q64
relation P190
type Q56061
{'AND': [['Q1218', 'P190', {'concept': 'Q56061'}], ['Q64', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { resource:Q1218 property:P190 ?e . resource:Q64 property:P190 ?e . ?e rdf:type ontology:Q56061 }
Berlin Jerusalem
action filter_type
action intersection
action find
entity Jerusalem
relation sister city
action find
entity Berlin
relation sister city
type administrative territorial entity
{'AND': [['Jerusalem', 'sister city', {'concept': 'administrative territorial entity'}], ['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Jerusalem property:sister_city ?e . resource:Berlin property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q1085
SYSTEM
Moscow, Prague
Q649 Q1085
AND((Q1218,P190,c(Q56061)), (Q64,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1218
relation P190
action find
entity Q64
relation P190
type Q56061
[ANSWERS] are sister towns of Jerusalem and Berlin
{'AND': [['Q1218', 'P190', {'concept': 'Q56061'}], ['Q64', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { resource:Q1218 property:P190 ?e . resource:Q64 property:P190 ?e . ?e rdf:type ontology:Q56061 }
Moscow Prague
Moscow and Prague are sister towns of Jerusalem and Berlin
Moscow Prague
action filter_type
action intersection
action find
entity Jerusalem
relation sister city
action find
entity Berlin
relation sister city
type administrative territorial entity
{'AND': [['Jerusalem', 'sister city', {'concept': 'administrative territorial entity'}], ['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Jerusalem property:sister_city ?e . resource:Berlin property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P206
Q355304
USER
Which watercourse is located next to that administrative territory ?
(Q1085,P206,c(Q355304))
action filter_type
action find
entity Q1085
relation P206
type Q355304
['Q1085', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { resource:Q1085 property:P206 ?d . ?d rdf:type ontology:Q355304 }
Prague
action filter_type
action find
entity Prague
relation located next to body of water
type watercourse
['Prague', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { resource:Prague property:located_next_to_body_of_water ?d . ?d rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q649
SYSTEM
Did you mean Moscow ?
Q649 Q1085
(Q649,P206,c(Q355304)) (Q1085,P206,c(Q355304))
[ANSWER]
['Q649', 'P206', {'concept': 'Q355304'}] ['Q1085', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { resource:Q1085 property:P206 ?d . ?d rdf:type ontology:Q355304 }
Moscow Prague
Did you mean Moscow ?
Moscow
['Moscow', 'located next to body of water', {'concept': 'watercourse'}] ['Prague', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { resource:Prague property:located_next_to_body_of_water ?d . ?d rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
No, I meant Prague. Could you tell me the answer for that?
(Q1085,P206,c(Q355304))
Q1085
['Q1085', 'P206', {'concept': 'Q355304'}]
['Prague', 'located next to body of water', {'concept': 'watercourse'}]
[]
Q131574
SYSTEM
Vltava
Q131574
(Q1085,P206,c(Q355304))
action filter_type
action find
entity Q1085
relation P206
type Q355304
[ANSWER] is located next to that administrative territory
['Q1085', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { resource:Q1085 property:P206 ?d . ?d rdf:type ontology:Q355304 }
Vltava
Vltava is located next to that administrative territory
Vltava
action filter_type
action find
entity Prague
relation located next to body of water
type watercourse
['Prague', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { resource:Prague property:located_next_to_body_of_water ?d . ?d rdf:type ontology:watercourse }
[]