Simple Question (Direct)
Simple Question
Q102917
P54
Q1194951
USER
Which national sports team is Michael Faber a member of ?
(Q102917,P54,c(Q1194951))
action filter_type
action find
entity Q102917
relation P54
type Q1194951
['Q102917', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1194951 . resource:Q102917 property:P54 ?q }
Michael Faber
action filter_type
action find
entity Michael Faber
relation member of sports team
type national sports team
['Michael Faber', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:national_sports_team . resource:Michael_Faber property:member_of_sports_team ?q }
[]
national sports team
Q152424
SYSTEM
East Germany national football team
Q152424
(Q102917,P54,c(Q1194951))
action filter_type
action find
entity Q102917
relation P54
type Q1194951
The [ANSWER] is Michael Faber a member of
['Q102917', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1194951 . resource:Q102917 property:P54 ?q }
East Germany national football team
The East Germany national football team is Michael Faber a member of
East Germany national football team
action filter_type
action find
entity Michael Faber
relation member of sports team
type national sports team
['Michael Faber', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:national_sports_team . resource:Michael_Faber property:member_of_sports_team ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q102917
P27
Q7275
USER
Which state does that person belong to ?
(Q152424,P27,c(Q7275))
action filter_type
action find
entity Q102917
relation P27
type Q7275
['Q152424', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q102917 property:P27 ?s . ?s rdf:type ontology:Q7275 }
Michael Faber
action filter_type
action find
entity Michael Faber
relation country of citizenship
type state
['East Germany national football team', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Michael_Faber property:country_of_citizenship ?s . ?s rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(Q152424,P27,c(Q7275))
action filter_type
action find
entity Q102917
relation P27
type Q7275
That person belongs to [ANSWER]
['Q152424', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q102917 property:P27 ?s . ?s rdf:type ontology:Q7275 }
East Germany
That person belongs to East Germany
East Germany
action filter_type
action find
entity Michael Faber
relation country of citizenship
type state
['East Germany national football team', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Michael_Faber property:country_of_citizenship ?s . ?s rdf:type ontology:state }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q72778
P1376
Q7275 Q515
USER
Which cities are the county seat for lesser number of states than Taiyuan ?
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q72778
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?k ) WHERE { ?z property:P1376 ?h . ?h rdf:type ontology:Q7275 . ?z rdf:type ontology:Q515 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q72778 property:P1376 ?o . ?o rdf:type ontology:Q7275 } } . FILTER ( ?k < ?f ) }
Taiyuan
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Taiyuan
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?k ) WHERE { ?z property:capital_of ?h . ?h rdf:type ontology:state . ?z rdf:type ontology:city } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Taiyuan property:capital_of ?o . ?o rdf:type ontology:state } } . FILTER ( ?k < ?f ) }
[]
state city
Q1486 Q1773 Q1731
SYSTEM
Buenos Aires, Riga, Dresden
Q15826 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q8131 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q592338 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q57953 Q917888 Q1070920 Q174096 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q3926 Q11462 Q834567 Q851675 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q793405 Q665 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q270704 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q6602 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q3904 Q325164 Q305640 Q14819 Q5285 Q14182 Q740810 Q1069007 Q861221 Q911667 Q6807568 Q7568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q2973 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1856 Q855016 Q3787 Q855011 Q308657 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q542154 Q2526233 Q946769 Q846351 Q739304 Q789233 Q7253 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q2119 Q390796 Q271917 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q11443 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q2907 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q20073 Q1863 Q1865 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 Q57948 Q2795 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q72778
relation P1376
type Q7275
[ANSWERS] are the county seat for lesser number of states than Taiyuan
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?k ) WHERE { ?z property:P1376 ?h . ?h rdf:type ontology:Q7275 . ?z rdf:type ontology:Q515 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q72778 property:P1376 ?o . ?o rdf:type ontology:Q7275 } } . FILTER ( ?k < ?f ) }
Palu Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Palembang Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Marawi Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Schwarzenberg Vinaròs Mamuju Sorsogon City Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Toyooka Pétervására Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Pretoria Surabaya Bonyhád Takahashi Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Kunszentmárton Florianópolis Kiskunfélegyháza Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Berettyóújfalu Lugdunum Tiszaújváros Putnok Zhanjiang Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Manila Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Třebíč Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Mbabane Kayes Abashiri Freiberg Tarlac Banjarmasin Békés Washukanni Nakatsu Elek Emmen Yogyakarta Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Tandag Uda Tsuyama Mati Oral Ōmura Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár Brno Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Darmstadt Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Annaka Neubrandenburg Kostanay Weimar Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Malaybalay Csurgó Abuja Heves Minas Tirith Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Caracas Morioka Lucknow Patna Ungaran Hirado Koronadal Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Padang Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Khost Imus Mannheim Orosháza Kushiro Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Kediri Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Sucre Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Kuala Lumpur Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Bangalore Most Fuchū Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Sivas Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Aue Chemnitz Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg
Buenos Aires, Riga and Dresden are the county seat for lesser number of states than Taiyuan
Buenos Aires Riga Dresden
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Taiyuan
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?k ) WHERE { ?z property:capital_of ?h . ?h rdf:type ontology:state . ?z rdf:type ontology:city } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Taiyuan property:capital_of ?o . ?o rdf:type ontology:state } } . FILTER ( ?k < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q71305
P1376
Q7275 Q515
USER
And what about Ezhou?
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q71305
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?t ) WHERE { ?p property:P1376 ?z . ?p rdf:type ontology:Q515 . ?z rdf:type ontology:Q7275 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Q71305 property:P1376 ?g . ?g rdf:type ontology:Q7275 } } . FILTER ( ?t < ?a ) }
Ezhou
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Ezhou
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?t ) WHERE { ?p property:capital_of ?z . ?p rdf:type ontology:city . ?z rdf:type ontology:state } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Ezhou property:capital_of ?g . ?g rdf:type ontology:state } } . FILTER ( ?t < ?a ) }
[]
state city
Q1773 Q23482 Q456
SYSTEM
Riga, Marseille, Lyon
Q15826 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q496667 Q240504 Q3806 Q281371 Q258884 Q592338 Q52607 Q766168 Q933645 Q214938 Q830394 Q205607 Q193050 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q57953 Q917888 Q1070920 Q174096 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q11462 Q834567 Q851675 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q793405 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q270704 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q6602 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q3904 Q325164 Q305640 Q14819 Q5285 Q14182 Q740810 Q861221 Q911667 Q6807568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q3859 Q155975 Q1020939 Q674311 Q3915 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q2337 Q633789 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q2973 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1856 Q855016 Q3787 Q855011 Q4007 Q480421 Q14168 Q823907 Q7070 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q542154 Q2526233 Q946769 Q846351 Q739304 Q789233 Q7253 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q2119 Q390796 Q271917 Q5972 Q1720 Q1721 Q1645 Q7578 Q390798 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q2907 Q15847 Q843014 Q604516 Q3768 Q732300 Q789510 Q20073 Q1863 Q2209 Q2200 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q71159 Q3355306 Q57944 Q189761 Q189769 Q57948 Q2795 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q184998 Q5217 Q854965 Q1020709 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3931 Q3751 Q3750 Q3616 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q71305
relation P1376
type Q7275
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?t ) WHERE { ?p property:P1376 ?z . ?p rdf:type ontology:Q515 . ?z rdf:type ontology:Q7275 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Q71305 property:P1376 ?g . ?g rdf:type ontology:Q7275 } } . FILTER ( ?t < ?a ) }
Palu Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Makó Tübingen Jászberény Bélapátfalva Marawi Mar del Plata Nagykáta Kunhegyes Gyula Nagykőrös Zirc Érd Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Schwarzenberg Vinaròs Mamuju Sorsogon City Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Toyooka Pétervására Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Surabaya Bonyhád Takahashi Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Kunszentmárton Florianópolis Kiskunfélegyháza Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Berettyóújfalu Tiszaújváros Putnok Zhanjiang Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Heidelberg Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Třebíč Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Mbabane Kayes Abashiri Freiberg Tarlac Banjarmasin Békés Nakatsu Elek Emmen Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Digos Kisvárda Antananarivo Tandag Uda Tsuyama Mati Oral Ōmura Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Smolensk Dombóvár Brno Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Darmstadt Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Annaka Neubrandenburg Kostanay Weimar Sárospatak Leipzig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Malaybalay Csurgó Abuja Heves Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Caracas Morioka Lucknow Patna Ungaran Hirado Koronadal Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Padang Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Khost Imus Mannheim Orosháza Kushiro Medan Mainz Wiesbaden Cagayan de Oro Jambi Szentendre Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Sucre Manado Szarvas Szentgotthárd Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Roxas Tuguegarao České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Bangalore Most Fuchū Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Aue Chemnitz Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Kaposvár Bacolod Lenti Catbalogan Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Brandenburg an der Havel Praia Gera Tehran Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena
Riga Marseille Lyon
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Ezhou
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?t ) WHERE { ?p property:capital_of ?z . ?p rdf:type ontology:city . ?z rdf:type ontology:state } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { resource:Ezhou property:capital_of ?g . ?g rdf:type ontology:state } } . FILTER ( ?t < ?a ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1773 Q23482 Q456
P138
Q17444909
USER
Which astronomical object types have Riga, Marseille and Lyon as their toponym ?
(c(Q17444909),P138,Q1773) (c(Q17444909),P138,Q23482) (c(Q17444909),P138,Q456)
action union
action filter_type
action find_reverse
entity Q1773
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q23482
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q456
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q1773'] [{'concept': 'Q17444909'}, 'P138', 'Q23482'] [{'concept': 'Q17444909'}, 'P138', 'Q456']
SELECT DISTINCT ?p WHERE { VALUES ( ?o ) { ( resource:Q1773 ) ( resource:Q23482 ) } . ?p property:P138 ?o }
Riga Marseille Lyon
action union
action filter_type
action find_reverse
entity Riga
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Marseille
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Lyon
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Riga'] [{'concept': 'astronomical object type'}, 'named after', 'Marseille'] [{'concept': 'astronomical object type'}, 'named after', 'Lyon']
SELECT DISTINCT ?p WHERE { VALUES ( ?o ) { ( resource:Riga ) ( resource:Marseille ) } . ?p property:named_after ?o }
[]
astronomical object type
Q143883 Q107524 Q1192758
SYSTEM
1796 Riga, 20 Massalia, 9381 Lyon
Q143883 Q107524 Q1192758
(c(Q17444909),P138,Q1773) (c(Q17444909),P138,Q23482) (c(Q17444909),P138,Q456)
action union
action filter_type
action find_reverse
entity Q1773
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q23482
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q456
relation P138
type Q17444909
[ANSWERS] have Riga, Marseille and Lyon as their toponym
[{'concept': 'Q17444909'}, 'P138', 'Q1773'] [{'concept': 'Q17444909'}, 'P138', 'Q23482'] [{'concept': 'Q17444909'}, 'P138', 'Q456']
SELECT DISTINCT ?p WHERE { VALUES ( ?o ) { ( resource:Q1773 ) ( resource:Q23482 ) } . ?p property:P138 ?o }
1796 Riga 20 Massalia 9381 Lyon
1796 Riga, 20 Massalia and 9381 Lyon have Riga, Marseille and Lyon as their toponym
1796 Riga 20 Massalia 9381 Lyon
action union
action filter_type
action find_reverse
entity Riga
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Marseille
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Lyon
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Riga'] [{'concept': 'astronomical object type'}, 'named after', 'Marseille'] [{'concept': 'astronomical object type'}, 'named after', 'Lyon']
SELECT DISTINCT ?p WHERE { VALUES ( ?o ) { ( resource:Riga ) ( resource:Marseille ) } . ?p property:named_after ?o }
[]
Clarification
Simple Question|Single Entity|Indirect
Q107524
P61
Q502895
USER
Which person discovered or invented that astronomical object type ?
(Q107524,P61,c(Q502895))
action filter_type
action find
entity Q107524
relation P61
type Q502895
['Q107524', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q107524 property:P61 ?d }
20 Massalia
action filter_type
action find
entity 20 Massalia
relation discoverer or inventor
type common name
['20 Massalia', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:20_Massalia property:discoverer_or_inventor ?d }
[]
common name
Clarification for simple ques.
Q1192758
SYSTEM
Did you mean 9381 Lyon ?
Q143883 Q107524 Q1192758
(Q143883,P61,c(Q502895)) (Q107524,P61,c(Q502895)) (Q1192758,P61,c(Q502895))
[ANSWER]
['Q143883', 'P61', {'concept': 'Q502895'}] ['Q107524', 'P61', {'concept': 'Q502895'}] ['Q1192758', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q107524 property:P61 ?d }
1796 Riga 20 Massalia 9381 Lyon
Did you mean 9381 Lyon ?
9381 Lyon
['1796 Riga', 'discoverer or inventor', {'concept': 'common name'}] ['20 Massalia', 'discoverer or inventor', {'concept': 'common name'}] ['9381 Lyon', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:20_Massalia property:discoverer_or_inventor ?d }
[]
Simple Question (Coreferenced)
USER
No, I meant 20 Massalia. Could you tell me the answer for that?
(Q107524,P61,c(Q502895))
Q107524
['Q107524', 'P61', {'concept': 'Q502895'}]
['20 Massalia', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q110709
SYSTEM
Annibale de Gasparis
Q110709
(Q107524,P61,c(Q502895))
action filter_type
action find
entity Q107524
relation P61
type Q502895
[ANSWER] discovered or invented that astronomical object type
['Q107524', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q107524 property:P61 ?d }
Annibale de Gasparis
Annibale de Gasparis discovered or invented that astronomical object type
Annibale de Gasparis
action filter_type
action find
entity 20 Massalia
relation discoverer or inventor
type common name
['20 Massalia', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:20_Massalia property:discoverer_or_inventor ?d }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P609
Q515 Q83620 Q34442
USER
Which cities are the destinations of max number of thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?f ) WHERE { { ?m property:P609 ?w . ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q83620 } UNION { ?m property:P609 ?w . ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q34442 } } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?n ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?p } . FILTER ( ?n = ?i ) }
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?f ) WHERE { { ?m property:terminus_location ?w . ?w rdf:type ontology:city . ?m rdf:type ontology:thoroughfare } UNION { ?m property:terminus_location ?w . ?w rdf:type ontology:city . ?m rdf:type ontology:road } } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?n ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?p } . FILTER ( ?n = ?i ) }
[]
city thoroughfare road
Q14960
SYSTEM
Brno
Q14960
(c(Q83620)|c(Q34442),P609,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
[ANSWER] is the destinations of max number of thoroughfares or roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?f ) WHERE { { ?m property:P609 ?w . ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q83620 } UNION { ?m property:P609 ?w . ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q34442 } } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?n ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } GROUP BY ?p } . FILTER ( ?n = ?i ) }
Brno
Brno is the destinations of max number of thoroughfares or roads
Brno
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?f ) WHERE { { ?m property:terminus_location ?w . ?w rdf:type ontology:city . ?m rdf:type ontology:thoroughfare } UNION { ?m property:terminus_location ?w . ?w rdf:type ontology:city . ?m rdf:type ontology:road } } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?n ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:road ) } } GROUP BY ?p } . FILTER ( ?n = ?i ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P169
Q502895 Q46970 Q874405
USER
Which people are the CEOs of max number of airlines and social groups ?
(c(Q46970)|c(Q874405),P169,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
[[{'concept': 'Q46970'}, {'concept': 'Q874405'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { VALUES ( ?k ) { ( ontology:Q46970 ) ( ontology:Q874405 ) } . ?m rdf:type ?k } GROUP BY ?p } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?s ) WHERE { { ?r property:P169 ?b . ?r rdf:type ontology:Q46970 . ?b rdf:type ontology:Q502895 } UNION { ?r property:P169 ?b . ?b rdf:type ontology:Q502895 . ?r rdf:type ontology:Q874405 } } GROUP BY ?b } }
action argmax
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
[[{'concept': 'airline'}, {'concept': 'social group'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { VALUES ( ?k ) { ( ontology:airline ) ( ontology:social_group ) } . ?m rdf:type ?k } GROUP BY ?p } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?s ) WHERE { { ?r property:chief_executive_officer ?b . ?r rdf:type ontology:airline . ?b rdf:type ontology:common_name } UNION { ?r property:chief_executive_officer ?b . ?b rdf:type ontology:common_name . ?r rdf:type ontology:social_group } } GROUP BY ?b } }
[]
common name airline social group
Q59474
SYSTEM
Bjørn Kjos
Q59474
(c(Q46970)|c(Q874405),P169,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
[ANSWER] is the CEOs of max number of airlines and social groups
[[{'concept': 'Q46970'}, {'concept': 'Q874405'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { VALUES ( ?k ) { ( ontology:Q46970 ) ( ontology:Q874405 ) } . ?m rdf:type ?k } GROUP BY ?p } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?s ) WHERE { { ?r property:P169 ?b . ?r rdf:type ontology:Q46970 . ?b rdf:type ontology:Q502895 } UNION { ?r property:P169 ?b . ?b rdf:type ontology:Q502895 . ?r rdf:type ontology:Q874405 } } GROUP BY ?b } }
Bjørn Kjos
Bjørn Kjos is the CEOs of max number of airlines and social groups
Bjørn Kjos
action argmax
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
[[{'concept': 'airline'}, {'concept': 'social group'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { VALUES ( ?k ) { ( ontology:airline ) ( ontology:social_group ) } . ?m rdf:type ?k } GROUP BY ?p } } . FILTER ( ?s = ?w ) . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?s ) WHERE { { ?r property:chief_executive_officer ?b . ?r rdf:type ontology:airline . ?b rdf:type ontology:common_name } UNION { ?r property:chief_executive_officer ?b . ?b rdf:type ontology:common_name . ?r rdf:type ontology:social_group } } GROUP BY ?b } }
[]