Simple Question (Direct)
Simple Question
Q15077198
P937
Q56061
USER
Which administrative territory is the work location of Nina Ostanina ?
(Q15077198,P937,c(Q56061))
action filter_type
action find
entity Q15077198
relation P937
type Q56061
['Q15077198', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q15077198 property:P937 ?k }
Nina Ostanina
action filter_type
action find
entity Nina Ostanina
relation work location
type administrative territorial entity
['Nina Ostanina', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Nina_Ostanina property:work_location ?k }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q15077198,P937,c(Q56061))
action filter_type
action find
entity Q15077198
relation P937
type Q56061
[ANSWER] is the work location of Nina Ostanina
['Q15077198', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q15077198 property:P937 ?k }
Moscow
Moscow is the work location of Nina Ostanina
Moscow
action filter_type
action find
entity Nina Ostanina
relation work location
type administrative territorial entity
['Nina Ostanina', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Nina_Ostanina property:work_location ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P559
Q83620
USER
Which thoroughfare has that administrative territory as terminus ?
(c(Q83620),P559,Q649)
action filter_type
action find_reverse
entity Q649
relation P559
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q649']
SELECT DISTINCT ?r WHERE { ?r property:P559 resource:Q649 . ?r rdf:type ontology:Q83620 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Moscow']
SELECT DISTINCT ?r WHERE { ?r property:terminus resource:Moscow . ?r rdf:type ontology:thoroughfare }
[]
thoroughfare
Q58767
SYSTEM
Trans-Siberian railway
Q58767
(c(Q83620),P559,Q649)
action filter_type
action find_reverse
entity Q649
relation P559
type Q83620
[ANSWER] has that administrative territory as terminus
[{'concept': 'Q83620'}, 'P559', 'Q649']
SELECT DISTINCT ?r WHERE { ?r property:P559 resource:Q649 . ?r rdf:type ontology:Q83620 }
Trans-Siberian railway
Trans-Siberian railway has that administrative territory as terminus
Trans-Siberian railway
action filter_type
action find_reverse
entity Moscow
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Moscow']
SELECT DISTINCT ?r WHERE { ?r property:terminus resource:Moscow . ?r rdf:type ontology:thoroughfare }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q58767 Q159
P17
Q15617994
USER
Is that thoroughfare situated in Russia ?
(Q58767,P17,Q159)
action is_in
entity Q159
action find
entity Q58767
relation P17
['Q58767', 'P17', 'Q159']
ASK WHERE { resource:Q58767 property:P17 resource:Q159 }
Trans-Siberian railway Russia
action is_in
entity Russia
action find
entity Trans-Siberian railway
relation country
['Trans-Siberian railway', 'country', 'Russia']
ASK WHERE { resource:Trans-Siberian_railway property:country resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q58767,P17,Q159)
action is_in
entity Q159
action find
entity Q58767
relation P17
[ANSWER]
['Q58767', 'P17', 'Q159']
ASK WHERE { resource:Q58767 property:P17 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Trans-Siberian railway
relation country
['Trans-Siberian railway', 'country', 'Russia']
ASK WHERE { resource:Trans-Siberian_railway property:country resource:Russia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4002775 Q649
P190 P20
Q56061
USER
Which administrative territories are the sister cities of Moscow or did Ugo D'Alessio expire ?
OR((Q649,P190,c(Q56061)), (Q4002775,P20,c(Q56061)))
action filter_type
action union
action find
entity Q649
relation P190
action find
entity Q4002775
relation P20
type Q56061
{'OR': [['Q649', 'P190', {'concept': 'Q56061'}], ['Q4002775', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q649 property:P190 ?p } UNION { resource:Q4002775 property:P20 ?p } } . ?p rdf:type ontology:Q56061 }
Ugo D'Alessio Moscow
action filter_type
action union
action find
entity Moscow
relation sister city
action find
entity Ugo D'Alessio
relation place of death
type administrative territorial entity
{'OR': [['Moscow', 'sister city', {'concept': 'administrative territorial entity'}], ["Ugo D'Alessio", 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Moscow property:sister_city ?p } UNION { resource:Ugo_D'Alessio property:place_of_death ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q1770 Q19566 Q25409 Q987 Q42308 Q3820 Q1780 Q239 Q43070
SYSTEM
Some of them are Vienna, Tallinn, Simferopol, Košice, New Delhi, Kharkiv, Beirut, Bratislava, Brussels, Donetsk
Q807 Q41572 Q131290 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q13498 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q1490 Q196678 Q1524 Q1780 Q2634 Q1520 Q1741 Q3630 Q140147 Q25409 Q33935 Q3561 Q3805 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q987 Q239 Q2807 Q956 Q3640 Q64 Q1491 Q1218 Q133026 Q186576 Q1085
OR((Q649,P190,c(Q56061)), (Q4002775,P20,c(Q56061)))
action filter_type
action union
action find
entity Q649
relation P190
action find
entity Q4002775
relation P20
type Q56061
[ANSWERS] are the sister cities of Moscow or did Ugo D'Alessio expire
{'OR': [['Q649', 'P190', {'concept': 'Q56061'}], ['Q4002775', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q649 property:P190 ?p } UNION { resource:Q4002775 property:P20 ?p } } . ?p rdf:type ontology:Q56061 }
Lausanne Mykolaiv Ganja Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Taranto Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Tokyo Torzhok Athens Bratislava Naples Astana Vienna Jakarta Brest Košice Tel Aviv Algiers Amman London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw New Delhi Brussels Madrid Beijing Ankara Berlin La Paz Jerusalem Kolomna Pazardzhik Prague
Vienna, Tallinn, Simferopol, Košice, New Delhi, Kharkiv, Beirut, Bratislava, Brussels and Donetsk are the sister cities of Moscow or did Ugo D'Alessio expire
Vienna Tallinn Simferopol Košice New Delhi Kharkiv Beirut Bratislava Brussels Donetsk
action filter_type
action union
action find
entity Moscow
relation sister city
action find
entity Ugo D'Alessio
relation place of death
type administrative territorial entity
{'OR': [['Moscow', 'sister city', {'concept': 'administrative territorial entity'}], ["Ugo D'Alessio", 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Moscow property:sister_city ?p } UNION { resource:Ugo_D'Alessio property:place_of_death ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1741
P47
Q15617994 Q871419
USER
How many administrative territories and districts of Austria are adjacent to Vienna ?
(Q1741,P47,c(Q15617994)) (Q1741,P47,c(Q871419))
action count
action union
action filter_type
action find
entity Q1741
relation P47
type Q15617994
action filter_type
action find
entity Q1741
relation P47
type Q871419
['Q1741', 'P47', {'concept': 'Q15617994'}] ['Q1741', 'P47', {'concept': 'Q871419'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q871419 ) } . ?c rdf:type ?y }
Vienna
action count
action union
action filter_type
action find
entity Vienna
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Vienna
relation shares border with
type district of Austria
['Vienna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vienna', 'shares border with', {'concept': 'district of Austria'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:district_of_Austria ) } . ?c rdf:type ?y }
[]
designation for an administrative territorial entity district of Austria
SYSTEM
1 administrative territories and 4 districts of Austria
Q700542 Q694372 Q521869 Q254176 Q694442
(Q1741,P47,c(Q15617994)) (Q1741,P47,c(Q871419))
action count
action union
action filter_type
action find
entity Q1741
relation P47
type Q15617994
action filter_type
action find
entity Q1741
relation P47
type Q871419
[ANSWER]
['Q1741', 'P47', {'concept': 'Q15617994'}] ['Q1741', 'P47', {'concept': 'Q871419'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q871419 ) } . ?c rdf:type ?y }
Mauerbach Korneuburg District Wien-Umgebung District Mödling District Gänserndorf District
1 administrative territories and 4 districts of Austria
action count
action union
action filter_type
action find
entity Vienna
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Vienna
relation shares border with
type district of Austria
['Vienna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vienna', 'shares border with', {'concept': 'district of Austria'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:district_of_Austria ) } . ?c rdf:type ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1741
P6
Q502895
USER
How many people are Vienna the head of goverment of ?
(Q1741,P6,c(Q502895))
action count
action filter_type
action find
entity Q1741
relation P6
type Q502895
['Q1741', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q502895 . resource:Q1741 property:P6 ?o }
Vienna
action count
action filter_type
action find
entity Vienna
relation head of government
type common name
['Vienna', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:common_name . resource:Vienna property:head_of_government ?o }
[]
common name
SYSTEM
16
Q95865 Q94496 Q13014 Q78531 Q85512 Q94472 Q78983 Q94424 Q84204 Q84254 Q112462 Q45377 Q2150882 Q78999 Q1705370 Q86676
(Q1741,P6,c(Q502895))
action count
action filter_type
action find
entity Q1741
relation P6
type Q502895
[ANSWER]
['Q1741', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q502895 . resource:Q1741 property:P6 ?o }
Philipp Wilhelm Jung Felix Slavik Franz Jonas Karl Lueger Hanns Blaschke Bruno Marek Helmut Zilk Jakob Reumann Theodor Körner Karl Seitz Hermann Neubacher Michael Häupl Richard Weiskirchner Leopold Gratz Josef Neumayer Richard Schmitz
16
action count
action filter_type
action find
entity Vienna
relation head of government
type common name
['Vienna', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:common_name . resource:Vienna property:head_of_government ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3813859
P6
Q502895
USER
And also tell me about Bicaz?
(Q3813859,P6,c(Q502895))
action count
action filter_type
action find
entity Q3813859
relation P6
type Q502895
['Q3813859', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q3813859 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Bicaz
action count
action filter_type
action find
entity Bicaz
relation head of government
type common name
['Bicaz', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Bicaz property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q26690473
(Q3813859,P6,c(Q502895))
action count
action filter_type
action find
entity Q3813859
relation P6
type Q502895
[ANSWER]
['Q3813859', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q3813859 property:P6 ?m . ?m rdf:type ontology:Q502895 }
Dorin Flaviu Mitre
1
action count
action filter_type
action find
entity Bicaz
relation head of government
type common name
['Bicaz', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Bicaz property:head_of_government ?m . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5061620
Q502895
USER
And how about Frumușeni?
(Q5061620,P6,c(Q502895))
action count
action filter_type
action find
entity Q5061620
relation P6
type Q502895
['Q5061620', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q5061620 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Frumușeni
action count
action filter_type
action find
entity Frumușeni
relation head of government
type common name
['Frumușeni', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Frumușeni property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q5061620,P6,c(Q502895))
action count
action filter_type
action find
entity Q5061620
relation P6
type Q502895
[ANSWER]
['Q5061620', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Q5061620 property:P6 ?k . ?k rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Frumușeni
relation head of government
type common name
['Frumușeni', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { resource:Frumușeni property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1741
P206
Q355304
USER
Which watercourses are located next to Vienna ?
(Q1741,P206,c(Q355304))
action filter_type
action find
entity Q1741
relation P206
type Q355304
['Q1741', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q355304 . resource:Q1741 property:P206 ?u }
Vienna
action filter_type
action find
entity Vienna
relation located next to body of water
type watercourse
['Vienna', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:watercourse . resource:Vienna property:located_next_to_body_of_water ?u }
[]
watercourse
Q1653 Q701695 Q702289
SYSTEM
Danube, Donaukanal, Wien
Q1653 Q701695 Q1824337 Q702289
(Q1741,P206,c(Q355304))
action filter_type
action find
entity Q1741
relation P206
type Q355304
Austria [ANSWERS] are located next to Vienna
['Q1741', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q355304 . resource:Q1741 property:P206 ?u }
Danube Donaukanal Liesing Wien
Austria Danube, Donaukanal and Wien are located next to Vienna
Danube Donaukanal Wien
action filter_type
action find
entity Vienna
relation located next to body of water
type watercourse
['Vienna', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:watercourse . resource:Vienna property:located_next_to_body_of_water ?u }
[]