Simple Question (Direct)
Simple Question
Q447875
P20
Q56061
USER
Where did the demise of Lars Fredrik Nilson occur ?
(Q447875,P20,c(Q56061))
action filter_type
action find
entity Q447875
relation P20
type Q56061
['Q447875', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q447875 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Lars Fredrik Nilson
action filter_type
action find
entity Lars Fredrik Nilson
relation place of death
type administrative territorial entity
['Lars Fredrik Nilson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Lars_Fredrik_Nilson property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q447875,P20,c(Q56061))
action filter_type
action find
entity Q447875
relation P20
type Q56061
The demise of Lars Fredrik Nilson occurred in [ANSWER]
['Q447875', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q447875 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Stockholm
The demise of Lars Fredrik Nilson occurred in Stockholm
Stockholm
action filter_type
action find
entity Lars Fredrik Nilson
relation place of death
type administrative territorial entity
['Lars Fredrik Nilson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Lars_Fredrik_Nilson property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P190
Q56061
USER
Which administrative territories are the sister cities of that one ?
(Q1754,P190,c(Q56061))
action filter_type
action find
entity Q1754
relation P190
type Q56061
['Q1754', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1754 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Stockholm
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Stockholm property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q216 Q406 Q1489
SYSTEM
Vilnius, Istanbul, Mexico City
Q1757 Q226 Q216 Q1748 Q585 Q3711 Q13670 Q1764 Q1489 Q23564 Q1770 Q51103 Q406 Q10704
(Q1754,P190,c(Q56061))
action filter_type
action find
entity Q1754
relation P190
type Q56061
[ANSWERS] are the sister cities of that one
['Q1754', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q1754 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Helsinki Nuuk Vilnius Copenhagen Oslo Belgrade Syracuse Reykjavík Mexico City Podgorica Tallinn Cali Istanbul Tórshavn
Vilnius, Istanbul and Mexico City are the sister cities of that one
Vilnius Istanbul Mexico City
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Stockholm property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q216 Q406 Q1489
P190
Q15617994
USER
Which administrative territories are twin towns of those administrative territories ?
(Q216,P190,c(Q15617994)) (Q406,P190,c(Q15617994)) (Q1489,P190,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P190
type Q15617994
['Q216', 'P190', {'concept': 'Q15617994'}] ['Q406', 'P190', {'concept': 'Q15617994'}] ['Q1489', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . ?l property:P190 ?y . VALUES ( ?l ) { ( resource:Q1757 ) ( resource:Q226 ) ( resource:Q216 ) } }
Vilnius Istanbul Mexico City
action filter_type
action find
entity prev_answer
relation sister city
type designation for an administrative territorial entity
['Vilnius', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Istanbul', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Mexico City', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:sister_city ?y . VALUES ( ?l ) { ( resource:Helsinki ) ( resource:Nuuk ) ( resource:Vilnius ) } }
[]
designation for an administrative territorial entity
Q6259 Q2899 Q105317
SYSTEM
Pavia, Mülheim an der Ruhr, Niardo
Q6259 Q2899 Q105317
(Q216,P190,c(Q15617994)) (Q406,P190,c(Q15617994)) (Q1489,P190,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P190
type Q15617994
[ANSWERS] are twin towns of those administrative territories
['Q216', 'P190', {'concept': 'Q15617994'}] ['Q406', 'P190', {'concept': 'Q15617994'}] ['Q1489', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . ?l property:P190 ?y . VALUES ( ?l ) { ( resource:Q1757 ) ( resource:Q226 ) ( resource:Q216 ) } }
Pavia Mülheim an der Ruhr Niardo
Pavia, Mülheim an der Ruhr and Niardo are twin towns of those administrative territories
Pavia Mülheim an der Ruhr Niardo
action filter_type
action find
entity prev_answer
relation sister city
type designation for an administrative territorial entity
['Vilnius', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Istanbul', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Mexico City', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:sister_city ?y . VALUES ( ?l ) { ( resource:Helsinki ) ( resource:Nuuk ) ( resource:Vilnius ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6259 Q2899 Q105317
P190
Q56061
USER
Which administrative territories are the sister cities of Pavia, Mülheim an der Ruhr and Niardo ?
(Q6259,P190,c(Q56061)) (Q2899,P190,c(Q56061)) (Q105317,P190,c(Q56061))
action union
action filter_type
action find
entity Q6259
relation P190
type Q56061
action filter_type
action find
entity Q2899
relation P190
type Q56061
action filter_type
action find
entity Q105317
relation P190
type Q56061
['Q6259', 'P190', {'concept': 'Q56061'}] ['Q2899', 'P190', {'concept': 'Q56061'}] ['Q105317', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?h property:P190 ?w . VALUES ( ?h ) { ( resource:Q6259 ) ( resource:Q2899 ) } }
Pavia Mülheim an der Ruhr Niardo
action union
action filter_type
action find
entity Pavia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mülheim an der Ruhr
relation sister city
type administrative territorial entity
action filter_type
action find
entity Niardo
relation sister city
type administrative territorial entity
['Pavia', 'sister city', {'concept': 'administrative territorial entity'}] ['Mülheim an der Ruhr', 'sister city', {'concept': 'administrative territorial entity'}] ['Niardo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?h property:sister_city ?w . VALUES ( ?h ) { ( resource:Pavia ) ( resource:Mülheim_an_der_Ruhr ) } }
[]
administrative territorial entity
Q216 Q406 Q5776
SYSTEM
Vilnius, Istanbul, Bethlehem
Q216 Q37776 Q5776 Q213181 Q152436 Q623159 Q204382 Q406 Q1489
(Q6259,P190,c(Q56061)) (Q2899,P190,c(Q56061)) (Q105317,P190,c(Q56061))
action union
action filter_type
action find
entity Q6259
relation P190
type Q56061
action filter_type
action find
entity Q2899
relation P190
type Q56061
action filter_type
action find
entity Q105317
relation P190
type Q56061
[ANSWERS] are the sister cities of Pavia, Mülheim an der Ruhr and Niardo
['Q6259', 'P190', {'concept': 'Q56061'}] ['Q2899', 'P190', {'concept': 'Q56061'}] ['Q105317', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?h property:P190 ?w . VALUES ( ?h ) { ( resource:Q6259 ) ( resource:Q2899 ) } }
Vilnius Besançon Bethlehem Darlington Kfar Saba Qalqilya Kouvola Istanbul Mexico City
Vilnius, Istanbul and Bethlehem are the sister cities of Pavia, Mülheim an der Ruhr and Niardo
Vilnius Istanbul Bethlehem
action union
action filter_type
action find
entity Pavia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Mülheim an der Ruhr
relation sister city
type administrative territorial entity
action filter_type
action find
entity Niardo
relation sister city
type administrative territorial entity
['Pavia', 'sister city', {'concept': 'administrative territorial entity'}] ['Mülheim an der Ruhr', 'sister city', {'concept': 'administrative territorial entity'}] ['Niardo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?h property:sister_city ?w . VALUES ( ?h ) { ( resource:Pavia ) ( resource:Mülheim_an_der_Ruhr ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q216 Q406 Q5776
P190
Q56061
USER
Which administrative territories are twin cities of Vilnius, Istanbul and Bethlehem ?
(Q216,P190,c(Q56061)) (Q406,P190,c(Q56061)) (Q5776,P190,c(Q56061))
action union
action filter_type
action find
entity Q216
relation P190
type Q56061
action filter_type
action find
entity Q406
relation P190
type Q56061
action filter_type
action find
entity Q5776
relation P190
type Q56061
['Q216', 'P190', {'concept': 'Q56061'}] ['Q406', 'P190', {'concept': 'Q56061'}] ['Q5776', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?l ) { ( resource:Q216 ) ( resource:Q406 ) } . ?l property:P190 ?k }
Vilnius Istanbul Bethlehem
action union
action filter_type
action find
entity Vilnius
relation sister city
type administrative territorial entity
action filter_type
action find
entity Istanbul
relation sister city
type administrative territorial entity
action filter_type
action find
entity Bethlehem
relation sister city
type administrative territorial entity
['Vilnius', 'sister city', {'concept': 'administrative territorial entity'}] ['Istanbul', 'sister city', {'concept': 'administrative territorial entity'}] ['Bethlehem', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?l ) { ( resource:Vilnius ) ( resource:Istanbul ) } . ?l property:sister_city ?k }
[]
administrative territorial entity
Q1085 Q1085 Q649
SYSTEM
Moscow for 3rd, Prague for 1st, 2nd
Q437 Q1754 Q1867 Q649 Q1770 Q43788 Q1297 Q994 Q186237 Q3856 Q23436 Q23800 Q1780 Q1781 Q1520 Q172 Q34713 Q580 Q2656 Q585 Q21197 Q58976 Q1829 Q406 Q1764 Q1729 Q43070 Q270 Q239 Q25410 Q2280 Q6576 Q1085 Q36036 Q1754 Q8686 Q994 Q1741 Q727 Q3551 Q3766 Q365 Q1963 Q384 Q641 Q42053 Q35493 Q1524 Q269 Q3805 Q9248 Q459 Q1520 Q1781 Q1489 Q1563 Q231318 Q900 Q80053 Q3630 Q2449 Q84 Q85 Q34370 Q192888 Q8673 Q216 Q172 Q270 Q187346 Q8678 Q5713 Q83285 Q2044 Q64 Q3820 Q16555 Q1085 Q49233 Q1683958 Q317865 Q3551 Q5818 Q365 Q1524 Q42800 Q4093 Q983511 Q1289 Q5582862 Q103244 Q10305 Q36600 Q490 Q597 Q2044 Q6441 Q6221 Q2028
(Q216,P190,c(Q56061)) (Q406,P190,c(Q56061)) (Q5776,P190,c(Q56061))
action union
action filter_type
action find
entity Q216
relation P190
type Q56061
action filter_type
action find
entity Q406
relation P190
type Q56061
action filter_type
action find
entity Q5776
relation P190
type Q56061
[ANSWERS]
['Q216', 'P190', {'concept': 'Q56061'}] ['Q406', 'P190', {'concept': 'Q56061'}] ['Q5776', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?l ) { ( resource:Q216 ) ( resource:Q406 ) } . ?l property:P190 ?k }
Ljubljana Stockholm Taipei Moscow Tallinn Madison Chicago Tbilisi Joensuu Nicosia Edinburgh Valletta Bratislava Budapest Astana Toronto Salzburg Łódź Palermo Oslo Chișinău Piraeus Kaliningrad Istanbul Reykjavík Erfurt Donetsk Warsaw Brussels Aalborg Minsk Irkutsk Prague Lviv Stockholm Shanghai Tbilisi Vienna Amsterdam Rabat Damascus Cologne Khartoum Skopje Venice Isfahan Almaty Athens Tashkent Amman Baku Plovdiv Astana Budapest Mexico City Havana Johor Bahru Kazan Tabriz Jakarta Mogadishu London Cairo Rotterdam Smolyan Lagos Vilnius Toronto Warsaw Constantine Rio de Janeiro Mary Durrës Florence Berlin Beirut Houston Prague Orlando Madaba Joplin Rabat Córdoba Cologne Athens Belo Horizonte Glasgow Valinhos Grenoble Cusco San Miniato Zaragoza The Hague Milan Lisbon Florence Montpellier Brescia Verona
Prague, Prague and Moscow are twin cities of Vilnius, Istanbul and Bethlehem
Prague Prague Moscow
action union
action filter_type
action find
entity Vilnius
relation sister city
type administrative territorial entity
action filter_type
action find
entity Istanbul
relation sister city
type administrative territorial entity
action filter_type
action find
entity Bethlehem
relation sister city
type administrative territorial entity
['Vilnius', 'sister city', {'concept': 'administrative territorial entity'}] ['Istanbul', 'sister city', {'concept': 'administrative territorial entity'}] ['Bethlehem', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?l ) { ( resource:Vilnius ) ( resource:Istanbul ) } . ?l property:sister_city ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6259
P1376
Q15089
USER
What has Pavia as its capital ?
(Q6259,P1376,c(Q15089))
action filter_type
action find
entity Q6259
relation P1376
type Q15089
['Q6259', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?d WHERE { resource:Q6259 property:P1376 ?d . ?d rdf:type ontology:Q15089 }
Pavia
action filter_type
action find
entity Pavia
relation capital of
type province of Italy
['Pavia', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?d WHERE { resource:Pavia property:capital_of ?d . ?d rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16231
SYSTEM
Province of Pavia
Q16231
(Q6259,P1376,c(Q15089))
action filter_type
action find
entity Q6259
relation P1376
type Q15089
[ANSWER] has Pavia as its capital
['Q6259', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?d WHERE { resource:Q6259 property:P1376 ?d . ?d rdf:type ontology:Q15089 }
Province of Pavia
Province of Pavia has Pavia as its capital
Province of Pavia
action filter_type
action find
entity Pavia
relation capital of
type province of Italy
['Pavia', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?d WHERE { resource:Pavia property:capital_of ?d . ?d rdf:type ontology:province_of_Italy }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16231
P47
Q15089
USER
Who share the border with that one ?
(Q16231,P47,c(Q15089))
action filter_type
action find
entity Q16231
relation P47
type Q15089
['Q16231', 'P47', {'concept': 'Q15089'}]
SELECT DISTINCT ?b WHERE { resource:Q16231 property:P47 ?b . ?b rdf:type ontology:Q15089 }
Province of Pavia
action filter_type
action find
entity Province of Pavia
relation shares border with
type province of Italy
['Province of Pavia', 'shares border with', {'concept': 'province of Italy'}]
SELECT DISTINCT ?b WHERE { resource:Province_of_Pavia property:shares_border_with ?b . ?b rdf:type ontology:province_of_Italy }
[]
province of Italy
Q15121 Q15096 Q15097
SYSTEM
Province of Milan, Province of Vercelli, Province of Alessandria
Q16243 Q15121 Q16201 Q15096 Q15097 Q16216
(Q16231,P47,c(Q15089))
action filter_type
action find
entity Q16231
relation P47
type Q15089
[ANSWERS] share the border with that one
['Q16231', 'P47', {'concept': 'Q15089'}]
SELECT DISTINCT ?b WHERE { resource:Q16231 property:P47 ?b . ?b rdf:type ontology:Q15089 }
Province of Piacenza Province of Milan Province of Lodi Province of Vercelli Province of Alessandria Province of Novara
Province of Milan, Province of Vercelli and Province of Alessandria share the border with that one
Province of Milan Province of Vercelli Province of Alessandria
action filter_type
action find
entity Province of Pavia
relation shares border with
type province of Italy
['Province of Pavia', 'shares border with', {'concept': 'province of Italy'}]
SELECT DISTINCT ?b WHERE { resource:Province_of_Pavia property:shares_border_with ?b . ?b rdf:type ontology:province_of_Italy }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8686
P840
Q56061 Q838948 Q15416
USER
How many administrative territories are the narrative locations of approximately the same number of works of art and television programs as Shanghai ?
(c(Q838948)|c(Q15416),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q8686
relation P840
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?v rdf:type ?s } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P840 resource:Q8686 . { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } } } . FILTER ( ?t = ?i ) }
Shanghai
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Shanghai
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?v rdf:type ?s } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:narrative_location resource:Shanghai . { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:television_program ) } } } } . FILTER ( ?t = ?i ) }
[]
administrative territorial entity work of art television program
SYSTEM
365
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q1425428 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q16555 Q2048321 Q1335 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q5083 Q23154 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q131491 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q159232 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q23556 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q641 Q727 Q649 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q100 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q24826 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q838948)|c(Q15416),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q8686
relation P840
type Q838948
type Q15416
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } . ?v rdf:type ?s } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P840 resource:Q8686 . { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } } } . FILTER ( ?t = ?i ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Newcastle upon Tyne Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Houston Varde Montevideo Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Seattle Bristol Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Ascot Bloomington Havana Kazan Brighton Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Seville Libreville Santa Cruz Helsinki Manchester Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Atlanta Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Venice Amsterdam Moscow Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Boston Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Liverpool Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
365
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Shanghai
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:television_program ) } . ?v rdf:type ?s } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:narrative_location resource:Shanghai . { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:television_program ) } } } } . FILTER ( ?t = ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q25231
P840
Q56061 Q838948 Q15416
USER
And also tell me about Svalbard?
(c(Q838948)|c(Q15416),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q25231
relation P840
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?p WHERE { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { { ?t rdf:type ontology:Q15416 } UNION { ?t rdf:type ontology:Q838948 } } . ?t property:P840 resource:Q25231 } } . FILTER ( ?a = ?i ) }
Svalbard
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Svalbard
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?p WHERE { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:television_program ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { { ?t rdf:type ontology:television_program } UNION { ?t rdf:type ontology:work_of_art } } . ?t property:narrative_location resource:Svalbard } } . FILTER ( ?a = ?i ) }
[]
administrative territorial entity work of art television program
SYSTEM
365
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q10690 Q585 Q1425428 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q16555 Q2048321 Q1335 Q594807 Q1891 Q39121 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q5083 Q23154 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q8678 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q16557 Q8686 Q994 Q35178 Q113546 Q3130 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q131491 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q174 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q387047 Q18419 Q1780 Q1781 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q127856 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q24639 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q26 Q1726 Q530090 Q34404 Q8717 Q3825 Q159232 Q1757 Q18125 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q23556 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q641 Q727 Q649 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q100 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q24826 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q838948)|c(Q15416),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q25231
relation P840
type Q838948
type Q15416
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?p WHERE { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { { ?t rdf:type ontology:Q15416 } UNION { ?t rdf:type ontology:Q838948 } } . ?t property:P840 resource:Q25231 } } . FILTER ( ?a = ?i ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Cardiff Oslo Newcastle upon Tyne Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Houston Varde Montevideo Søborg Bologna Leeds Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Seattle Bristol Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Rio de Janeiro Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Dallas Shanghai Tbilisi Kuwait City Blackeberg Sydney Kathmandu Murano Ascot Bloomington Havana Kazan Brighton Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis São Paulo Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Malibu Brooklyn Bratislava Budapest Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Beverly Hills Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Vancouver Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Northern Ireland Munich Jerichow New Orleans Seville Libreville Santa Cruz Helsinki Manchester Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Atlanta Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Venice Amsterdam Moscow Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Boston Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Liverpool Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
365
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Svalbard
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?p WHERE { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:television_program ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { { ?t rdf:type ontology:television_program } UNION { ?t rdf:type ontology:work_of_art } } . ?t property:narrative_location resource:Svalbard } } . FILTER ( ?a = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16231
P6
Q502895
USER
Which person has Province of Pavia as its head of government ?
(Q16231,P6,c(Q502895))
action filter_type
action find
entity Q16231
relation P6
type Q502895
['Q16231', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q16231 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Province of Pavia
action filter_type
action find
entity Province of Pavia
relation head of government
type common name
['Province of Pavia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Province_of_Pavia property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
Q3701882
SYSTEM
Daniele Bosone
Q3701882
(Q16231,P6,c(Q502895))
action filter_type
action find
entity Q16231
relation P6
type Q502895
[ANSWER] has Province of Pavia as its head of government
['Q16231', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q16231 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Daniele Bosone
Daniele Bosone has Province of Pavia as its head of government
Daniele Bosone
action filter_type
action find
entity Province of Pavia
relation head of government
type common name
['Province of Pavia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Province_of_Pavia property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]