Simple Question (Direct)
Simple Question
Q4800031
P39
Q12737077
USER
Which occupation was a position held by Arthur Probert ?
(Q4800031,P39,c(Q12737077))
action filter_type
action find
entity Q4800031
relation P39
type Q12737077
['Q4800031', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q4800031 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Arthur Probert
action filter_type
action find
entity Arthur Probert
relation position held
type occupation
['Arthur Probert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Arthur_Probert property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q4800031,P39,c(Q12737077))
action filter_type
action find
entity Q4800031
relation P39
type Q12737077
The [ANSWER] was a position held by Arthur Probert
['Q4800031', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q4800031 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Arthur Probert
Member of Parliament in the United Kingdom
action filter_type
action find
entity Arthur Probert
relation position held
type occupation
['Arthur Probert', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Arthur_Probert property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4800031
P937
Q56061
USER
Which administrative territory is the work location of Arthur Probert ?
(Q4800031,P937,c(Q56061))
action filter_type
action find
entity Q4800031
relation P937
type Q56061
['Q4800031', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q4800031 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Arthur Probert
action filter_type
action find
entity Arthur Probert
relation work location
type administrative territorial entity
['Arthur Probert', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Probert property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q4800031,P937,c(Q56061))
action filter_type
action find
entity Q4800031
relation P937
type Q56061
[ANSWER] is the work location of Arthur Probert
['Q4800031', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q4800031 property:P937 ?s . ?s rdf:type ontology:Q56061 }
London
London is the work location of Arthur Probert
London
action filter_type
action find
entity Arthur Probert
relation work location
type administrative territorial entity
['Arthur Probert', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Arthur_Probert property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q656 Q84
P190
Q56061
USER
Which administrative territories are twin towns of London or Saint Petersburg ?
OR((Q84,P190,c(Q56061)), (Q656,P190,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q656
relation P190
type Q56061
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q656', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:Q84 ) ( resource:Q656 ) } . ?r property:P190 ?o } . ?o rdf:type ontology:Q56061 }
Saint Petersburg London
action filter_type
action union
action find
entity London
relation sister city
action find
entity Saint Petersburg
relation sister city
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Saint Petersburg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:London ) ( resource:Saint_Petersburg ) } . ?r property:sister_city ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1520 Q4115712 Q159273 Q9248 Q490 Q42810 Q987 Q1490 Q466221 Q42308
SYSTEM
Some of them are Astana, Kaunas, Arequipa, Baku, Milan, Le Havre, New Delhi, Tokyo, Sylhet, Kharkiv
Q1757 Q41572 Q193241 Q1754 Q8686 Q994 Q80021 Q987 Q1353 Q34820 Q18125 Q12892 Q649 Q23436 Q1861 Q79880 Q1335 Q41621 Q1963 Q42308 Q641 Q38545 Q42053 Q459 Q190583 Q117040 Q1850 Q2280 Q9365 Q40840 Q6506 Q180522 Q9248 Q180717 Q35493 Q17151 Q201051 Q1520 Q1764 Q5776 Q47282 Q25319 Q1563 Q4115712 Q64 Q3141 Q35381 Q38511 Q3630 Q20927 Q1010 Q466221 Q1479 Q1770 Q3561 Q192155 Q87 Q1874 Q65 Q34370 Q585 Q40269 Q406 Q1156 Q159273 Q58976 Q472 Q13972 Q216 Q270 Q60 Q8678 Q34647 Q490 Q956 Q42810 Q495 Q25409 Q1490 Q23564 Q1492 Q7525 Q5465 Q1085 Q36036
OR((Q84,P190,c(Q56061)), (Q656,P190,c(Q56061)))
action filter_type
action union
action find
entity Q84
relation P190
action find
entity Q656
relation P190
type Q56061
[ANSWERS] are twin towns of London or Saint Petersburg
{'OR': [['Q84', 'P190', {'concept': 'Q56061'}], ['Q656', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:Q84 ) ( resource:Q656 ) } . ?r property:P190 ?o } . ?o rdf:type ontology:Q56061 }
Helsinki Mykolaiv Nesebar Stockholm Shanghai Tbilisi Daugavpils New Delhi Delhi Santo Domingo Manchester Antwerp Moscow Edinburgh Bangkok Debrecen Montevideo Haifa Khartoum Kharkiv Venice Adana Isfahan Plovdiv Mikkeli Santiago de Cuba Phnom Penh Minsk Dushanbe Tampere Varna Aqaba Baku Sousse Almaty Thessaloniki Rishon LeZion Astana Reykjavík Bethlehem Osh Aarhus Havana Kaunas Berlin Melbourne Colombo Turku Jakarta Daegu Maribor Sylhet Bordeaux Tallinn Algiers Kotka Alexandria Odessa Los Angeles Rotterdam Oslo Porto Alegre Istanbul Mumbai Arequipa Piraeus Sofia Tartu Vilnius Warsaw New York City Rio de Janeiro Johannesburg Milan Beijing Le Havre Turin Košice Tokyo Podgorica Barcelona Sevastopol Cape Town Prague Lviv
Astana, Kaunas, Arequipa, Baku, Milan, Le Havre, New Delhi, Tokyo, Sylhet and Kharkiv are twin towns of London or Saint Petersburg
Astana Kaunas Arequipa Baku Milan Le Havre New Delhi Tokyo Sylhet Kharkiv
action filter_type
action union
action find
entity London
relation sister city
action find
entity Saint Petersburg
relation sister city
type administrative territorial entity
{'OR': [['London', 'sister city', {'concept': 'administrative territorial entity'}], ['Saint Petersburg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?r ) { ( resource:London ) ( resource:Saint_Petersburg ) } . ?r property:sister_city ?o } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6450163 Q656
P19 P190
Q56061
USER
Which administrative territories are sister towns of Saint Petersburg and were Kwang Jo Choi born in ?
AND((Q656,P190,c(Q56061)), (Q6450163,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q656
relation P190
action find
entity Q6450163
relation P19
type Q56061
{'AND': [['Q656', 'P190', {'concept': 'Q56061'}], ['Q6450163', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q656 property:P190 ?n . resource:Q6450163 property:P19 ?n }
Kwang Jo Choi Saint Petersburg
action filter_type
action intersection
action find
entity Saint Petersburg
relation sister city
action find
entity Kwang Jo Choi
relation place of birth
type administrative territorial entity
{'AND': [['Saint Petersburg', 'sister city', {'concept': 'administrative territorial entity'}], ['Kwang Jo Choi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Saint_Petersburg property:sister_city ?n . resource:Kwang_Jo_Choi property:place_of_birth ?n }
[]
administrative territorial entity
Q20927
SYSTEM
Daegu
Q20927
AND((Q656,P190,c(Q56061)), (Q6450163,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q656
relation P190
action find
entity Q6450163
relation P19
type Q56061
[ANSWER] is sister towns of Saint Petersburg and were Kwang Jo Choi born in
{'AND': [['Q656', 'P190', {'concept': 'Q56061'}], ['Q6450163', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q656 property:P190 ?n . resource:Q6450163 property:P19 ?n }
Daegu
Daegu is sister towns of Saint Petersburg and were Kwang Jo Choi born in
Daegu
action filter_type
action intersection
action find
entity Saint Petersburg
relation sister city
action find
entity Kwang Jo Choi
relation place of birth
type administrative territorial entity
{'AND': [['Saint Petersburg', 'sister city', {'concept': 'administrative territorial entity'}], ['Kwang Jo Choi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Saint_Petersburg property:sister_city ?n . resource:Kwang_Jo_Choi property:place_of_birth ?n }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q103725 Q4115712
P190
Q56061
USER
Which administrative territories are the sister cities of Kaunas and Hafnarfjörður ?
AND((Q4115712,P190,c(Q56061)), (Q103725,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q4115712
relation P190
action find
entity Q103725
relation P190
type Q56061
{'AND': [['Q4115712', 'P190', {'concept': 'Q56061'}], ['Q103725', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q4115712 property:P190 ?v . resource:Q103725 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Hafnarfjörður Kaunas
action filter_type
action intersection
action find
entity Kaunas
relation sister city
action find
entity Hafnarfjörður
relation sister city
type administrative territorial entity
{'AND': [['Kaunas', 'sister city', {'concept': 'administrative territorial entity'}], ['Hafnarfjörður', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Kaunas property:sister_city ?v . resource:Hafnarfjörður property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13972
SYSTEM
Tartu
Q13972
AND((Q4115712,P190,c(Q56061)), (Q103725,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q4115712
relation P190
action find
entity Q103725
relation P190
type Q56061
[ANSWER] is the sister cities of Kaunas and Hafnarfjörður
{'AND': [['Q4115712', 'P190', {'concept': 'Q56061'}], ['Q103725', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { resource:Q4115712 property:P190 ?v . resource:Q103725 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Tartu
Tartu is the sister cities of Kaunas and Hafnarfjörður
Tartu
action filter_type
action intersection
action find
entity Kaunas
relation sister city
action find
entity Hafnarfjörður
relation sister city
type administrative territorial entity
{'AND': [['Kaunas', 'sister city', {'concept': 'administrative territorial entity'}], ['Hafnarfjörður', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { resource:Kaunas property:sister_city ?v . resource:Hafnarfjörður property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q103725
P19
Q502895
USER
How many people were born at Hafnarfjörður ?
(c(Q502895),P19,Q103725)
action count
action filter_type
action find_reverse
entity Q103725
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q103725']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q103725 }
Hafnarfjörður
action count
action filter_type
action find_reverse
entity Hafnarfjörður
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Hafnarfjörður']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Hafnarfjörður }
[]
common name
SYSTEM
24
Q11004581 Q16195525 Q59105 Q3390875 Q438031 Q9257209 Q3480662 Q4411201 Q2715111 Q2338950 Q15677259 Q526122 Q962283 Q2294487 Q5623181 Q16424364 Q2285415 Q5623173 Q683427 Q463467 Q6469337 Q585266 Q631523 Q292977
(c(Q502895),P19,Q103725)
action count
action filter_type
action find_reverse
entity Q103725
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q103725']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q103725 }
Guðmundur Árni Stefánsson Sveinn Eythorsson Gylfi Sigurðsson Stefán Rafn Sigurmannsson Guðbjörg Gunnarsdóttir Eythor Thorlaksson Matthías Árni Mathiesen Knud Zimsen Emil Hallfreðsson Stefán Hörður Grímsson Björn Daníel Sverrisson Berglind Icey Stefán Karl Stefánsson Ævar Örn Jósepsson Guðmundur Ívarsson Guðmundsson Friðrik Dór Sigurbergur Sveinsson Guðmundur Kjærnested Aron Pálmarsson Kristín Marja Baldursdóttir Laddi Jón Páll Sigmarsson Emil Jónsson Ólafur Guðmundsson
24
action count
action filter_type
action find_reverse
entity Hafnarfjörður
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Hafnarfjörður']
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Hafnarfjörður }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q103725
P159
Q43229
USER
Which organization has its HQ location at that administrative territory ?
action filter_type
action find_reverse
entity Q103725
relation P159
type Q43229
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q103725 . ?i rdf:type ontology:Q43229 }
Hafnarfjörður
action filter_type
action find_reverse
entity Hafnarfjörður
relation headquarters location
type organization
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:Hafnarfjörður . ?i rdf:type ontology:organization }
[]
organization
Q7911724
SYSTEM
Valitor
Q7911724
action filter_type
action find_reverse
entity Q103725
relation P159
type Q43229
[ANSWER] has its HQ location at that administrative territory
SELECT DISTINCT ?i WHERE { ?i property:P159 resource:Q103725 . ?i rdf:type ontology:Q43229 }
Valitor
Valitor has its HQ location at that administrative territory
Valitor
action filter_type
action find_reverse
entity Hafnarfjörður
relation headquarters location
type organization
SELECT DISTINCT ?i WHERE { ?i property:headquarters_location resource:Hafnarfjörður . ?i rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q490 Q49114
P937
Q502895
USER
How many people works at Milan or Brown University ?
(c(Q502895),P937,Q490) (c(Q502895),P937,Q49114)
action count
action union
action filter_type
action find_reverse
entity Q490
relation P937
type Q502895
action filter_type
action find_reverse
entity Q49114
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q490'] [{'concept': 'Q502895'}, 'P937', 'Q49114']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P937 resource:Q490 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P937 resource:Q49114 . ?r rdf:type ontology:Q502895 } }
Milan Brown University
action count
action union
action filter_type
action find_reverse
entity Milan
relation work location
type common name
action filter_type
action find_reverse
entity Brown University
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Milan'] [{'concept': 'common name'}, 'work location', 'Brown University']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:work_location resource:Milan . ?r rdf:type ontology:common_name } UNION { ?r property:work_location resource:Brown_University . ?r rdf:type ontology:common_name } }
[]
common name
SYSTEM
77
Q669984 Q3894435 Q15689386 Q471529 Q1716463 Q1446191 Q76185 Q1331348 Q43689 Q3388274 Q1525909 Q1042453 Q23559 Q3530973 Q120126 Q2273489 Q669956 Q62271 Q1931098 Q13534572 Q3848262 Q106641 Q554406 Q551414 Q3605740 Q5427852 Q313923 Q435157 Q3609963 Q956617 Q1394730 Q369787 Q184530 Q635581 Q3771321 Q285390 Q2654972 Q452098 Q456873 Q367968 Q762 Q1294935 Q15407756 Q1526267 Q2172149 Q511928 Q1892362 Q312392 Q130759 Q240890 Q606015 Q1901175 Q1055449 Q1110515 Q641367 Q323118 Q19359603 Q703980 Q323885 Q1236274 Q430110 Q940454 Q4003103 Q363472 Q2486190 Q304825 Q439913 Q468658 Q3929568 Q3484042 Q1406722 Q3765459 Q715225 Q464011 Q428638 Q462775 Q514410
(c(Q502895),P937,Q490) (c(Q502895),P937,Q49114)
action count
action union
action filter_type
action find_reverse
entity Q490
relation P937
type Q502895
action filter_type
action find_reverse
entity Q49114
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q490'] [{'concept': 'Q502895'}, 'P937', 'Q49114']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:P937 resource:Q490 . ?r rdf:type ontology:Q502895 } UNION { ?r property:P937 resource:Q49114 . ?r rdf:type ontology:Q502895 } }
Carlo Gaetano Gaisruck Paolo Roversi Giuseppe Bruschetti Ludovico Antonio Muratori Nicolas-Henri Jacob Giovanni Battista Bovicelli Adolfo Hohenstein Margarita Broich Ambrose Pigello Portinari Giovanni Battista Palletta Carlo Salvioni Benito Mussolini Tomasino da Vimercate Inge Feltrinelli Gillo Dorfles Roberto Calasso Max Abraham Michele Sarfatti Lora Lamm Mario Alberti Johann Christian Bach Alberto Manguel Tullio Serafin Adriano Lualdi Fabio Morábito Nouriel Roubini Sophie Löwe Alessandro D'Avenia Antonio da Monza Marco Zanuso Biagio Marini Gerolamo Cardano Tommaso Ceva Giuseppe Ripamonti Mario Benzing Arnold G. Reichenberger Karl Thomas Mozart Galeazzo I Visconti Adriaen de Vries Leonardo da Vinci Pauline Müller Radomir Damnjanović-Damnjan Giovanni Mollio Rudi Wach Azzone Visconti Marco Cappato Lucio Fontana Christoph Willibald von Gluck Renata Scotto Antonio de Leyva, Duke of Terranova Giovanni Pietro Birago Matteo Salvini Giovanni Carnovali Annie Vivanti Carlo Manzoni Ottavio Ferrari Marino Marini Giuseppe Longhi Luigi Albertini Emilio Pomarico Giampietrino Ulrico Hoepli Adolf Nadig Bonifacio Bembo Angelo Mai Paola Cavalieri Elio Vittorini Raimondo Boucheron Silvia Ballestra Fernando Leal Audirac Giorgio Fontana Matteo I Visconti Leonor Fini Giuseppe Bossi Joan Massagué Solé Stefano Jacini
77
action count
action union
action filter_type
action find_reverse
entity Milan
relation work location
type common name
action filter_type
action find_reverse
entity Brown University
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Milan'] [{'concept': 'common name'}, 'work location', 'Brown University']
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { ?r property:work_location resource:Milan . ?r rdf:type ontology:common_name } UNION { ?r property:work_location resource:Brown_University . ?r rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q490
P1427
Q18608583
USER
Which recurring sporting event originates at Milan ?
(c(Q18608583),P1427,Q490)
action filter_type
action find_reverse
entity Q490
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q490']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q18608583 . ?p property:P1427 resource:Q490 }
Milan
action filter_type
action find_reverse
entity Milan
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Milan']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:recurring_sporting_event . ?p property:start_point resource:Milan }
[]
recurring sporting event
Q18710416
SYSTEM
2015 Milan – San Remo
Q18710416
(c(Q18608583),P1427,Q490)
action filter_type
action find_reverse
entity Q490
relation P1427
type Q18608583
[ANSWER] originates at Milan
[{'concept': 'Q18608583'}, 'P1427', 'Q490']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q18608583 . ?p property:P1427 resource:Q490 }
2015 Milan – San Remo
2015 Milan – San Remo originates at Milan
2015 Milan – San Remo
action filter_type
action find_reverse
entity Milan
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Milan']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:recurring_sporting_event . ?p property:start_point resource:Milan }
[]