Simple Question (Direct)
Simple Question
Q18168607
P20
Q56061
USER
Where did Nikos Dadinopoulos expire ?
(Q18168607,P20,c(Q56061))
action filter_type
action find
entity Q18168607
relation P20
type Q56061
['Q18168607', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q18168607 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Nikos Dadinopoulos
action filter_type
action find
entity Nikos Dadinopoulos
relation place of death
type administrative territorial entity
['Nikos Dadinopoulos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Nikos_Dadinopoulos property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q182299
SYSTEM
Chania
Q182299
(Q18168607,P20,c(Q56061))
action filter_type
action find
entity Q18168607
relation P20
type Q56061
Nikos Dadinopoulos expired [ANSWER]
['Q18168607', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q18168607 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Chania
Nikos Dadinopoulos expired Chania
Chania
action filter_type
action find
entity Nikos Dadinopoulos
relation place of death
type administrative territorial entity
['Nikos Dadinopoulos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Nikos_Dadinopoulos property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182299
P47
Q56061
USER
Which administrative territory has a shared border with that one ?
(Q182299,P47,c(Q56061))
action filter_type
action find
entity Q182299
relation P47
type Q56061
['Q182299', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q182299 property:P47 ?i }
Chania
action filter_type
action find
entity Chania
relation shares border with
type administrative territorial entity
['Chania', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Chania property:shares_border_with ?i }
[]
administrative territorial entity
Q2532120
SYSTEM
Nea Kydonia
Q2532120
(Q182299,P47,c(Q56061))
action filter_type
action find
entity Q182299
relation P47
type Q56061
[ANSWER] has a shared border with that one
['Q182299', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . resource:Q182299 property:P47 ?i }
Nea Kydonia
Nea Kydonia has a shared border with that one
Nea Kydonia
action filter_type
action find
entity Chania
relation shares border with
type administrative territorial entity
['Chania', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . resource:Chania property:shares_border_with ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2532120 Q14833
P17
Q15617994
USER
Is Nea Kydonia a part of Heinsberg ?
(Q2532120,P17,Q14833)
action is_in
entity Q14833
action find
entity Q2532120
relation P17
['Q2532120', 'P17', 'Q14833']
ASK WHERE { resource:Q2532120 property:P17 resource:Q14833 }
Nea Kydonia Heinsberg
action is_in
entity Heinsberg
action find
entity Nea Kydonia
relation country
['Nea Kydonia', 'country', 'Heinsberg']
ASK WHERE { resource:Nea_Kydonia property:country resource:Heinsberg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2532120,P17,Q14833)
action is_in
entity Q14833
action find
entity Q2532120
relation P17
[ANSWER]
['Q2532120', 'P17', 'Q14833']
ASK WHERE { resource:Q2532120 property:P17 resource:Q14833 }
No
action is_in
entity Heinsberg
action find
entity Nea Kydonia
relation country
['Nea Kydonia', 'country', 'Heinsberg']
ASK WHERE { resource:Nea_Kydonia property:country resource:Heinsberg }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q355304 Q56061
USER
Which administrative territories are named after min number of administrative territories or watercourses ?
(c(Q56061),P138,c(Q15617994)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P138
type Q56061
type Q15617994
action find_tuple_counts
relation P138
type Q56061
type Q355304
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q355304 ) ( ontology:Q15617994 ) } } GROUP BY ?y } } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { { ?o property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q56061 } UNION { ?o property:P138 ?j . ?j rdf:type ontology:Q355304 . ?o rdf:type ontology:Q56061 } } GROUP BY ?o } }
action argmin
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type administrative territorial entity
type watercourse
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:watercourse ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { { ?o property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?o property:named_after ?j . ?j rdf:type ontology:watercourse . ?o rdf:type ontology:administrative_territorial_entity } } GROUP BY ?o } }
[]
designation for an administrative territorial entity watercourse administrative territorial entity
Q458 Q90 Q647
SYSTEM
European Union, Paris, Rennes
Q1510724 Q202736 Q5425343 Q923811 Q630597 Q1004791 Q1020592 Q1017362 Q2132 Q509541 Q2965897 Q1016100 Q1024892 Q585426 Q15273 Q567825 Q755425 Q3028710 Q190583 Q146811 Q493378 Q574085 Q639408 Q947001 Q1085963 Q2675898 Q786124 Q4849268 Q7947 Q155955 Q1152219 Q2058 Q2502173 Q891 Q2284698 Q1465092 Q18682600 Q34116 Q2291816 Q83178 Q21416521 Q157688 Q25923 Q102334 Q3844 Q6661068 Q11683189 Q963170 Q2583602 Q2786054 Q583161 Q1784180 Q534957 Q3805 Q3240441 Q2288 Q810678 Q732554 Q2247076 Q3481151 Q2768192 Q4217424 Q588 Q484678 Q196501 Q946227 Q4258240 Q1276943 Q2067514 Q2451306 Q19289482 Q6506 Q605113 Q989567 Q2605640 Q1403187 Q2560090 Q606153 Q1018025 Q2403511 Q2890642 Q28539 Q2685999 Q4067724 Q1297086 Q323432 Q1829193 Q18471262 Q959016 Q21999685 Q383434 Q4116524 Q172575 Q1186226 Q167895 Q191642 Q131335 Q200917 Q3025889 Q124281 Q787828 Q13542193 Q2138 Q1120380 Q128306 Q15242553 Q2327293 Q1924796 Q172616 Q189295 Q9365 Q79439 Q3726467 Q90 Q2442973 Q976759 Q470638 Q48329 Q4231936 Q5646251 Q675049 Q12725121 Q970482 Q1963236 Q2267197 Q264605 Q160544 Q269222 Q5284497 Q5284494 Q2550212 Q2441471 Q1930 Q1010188 Q18682030 Q516769 Q1212270 Q525007 Q7974195 Q2315713 Q568563 Q3030491 Q1020419 Q2310264 Q12077645 Q2280179 Q12077647 Q1000232 Q133310 Q58337 Q132679 Q365 Q1509463 Q2135060 Q676589 Q2583736 Q1410885 Q1253349 Q1144877 Q192235 Q2060859 Q2231797 Q116732 Q2786965 Q206954 Q3462820 Q2022921 Q746056 Q14218357 Q1871309 Q4792204 Q208445 Q2396415 Q913476 Q21186160 Q2104736 Q954186 Q16555 Q476835 Q1019187 Q282540 Q1670366 Q2096672 Q393693 Q2132831 Q11899935 Q20593492 Q2459510 Q28260 Q13129608 Q153490 Q1027521 Q2531632 Q11870465 Q6661799 Q95041 Q751594 Q1000172 Q874262 Q3112096 Q2305259 Q166065 Q1524 Q1043381 Q4454 Q128361 Q2549931 Q128244 Q2367586 Q155309 Q1904685 Q3396792 Q154785 Q196724 Q2995979 Q43463 Q2199406 Q16294796 Q990898 Q488987 Q2281401 Q970540 Q18659914 Q2231869 Q3239732 Q887 Q2082 Q2024923 Q2020113 Q906740 Q55669 Q1907325 Q852577 Q491462 Q2141 Q6178987 Q812722 Q37133 Q714650 Q6661272 Q3028745 Q746772 Q4813216 Q1620075 Q2899083 Q767177 Q3141 Q706032 Q814163 Q2031463 Q17151 Q5062771 Q431932 Q237 Q14706851 Q3566431 Q605267 Q567814 Q16559 Q614727 Q647 Q585186 Q23443 Q1763534 Q1656936 Q1019486 Q2405593 Q3130 Q10843471 Q7399833 Q198125 Q7592847 Q1866604 Q2294628 Q2545984 Q79863 Q1750681 Q690882 Q2615624 Q3567822 Q484870 Q13129631 Q664723 Q606268 Q87 Q129452 Q733744 Q491132 Q965101 Q12980087 Q3053020 Q211463 Q16274129 Q11901984 Q19289906 Q765823 Q1353744 Q48338 Q7225587 Q5112 Q525618 Q11892146 Q2199088 Q5239 Q2190456 Q175161 Q268782 Q666165 Q93910 Q5284547 Q966492 Q1434796 Q18242285 Q37320 Q642164 Q208000 Q284406 Q297853 Q5330523 Q49111 Q618495 Q17203393 Q2792756 Q806903 Q153609 Q153565 Q786611 Q16869 Q722396 Q5169909 Q175505 Q19289593 Q393619 Q174 Q60 Q961248 Q932623 Q18602441 Q485699 Q823475 Q1144250 Q1659808 Q2198018 Q16648189 Q129461 Q746027 Q501744 Q16660730 Q1878726 Q2003323 Q2324280 Q143697 Q3029834 Q858607 Q2266864 Q975843 Q2224902 Q3183 Q15241652 Q1158897 Q368727 Q2204179 Q14912 Q2722227 Q2211711 Q48273 Q1935682 Q10393380 Q105284 Q196922 Q22669030 Q1176875 Q20593780 Q3406126 Q3497036 Q956 Q196934 Q187346 Q4412287 Q5655 Q6226 Q493025 Q3101185 Q34183 Q103850 Q2920311 Q1996519 Q157458 Q578758 Q51681 Q51685 Q2198333 Q5384 Q2324628 Q50816 Q2270295 Q17942 Q1021877 Q18419 Q953279 Q2455984 Q7110478 Q2770 Q6936566 Q574612 Q1982848 Q13652348 Q158357 Q5206 Q12131761 Q2375558 Q1020484 Q2865259 Q20593327 Q5355318 Q895407 Q2840555 Q18161533 Q3047387 Q52998 Q3152900 Q1856529 Q11568 Q6377788 Q16658206 Q16658203 Q1974434 Q501824 Q2496779 Q530191 Q961897 Q153549 Q54886 Q2684131 Q49219 Q979752 Q2380665 Q1010939 Q156717 Q4207520 Q2063327 Q3567118 Q2523914 Q1829 Q1047189 Q340 Q175651 Q12093400 Q593141 Q4670000 Q2503080 Q1659154 Q2855406 Q20933314 Q6125153 Q457334 Q16015068 Q244025 Q1816203 Q631186 Q1112057 Q6787277 Q2732597 Q43070 Q24639 Q45604 Q2311761 Q1026175 Q3413067 Q1942643 Q868869 Q2552887 Q652552 Q13035375 Q915 Q162933 Q1861097 Q2956038 Q6449092 Q188693 Q129449 Q3623803 Q196384 Q129447 Q743632 Q44016 Q44013 Q133123 Q744550 Q471969 Q197902 Q2540118 Q7438733 Q13640603 Q2272796 Q375185 Q7122288 Q1005623 Q663035 Q157469 Q2043530 Q223308 Q2919992 Q486860 Q2931074 Q5627 Q1026291 Q15982072 Q61 Q62 Q1937099 Q2080102 Q2857905 Q201125 Q105150 Q2636902 Q15552182 Q194067 Q1026838 Q670083 Q1025016 Q2018240 Q2621007 Q1297201 Q1014288 Q2271236 Q79588 Q5284526 Q2805272 Q2761467 Q2649977 Q982379 Q5261403 Q1002286 Q72380 Q4867888 Q956545 Q982372 Q855572 Q795623 Q498968 Q2483434 Q1929731 Q499169 Q270887 Q1818610 Q2215428 Q8076888 Q132832 Q5491176 Q11880386 Q2782963 Q2613390 Q4620106 Q3029792 Q10313 Q2434021 Q405550 Q1921069 Q3112125 Q3497234 Q641 Q40747 Q17486733 Q578669 Q134318 Q632687 Q867468 Q21181 Q187313 Q2879005 Q44059 Q40191 Q955151 Q20252340 Q2603127 Q276115 Q2464425 Q158292 Q79844 Q427543 Q2500115 Q727806 Q4361 Q633371 Q617602 Q2662899 Q203263 Q518189 Q2639307 Q5511175 Q104059 Q1380511 Q75008 Q2650727 Q9003776 Q784496 Q2623928 Q6665662 Q1040 Q503652 Q575206 Q3947651 Q6421147 Q152491 Q870864 Q5603908 Q14452 Q3400083 Q136383 Q100 Q19290903 Q2123 Q458 Q2127 Q2061265 Q3117008 Q988751 Q18744510 Q3495314 Q856004 Q3002124 Q470481 Q60705 Q133116 Q991515 Q983438 Q3932 Q1002490 Q642894 Q3305212 Q2029779 Q2928449 Q513464 Q2278195 Q3077234 Q1007823 Q1187051 Q712567 Q13972 Q208151 Q2081683 Q6096033 Q2688620 Q1943127 Q3028087 Q955115 Q1858372 Q1015690 Q339527 Q2388710 Q886915 Q4336048 Q2997217 Q849292 Q79809 Q661559 Q1341 Q16106 Q1476342 Q146798 Q1016404 Q15241524 Q8052284 Q916603 Q103661 Q1013717 Q198210 Q2904899 Q198748 Q11873198 Q1849651 Q11901400 Q20205972 Q2757895 Q2503821 Q1758944
(c(Q56061),P138,c(Q15617994)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P138
type Q56061
type Q15617994
action find_tuple_counts
relation P138
type Q56061
type Q355304
[ANSWERS] are named after min number of administrative territories or watercourses
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q355304 ) ( ontology:Q15617994 ) } } GROUP BY ?y } } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { { ?o property:P138 ?j . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q56061 } UNION { ?o property:P138 ?j . ?j rdf:type ontology:Q355304 . ?o rdf:type ontology:Q56061 } } GROUP BY ?o } }
White Bird Littlefield FELDA L.B. Johnson New Amsterdam, Guyana Twijzelerheide Douglas Pulaski Mount Hagen Victoria Andrews Ermerveen King William's Town Robertsport Eesergroen Kirovsk Zuid-Beijerland Athens Zuidlaarderveen Mikkeli Zanesville Culver City Strahan Waterloo George Enescu Franklin Beetsterzwaag Kosovo Polje Bakers Narrows Pushkin Kuybyshev Baker City Whitehorse Maksyma Horkoho Nizhny Novgorod Munnekemoer New Bremen Saukkoriipi Thunder Bay Gheorghe Doja Almere Settlement of Sullivans Cove Lomonosov Longyearbyen Dmitrov Brazzaville Llanafan Fawr Ingeniero Adolfo Sourdeaux Humboldt Sint-Anna Valthermond Aranđelovac Doral Cleburne Amman Canistota Tver Bastrop Chavín de Huantar Barger-Compascuum Shackleton Mahbubnagar Cato Ridge Katowice Berkeley Suvorov Kermit Lenino Eamont Bridge Quesnel, British Columbia Onida Sztálinváros Varna Gosford Wooster Gasselterboerveen Felipe Carrillo Puerto Athol Port Macquarie Vahdat St Arnaud Beit Berl Karrharde Pieterburen Anuchino Szentléránt Fairfield Gardner San Lorenzo Amsterdam Llantrithyd Greater Sudbury Daintree Neftegorsk Lincoln, New Zealand Kalamata São José dos Campos Sioux Falls Zaslawye Odoornerveen Antinopolis Aleksa Šantić C.A. Rosetti Fredericton Prescott Denton Llandeloy Kolderwolde Mora Nefteyugansk Serov Dushanbe Athens I.L. Caragiale Paris Coal City Kountze Loyalist Mariehamn Konchanskoe-Suvorovskoe Hampton Lucy Flandreau Sarmizegetusa Nacogdoches Nieuwe Krim Blauwestad Humboldt Heraklion Buchanan, Liberia Braddon Bass De Bombay Dieverbrug Ottawa Scheemda Kivijärvi Faya-Largeau Máriabesnyő Kerrville Waterloo Inkster Lincoln Nieuw-Dordrecht Madison Roderwolde Alexandru Odobescu Ushakovskoye Alexandru Odobescu Falcon Heights Volodarsk Banff Willemstad Cologne Vaishali Gas Szandaszőlős Lincolnville Pulaski Rókus Currie Ciudad del Este Nieuw-Beijerland Nieuw-Roden Nakovo Lincoln Kastoria Krasnogvardeyskoye, Stavropol Krai Burgemeester Beinsdorp Telečka Holbrook Ironton Qarakeçdi Vallejo Hornhuizen Albert Lea Kerekszenttamás Port McNeill Campbelltown Houston Givat Brenner Daireaux Thompson Falls Tangipahoa Spangen Agioi Anargyroi Prins Alexander Vaalajärvi Llandeilo Graban Pesse Lincoln Llanbadarn Fynydd Kirov Ermelo Papagou Kauhajärvi Llantilio Pertholey Naberezhnye Chelny Preseka, Gornji Mihaljevec Pulaski Ladysmith Rotsterhaule Vegelinsoord Lelystad Athens Reimersholme Khabarovsk Odessa Haskerhorne Waco Sint Jacobiparochie Korolyov Naterij Melas Komsomolsk Tutayev Hull Fortaleza Haslam Stalinstadt Georgetown Türkmenbaşy Nieuw-Buinen Wharton Kauhajärvi Fort Ripley Sulphur Yekaterinburg St. John's Pooley Bridge Clay City Diósgyőr-Vasgyár Ny-Ålesund Laaghalerveen Carlsbad Anderson Halifax Jennings Bački Gračac Mariupol Obrenovac Llandyssil Eelderwolde Hantumhuizen Athanasios Diakos, Greece Hippos Sevenhill Kurchatov Melbourne Melton Beeville Santo Tomé Thessaloniki General Berthelot Truth or Consequences Vatican City Mabbettsville Askio Geraldton Iron Mountain Austin Eexterveen Rennes Tweede Exloërmond Provo Açailândia Sáenz Peña Harper Drouwenermond Sydney Aarón Castellanos Sai Ying Pun Chkalovsk St Clether Livingstone, Zambia Oneida De Wilp Tskhinvali Rakovski Municipality Sint Philipsland Lincolnton Whitton Eisleben Llanfechell Henderson Port Lincoln Alexandria Snorum Filadelfia Santa Clarita Emory Flaten Emmer-Compascuum Agios Nikolaos Bergen Isakhanova Vuontisjärvi Dunapentele Augusta Vindelicorum Marconi Wireless Station Site Kayseri Pollards Point Adelaide Presidente Prudente Salpausselkä Dalerpeel Vladikavkaz Stawell Novomoskovsk Bady Bassitt Augusta Treverorum Novokuznetsk Lyons Lincoln, California Tamworth Beruniy Cleveland Beylagan Mahabalipuram José María Morelos Øresund Region Eastern Tickle Cambridge Aphrodisias Bajaszentistván Wijnjewoude Banning Kirovsk Kirovo-Chepetsk Püspökszentlászló Constantinople Dusti Cordeaux Heights Nolinsk Leninváros Ayia Trias, Cyprus São Paulo New York City Valentine Dauphin Island Benczúrfalva Stadskanaal Hall Hopetoun Imeni Poliny Osipenko Batadorp Yelizavetovka Hej Havelterberg Alert Mindszent Willemsoord, Steenwijkerland Warner Robins Eexterzandvoort Kalininsk Kollumerzwaag Strijen Rotstergaast Kaufman Echtenerbrug Perth Busse Dampier Mátyásföld Llandeilo Saarlouis Creil Nitro Adamstown Kolkhozobod Wenceslao Escalante Bolgar Usolye Máriaváros Mihail Kogălniceanu Llanddwywe Llantwit Fardre Kennedy Town Beijing Ussuriysk Constantine Bromma Kyrka Chernyakhovsk St Albans Edson Uithuizermeeden Barrie Arsenyev Nordia Agia Varvara Leninogorsk Darien Charlotte Amalie Tempe Buweklooster Kirov Geesbrug Mississauga Dalerveen Haasts Bluff Clarens, Free State Brooklyn Sveti Petar, Ogulin Haulerwijk Oulu Tula Victor Larco Herrera Municipality New Braunfels New Norfolk Nebo Marks Stavropol Mihai Eminescu Rutherglen Satpayev Exloërveen Llanbadarn y Garreg Electoral district of Daylesford Bowen Sint Annaparochie Russell Hill Eden Richmond Hill Amsterdam, Mpumalanga Alexander Bay, Northern Cape Darwin Oprișani Turgenevo Ruzhino Yodfat Elim Gasselternijveenschemond Nea Ionia Lincoln Kirovgrad Cuenca De Punt Irvine Post Mission Akhalgori Khmelnytskyi Kazakevichevo Roma Weiteveen Bethlehem, Groningen Kaliningrad Golovnino Montreal Obninsk Vintilă Vodă Philip Acharnes Amsterdamscheveld Shahrixon Bonnerveen Itascatown Jakhau Moncton Venyukovo Burnaby Presidente Bernardes Thomasville Jumilla Mathinna Nikola Tesla Donetsk Vancouver Kandahar Iron City Custer Jean-Jaurès Aberfeldy Harlingen Peizerwold Dordrecht, Eastern Cape Luneburg, South Africa Perm Amaliada Sint Nicolaasga Change Islands Kuybyshev Blantyre Snapp General Praporgescu Solikamsk Snipp Nieuw-Amsterdam, Drenthe Markham Vaughan Patras Belton Lille metropolis Chekalin Santo Tomé Scranton Banevurovo Damwâld Hanford Pacific Alliance New Berlin Lincoln Leninsk Oranjedorp New Amsterdam Kfar Zoharim Mountain View Termunterzijl Ulyanovsk Kant Colonia Calafia Washington, D.C. San Francisco Pierz Kraggenburg Anthedon Zrenjanin Biryuch Eagmaryp Tikhmenevo Serpukhov Kfar Malal Sveti Duh na Ostrem Vrhu Cooperstown Beech Grove Kreva Szentsimon Nea Vyssa Kootstertille Lincoln Franklin Ens Roderesch Peizermade Sherman Derby Donji Milanovac Kurchatov Bass Wildervank Dalhart Bükkszentlászló Oud-Beijerland Espargos Frederiksoord Ter Apelkanaal Tyler Lethbridge Lastoursville Souillac, Mauritius Ángel R. Cabada Budyonnovsk Franklin Maanselkä Nieuw-Balinge Tweede Valthermond Kərimbəyli Nij Altoenae Donostia/San Sebastián Lheebroek Suvorovo Meppen Nij Beets Motovilikhinsky City District Venice Pierre Llandeilo Abercywyn Albertfalva Gagarin Archer City Ciprian Porumbescu Fredericia Stanley Bagdad La Plata Hobart Butler Miguel Alemán Valdés Al-Malikiyah Grise Fiord Clay Kropyvnytskyi Stuttgart Stockholm metropolitan area Musselkanaal Kollumerpomp Curitiba Raseborg Palestine Surhuisterveen Athens Agostyán Mastichochoria Fyansford Asbest Gloversville Östra Torn Gieterveen Hilario Ascasubi Victoria Bartlehiem Lockington Karlsruhe Malvinas Argentinas Mount Pulaski San Martino della Battaglia Klisurski Monastery Herzliya Lenauheim Greenethorpe Easter Island Llanafan Zhukov Boston Pálhalma Regina European Union Charlottetown Perito Moreno Oranjewoud Lincoln City Llanfechan St Endellion C.A. Rosetti Crantock Amfissa Emmeloord Hamilton Canmore Douglas São Tomé New Bern Alumínio Young Lincolnton Burfjord Horiany Natchitoches Forfjord Galyatető Svilojevo Artigas Tartu León Donnybrook Ivan Cankar, Maribor Nieuw-Beerta Seville Feanwâldsterwâl Kirawsk Exloërkijl Hastings Launceston Eerste Exloërmond Blythe Ordzhonikidze Chkalovsk Pedro Juan Caballero Utqiaġvik Ambracia Tolyatti Eisenhüttenstadt Hell-Bourg Zanesfield Burketown Abrazheyevka Yeni yol, Shamkir Cody Apatity Hamtramck Shakhunya Beetgumermolen Engels Kuivasjärvi Nieuw-Weerdinge Vikajärvi Colonia Ángel Heladio Aguirre Rivero Vrouwenparochie Ouwster-Nijega Rottumeroog
European Union, Paris and Rennes are named after min number of administrative territories or watercourses
European Union Paris Rennes
action argmin
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type administrative territorial entity
type watercourse
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?g ) { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?f ) WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:watercourse ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } } . FILTER ( ?d = ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { { ?o property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?o property:named_after ?j . ?j rdf:type ontology:watercourse . ?o rdf:type ontology:administrative_territorial_entity } } GROUP BY ?o } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q458
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q458,P85,c(Q484692))
action filter_type
action find
entity Q458
relation P85
type Q484692
['Q458', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q458 property:P85 ?h . ?h rdf:type ontology:Q484692 }
European Union
action filter_type
action find
entity European Union
relation anthem
type hymn
['European Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:European_Union property:anthem ?h . ?h rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q458
SYSTEM
Did you mean European Union ?
Q458 Q90 Q647
(Q458,P85,c(Q484692)) (Q90,P85,c(Q484692)) (Q647,P85,c(Q484692))
[ANSWER]
['Q458', 'P85', {'concept': 'Q484692'}] ['Q90', 'P85', {'concept': 'Q484692'}] ['Q647', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q458 property:P85 ?h . ?h rdf:type ontology:Q484692 }
European Union Paris Rennes
Did you mean European Union ?
European Union
['European Union', 'anthem', {'concept': 'hymn'}] ['Paris', 'anthem', {'concept': 'hymn'}] ['Rennes', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:European_Union property:anthem ?h . ?h rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
Yes
(Q458,P85,c(Q484692))
['Q458', 'P85', {'concept': 'Q484692'}]
['European Union', 'anthem', {'concept': 'hymn'}]
[]
Q11993
SYSTEM
Anthem of Europe
Q11993
(Q458,P85,c(Q484692))
action filter_type
action find
entity Q458
relation P85
type Q484692
The [ANSWER] is the anthem for that administrative territory
['Q458', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q458 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Anthem of Europe
The Anthem of Europe is the anthem for that administrative territory
Anthem of Europe
action filter_type
action find
entity European Union
relation anthem
type hymn
['European Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:European_Union property:anthem ?h . ?h rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1001
Q56061
USER
How many administrative territories belong to jurisdiction of that hymn ?
(Q11993,P1001,c(Q56061))
action count
action filter_type
action find
entity Q11993
relation P1001
type Q56061
['Q11993', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q11993 property:P1001 ?g . ?g rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Anthem of Europe
relation applies to jurisdiction
type administrative territorial entity
['Anthem of Europe', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Anthem_of_Europe property:applies_to_jurisdiction ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q458
(Q11993,P1001,c(Q56061))
action count
action filter_type
action find
entity Q11993
relation P1001
type Q56061
[ANSWER]
['Q11993', 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q11993 property:P1001 ?g . ?g rdf:type ontology:Q56061 }
European Union
1
action count
action filter_type
action find
entity Anthem of Europe
relation applies to jurisdiction
type administrative territorial entity
['Anthem of Europe', 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Anthem_of_Europe property:applies_to_jurisdiction ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q506261 Q458
P47 P27
Q15617994
USER
Which administrative territories share the border with European Union and are Valery Zorkin a civilian of ?
AND((Q458,P47,c(Q15617994)), (Q506261,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q458
relation P47
action find
entity Q506261
relation P27
type Q15617994
{'AND': [['Q458', 'P47', {'concept': 'Q15617994'}], ['Q506261', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q458 property:P47 ?k . resource:Q506261 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Valery Zorkin European Union
action filter_type
action intersection
action find
entity European Union
relation shares border with
action find
entity Valery Zorkin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['European Union', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Valery Zorkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:European_Union property:shares_border_with ?k . resource:Valery_Zorkin property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((Q458,P47,c(Q15617994)), (Q506261,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q458
relation P47
action find
entity Q506261
relation P27
type Q15617994
[ANSWER] share the border with European Union and are Valery Zorkin a civilian of
{'AND': [['Q458', 'P47', {'concept': 'Q15617994'}], ['Q506261', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q458 property:P47 ?k . resource:Q506261 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Russia
Russia share the border with European Union and are Valery Zorkin a civilian of
Russia
action filter_type
action intersection
action find
entity European Union
relation shares border with
action find
entity Valery Zorkin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['European Union', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Valery Zorkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:European_Union property:shares_border_with ?k . resource:Valery_Zorkin property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]