Simple Question (Direct)
Simple Question
Q3816414
P21
Q290
USER
What is the sex of Konstantinos Loudis ?
(Q3816414,P21,c(Q290))
action filter_type
action find
entity Q3816414
relation P21
type Q290
['Q3816414', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3816414 property:P21 ?d }
Konstantinos Loudis
action filter_type
action find
entity Konstantinos Loudis
relation gender
type sex
['Konstantinos Loudis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Konstantinos_Loudis property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3816414,P21,c(Q290))
action filter_type
action find
entity Q3816414
relation P21
type Q290
The sex of Konstantinos Loudis is a [ANSWER]
['Q3816414', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q3816414 property:P21 ?d }
male
The sex of Konstantinos Loudis is a male
male
action filter_type
action find
entity Konstantinos Loudis
relation gender
type sex
['Konstantinos Loudis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Konstantinos_Loudis property:gender ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3816414
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q3816414
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q3816414 property:P19 ?q }
Konstantinos Loudis
action filter_type
action find
entity Konstantinos Loudis
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Konstantinos_Loudis property:place_of_birth ?q }
[]
administrative territorial entity
Q17151
SYSTEM
Thessaloniki
Q17151
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q3816414
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q3816414 property:P19 ?q }
Thessaloniki
Thessaloniki is the place of birth of that person
Thessaloniki
action filter_type
action find
entity Konstantinos Loudis
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Konstantinos_Loudis property:place_of_birth ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P6
Q502895 Q56061
USER
Which administrative territories have their government headed by approximately the same number of people as that administrative territory ?
(c(Q56061),P6,c(Q502895))
action approx
action find_tuple_counts
relation P6
type Q56061
type Q502895
action count
action filter_type
action find
entity Q17151
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?p rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 . ?p property:P6 ?t } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q17151 property:P6 ?l . ?l rdf:type ontology:Q56061 } } . FILTER ( ?w = ?r ) }
action approx
action find_tuple_counts
relation head of government
type administrative territorial entity
type common name
action count
action filter_type
action find
entity Thessaloniki
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name . ?p property:head_of_government ?t } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Thessaloniki property:head_of_government ?l . ?l rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?w = ?r ) }
[]
common name administrative territorial entity
Q649 Q8678 Q8686
SYSTEM
Moscow, Rio de Janeiro, Shanghai
Q807 Q1613421 Q49169 Q802 Q6931 Q26525 Q664550 Q244747 Q1715 Q13127 Q10084 Q803 Q1443790 Q190583 Q27918 Q2814 Q1240735 Q9248 Q172657 Q200122 Q2948 Q898 Q894 Q1632675 Q891 Q3718 Q12273 Q1642988 Q38511 Q1183 Q3711 Q2174 Q233467 Q1874 Q83178 Q2272 Q25923 Q6025 Q1643620 Q39420 Q15679 Q25287 Q80985 Q11967 Q2280 Q29042 Q68883 Q3376 Q47513 Q133026 Q1630737 Q7059 Q49233 Q3150 Q34021 Q14893 Q837464 Q49238 Q3100518 Q940738 Q13471 Q622030 Q63092 Q58780 Q220843 Q13274 Q3630 Q13379 Q4656 Q548441 Q15487 Q13375 Q11974 Q1442461 Q16568 Q1645052 Q10305 Q608985 Q16563 Q23337 Q33959 Q322437 Q8692 Q14938 Q1631896 Q134679 Q193180 Q2656 Q1289 Q17151 Q1630552 Q1632687 Q1643030 Q585 Q846440 Q9920 Q1643848 Q134699 Q12155 Q15681 Q1643840 Q496567 Q659351 Q46940 Q6610 Q931188 Q162857 Q1769733 Q1757 Q156858 Q1754 Q36989 Q1628832 Q1613503 Q1022 Q13153 Q2881786 Q202776 Q749 Q59101 Q3561641 Q6477 Q847118 Q9361 Q47048 Q16635 Q976610 Q197582 Q1646345 Q588290 Q8378 Q10509 Q2881848 Q49272 Q62140 Q501090 Q102762 Q168782 Q1613475 Q302099 Q324489 Q7880 Q13122 Q13121 Q494521 Q157032 Q495428 Q516485 Q961325 Q7019 Q121157 Q25416 Q1646370 Q7010 Q1646374 Q598 Q1646377 Q13939 Q14328 Q80021 Q917173 Q12892 Q3894 Q5836 Q6014 Q490960 Q1297 Q820476 Q4113 Q756598 Q170513 Q1613482 Q12995 Q820224 Q1629837 Q12411 Q925925 Q162615 Q1750981 Q1626858 Q4051 Q11994 Q54140 Q15760 Q578081 Q332730 Q542606 Q43631 Q1445232 Q496968 Q146342 Q1767902 Q303366 Q8810 Q191805 Q6555 Q1635681 Q27001 Q27168 Q1897 Q1891 Q920677 Q131290 Q280243 Q249995 Q28911 Q12303 Q44013 Q1614556 Q992 Q170433 Q156080 Q1630130 Q40236 Q140075 Q14323 Q181056 Q14325 Q477232 Q484799 Q393 Q5083 Q1524 Q4454 Q1632489 Q1489 Q181359 Q1481 Q178405 Q26393 Q615676 Q1130 Q79519 Q1709 Q28218 Q490457 Q139564 Q144983 Q8356 Q1156 Q2861 Q798 Q11703 Q2868 Q8678 Q15468 Q1632660 Q865586 Q495 Q2044 Q887 Q1645489 Q883 Q95041 Q681893 Q485716 Q12246 Q921291 Q26087 Q2143 Q695425 Q2141 Q1613446 Q2144 Q37133 Q3490 Q1842 Q776965 Q4019 Q520119 Q10313 Q1611575 Q15092 Q3138 Q983805 Q15093 Q7067 Q986075 Q171617 Q80836 Q197386 Q8851 Q1645238 Q1726 Q68124 Q1310 Q6285 Q26430 Q134121 Q26432 Q486282 Q1632524 Q6049 Q334 Q239 Q25410 Q1645047 Q1611807 Q4083 Q339527 Q16553 Q16555 Q16557 Q728412 Q622 Q621 Q127041 Q8686 Q994 Q1637534 Q628 Q904768 Q1628461 Q11125 Q1296 Q1646388 Q155993 Q1295 Q5168 Q490732 Q181314 Q1372614 Q11088190 Q600693 Q1632442 Q1643832 Q273779 Q908 Q12059984 Q1563 Q626763 Q900 Q23197 Q104400 Q16048 Q817204 Q25409 Q614400 Q7032 Q1223508 Q836082 Q690 Q1261509 Q88 Q808812 Q163973 Q586018 Q1630535 Q15420 Q232842 Q1630122 Q53139 Q647543 Q129259 Q178310 Q2103 Q1613360 Q1613406 Q175161 Q12292 Q472 Q1643692 Q1733 Q93910 Q11959 Q35493 Q1645791 Q329984 Q47034 Q214173 Q7022 Q37320 Q214178 Q208006 Q785888 Q25395 Q25396 Q2423 Q1442470 Q210093 Q1646361 Q47483 Q71 Q1646364 Q80053 Q3771 Q1631182 Q49145 Q1957 Q5426 Q12191 Q3674 Q37100 Q83407 Q2214 Q174 Q1613493 Q6509 Q927541 Q2028 Q842011 Q82838 Q156658 Q1626867 Q470380 Q6506 Q23564 Q1648608 Q152578 Q192225 Q1764584 Q84 Q8802 Q1901661 Q524407 Q1441219 Q8818 Q15678 Q1626889 Q488052 Q18419 Q9997 Q1648589 Q27007 Q15674 Q839805 Q1764579 Q1308 Q754768 Q1613382 Q4936662 Q2142215 Q253672 Q57110 Q9832 Q740351 Q54452 Q715 Q41604 Q33935 Q48273 Q919652 Q21197 Q41819 Q736906 Q537853 Q16644 Q1630474 Q14318 Q16641 Q26569 Q14314 Q389205 Q15090 Q134620 Q956 Q15095 Q15098 Q47430 Q6221 Q959 Q437 Q16017 Q16010 Q586498 Q975013 Q3551 Q2415 Q1048762 Q42308 Q8745 Q1729 Q1479 Q5384 Q773420 Q2766547 Q659823 Q3951 Q927510 Q1647880 Q1011890 Q1780 Q1781 Q695380 Q16082 Q12258 Q13386 Q41329 Q505920 Q749842 Q743218 Q269 Q640211 Q1153945 Q695550 Q1851 Q26339 Q12460 Q1157971 Q202158 Q608752 Q1630093 Q3786 Q43070 Q193293 Q11568 Q157058 Q156974 Q3828 Q159273 Q44206 Q1903 Q1645193 Q1353 Q1352 Q332989 Q1354 Q179830 Q946208 Q179833 Q58337 Q183104 Q12225 Q132754 Q27119 Q5239 Q1829 Q162022 Q220 Q340 Q10282 Q47265 Q26421 Q1626839 Q1645770 Q930686 Q98967 Q25331 Q837062 Q1520 Q25230 Q1637525 Q61942 Q61944 Q105444 Q631186 Q5831 Q492744 Q1015681 Q65362 Q842228 Q3043 Q10400 Q24639 Q1632435 Q1643824 Q465078 Q919 Q1615595 Q6576 Q528530 Q915 Q914 Q1737 Q726538 Q118958 Q371790 Q11953 Q48292 Q16050 Q2746 Q15684 Q768 Q24861 Q105538 Q616877 Q761 Q44989 Q9580 Q1630506 Q910973 Q521148 Q1028279 Q69290 Q504451 Q2630 Q37776 Q1615953 Q471969 Q600671 Q331141 Q2112 Q309164 Q3584 Q2290 Q136023 Q782513 Q393925 Q1724 Q13896 Q695504 Q234053 Q321074 Q2873545 Q7030 Q2593371 Q103789 Q9536 Q2592 Q211760 Q7038 Q1642209 Q34404 Q8717 Q65 Q1628817 Q736131 Q40340 Q3764 Q5818 Q1065474 Q1658755 Q216939 Q83062 Q385 Q5813 Q12439 Q83065 Q10006 Q1643637 Q875 Q7040 Q12994 Q23556 Q17175 Q49550 Q1444329 Q837478 Q43713 Q486991 Q48814 Q79990 Q135394 Q8385 Q166065 Q34863 Q13364 Q1757659 Q6106 Q68160 Q793 Q69354 Q49256 Q3640 Q1658553 Q70 Q154897 Q487981 Q28441 Q25804 Q727 Q649 Q648 Q3646 Q230368 Q1641394 Q9306 Q54119 Q927149 Q44059 Q40623 Q9934 Q3992 Q13934 Q485329 Q15696 Q15695 Q487679 Q28848 Q15088 Q4361 Q273413 Q384303 Q193443 Q572041 Q588 Q6842 Q1613517 Q582 Q200166 Q1867 Q43919 Q8757 Q34370 Q1763 Q986089 Q99151 Q1764 Q970482 Q3949 Q1630518 Q5465 Q495380 Q241767 Q6441 Q1019965 Q2066 Q33613 Q3058634 Q102346 Q4178 Q581478 Q1613467 Q100 Q103565 Q81137 Q40840 Q6354269 Q651766 Q225375 Q3840 Q198047 Q26793 Q54898 Q49266 Q2235 Q190021 Q494693 Q487786 Q14336 Q473914 Q958637 Q47571 Q12233 Q4100 Q216 Q646620 Q1642754 Q623175 Q4068 Q13972 Q1645666 Q190499 Q1628569 Q1613373 Q975 Q241125 Q82030 Q222702 Q146351 Q1643605 Q186254 Q47887 Q8826 Q462840 Q502249 Q1643765 Q505862 Q965529 Q1341 Q1884 Q4615 Q171018 Q41621 Q225729 Q907241 Q612 Q1017 Q244289 Q41876 Q15699 Q190235 Q1646296 Q83813 Q521090 Q6487 Q198748 Q41970 Q34647 Q1641785 Q221447 Q1632497 Q743236
(c(Q56061),P6,c(Q502895))
action approx
action find_tuple_counts
relation P6
type Q56061
type Q502895
action count
action filter_type
action find
entity Q17151
relation P6
type Q56061
[ANSWERS] have their government headed by approximately the same number of people as that administrative territory
[{'concept': 'Q56061'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?p rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 . ?p property:P6 ?t } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q17151 property:P6 ?l . ?l rdf:type ontology:Q56061 } } . FILTER ( ?w = ?r ) }
Lausanne Valencia de Alcántara Stamford Nowy Sącz Böblingen Drammen Maradi Tudela Hanover Sint-Niklaas Vlissingen Utrecht Hornachuelos Mikkeli Bad Rappenau Halle (Saale) Fort Simpson Baku Nizhnekamsk Linnich Neuss Omsk Samara Campo Lugar Nizhny Novgorod Dakar Gijón Pescueza Turku Puerto Rico Belgrade Naryan-Mar Gisborne, New Zealand Odessa Almere Skien Longyearbyen Gorno-Altaysk Peraleda de la Mata Sochi Badajoz Gothenburg Fes Huesca Minsk Akureyri Villars-Sainte-Croix Trento Sant'Ambrogio di Valpolicella Kolomna Madrigal de la Vera Bruchsal Orlando Jena Bastogne Ettlingen Malacky Greensboro Guinguinéo Campillo de Deleitosa Jafre Palos de la Frontera Carmona Hasselt Walvis Bay Krk Jakarta Kurgan Pula Portugalete Berga Pisa Las Palmas de Gran Canaria Talayuela Jacksonville Bohonal de Ibor Zaragoza Elda Memphis Salt Lake City Nice Ablitas Bilbao Bernburg Almodóvar del Campo Gubkin Kajaani Palermo Grenoble Thessaloniki Almoharín Ceclavín Portaje Oslo Moldava nad Bodvou Haarlem Aldea del Cano Gukovo Soria Jaén La Aldea del Obispo Eibar Ettelbruck Alcalá de Henares Yakutsk Arroyomolinos, Cáceres Kourfeye Centre Benquerencia Helsinki Struga Stockholm Pardubice Serradilla Madroñera Stuttgart Ronda Bambey Ziguinchor Groningen Narvik Pelendri Pirna Lipany Bishkek Oulu Guam Santa Cruz de Paniagua Khimki Holguera Valdastillas Palencia Elche Bana, Cameroon Chandler Harstad Castro Urdiales Azov Tobolsk Cilleros Requena Trujillo Toulouse Dendermonde Aalst Emmendingen Prilep Bretten Friedberg Holešov Albstadt Mashhad Stavanger Albalá Leonberg Aldehuela de Jerte Rzeszów Hinojal Terrassa Santa Cruz de Tenerife Daugavpils Jumilla Antwerp Kampala Toledo Barnaul Arendsee (Altmark) Chicago Ciudad Rodrigo Pulheim Lipova Taganrog Caminomorisco Kortrijk Tafalla Villanueva de la Vera Pontevedra Pacifica Cartagena Tejeda de Tiétar Tornavacas Friedrichshafen Miranda de Ebro Salem Novorossiysk Casar de Cáceres Lisse Kraichtal Leiden Purchena Mojácar Teplice Livadia Goizueta Granada Mladá Boleslav Narbonne Alsasua – Altsasu Martin Randers Cagliari Bologna Conquista de la Sierra Ganja Louga Chiayi City Lahti Jerez de la Frontera Vaughan Socuéllamos Amersfoort Passaic City, New Jersey Opava Guijo de Galisteo Manaus Gold Coast Mérida Boa Vista Logroño Aktobe Marbella Szczecin Seattle Athens Khabarovsk Alía Mexico City Talavera de la Reina Felsberg Larissa Poprad Torrejón el Rubio Iserlohn Dothan Schwerin Baton Rouge Rendsburg Atlantic City Banská Bystrica Valladolid Mumbai Rostock Assen United States Virgin Islands Lima Rio de Janeiro Badalona Jarandilla de la Vera Galkayo Turin Florence Yekaterinburg Casas de Miravete Novosibirsk Naberezhnye Chelny Errenteria Glendale Huelva Mamer Tromsø Syktyvkar Martos Halifax Piornal Cherepovets Mariupol Lipetsk Luxembourg Klaipėda Sindelfingen Gernsbach Donostia/San Sebastián Pinofranqueado Castelló de la Plana Trier Lake Oswego Ciudad Real Bietigheim-Bissingen Nové Město na Moravě Campinas Geislingen an der Steige Fryazino Málaga Gata Munich La Chaux-de-Fonds Arnhem Varese Tilburg Namur Zoetermeer Pavlodar Almaraz Kyzyl Singapore Brussels Aalborg Aldeanueva del Camino Terque Eschweiler Launceston San Jose Houston Dallas Sabaneta Ludwigsburg Versailles Mangalore Shanghai Tbilisi Collado Bergamo Garrovillas de Alconétar Sierra de Fuentes Lugo Ghent Carrascalejo Kladno Dortmund Makhachkala Fort Collins Wavre Huércal-Overa Vicariate of  Ústí nad Labem Thiès Logrosán Belvís de Monroy Saint-Louis Rostov-on-Don Vicariate of Turnov Havana Arnaia Kazan Nashville Hamar Crailsheim Ejea de los Caballeros Košice Armañanzas Filderstadt Ohrid Vianden Delft Druskininkai Alexandria Barrado Ellwangen (Jagst) Osuna Aldeanueva de la Vera Granollers Puno Alcuéscar Chita Arrecife Niš Petergof Bochum Casares de las Hurdes El Torno Novomoskovsk Villarreal Sofia Malpartida de Plasencia Magdeburg Novokuznetsk Alicante Almaty Areso Úbeda Espoo Trujillo Fellbach Cleveland Nablus Bilecik Moguer Newark Bonaire Yaroslavl Santoña Motril Calzadilla Sagunto Geneva Cedillo Tabriz Gütersloh Losar de la Vera New Haven Vologda Izhevsk Nantes Niamey Auckland Mons Pskov São Paulo Riolobos Burgas Hořice Verona Handlová Freudenstadt Nakhodka Cañaveral Přerov Varna Podgorica Gargüera de la Vera Beitar Illit Netanya Mirabel, Spain London Getafe La Mata de Morella Heppenheim Valverde del Fresno Valencia Cáceres Jerte Olivenza Brooklyn Borne Casas de Don Antonio Bardejov Kagoshima Myrtle Beach Rebollar Como Partizánske Casatejada Colón Agoitz Garganta la Olla Corsier-sur-Vevey Eindhoven Nové Mesto, Bratislava Kumanovo Heilbronn Amiens Tel Aviv Adamstown Paredes de nava Chișinău Kansas City Almonte Carmel Northern Mariana Islands Arroyo de la Luz Vitoria-Gasteiz American Samoa Zahlé Santiago de Compostela Alcántara Lleida Jyväskylä Beijing Albacete Cuenca Green Bay Brescia Vladivostok Ljubljana Zweibrücken Esch-sur-Alzette Kédougou Casillas de Coria Rabat Kristiansand Cuevas del Almanzora Kharkiv Vigo Erfurt Bordeaux Kirov Zarza la Mayor 's-Hertogenbosch Conway Aalen Milpitas Cerezo Kolda Bratislava Budapest Villanueva de la Serena Bad Vilbel Sabadell Lecce Linz Erbach an der Donau Torreorgaz Jonava Tashkent Cachorrilla Jerez de los Caballeros Huécija Arkhangelsk Jersey City Lier Vera Hämeenlinna Lieksa Casar de Palomero Esslingen am Neckar Donetsk Reutov Darwin Gostivar Ústí nad Labem Dessau-Roßlau Arequipa Resistencia Catania Guijo de Santa Bárbara Delhi Chennai Loja Dhaka Jelgava Malpartida de Cáceres Sumqayit Banff Feldkirch Murcia Erbil Kolding Vladikavkaz Kaliningrad Mechelen Rome Montreal Pamplona Palo Alto Dordrecht Abertura Azuelo Ahigal Nizhny Tagil Odense Olite Astana Guernsey Aldeacentenera Bad Mergentheim Semey Kamensk-Uralsky Thomasville Melilla Mijas Lower Hutt SAO Eastern Slavonia, Baranja and Western Syrmia Sangüesa Belmopan Almería Vancouver Navaconcejo Pasarón de la Vera Astorga Krasnoyarsk Cuacos de Yuste Irkutsk Andújar Perm Volgograd Bregenz Cabezuela del Valle Leuven Miajadas Guadalajara Arles Diekirch Ryazan Segovia Supetar Albany Uryupinsk Louny Białystok Tulsa Burgos Brozas Diourbel Boppard Cambridge Genolier Gaggenau Ivanovo Besançon Galapagar Lille metropolis Villava – Atarrabia Velika Gorica Bielefeld Ra'anana Nový Jičín Porsgrunn Zheleznodorozhny Talaveruela de la Vera Žiar nad Hronom Saarbrücken Markgröningen Guadalupe Vancouver Piešťany Rurzyca, West Pomeranian Voivodeship Wismar Doxato Arzamas Bad Doberan Kostroma Culiacán Girona Valverde de la Vera New Orleans Seville Los Angeles Hervás Alblasserdam Racine Witten Córdoba Chipping Norton Casas de Millán Essaouira Donaueschingen Gdynia Canary Islands Detroit Leicester Hengelo Cabañas del Castillo Abakan Homburg Bruges Atlanta Marikina Maó-Mahón Moraleja Sabinov Montehermoso Aschersleben Strumica Christchurch Dolgoprudny Ostrava Lelystad Oklahoma City Ravenna Cadalso Portland Vevey Zwolle Montreux Bakersfield Ankara Berrocalejo Bern Aabenraa Benidorm São Luís Trondheim Amsterdam Moscow Lille Krasnodar Caravaca de la Cruz Torremenga Eberswalde San Pedro Pedroso de Acim La Plata Quedlinburg Hilversum Liège Rubí Ferrol Zamora Salamanca Alcobendas Saint Paul Tarragona Curitiba Écija Carbajo Salavat Antequera Katowice Kleve Acehúche Villeurbanne Kitchener Taipei Salem A Coruña Rotterdam Murmansk Cascante Ourense Reykjavík Nacogdoches Unna Castañar de Ibor Cape Town Aranda de Duero Plasencia Montpellier Iférouane Essen Kramatorsk Esquipulas Yelets Wetzlar Břeclav Carcaboso Boston Angarsk Olomouc Tampere Kalopanagiotis Portezuelo, Cáceres Verl Velbert Chernogolovka Bergen San Cristóbal de La Laguna Wichita Veliky Novgorod Townsville Torrelavega Orihuela Teruel Ibiza Town Alcollarín Lorca Santander Baden-Baden Vilnius Estella-Lizarra Robledillo de la Vera Viandar de la Vera Stolberg Tartu Berzocana Severodvinsk Zorita Galisteo San Antonio Sobrance Villarrobledo Tarifa Liberec Casas del Monte Haskovo Nijmegen Palma Spišská Nová Ves Villena Madrigalejo Heitersheim Navalmoral de la Mata Tolyatti Düren Elsdorf Zlín Haifa Harsewinkel Viana Dubai Aachen Athis-Mons Reims León Horsens Baños de Montemayor Savannah Torrejoncillo Antalya Engels Pyatigorsk Johannesburg Huarte/Uharte Ramla Cañamero Diest
Moscow, Rio de Janeiro and Shanghai have their government headed by approximately the same number of people as that administrative territory
Moscow Rio de Janeiro Shanghai
action approx
action find_tuple_counts
relation head of government
type administrative territorial entity
type common name
action count
action filter_type
action find
entity Thessaloniki
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?w ) WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name . ?p property:head_of_government ?t } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Thessaloniki property:head_of_government ?l . ?l rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?w = ?r ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q649 Q8678 Q8686
P190
Q56061
USER
Which administrative territories are twin cities of those ones ?
(Q649,P190,c(Q56061)) (Q8678,P190,c(Q56061)) (Q8686,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q649', 'P190', {'concept': 'Q56061'}] ['Q8678', 'P190', {'concept': 'Q56061'}] ['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?l property:P190 ?j . ?j rdf:type ontology:Q56061 . VALUES ( ?l ) { ( resource:Q807 ) ( resource:Q1613421 ) ( resource:Q49169 ) } }
Moscow Rio de Janeiro Shanghai
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}] ['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?l property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity . VALUES ( ?l ) { ( resource:Lausanne ) ( resource:Valencia_de_Alcántara ) ( resource:Stamford ) } }
[]
administrative territorial entity
Q1085 Q2807 Q2807
SYSTEM
Madrid for 2nd, 3rd, Prague for 1st
Q807 Q41572 Q13498 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q1490 Q1741 Q196678 Q3805 Q1520 Q1524 Q1491 Q987 Q1780 Q3630 Q140147 Q25409 Q33935 Q131290 Q3561 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q239 Q2807 Q956 Q3640 Q64 Q1218 Q133026 Q186576 Q1085 Q178725 Q158119 Q727 Q3889 Q25395 Q3274 Q365 Q33935 Q191135 Q40236 Q192807 Q24826 Q2807 Q14328 Q181557 Q735025 Q9248 Q51103 Q1524 Q1489 Q48320 Q1218 Q71 Q33959 Q1070 Q612 Q34863 Q26155 Q12191 Q5582862 Q406 Q8673 Q24639 Q1563 Q6441 Q270 Q34820 Q5468 Q597 Q956 Q170903 Q23556 Q1019424 Q1491 Q1492 Q3820 Q5112 Q12892 Q3889 Q648 Q1861 Q35381 Q52535 Q24826 Q1297 Q1850 Q269 Q13580 Q36433 Q340 Q597491 Q109356 Q84 Q78 Q133073 Q49227 Q41621 Q37806 Q47034 Q612 Q585 Q43509 Q87 Q58976 Q34370 Q3856 Q406 Q34713 Q174 Q490 Q36647 Q33986 Q131694 Q1492 Q23311 Q959 Q62
(Q649,P190,c(Q56061)) (Q8678,P190,c(Q56061)) (Q8686,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q649', 'P190', {'concept': 'Q56061'}] ['Q8678', 'P190', {'concept': 'Q56061'}] ['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?l property:P190 ?j . ?j rdf:type ontology:Q56061 . VALUES ( ?l ) { ( resource:Q807 ) ( resource:Q1613421 ) ( resource:Q49169 ) } }
Lausanne Mykolaiv Taranto Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Tokyo Vienna Torzhok Amman Astana Athens La Paz New Delhi Bratislava Jakarta Brest Košice Tel Aviv Ganja Algiers London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw Brussels Madrid Beijing Ankara Berlin Jerusalem Kolomna Pazardzhik Prague Niterói Ramallah Amsterdam Maputo Newark Managua Cologne Tel Aviv Vila Nova de Gaia Manaus Ramat Gan Liverpool Madrid Santa Cruz de Tenerife Kaohsiung City Cabo Frio Baku Cali Athens Mexico City Kōbe Jerusalem Geneva Nice Ahmedabad Dubai Oklahoma City Jounieh Nantes Cusco Istanbul Lagos Vancouver Havana Montpellier Warsaw Santo Domingo Durban Lisbon Beijing Guimarães Atlanta Rufisque La Paz Barcelona Beirut Adelaide Antwerp Maputo Lille Bangkok Colombo Rosario Liverpool Chicago Phnom Penh Tashkent Metro Manila Porto Montreal Okahandja Hamhung London Basel Dunedin Winston-Salem Haifa Port Vila Espoo Dubai Oslo Guayaquil Alexandria Piraeus Rotterdam Nicosia Istanbul Salzburg São Paulo Milan Cork Valparaíso Aden Barcelona City of London Vladivostok San Francisco
Prague, Madrid and Madrid are twin cities of those ones
Prague Madrid Madrid
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Rio de Janeiro', 'sister city', {'concept': 'administrative territorial entity'}] ['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?l property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity . VALUES ( ?l ) { ( resource:Lausanne ) ( resource:Valencia_de_Alcántara ) ( resource:Stamford ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P127
Q43229
USER
Which organizations are owned by that administrative territory ?
(c(Q43229),P127,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q1085']
SELECT DISTINCT ?m WHERE { ?m property:P127 resource:Q1085 . ?m rdf:type ontology:Q43229 }
Prague
action filter_type
action find_reverse
entity Prague
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Prague']
SELECT DISTINCT ?m WHERE { ?m property:owned_by resource:Prague . ?m rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q2807
SYSTEM
Did you mean Madrid ?
Q1085 Q2807 Q2807
(c(Q43229),P127,Q1085) (c(Q43229),P127,Q2807) (c(Q43229),P127,Q2807)
[ANSWER]
[{'concept': 'Q43229'}, 'P127', 'Q1085'] [{'concept': 'Q43229'}, 'P127', 'Q2807'] [{'concept': 'Q43229'}, 'P127', 'Q2807']
SELECT DISTINCT ?m WHERE { ?m property:P127 resource:Q1085 . ?m rdf:type ontology:Q43229 }
Prague Madrid Madrid
Did you mean Madrid ?
Madrid
[{'concept': 'organization'}, 'owned by', 'Prague'] [{'concept': 'organization'}, 'owned by', 'Madrid'] [{'concept': 'organization'}, 'owned by', 'Madrid']
SELECT DISTINCT ?m WHERE { ?m property:owned_by resource:Prague . ?m rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
No, I meant Prague. Could you tell me the answer for that?
(c(Q43229),P127,Q1085)
Q1085
[{'concept': 'Q43229'}, 'P127', 'Q1085']
[{'concept': 'organization'}, 'owned by', 'Prague']
[]
Q21349378 Q27450080 Q7058609
SYSTEM
PPF banka, Pražská teplárenská Holding, Vinohrady Cemetery
Q21349378 Q27450080 Q7058609 Q11942935
(c(Q43229),P127,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P127
type Q43229
[ANSWERS] are owned by that administrative territory
[{'concept': 'Q43229'}, 'P127', 'Q1085']
SELECT DISTINCT ?m WHERE { ?m property:P127 resource:Q1085 . ?m rdf:type ontology:Q43229 }
PPF banka Pražská teplárenská Holding Vinohrady Cemetery Vršovice Cemetery
PPF banka, Pražská teplárenská Holding and Vinohrady Cemetery are owned by that administrative territory
PPF banka Pražská teplárenská Holding Vinohrady Cemetery
action filter_type
action find_reverse
entity Prague
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Prague']
SELECT DISTINCT ?m WHERE { ?m property:owned_by resource:Prague . ?m rdf:type ontology:organization }
[]