Simple Question (Direct)
Simple Question
Q1208360
P706
Q56061
USER
Which administrative territory is Slussen metro station located on ?
(Q1208360,P706,c(Q56061))
action filter_type
action find
entity Q1208360
relation P706
type Q56061
['Q1208360', 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1208360 property:P706 ?v . ?v rdf:type ontology:Q56061 }
Slussen metro station
action filter_type
action find
entity Slussen metro station
relation located on terrain feature
type administrative territorial entity
['Slussen metro station', 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Slussen_metro_station property:located_on_terrain_feature ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q740149
SYSTEM
Södermalm
Q740149
(Q1208360,P706,c(Q56061))
action filter_type
action find
entity Q1208360
relation P706
type Q56061
Which administrative territory is Slussen metro station located on
['Q1208360', 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1208360 property:P706 ?v . ?v rdf:type ontology:Q56061 }
Södermalm
Which administrative territory is Slussen metro station located on
Södermalm
action filter_type
action find
entity Slussen metro station
relation located on terrain feature
type administrative territorial entity
['Slussen metro station', 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Slussen_metro_station property:located_on_terrain_feature ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q740149
P47
Q56061
USER
Which administrative territories are next to the border of that one ?
(c(Q56061),P47,Q740149)
action filter_type
action find
entity Q740149
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q740149']
SELECT DISTINCT ?p WHERE { resource:Q740149 property:P47 ?p . ?p rdf:type ontology:Q56061 }
Södermalm
action filter_type
action find
entity Södermalm
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Södermalm']
SELECT DISTINCT ?p WHERE { resource:Södermalm property:shares_border_with ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q831527 Q4411341 Q201002
SYSTEM
Djurgården, Södra Hammarbyhamnen, Liljeholmen
Q10670072 Q579854 Q831527 Q780785 Q4411341 Q201002 Q1043381 Q1782644
(c(Q56061),P47,Q740149)
action filter_type
action find
entity Q740149
relation P47
type Q56061
[ANSWERS] are next to the border of that one
[{'concept': 'Q56061'}, 'P47', 'Q740149']
SELECT DISTINCT ?p WHERE { resource:Q740149 property:P47 ?p . ?p rdf:type ontology:Q56061 }
Skeppsholmen Gamla stan Djurgården Långholmen Södra Hammarbyhamnen Liljeholmen Reimersholme Årsta
Djurgården, Södra Hammarbyhamnen and Liljeholmen are next to the border of that one
Djurgården Södra Hammarbyhamnen Liljeholmen
action filter_type
action find
entity Södermalm
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Södermalm']
SELECT DISTINCT ?p WHERE { resource:Södermalm property:shares_border_with ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q831527
P47
Q56061 Q271669
USER
How many administrative territories and landforms are adjacent to Djurgården ?
(Q831527,P47,c(Q56061)) (Q831527,P47,c(Q271669))
action count
action union
action filter_type
action find
entity Q831527
relation P47
type Q56061
action filter_type
action find
entity Q831527
relation P47
type Q271669
['Q831527', 'P47', {'concept': 'Q56061'}] ['Q831527', 'P47', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { resource:Q831527 property:P47 ?a . ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q271669 . resource:Q831527 property:P47 ?a } }
Djurgården
action count
action union
action filter_type
action find
entity Djurgården
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Djurgården
relation shares border with
type landform
['Djurgården', 'shares border with', {'concept': 'administrative territorial entity'}] ['Djurgården', 'shares border with', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { resource:Djurgården property:shares_border_with ?a . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:landform . resource:Djurgården property:shares_border_with ?a } }
[]
administrative territorial entity landform
SYSTEM
5 administrative territories and 1 landforms
Q10670072 Q740149 Q1781556 Q10550913 Q10495510 Q298489
(Q831527,P47,c(Q56061)) (Q831527,P47,c(Q271669))
action count
action union
action filter_type
action find
entity Q831527
relation P47
type Q56061
action filter_type
action find
entity Q831527
relation P47
type Q271669
[ANSWER]
['Q831527', 'P47', {'concept': 'Q56061'}] ['Q831527', 'P47', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { resource:Q831527 property:P47 ?a . ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q271669 . resource:Q831527 property:P47 ?a } }
Skeppsholmen Södermalm Gärdet Kvarnholmen Finnboda Östermalm
5 administrative territories and 1 landforms
action count
action union
action filter_type
action find
entity Djurgården
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Djurgården
relation shares border with
type landform
['Djurgården', 'shares border with', {'concept': 'administrative territorial entity'}] ['Djurgården', 'shares border with', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { { resource:Djurgården property:shares_border_with ?a . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:landform . resource:Djurgården property:shares_border_with ?a } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q831527
P138
Q12280
USER
Which bridge comes from that administrative territory ?
action filter_type
action find_reverse
entity Q831527
relation P138
type Q12280
SELECT DISTINCT ?l WHERE { ?l property:P138 resource:Q831527 . ?l rdf:type ontology:Q12280 }
Djurgården
action filter_type
action find_reverse
entity Djurgården
relation named after
type bridge
SELECT DISTINCT ?l WHERE { ?l property:named_after resource:Djurgården . ?l rdf:type ontology:bridge }
[]
bridge
Q1232277
SYSTEM
Djurgårdsbron
Q1232277
action filter_type
action find_reverse
entity Q831527
relation P138
type Q12280
[ANSWER] comes from that administrative territory
SELECT DISTINCT ?l WHERE { ?l property:P138 resource:Q831527 . ?l rdf:type ontology:Q12280 }
Djurgårdsbron
Djurgårdsbron comes from that administrative territory
Djurgårdsbron
action filter_type
action find_reverse
entity Djurgården
relation named after
type bridge
SELECT DISTINCT ?l WHERE { ?l property:named_after resource:Djurgården . ?l rdf:type ontology:bridge }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q831527
P47
Q56061 Q271669
USER
How many administrative territories or landforms have a shared border with Djurgården ?
(Q831527,P47,c(Q56061)) (Q831527,P47,c(Q271669))
action count
action union
action filter_type
action find
entity Q831527
relation P47
type Q56061
action filter_type
action find
entity Q831527
relation P47
type Q271669
['Q831527', 'P47', {'concept': 'Q56061'}] ['Q831527', 'P47', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?x ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } . ?f rdf:type ?x }
Djurgården
action count
action union
action filter_type
action find
entity Djurgården
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Djurgården
relation shares border with
type landform
['Djurgården', 'shares border with', {'concept': 'administrative territorial entity'}] ['Djurgården', 'shares border with', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?x ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?x }
[]
administrative territorial entity landform
SYSTEM
6
Q10670072 Q740149 Q1781556 Q10550913 Q10495510 Q298489
(Q831527,P47,c(Q56061)) (Q831527,P47,c(Q271669))
action count
action union
action filter_type
action find
entity Q831527
relation P47
type Q56061
action filter_type
action find
entity Q831527
relation P47
type Q271669
[ANSWER]
['Q831527', 'P47', {'concept': 'Q56061'}] ['Q831527', 'P47', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?x ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } . ?f rdf:type ?x }
Skeppsholmen Södermalm Gärdet Kvarnholmen Finnboda Östermalm
6
action count
action union
action filter_type
action find
entity Djurgården
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Djurgården
relation shares border with
type landform
['Djurgården', 'shares border with', {'concept': 'administrative territorial entity'}] ['Djurgården', 'shares border with', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?x ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?x }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q897848
P840
Q56061 Q15416 Q166142
USER
How many administrative territories are the narrative locations of approximately the same number of television programs and applications as Brande ?
(c(Q15416)|c(Q166142),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q897848
relation P840
type Q15416
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?a ) WHERE { { ?l rdf:type ontology:Q56061 . ?j rdf:type ontology:Q166142 . ?j property:P840 ?l } UNION { ?j property:P840 ?l . ?l rdf:type ontology:Q56061 . ?j rdf:type ontology:Q15416 } } GROUP BY ?l } . FILTER ( ?a = ?y ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P840 resource:Q897848 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q166142 ) } } } } }
Brande
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Brande
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?a ) WHERE { { ?l rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:application . ?j property:narrative_location ?l } UNION { ?j property:narrative_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:television_program } } GROUP BY ?l } . FILTER ( ?a = ?y ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:narrative_location resource:Brande . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:television_program ) ( ontology:application ) } } } } }
[]
administrative territorial entity television program application
SYSTEM
364
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 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 Q64 Q159232 Q1757 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(Q15416)|c(Q166142),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q897848
relation P840
type Q15416
type Q166142
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?a ) WHERE { { ?l rdf:type ontology:Q56061 . ?j rdf:type ontology:Q166142 . ?j property:P840 ?l } UNION { ?j property:P840 ?l . ?l rdf:type ontology:Q56061 . ?j rdf:type ontology:Q15416 } } GROUP BY ?l } . FILTER ( ?a = ?y ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P840 resource:Q897848 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q166142 ) } } } } }
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 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 Berlin Santa Cruz Helsinki 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
364
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Brande
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?a ) WHERE { { ?l rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:application . ?j property:narrative_location ?l } UNION { ?j property:narrative_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:television_program } } GROUP BY ?l } . FILTER ( ?a = ?y ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:narrative_location resource:Brande . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:television_program ) ( ontology:application ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35178
P840
Q56061 Q15416 Q166142
USER
And also tell me about Kuwait City?
(c(Q15416)|c(Q166142),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q35178
relation P840
type Q15416
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?z rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P840 resource:Q35178 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q166142 } } } } . FILTER ( ?a = ?k ) }
Kuwait City
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Kuwait City
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:application ) ( ontology:television_program ) } . ?z rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:narrative_location resource:Kuwait_City . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:application } } } } . FILTER ( ?a = ?k ) }
[]
administrative territorial entity television program application
SYSTEM
364
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 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 Q64 Q159232 Q1757 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(Q15416)|c(Q166142),P840,c(Q56061))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q35178
relation P840
type Q15416
type Q166142
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?z rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P840 resource:Q35178 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q166142 } } } } . FILTER ( ?a = ?k ) }
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 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 Berlin Santa Cruz Helsinki 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
364
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Kuwait City
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?z ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:application ) ( ontology:television_program ) } . ?z rdf:type ?l } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:narrative_location resource:Kuwait_City . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:application } } } } . FILTER ( ?a = ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q831527
P206
Q15324
USER
Which bodies of water are situated in the neighbourhood of Djurgården ?
(Q831527,P206,c(Q15324))
action filter_type
action find
entity Q831527
relation P206
type Q15324
['Q831527', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?i WHERE { resource:Q831527 property:P206 ?i . ?i rdf:type ontology:Q15324 }
Djurgården
action filter_type
action find
entity Djurgården
relation located next to body of water
type body of water
['Djurgården', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?i WHERE { resource:Djurgården property:located_next_to_body_of_water ?i . ?i rdf:type ontology:body_of_water }
[]
body of water
Q4176307 Q10604380
SYSTEM
Saltsjön, Nybroviken
Q4176307 Q10604380
(Q831527,P206,c(Q15324))
action filter_type
action find
entity Q831527
relation P206
type Q15324
[ANSWERS] are situated in the neighbourhood of Djurgården
['Q831527', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?i WHERE { resource:Q831527 property:P206 ?i . ?i rdf:type ontology:Q15324 }
Saltsjön Nybroviken
Saltsjön and Nybroviken are situated in the neighbourhood of Djurgården
Saltsjön Nybroviken
action filter_type
action find
entity Djurgården
relation located next to body of water
type body of water
['Djurgården', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?i WHERE { resource:Djurgården property:located_next_to_body_of_water ?i . ?i rdf:type ontology:body_of_water }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q10604380
P17
Q15617994
USER
How many administrative territories are Nybroviken located in ?
(Q10604380,P17,c(Q15617994))
action count
action filter_type
action find
entity Q10604380
relation P17
type Q15617994
['Q10604380', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Q10604380 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Nybroviken
action count
action filter_type
action find
entity Nybroviken
relation country
type designation for an administrative territorial entity
['Nybroviken', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Nybroviken property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q34
(Q10604380,P17,c(Q15617994))
action count
action filter_type
action find
entity Q10604380
relation P17
type Q15617994
[ANSWER]
['Q10604380', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Q10604380 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Sweden
1
action count
action filter_type
action find
entity Nybroviken
relation country
type designation for an administrative territorial entity
['Nybroviken', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Nybroviken property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q26624621
P17
Q15617994
USER
And how about The Cottage?
(Q26624621,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26624621
relation P17
type Q15617994
['Q26624621', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q26624621 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
The Cottage
action count
action filter_type
action find
entity The Cottage
relation country
type designation for an administrative territorial entity
['The Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:The_Cottage property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q26624621,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26624621
relation P17
type Q15617994
[ANSWER]
['Q26624621', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q26624621 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity The Cottage
relation country
type designation for an administrative territorial entity
['The Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:The_Cottage property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1979105
Q15617994
USER
And what about Bargeres?
(Q1979105,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1979105
relation P17
type Q15617994
['Q1979105', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q1979105 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Bargeres
action count
action filter_type
action find
entity Bargeres
relation country
type designation for an administrative territorial entity
['Bargeres', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Bargeres property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q1979105,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1979105
relation P17
type Q15617994
[ANSWER]
['Q1979105', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Q1979105 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Bargeres
relation country
type designation for an administrative territorial entity
['Bargeres', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { resource:Bargeres property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q15324 Q107425 Q515
USER
Which bodies of water are situated in the neighbourhood of max number of landscapes or cities ?
(c(Q107425)|c(Q515),P206,c(Q15324))
action argmax
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q107425
action find_reverse_tuple_counts
relation P206
type Q15324
type Q515
[[{'concept': 'Q107425'}, {'concept': 'Q515'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q107425 ) ( ontology:Q515 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:P206 ?h . ?h rdf:type ontology:Q15324 . ?s rdf:type ontology:Q107425 } UNION { ?s property:P206 ?h . ?s rdf:type ontology:Q515 . ?h rdf:type ontology:Q15324 } } GROUP BY ?h } . FILTER ( ?w = ?q ) }
action argmax
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type landscape
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type city
[[{'concept': 'landscape'}, {'concept': 'city'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:landscape ) ( ontology:city ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:located_next_to_body_of_water ?h . ?h rdf:type ontology:body_of_water . ?s rdf:type ontology:landscape } UNION { ?s property:located_next_to_body_of_water ?h . ?s rdf:type ontology:city . ?h rdf:type ontology:body_of_water } } GROUP BY ?h } . FILTER ( ?w = ?q ) }
[]
body of water landscape city
Q27092 Q1247
SYSTEM
Sea of Japan, Caribbean Sea
Q27092 Q1247
(c(Q107425)|c(Q515),P206,c(Q15324))
action argmax
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q107425
action find_reverse_tuple_counts
relation P206
type Q15324
type Q515
[ANSWERS] are situated in the neighbourhood of max number of landscapes or cities
[[{'concept': 'Q107425'}, {'concept': 'Q515'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q107425 ) ( ontology:Q515 ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:P206 ?h . ?h rdf:type ontology:Q15324 . ?s rdf:type ontology:Q107425 } UNION { ?s property:P206 ?h . ?s rdf:type ontology:Q515 . ?h rdf:type ontology:Q15324 } } GROUP BY ?h } . FILTER ( ?w = ?q ) }
Sea of Japan Caribbean Sea
Sea of Japan and Caribbean Sea are situated in the neighbourhood of max number of landscapes or cities
Sea of Japan Caribbean Sea
action argmax
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type landscape
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type city
[[{'concept': 'landscape'}, {'concept': 'city'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:landscape ) ( ontology:city ) } } GROUP BY ?o } } . { SELECT DISTINCT ?h ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:located_next_to_body_of_water ?h . ?h rdf:type ontology:body_of_water . ?s rdf:type ontology:landscape } UNION { ?s property:located_next_to_body_of_water ?h . ?s rdf:type ontology:city . ?h rdf:type ontology:body_of_water } } GROUP BY ?h } . FILTER ( ?w = ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1247
P276
Q1190554
USER
Which event is situated at that body of water ?
(c(Q1190554),P276,Q1247)
action filter_type
action find_reverse
entity Q1247
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q1247']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1190554 . ?m property:P276 resource:Q1247 }
Caribbean Sea
action filter_type
action find_reverse
entity Caribbean Sea
relation location
type event
[{'concept': 'event'}, 'location', 'Caribbean Sea']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:event . ?m property:location resource:Caribbean_Sea }
[]
event
Clarification for simple ques.
Q27092
SYSTEM
Did you mean Sea of Japan ?
Q27092 Q1247
(c(Q1190554),P276,Q27092) (c(Q1190554),P276,Q1247)
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q27092'] [{'concept': 'Q1190554'}, 'P276', 'Q1247']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1190554 . ?m property:P276 resource:Q1247 }
Sea of Japan Caribbean Sea
Did you mean Sea of Japan ?
Sea of Japan
[{'concept': 'event'}, 'location', 'Sea of Japan'] [{'concept': 'event'}, 'location', 'Caribbean Sea']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:event . ?m property:location resource:Caribbean_Sea }
[]
Simple Question (Coreferenced)
USER
No, I meant Caribbean Sea. Could you tell me the answer for that?
(c(Q1190554),P276,Q1247)
Q1247
[{'concept': 'Q1190554'}, 'P276', 'Q1247']
[{'concept': 'event'}, 'location', 'Caribbean Sea']
[]
Q128160
SYSTEM
Cuban Missile Crisis
Q128160
(c(Q1190554),P276,Q1247)
action filter_type
action find_reverse
entity Q1247
relation P276
type Q1190554
[ANSWER] is situated at that body of water
[{'concept': 'Q1190554'}, 'P276', 'Q1247']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1190554 . ?m property:P276 resource:Q1247 }
Cuban Missile Crisis
Cuban Missile Crisis is situated at that body of water
Cuban Missile Crisis
action filter_type
action find_reverse
entity Caribbean Sea
relation location
type event
[{'concept': 'event'}, 'location', 'Caribbean Sea']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:event . ?m property:location resource:Caribbean_Sea }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1232277 Q4698907
P186
Q214609
USER
How many materials are used to make Djurgårdsbron or Airport Flyover ?
(Q1232277,P186,c(Q214609)) (Q4698907,P186,c(Q214609))
action count
action union
action filter_type
action find
entity Q1232277
relation P186
type Q214609
action filter_type
action find
entity Q4698907
relation P186
type Q214609
['Q1232277', 'P186', {'concept': 'Q214609'}] ['Q4698907', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { resource:Q1232277 property:P186 ?b . ?b rdf:type ontology:Q214609 } UNION { ?b rdf:type ontology:Q214609 . resource:Q4698907 property:P186 ?b } }
Djurgårdsbron Airport Flyover
action count
action union
action filter_type
action find
entity Djurgårdsbron
relation material used
type material
action filter_type
action find
entity Airport Flyover
relation material used
type material
['Djurgårdsbron', 'material used', {'concept': 'material'}] ['Airport Flyover', 'material used', {'concept': 'material'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { resource:Djurgårdsbron property:material_used ?b . ?b rdf:type ontology:material } UNION { ?b rdf:type ontology:material . resource:Airport_Flyover property:material_used ?b } }
[]
material
SYSTEM
2
Q11427 Q22657
(Q1232277,P186,c(Q214609)) (Q4698907,P186,c(Q214609))
action count
action union
action filter_type
action find
entity Q1232277
relation P186
type Q214609
action filter_type
action find
entity Q4698907
relation P186
type Q214609
[ANSWER]
['Q1232277', 'P186', {'concept': 'Q214609'}] ['Q4698907', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { resource:Q1232277 property:P186 ?b . ?b rdf:type ontology:Q214609 } UNION { ?b rdf:type ontology:Q214609 . resource:Q4698907 property:P186 ?b } }
steel concrete
2
action count
action union
action filter_type
action find
entity Djurgårdsbron
relation material used
type material
action filter_type
action find
entity Airport Flyover
relation material used
type material
['Djurgårdsbron', 'material used', {'concept': 'material'}] ['Airport Flyover', 'material used', {'concept': 'material'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { resource:Djurgårdsbron property:material_used ?b . ?b rdf:type ontology:material } UNION { ?b rdf:type ontology:material . resource:Airport_Flyover property:material_used ?b } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7231877 Q4176307
P361
Q15324
USER
Which bodies of water are Saltsjön or Portland Bay a portion of ?
OR((Q4176307,P361,c(Q15324)), (Q7231877,P361,c(Q15324)))
action filter_type
action union
action find
entity Q4176307
relation P361
action find
entity Q7231877
relation P361
type Q15324
{'OR': [['Q4176307', 'P361', {'concept': 'Q15324'}], ['Q7231877', 'P361', {'concept': 'Q15324'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4176307 property:P361 ?u } UNION { resource:Q7231877 property:P361 ?u } } . ?u rdf:type ontology:Q15324 }
Portland Bay Saltsjön
action filter_type
action union
action find
entity Saltsjön
relation part of
action find
entity Portland Bay
relation part of
type body of water
{'OR': [['Saltsjön', 'part of', {'concept': 'body of water'}], ['Portland Bay', 'part of', {'concept': 'body of water'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Saltsjön property:part_of ?u } UNION { resource:Portland_Bay property:part_of ?u } } . ?u rdf:type ontology:body_of_water }
[]
body of water
Q186733 Q545
SYSTEM
Great Australian Bight, Baltic Sea
Q186733 Q545
OR((Q4176307,P361,c(Q15324)), (Q7231877,P361,c(Q15324)))
action filter_type
action union
action find
entity Q4176307
relation P361
action find
entity Q7231877
relation P361
type Q15324
The [ANSWERS] are Saltsjön or Portland Bay a portion of
{'OR': [['Q4176307', 'P361', {'concept': 'Q15324'}], ['Q7231877', 'P361', {'concept': 'Q15324'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4176307 property:P361 ?u } UNION { resource:Q7231877 property:P361 ?u } } . ?u rdf:type ontology:Q15324 }
Great Australian Bight Baltic Sea
The Great Australian Bight and Baltic Sea are Saltsjön or Portland Bay a portion of
Great Australian Bight Baltic Sea
action filter_type
action union
action find
entity Saltsjön
relation part of
action find
entity Portland Bay
relation part of
type body of water
{'OR': [['Saltsjön', 'part of', {'concept': 'body of water'}], ['Portland Bay', 'part of', {'concept': 'body of water'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Saltsjön property:part_of ?u } UNION { resource:Portland_Bay property:part_of ?u } } . ?u rdf:type ontology:body_of_water }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q20667921 Q15617994
USER
Which bodies of water are situated close to atleast 4 french administrative divisions and administrative territories ?
(c(Q20667921)|c(Q15617994),P206,c(Q15324))
action atleast
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q20667921
action find_reverse_tuple_counts
relation P206
type Q15324
type Q15617994
value 4
[[{'concept': 'Q20667921'}, {'concept': 'Q15617994'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:Q20667921 ) ( ontology:Q15617994 ) } . ?a rdf:type ?s } GROUP BY ?c } . FILTER ( ?b >= 4 ) }
action atleast
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type type of french administrative division
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type designation for an administrative territorial entity
value 4
[[{'concept': 'type of french administrative division'}, {'concept': 'designation for an administrative territorial entity'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:type_of_french_administrative_division ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?s } GROUP BY ?c } . FILTER ( ?b >= 4 ) }
[]
body of water type of french administrative division designation for an administrative territorial entity
Q13924 Q1693
SYSTEM
Adriatic Sea, North Sea
Q13924 Q1693
(c(Q20667921)|c(Q15617994),P206,c(Q15324))
action atleast
action union
action find_reverse_tuple_counts
relation P206
type Q15324
type Q20667921
action find_reverse_tuple_counts
relation P206
type Q15324
type Q15617994
value 4
[ANSWERS] are situated close to atleast 4 french administrative divisions and administrative territories
[[{'concept': 'Q20667921'}, {'concept': 'Q15617994'}], 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:Q20667921 ) ( ontology:Q15617994 ) } . ?a rdf:type ?s } GROUP BY ?c } . FILTER ( ?b >= 4 ) }
Adriatic Sea North Sea
Adriatic Sea and North Sea are situated close to atleast 4 french administrative divisions and administrative territories
Adriatic Sea North Sea
action atleast
action union
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type type of french administrative division
action find_reverse_tuple_counts
relation located next to body of water
type body of water
type designation for an administrative territorial entity
value 4
[[{'concept': 'type of french administrative division'}, {'concept': 'designation for an administrative territorial entity'}], 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:type_of_french_administrative_division ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?a rdf:type ?s } GROUP BY ?c } . FILTER ( ?b >= 4 ) }
[]