Simple Question (Direct)
Simple Question
Q1448000
P641
Q349
USER
Which sport was Igor Manojlović a part of ?
(Q1448000,P641,c(Q349))
action filter_type
action find
entity Q1448000
relation P641
type Q349
['Q1448000', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q1448000 property:P641 ?a . ?a rdf:type ontology:Q349 }
Igor Manojlović
action filter_type
action find
entity Igor Manojlović
relation sport
type sport
['Igor Manojlović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Igor_Manojlović property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1448000,P641,c(Q349))
action filter_type
action find
entity Q1448000
relation P641
type Q349
The [ANSWER] was Igor Manojlović a part of
['Q1448000', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q1448000 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
The association football was Igor Manojlović a part of
association football
action filter_type
action find
entity Igor Manojlović
relation sport
type sport
['Igor Manojlović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Igor_Manojlović property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1448000
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q1448000
relation P19
type Q56061
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1448000 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Igor Manojlović
action filter_type
action find
entity Igor Manojlović
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Igor_Manojlović property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3711
SYSTEM
Belgrade
Q3711
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q1448000
relation P19
type Q56061
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1448000 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Belgrade
That person was born in Belgrade
Belgrade
action filter_type
action find
entity Igor Manojlović
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Igor_Manojlović property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3711 Q193464
P706
Q56061
USER
How many administrative territories are located in Belgrade or Korçë County ?
(c(Q56061),P706,Q3711) (c(Q56061),P706,Q193464)
action count
action union
action filter_type
action find_reverse
entity Q3711
relation P706
type Q56061
action filter_type
action find_reverse
entity Q193464
relation P706
type Q56061
[{'concept': 'Q56061'}, 'P706', 'Q3711'] [{'concept': 'Q56061'}, 'P706', 'Q193464']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o property:P706 resource:Q3711 . ?o rdf:type ontology:Q56061 } UNION { ?o property:P706 resource:Q193464 . ?o rdf:type ontology:Q56061 } }
Belgrade Korçë County
action count
action union
action filter_type
action find_reverse
entity Belgrade
relation located on terrain feature
type administrative territorial entity
action filter_type
action find_reverse
entity Korçë County
relation located on terrain feature
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Belgrade'] [{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Korçë County']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o property:located_on_terrain_feature resource:Belgrade . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?o property:located_on_terrain_feature resource:Korçë_County . ?o rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
3
Q3303027 Q3304150 Q757298
(c(Q56061),P706,Q3711) (c(Q56061),P706,Q193464)
action count
action union
action filter_type
action find_reverse
entity Q3711
relation P706
type Q56061
action filter_type
action find_reverse
entity Q193464
relation P706
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P706', 'Q3711'] [{'concept': 'Q56061'}, 'P706', 'Q193464']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o property:P706 resource:Q3711 . ?o rdf:type ontology:Q56061 } UNION { ?o property:P706 resource:Q193464 . ?o rdf:type ontology:Q56061 } }
Plasë Arrëz Moscopole
3
action count
action union
action filter_type
action find_reverse
entity Belgrade
relation located on terrain feature
type administrative territorial entity
action filter_type
action find_reverse
entity Korçë County
relation located on terrain feature
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Belgrade'] [{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Korçë County']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o property:located_on_terrain_feature resource:Belgrade . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?o property:located_on_terrain_feature resource:Korçë_County . ?o rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3711
P36
Q648681 Q7275
USER
How many districts of Serbia or states are Belgrade the capital of ?
(c(Q648681),P36,Q3711) (c(Q7275),P36,Q3711)
action count
action union
action filter_type
action find_reverse
entity Q3711
relation P36
type Q648681
action filter_type
action find_reverse
entity Q3711
relation P36
type Q7275
[{'concept': 'Q648681'}, 'P36', 'Q3711'] [{'concept': 'Q7275'}, 'P36', 'Q3711']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { ?v rdf:type ontology:Q648681 . ?v property:P36 resource:Q3711 } UNION { ?v property:P36 resource:Q3711 . ?v rdf:type ontology:Q7275 } }
Belgrade
action count
action union
action filter_type
action find_reverse
entity Belgrade
relation capital
type district of Serbia
action filter_type
action find_reverse
entity Belgrade
relation capital
type state
[{'concept': 'district of Serbia'}, 'capital', 'Belgrade'] [{'concept': 'state'}, 'capital', 'Belgrade']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { ?v rdf:type ontology:district_of_Serbia . ?v property:capital resource:Belgrade } UNION { ?v property:capital resource:Belgrade . ?v rdf:type ontology:state } }
[]
district of Serbia state
SYSTEM
11
Q241748 Q15102440 Q83286 Q269864 Q878319 Q1277557 Q191077 Q37024 Q2074197 Q6412664 Q36704
(c(Q648681),P36,Q3711) (c(Q7275),P36,Q3711)
action count
action union
action filter_type
action find_reverse
entity Q3711
relation P36
type Q648681
action filter_type
action find_reverse
entity Q3711
relation P36
type Q7275
[ANSWER]
[{'concept': 'Q648681'}, 'P36', 'Q3711'] [{'concept': 'Q7275'}, 'P36', 'Q3711']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { ?v rdf:type ontology:Q648681 . ?v property:P36 resource:Q3711 } UNION { ?v property:P36 resource:Q3711 . ?v rdf:type ontology:Q7275 } }
Kingdom of Serbia Kingdom of Serbs, Croatians and Slovenes Socialist Federal Republic of Yugoslavia Socialist Republic of Serbia Serbian Despotate Democratic Federal Yugoslavia Kingdom of Yugoslavia Serbia and Montenegro Belgrade City Realm of Stefan Dragutin Yugoslavia
11
action count
action union
action filter_type
action find_reverse
entity Belgrade
relation capital
type district of Serbia
action filter_type
action find_reverse
entity Belgrade
relation capital
type state
[{'concept': 'district of Serbia'}, 'capital', 'Belgrade'] [{'concept': 'state'}, 'capital', 'Belgrade']
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { { ?v rdf:type ontology:district_of_Serbia . ?v property:capital resource:Belgrade } UNION { ?v property:capital resource:Belgrade . ?v rdf:type ontology:state } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3711
P1376
Q7275
USER
Which states have that administrative territory have their first city ?
action filter_type
action find
entity Q3711
relation P1376
type Q7275
SELECT DISTINCT ?h WHERE { resource:Q3711 property:P1376 ?h . ?h rdf:type ontology:Q7275 }
Belgrade
action filter_type
action find
entity Belgrade
relation capital of
type state
SELECT DISTINCT ?h WHERE { resource:Belgrade property:capital_of ?h . ?h rdf:type ontology:state }
[]
state
Q36704 Q37024 Q241748
SYSTEM
Yugoslavia, Serbia and Montenegro, Kingdom of Serbia
Q241748 Q878319 Q269864 Q83286 Q191077 Q37024 Q36704
action filter_type
action find
entity Q3711
relation P1376
type Q7275
[ANSWERS] have that administrative territory have their first city
SELECT DISTINCT ?h WHERE { resource:Q3711 property:P1376 ?h . ?h rdf:type ontology:Q7275 }
Kingdom of Serbia Serbian Despotate Socialist Republic of Serbia Socialist Federal Republic of Yugoslavia Kingdom of Yugoslavia Serbia and Montenegro Yugoslavia
Yugoslavia, Serbia and Montenegro and Kingdom of Serbia have that administrative territory have their first city
Yugoslavia Serbia and Montenegro Kingdom of Serbia
action filter_type
action find
entity Belgrade
relation capital of
type state
SELECT DISTINCT ?h WHERE { resource:Belgrade property:capital_of ?h . ?h rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q166919 Q193464
P706
Q56061
USER
Which administrative territories are located in Korçë County or Thessaly ?
OR((c(Q56061),P706,Q193464), (c(Q56061),P706,Q166919))
action filter_type
action union
action find_reverse
entity Q193464
relation P706
action find_reverse
entity Q166919
relation P706
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P706', 'Q193464'], [{'concept': 'Q56061'}, 'P706', 'Q166919']]}
SELECT DISTINCT ?q WHERE { { ?q property:P706 ?k . VALUES ( ?k ) { ( resource:Q166919 ) ( resource:Q193464 ) } } . ?q rdf:type ontology:Q56061 }
Thessaly Korçë County
action filter_type
action union
action find_reverse
entity Korçë County
relation located on terrain feature
action find_reverse
entity Thessaly
relation located on terrain feature
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Korçë County'], [{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Thessaly']]}
SELECT DISTINCT ?q WHERE { { ?q property:located_on_terrain_feature ?k . VALUES ( ?k ) { ( resource:Thessaly ) ( resource:Korçë_County ) } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3559000 Q2634117 Q4692628 Q1001541 Q4696796 Q643990 Q3558224 Q2333539 Q7564007 Q15540317
SYSTEM
Some of them are Myrofyllo, Livadi, Agios Georgios, Karditsa, Stomio, Aidonochori, Karditsa, Argalasti, Krini, Amygdali, Sotiritsa, Dolichi
Q1001541 Q11158055 Q3555848 Q7170942 Q12872210 Q6353850 Q8044642 Q5522518 Q583647 Q3564884 Q2466197 Q12873462 Q5068836 Q12885961 Q3558224 Q3563823 Q2638361 Q7577255 Q3564033 Q3561452 Q4692597 Q15540317 Q7563996 Q1755448 Q2460818 Q6983939 Q5105254 Q5415824 Q7918950 Q6432556 Q1192390 Q5457334 Q3564694 Q4696822 Q12881441 Q7918899 Q3564869 Q12879394 Q3560143 Q6823321 Q7660526 Q12872224 Q940330 Q3559048 Q3559041 Q2333539 Q6754976 Q2634117 Q3561400 Q4787823 Q11516135 Q7246837 Q3564796 Q757298 Q15093576 Q2001542 Q3567059 Q12872164 Q2115961 Q12211372 Q3859489 Q379272 Q6426671 Q12886120 Q396559 Q3558064 Q3564071 Q7127573 Q15113722 Q15088662 Q985454 Q3304150 Q7134904 Q2463817 Q1996882 Q985596 Q4692628 Q3558373 Q15091395 Q7564007 Q3564771 Q695745 Q3564776 Q3564062 Q15093891 Q3303027 Q2637021 Q3556113 Q2462737 Q4696796 Q3566812 Q972388 Q3161418 Q4692679 Q3564699 Q266065 Q12878762 Q3558369 Q3564837 Q940804 Q3559000 Q3561475 Q12879216 Q11135981 Q643990
OR((c(Q56061),P706,Q193464), (c(Q56061),P706,Q166919))
action filter_type
action union
action find_reverse
entity Q193464
relation P706
action find_reverse
entity Q166919
relation P706
type Q56061
[ANSWERS] are located in Korçë County or Thessaly
{'OR': [[{'concept': 'Q56061'}, 'P706', 'Q193464'], [{'concept': 'Q56061'}, 'P706', 'Q166919']]}
SELECT DISTINCT ?q WHERE { { ?q property:P706 ?k . VALUES ( ?k ) { ( resource:Q166919 ) ( resource:Q193464 ) } } . ?q rdf:type ontology:Q56061 }
Stomio Parapotamos, Larissa Karditsomagoula Pertouli Azoros Kallipefki, Larissa Xinovrysi Gardiki, Trikala Nea Anchialos Spathades Zagora Ampelia Chalkiades, Larissa Chania Krini Kallithea Elassonos Tsaritsani Spilia, Larissa Agnandero Karditsas Efxeinoupoli Agiokampos, Larissa Dolichi Sotira, Trikala Sesklo Ampelakia Nea Mesangala Chorto Evangelismos, Larissa Velika, Larissa Koropi, Magnesia Skiti Flampouro, Larissa Belokomiti Aigani Namata, Larissa Velestino Anthousa Kryovrysi Oxya Metaxochori Kalyvia Analipseos Akri Kalabaka Keramidi Megala Kalyvia Amygdali Marathea, Karditsa Livadi Elati Ardani, Trikala Vasiliki Proastio, Karditsa Anthiro Moscopole Domenikon Portaria Koniskos Agios Lavrentios Pinakates Damasi Mitropoli Gomfoi Kokkino Nero Chorefto Agria Tsagkarada Argyropouli Paliouria, Larissa Sykaminea Neraidochori Kala Nera Arrëz Paralia Koulouras Makrychori Verdikousa Farsala Agios Georgios, Karditsa Rapsani Platanidia Sotiritsa Mesochora Neraida Trygona Ano Lechonia Eleftheres, Larissa Plasë Trikeri Zarko Makrinitsa Aidonochori, Karditsa Glossa Oichalia, Trikala Agios Georgios Agios Vlasios, Magnesia Kryoneri Gelanthi Karitsa Kefalovryso Moschato Elassona Myrofyllo Pyrgetos Kokkinopilos Kastri-Loutro Argalasti
Myrofyllo, Livadi, Agios Georgios, Karditsa, Stomio, Aidonochori, Karditsa, Argalasti, Krini, Amygdali, Sotiritsa and Dolichi are located in Korçë County or Thessaly
Myrofyllo Livadi Agios Georgios, Karditsa Stomio Aidonochori, Karditsa Argalasti Krini Amygdali Sotiritsa Dolichi
action filter_type
action union
action find_reverse
entity Korçë County
relation located on terrain feature
action find_reverse
entity Thessaly
relation located on terrain feature
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Korçë County'], [{'concept': 'administrative territorial entity'}, 'located on terrain feature', 'Thessaly']]}
SELECT DISTINCT ?q WHERE { { ?q property:located_on_terrain_feature ?k . VALUES ( ?k ) { ( resource:Thessaly ) ( resource:Korçë_County ) } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3740507
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories are greater number of holidays and people a patron saint of than Favrio ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q3740507
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?p WHERE { VALUES ( ?r ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?j rdf:type ?r } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q3740507 property:P417 ?l . { { ?l rdf:type ontology:Q1445650 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?t > ?k ) }
Favrio
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Favrio
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?p WHERE { VALUES ( ?r ) { ( ontology:holiday ) ( ontology:common_name ) } . ?j rdf:type ?r } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Favrio property:patron_saint ?l . { { ?l rdf:type ontology:holiday } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?t > ?k ) }
[]
holiday common name administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q3740507
relation P417
type Q1445650
type Q502895
[ANSWERS] are greater number of holidays and people a patron saint of than Favrio
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?p WHERE { VALUES ( ?r ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?j rdf:type ?r } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q3740507 property:P417 ?l . { { ?l rdf:type ontology:Q1445650 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?t > ?k ) }
Brinzio Rome
Brinzio and Rome are greater number of holidays and people a patron saint of than Favrio
Brinzio Rome
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Favrio
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) ?p WHERE { VALUES ( ?r ) { ( ontology:holiday ) ( ontology:common_name ) } . ?j rdf:type ?r } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Favrio property:patron_saint ?l . { { ?l rdf:type ontology:holiday } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?t > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q496890
P417
Q1445650 Q502895 Q56061
USER
And also tell me about Balestrate?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q496890
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { resource:Q496890 property:P417 ?n . { { ?n rdf:type ontology:Q1445650 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?s WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?s } }
Balestrate
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Balestrate
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { resource:Balestrate property:patron_saint ?n . { { ?n rdf:type ontology:holiday } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?y > ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?s WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?s } }
[]
holiday common name administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q220 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q496890
relation P417
type Q1445650
type Q502895
[ANSWERS]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { resource:Q496890 property:P417 ?n . { { ?n rdf:type ontology:Q1445650 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?y > ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?s WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?s } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Brolo Kastritsa Platres Altrei Molista Mölten Rome Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow Madrid Milan
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Balestrate
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { resource:Balestrate property:patron_saint ?n . { { ?n rdf:type ontology:holiday } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?y > ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?s WHERE { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?s } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q649 Q2807 Q490
P190
Q13220204
USER
Which administrative country subdivisions are a sister city of those administrative territories ?
(c(Q13220204),P190,Q649) (c(Q13220204),P190,Q2807) (c(Q13220204),P190,Q490)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q2807'] [{'concept': 'Q13220204'}, 'P190', 'Q490']
SELECT DISTINCT ?r WHERE { ?h property:P190 ?r . ?r rdf:type ontology:Q13220204 . VALUES ( ?h ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } }
Moscow Madrid Milan
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Madrid'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Milan']
SELECT DISTINCT ?r WHERE { ?h property:sister_city ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision . VALUES ( ?h ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } }
[]
second-level administrative country subdivision
Q9899 Q2933 Q2841
SYSTEM
Amsterdam, Asunción, Bogotá
Q9899 Q156711 Q2933 Q2841 Q48278
(c(Q13220204),P190,Q649) (c(Q13220204),P190,Q2807) (c(Q13220204),P190,Q490)
action filter_type
action find
entity prev_answer
relation P190
type Q13220204
[ANSWERS] are a sister city of those administrative territories
[{'concept': 'Q13220204'}, 'P190', 'Q649'] [{'concept': 'Q13220204'}, 'P190', 'Q2807'] [{'concept': 'Q13220204'}, 'P190', 'Q490']
SELECT DISTINCT ?r WHERE { ?h property:P190 ?r . ?r rdf:type ontology:Q13220204 . VALUES ( ?h ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } }
Amsterdam Uzhhorod Asunción Bogotá Antioquia - Medellín
Amsterdam, Asunción and Bogotá are a sister city of those administrative territories
Amsterdam Asunción Bogotá
action filter_type
action find
entity prev_answer
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Moscow'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Madrid'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Milan']
SELECT DISTINCT ?r WHERE { ?h property:sister_city ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision . VALUES ( ?h ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9899
P6
Q502895
USER
Which person does Amsterdam serve as the head of government for ?
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q9899 property:P6 ?b }
Amsterdam
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Amsterdam property:head_of_government ?b }
[]
common name
Q1279554
SYSTEM
Eberhard van der Laan
Q1279554
(Q9899,P6,c(Q502895))
action filter_type
action find
entity Q9899
relation P6
type Q502895
Amsterdam serves as the head of government [ANSWER]
['Q9899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q9899 property:P6 ?b }
Eberhard van der Laan
Amsterdam serves as the head of government Eberhard van der Laan
Eberhard van der Laan
action filter_type
action find
entity Amsterdam
relation head of government
type common name
['Amsterdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Amsterdam property:head_of_government ?b }
[]