Simple Question (Direct)
Simple Question
Q888611
P937
Q56061
USER
Which is the work location of Joseph F. Johnston ?
(Q888611,P937,c(Q56061))
action filter_type
action find
entity Q888611
relation P937
type Q56061
['Q888611', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q888611 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Joseph F. Johnston
action filter_type
action find
entity Joseph F. Johnston
relation work location
type administrative territorial entity
['Joseph F. Johnston', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_F._Johnston property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q888611,P937,c(Q56061))
action filter_type
action find
entity Q888611
relation P937
type Q56061
[ANSWER] is the work location of Joseph F. Johnston
['Q888611', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q888611 property:P937 ?w . ?w rdf:type ontology:Q56061 }
Washington, D.C.
Washington, D.C. is the work location of Joseph F. Johnston
Washington, D.C.
action filter_type
action find
entity Joseph F. Johnston
relation work location
type administrative territorial entity
['Joseph F. Johnston', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_F._Johnston property:work_location ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q888611
P241
Q781132
USER
Which military branch was that person a part of ?
(Q61,P241,c(Q781132))
action filter_type
action find
entity Q888611
relation P241
type Q781132
['Q61', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q888611 property:P241 ?s . ?s rdf:type ontology:Q781132 }
Joseph F. Johnston
action filter_type
action find
entity Joseph F. Johnston
relation military branch
type military branch
['Washington, D.C.', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Joseph_F._Johnston property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q1125021
SYSTEM
Confederate States Army
Q1125021
(Q61,P241,c(Q781132))
action filter_type
action find
entity Q888611
relation P241
type Q781132
The [ANSWER] was that person a part of
['Q61', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q888611 property:P241 ?s . ?s rdf:type ontology:Q781132 }
Confederate States Army
The Confederate States Army was that person a part of
Confederate States Army
action filter_type
action find
entity Joseph F. Johnston
relation military branch
type military branch
['Washington, D.C.', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Joseph_F._Johnston property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q15075931 Q61
P190 P915
Q56061
USER
Which administrative territories are twin cities of Washington, D.C. and were Boss filmed at ?
AND((Q61,P190,c(Q56061)), (Q15075931,P915,c(Q56061)))
action filter_type
action intersection
action find
entity Q61
relation P190
action find
entity Q15075931
relation P915
type Q56061
{'AND': [['Q61', 'P190', {'concept': 'Q56061'}], ['Q15075931', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { resource:Q15075931 property:P915 ?o . resource:Q61 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Boss Washington, D.C.
action filter_type
action intersection
action find
entity Washington, D.C.
relation sister city
action find
entity Boss
relation filming location
type administrative territorial entity
{'AND': [['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}], ['Boss', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Boss property:filming_location ?o . resource:Washington,_D.C. property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1861
SYSTEM
Bangkok
Q1861
AND((Q61,P190,c(Q56061)), (Q15075931,P915,c(Q56061)))
action filter_type
action intersection
action find
entity Q61
relation P190
action find
entity Q15075931
relation P915
type Q56061
[ANSWER] is twin cities of Washington, D.C. and were Boss filmed at
{'AND': [['Q61', 'P190', {'concept': 'Q56061'}], ['Q15075931', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { resource:Q15075931 property:P915 ?o . resource:Q61 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Bangkok
Bangkok is twin cities of Washington, D.C. and were Boss filmed at
Bangkok
action filter_type
action intersection
action find
entity Washington, D.C.
relation sister city
action find
entity Boss
relation filming location
type administrative territorial entity
{'AND': [['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}], ['Boss', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Boss property:filming_location ?o . resource:Washington,_D.C. property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1861 Q16202837
P915
Q838948
USER
Was China White filmed at that administrative territory ?
(Q16202837,P915,Q1861)
action is_in
entity Q1861
action find
entity Q16202837
relation P915
['Q16202837', 'P915', 'Q1861']
ASK WHERE { resource:Q16202837 property:P915 resource:Q1861 }
Bangkok China White
action is_in
entity Bangkok
action find
entity China White
relation filming location
['China White', 'filming location', 'Bangkok']
ASK WHERE { resource:China_White property:filming_location resource:Bangkok }
[]
work of art
SYSTEM
YES
(Q16202837,P915,Q1861)
action is_in
entity Q1861
action find
entity Q16202837
relation P915
[ANSWER]
['Q16202837', 'P915', 'Q1861']
ASK WHERE { resource:Q16202837 property:P915 resource:Q1861 }
Yes
action is_in
entity Bangkok
action find
entity China White
relation filming location
['China White', 'filming location', 'Bangkok']
ASK WHERE { resource:China_White property:filming_location resource:Bangkok }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1861
P190
Q515
USER
How many cities are sister towns of Bangkok ?
(Q1861,P190,c(Q515))
action count
action filter_type
action find
entity Q1861
relation P190
type Q515
['Q1861', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q1861 property:P190 ?o . ?o rdf:type ontology:Q515 }
Bangkok
action count
action filter_type
action find
entity Bangkok
relation sister city
type city
['Bangkok', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Bangkok property:sister_city ?o . ?o rdf:type ontology:city }
[]
city
SYSTEM
9
Q8684 Q16520 Q11736 Q3616 Q1858 Q1461 Q26600 Q59227 Q11725
(Q1861,P190,c(Q515))
action count
action filter_type
action find
entity Q1861
relation P190
type Q515
[ANSWER]
['Q1861', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q1861 property:P190 ?o . ?o rdf:type ontology:Q515 }
Seoul Busan Tianjin Tehran Hanoi Manila Fukuoka Chaozhou Chongqing
9
action count
action filter_type
action find
entity Bangkok
relation sister city
type city
['Bangkok', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Bangkok property:sister_city ?o . ?o rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q333559
P190
Q515
USER
And also tell me about Granville?
(Q333559,P190,c(Q515))
action count
action filter_type
action find
entity Q333559
relation P190
type Q515
['Q333559', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Q333559 property:P190 ?x . ?x rdf:type ontology:Q515 }
Granville
action count
action filter_type
action find
entity Granville
relation sister city
type city
['Granville', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Granville property:sister_city ?x . ?x rdf:type ontology:city }
[]
city
SYSTEM
3
Q1000056 Q587746 Q613813
(Q333559,P190,c(Q515))
action count
action filter_type
action find
entity Q333559
relation P190
type Q515
[ANSWER]
['Q333559', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Q333559 property:P190 ?x . ?x rdf:type ontology:Q515 }
Sušice Siret Kőszeg
3
action count
action filter_type
action find
entity Granville
relation sister city
type city
['Granville', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { resource:Granville property:sister_city ?x . ?x rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1007418
Q515
USER
And what about Cobourg?
(Q1007418,P190,c(Q515))
action count
action filter_type
action find
entity Q1007418
relation P190
type Q515
['Q1007418', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Q1007418 property:P190 ?x . ?x rdf:type ontology:Q515 }
Cobourg
action count
action filter_type
action find
entity Cobourg
relation sister city
type city
['Cobourg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Cobourg property:sister_city ?x . ?x rdf:type ontology:city }
[]
city
SYSTEM
2
(Q1007418,P190,c(Q515))
action count
action filter_type
action find
entity Q1007418
relation P190
type Q515
[ANSWER]
['Q1007418', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Q1007418 property:P190 ?x . ?x rdf:type ontology:Q515 }
2
action count
action filter_type
action find
entity Cobourg
relation sister city
type city
['Cobourg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Cobourg property:sister_city ?x . ?x rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1861
P127
Q811979
USER
Which architectural structures are under posessision of Bangkok ?
(c(Q811979),P127,Q1861)
action filter_type
action find_reverse
entity Q1861
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q1861']
SELECT DISTINCT ?e WHERE { ?e property:P127 resource:Q1861 . ?e rdf:type ontology:Q811979 }
Bangkok
action filter_type
action find_reverse
entity Bangkok
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Bangkok']
SELECT DISTINCT ?e WHERE { ?e property:owned_by resource:Bangkok . ?e rdf:type ontology:architectural_structure }
[]
architectural structure
Q4923737 Q2631915
SYSTEM
Indoor Stadium Huamark, Rajadamnern Stadium
Q4923737 Q2631915
(c(Q811979),P127,Q1861)
action filter_type
action find_reverse
entity Q1861
relation P127
type Q811979
[ANSWERS] are under posessision of Bangkok
[{'concept': 'Q811979'}, 'P127', 'Q1861']
SELECT DISTINCT ?e WHERE { ?e property:P127 resource:Q1861 . ?e rdf:type ontology:Q811979 }
Indoor Stadium Huamark Rajadamnern Stadium
Indoor Stadium Huamark and Rajadamnern Stadium are under posessision of Bangkok
Indoor Stadium Huamark Rajadamnern Stadium
action filter_type
action find_reverse
entity Bangkok
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Bangkok']
SELECT DISTINCT ?e WHERE { ?e property:owned_by resource:Bangkok . ?e rdf:type ontology:architectural_structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1861
P36
Q15617994
USER
Which administrative territory has Bangkok as its administrative centre ?
(c(Q15617994),P36,Q1861)
action filter_type
action find_reverse
entity Q1861
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q1861']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q1861 . ?q rdf:type ontology:Q15617994 }
Bangkok
action filter_type
action find_reverse
entity Bangkok
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Bangkok']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Bangkok . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q869
SYSTEM
Thailand
Q869
(c(Q15617994),P36,Q1861)
action filter_type
action find_reverse
entity Q1861
relation P36
type Q15617994
[ANSWER] has Bangkok as its administrative centre
[{'concept': 'Q15617994'}, 'P36', 'Q1861']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q1861 . ?q rdf:type ontology:Q15617994 }
Thailand
Thailand has Bangkok as its administrative centre
Thailand
action filter_type
action find_reverse
entity Bangkok
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Bangkok']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Bangkok . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]