Simple Question (Direct)
Simple Question
Q3847447
P27
Q15617994
USER
Which administrative territory is Maria Paola Colombo Svevo an inhabitant of ?
(Q3847447,P27,c(Q15617994))
action filter_type
action find
entity Q3847447
relation P27
type Q15617994
['Q3847447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . resource:Q3847447 property:P27 ?y }
Maria Paola Colombo Svevo
action filter_type
action find
entity Maria Paola Colombo Svevo
relation country of citizenship
type designation for an administrative territorial entity
['Maria Paola Colombo Svevo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maria_Paola_Colombo_Svevo property:country_of_citizenship ?y }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3847447,P27,c(Q15617994))
action filter_type
action find
entity Q3847447
relation P27
type Q15617994
[ANSWER] is Maria Paola Colombo Svevo an inhabitant of
['Q3847447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . resource:Q3847447 property:P27 ?y }
Italy
Italy is Maria Paola Colombo Svevo an inhabitant of
Italy
action filter_type
action find
entity Maria Paola Colombo Svevo
relation country of citizenship
type designation for an administrative territorial entity
['Maria Paola Colombo Svevo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maria_Paola_Colombo_Svevo property:country_of_citizenship ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3847447
P937
Q515
USER
What is the location where Maria Paola Colombo Svevo worked ?
(Q3847447,P937,c(Q515))
action filter_type
action find
entity Q3847447
relation P937
type Q515
['Q3847447', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q3847447 property:P937 ?n . ?n rdf:type ontology:Q515 }
Maria Paola Colombo Svevo
action filter_type
action find
entity Maria Paola Colombo Svevo
relation work location
type city
['Maria Paola Colombo Svevo', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Maria_Paola_Colombo_Svevo property:work_location ?n . ?n rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q3847447,P937,c(Q515))
action filter_type
action find
entity Q3847447
relation P937
type Q515
The location Maria Paola Colombo Svevo worked is in [ANSWER]
['Q3847447', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q3847447 property:P937 ?n . ?n rdf:type ontology:Q515 }
Strasbourg
The location Maria Paola Colombo Svevo worked is in Strasbourg
Strasbourg
action filter_type
action find
entity Maria Paola Colombo Svevo
relation work location
type city
['Maria Paola Colombo Svevo', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Maria_Paola_Colombo_Svevo property:work_location ?n . ?n rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5261948
Q515
USER
And how about Derek Enright?
(Q5261948,P937,c(Q515))
action filter_type
action find
entity Q5261948
relation P937
type Q515
['Q5261948', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q5261948 property:P937 ?j . ?j rdf:type ontology:Q515 }
Derek Enright
action filter_type
action find
entity Derek Enright
relation work location
type city
['Derek Enright', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Derek_Enright property:work_location ?j . ?j rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q5261948,P937,c(Q515))
action filter_type
action find
entity Q5261948
relation P937
type Q515
[ANSWER]
['Q5261948', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q5261948 property:P937 ?j . ?j rdf:type ontology:Q515 }
Strasbourg
Strasbourg
action filter_type
action find
entity Derek Enright
relation work location
type city
['Derek Enright', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Derek_Enright property:work_location ?j . ?j rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q329768
P36
Q515 Q486972 Q515
USER
How many cities are the capitals of around the same number of human settlements and cities as Tata ?
(c(Q486972)|c(Q515),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action count
action filter_multi_types
action find_reverse
entity Q329768
relation P36
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P36 resource:Q329768 . { { ?p rdf:type ontology:Q515 } UNION { ?p rdf:type ontology:Q486972 } } } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?t ) WHERE { { ?g property:P36 ?y . ?y rdf:type ontology:Q515 . ?g rdf:type ontology:Q486972 } UNION { ?g property:P36 ?y . ?y rdf:type ontology:Q515 . ?g rdf:type ontology:Q515 } } GROUP BY ?y } }
Tata
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type city
action count
action filter_multi_types
action find_reverse
entity Tata
relation capital
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:capital resource:Tata . { { ?p rdf:type ontology:city } UNION { ?p rdf:type ontology:human_settlement } } } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?t ) WHERE { { ?g property:capital ?y . ?y rdf:type ontology:city . ?g rdf:type ontology:human_settlement } UNION { ?g property:capital ?y . ?y rdf:type ontology:city . ?g rdf:type ontology:city } } GROUP BY ?y } }
[]
city human settlement city
SYSTEM
587
Q15826 Q384403 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q320950 Q8254 Q592338 Q43199 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 Q917888 Q1070920 Q174096 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q3926 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q5838 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q3104 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q1362 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q1519 Q8684 Q270704 Q3838 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q7248 Q207408 Q1107569 Q1025387 Q316841 Q6602 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q7568 Q8652 Q842971 Q842976 Q3866 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q1953 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q9005 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q4905 Q207876 Q2978 Q188082 Q2973 Q34261 Q137271 Q855060 Q1473 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q1858 Q2096 Q329775 Q1854 Q890122 Q855016 Q3787 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 Q1533 Q200077 Q47916 Q1856 Q3183016 Q328601 Q2410422 Q191097 Q542154 Q2526233 Q946769 Q3126 Q846351 Q739304 Q789233 Q7253 Q157835 Q819103 Q3046 Q368929 Q2936 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q2749 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42751 Q185684 Q187861 Q207311 Q11194 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q3904 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q470369 Q1863 Q1865 Q2209 Q2200 Q2203 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q517783 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q5781 Q6582 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q1761 Q2795 Q750224 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3936 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q486972)|c(Q515),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action count
action filter_multi_types
action find_reverse
entity Q329768
relation P36
type Q486972
type Q515
[ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P36 resource:Q329768 . { { ?p rdf:type ontology:Q515 } UNION { ?p rdf:type ontology:Q486972 } } } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?t ) WHERE { { ?g property:P36 ?y . ?y rdf:type ontology:Q515 . ?g rdf:type ontology:Q486972 } UNION { ?g property:P36 ?y . ?y rdf:type ontology:Q515 . ?g rdf:type ontology:Q515 } } GROUP BY ?y } }
Palu Litoměřice Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Rafaela Kroměříž Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Trutnov Dharan Marawi Omaha 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 Vinaròs Mamuju Sorsogon City Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Pretoria Surabaya Bonyhád Takahashi Castro Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Kabul Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Koblenz Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Kyiv Alcoi Cape Coast Polgár Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok 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 Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Islamabad Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Abu Dhabi Seoul Třebíč Kinshasa Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Vác Kerma Maasin Karlovo Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Wellington Masbate City Turquoise Mountain Kediri San Ignacio Kayes Abashiri Freiberg Tarlac Mianwali City Banjarmasin Békés Tábor Nakatsu Elek Yogyakarta Miami Sellye Mátészalka Dodoma Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Yerevan Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District Brussels Kaifeng Smolensk Dombóvár Jiankang Brno Metro, Indonesia Hildesheim Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Druzhnaya Gorka Yamaguchi Regensburg Český Krumlov Darmstadt Port-au-Prince Kota Kinabalu Encs Davao City Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Worms Annaka Neubrandenburg Kostanay Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Iquique Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Hanoi Edmonton Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Abuja Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Baguio Caracas Morioka Lucknow Malaybalay Ungaran Hirado San Marcos, Costa Rica Tachov Koronadal Carn Dûm Mórahalom Erlangen Miyazu Hajdúnánás Balassagyarmat Padang Zaporizhzhya Berezivka Pforzheim Jindřichův Hradec Oldenburg Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Augsburg Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Palikir Hefei Wollongong Suzuka Sarajevo Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mbabane Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Kolín Andorra la Vella Kuala Lumpur Roxas Tuguegarao Arica Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Pinamar Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Langsa Carcassonne Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Chemnitz Strakonice Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Bamberg Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod 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 Nanjing
587
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type city
action count
action filter_multi_types
action find_reverse
entity Tata
relation capital
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:capital resource:Tata . { { ?p rdf:type ontology:city } UNION { ?p rdf:type ontology:human_settlement } } } } . FILTER ( ?t = ?m ) . { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?t ) WHERE { { ?g property:capital ?y . ?y rdf:type ontology:city . ?g rdf:type ontology:human_settlement } UNION { ?g property:capital ?y . ?y rdf:type ontology:city . ?g rdf:type ontology:city } } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q889966
P36
Q515 Q486972 Q515
USER
And how about Kiliya?
(c(Q486972)|c(Q515),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action count
action filter_multi_types
action find_reverse
entity Q889966
relation P36
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:P36 ?h . ?h rdf:type ontology:Q515 . ?f rdf:type ontology:Q486972 } UNION { ?f property:P36 ?h . ?f rdf:type ontology:Q515 . ?h rdf:type ontology:Q515 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P36 resource:Q889966 . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } } } . FILTER ( ?g = ?p ) }
Kiliya
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type city
action count
action filter_multi_types
action find_reverse
entity Kiliya
relation capital
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:capital ?h . ?h rdf:type ontology:city . ?f rdf:type ontology:human_settlement } UNION { ?f property:capital ?h . ?f rdf:type ontology:city . ?h rdf:type ontology:city } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:capital resource:Kiliya . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:human_settlement ) ( ontology:city ) } } } } . FILTER ( ?g = ?p ) }
[]
city human settlement city
SYSTEM
587
Q15826 Q384403 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q320950 Q8254 Q592338 Q43199 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 Q917888 Q1070920 Q174096 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q3926 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q5838 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q3104 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q1362 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q1519 Q8684 Q270704 Q3838 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q7248 Q207408 Q1107569 Q1025387 Q316841 Q6602 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q7568 Q8652 Q842971 Q842976 Q3866 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q1953 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q9005 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q4905 Q207876 Q2978 Q188082 Q2973 Q34261 Q137271 Q855060 Q1473 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q1858 Q2096 Q329775 Q1854 Q890122 Q855016 Q3787 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 Q1533 Q200077 Q47916 Q1856 Q3183016 Q328601 Q2410422 Q191097 Q542154 Q2526233 Q946769 Q3126 Q846351 Q739304 Q789233 Q7253 Q157835 Q819103 Q3046 Q368929 Q2936 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q2749 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42751 Q185684 Q187861 Q207311 Q11194 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q3904 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q470369 Q1863 Q1865 Q2209 Q2200 Q2203 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q517783 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q5781 Q6582 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q1761 Q2795 Q750224 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3936 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q486972)|c(Q515),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action count
action filter_multi_types
action find_reverse
entity Q889966
relation P36
type Q486972
type Q515
[ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:P36 ?h . ?h rdf:type ontology:Q515 . ?f rdf:type ontology:Q486972 } UNION { ?f property:P36 ?h . ?f rdf:type ontology:Q515 . ?h rdf:type ontology:Q515 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P36 resource:Q889966 . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } } } . FILTER ( ?g = ?p ) }
Palu Litoměřice Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Rafaela Kroměříž Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Trutnov Dharan Marawi Omaha 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 Vinaròs Mamuju Sorsogon City Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Pretoria Surabaya Bonyhád Takahashi Castro Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Kabul Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Koblenz Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Kyiv Alcoi Cape Coast Polgár Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok 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 Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Islamabad Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Abu Dhabi Seoul Třebíč Kinshasa Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Vác Kerma Maasin Karlovo Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Wellington Masbate City Turquoise Mountain Kediri San Ignacio Kayes Abashiri Freiberg Tarlac Mianwali City Banjarmasin Békés Tábor Nakatsu Elek Yogyakarta Miami Sellye Mátészalka Dodoma Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Yerevan Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District Brussels Kaifeng Smolensk Dombóvár Jiankang Brno Metro, Indonesia Hildesheim Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Druzhnaya Gorka Yamaguchi Regensburg Český Krumlov Darmstadt Port-au-Prince Kota Kinabalu Encs Davao City Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Worms Annaka Neubrandenburg Kostanay Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Iquique Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Hanoi Edmonton Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Abuja Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Baguio Caracas Morioka Lucknow Malaybalay Ungaran Hirado San Marcos, Costa Rica Tachov Koronadal Carn Dûm Mórahalom Erlangen Miyazu Hajdúnánás Balassagyarmat Padang Zaporizhzhya Berezivka Pforzheim Jindřichův Hradec Oldenburg Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Augsburg Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Palikir Hefei Wollongong Suzuka Sarajevo Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mbabane Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Kolín Andorra la Vella Kuala Lumpur Roxas Tuguegarao Arica Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Pinamar Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Langsa Carcassonne Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Chemnitz Strakonice Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Bamberg Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod 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 Nanjing
587
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type city
action count
action filter_multi_types
action find_reverse
entity Kiliya
relation capital
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:capital ?h . ?h rdf:type ontology:city . ?f rdf:type ontology:human_settlement } UNION { ?f property:capital ?h . ?f rdf:type ontology:city . ?h rdf:type ontology:city } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:capital resource:Kiliya . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:human_settlement ) ( ontology:city ) } } } } . FILTER ( ?g = ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q5932
P1376
Q1048835 Q515
USER
Which political territories have more number of cities have their first city than Friesland ?
(c(Q515),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q5932
relation P1376
type Q1048835
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P1376 ?i . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q515 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q5932 property:P1376 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?l ) }
Friesland
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Friesland
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:capital_of ?i . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:city } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Friesland property:capital_of ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?l ) }
[]
political territorial entity city
Q664 Q757 Q785
SYSTEM
New Zealand, Saint Vincent and the Grenadines, Jersey
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q5932
relation P1376
type Q1048835
[ANSWERS] have more number of cities have their first city than Friesland
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P1376 ?i . ?i rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q515 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q5932 property:P1376 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?l ) }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
New Zealand, Saint Vincent and the Grenadines and Jersey have more number of cities have their first city than Friesland
New Zealand Saint Vincent and the Grenadines Jersey
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Friesland
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:capital_of ?i . ?i rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:city } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Friesland property:capital_of ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3321868
P1376
Q1048835 Q515
USER
And how about Samuel Pastor District?
(c(Q515),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q3321868
relation P1376
type Q1048835
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P1376 ?u . ?u rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q515 } GROUP BY ?u } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q3321868 property:P1376 ?g . ?g rdf:type ontology:Q1048835 } } }
Samuel Pastor District
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Samuel Pastor District
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:capital_of ?u . ?u rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:city } GROUP BY ?u } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Samuel_Pastor_District property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity city
Q664 Q757 Q785
SYSTEM
New Zealand, Saint Vincent and the Grenadines, Jersey
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515),P1376,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action count
action filter_type
action find
entity Q3321868
relation P1376
type Q1048835
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:P1376 ?u . ?u rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q515 } GROUP BY ?u } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q3321868 property:P1376 ?g . ?g rdf:type ontology:Q1048835 } } }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
New Zealand Saint Vincent and the Grenadines Jersey
action greater
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action count
action filter_type
action find
entity Samuel Pastor District
relation capital of
type political territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?i ) WHERE { ?t property:capital_of ?u . ?u rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:city } GROUP BY ?u } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Samuel_Pastor_District property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P27
Q502895
USER
How many people are civilians of that political territory ?
(c(Q502895),P27,Q757)
[{'concept': 'Q502895'}, 'P27', 'Q757']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q757 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'country of citizenship', 'Saint Vincent and the Grenadines']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Saint_Vincent_and_the_Grenadines . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q664
SYSTEM
Did you mean New Zealand ?
(c(Q502895),P27,Q664) (c(Q502895),P27,Q757) (c(Q502895),P27,Q785)
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q664'] [{'concept': 'Q502895'}, 'P27', 'Q757'] [{'concept': 'Q502895'}, 'P27', 'Q785']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q757 . ?z rdf:type ontology:Q502895 }
Did you mean New Zealand ?
New Zealand
[{'concept': 'common name'}, 'country of citizenship', 'New Zealand'] [{'concept': 'common name'}, 'country of citizenship', 'Saint Vincent and the Grenadines'] [{'concept': 'common name'}, 'country of citizenship', 'Jersey']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Saint_Vincent_and_the_Grenadines . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Saint Vincent and the Grenadines. Could you tell me the answer for that?
(c(Q502895),P27,Q757)
Q757
[{'concept': 'Q502895'}, 'P27', 'Q757']
[{'concept': 'common name'}, 'country of citizenship', 'Saint Vincent and the Grenadines']
[]
SYSTEM
52
Q766771 Q167867 Q20641501 Q3381861 Q3716816 Q5607257 Q6771939 Q3481618 Q7814239 Q165402 Q3054179 Q7356962 Q5413425 Q1125905 Q16222123 Q5417334 Q15972125 Q10481878 Q5171305 Q3185200 Q517220 Q21070718 Q7983878 Q1362745 Q5211928 Q19667459 Q11802444 Q5384995 Q6388946 Q1254622 Q58248 Q3631481 Q1268324 Q57800 Q18355755 Q1281056 Q3379931 Q354705 Q16221054 Q29611 Q3959103 Q1370834 Q6269842 Q3196971 Q459258 Q5066160 Q5178597 Q17279330 Q1008088 Q1563936 Q7308855 Q504756
(c(Q502895),P27,Q757)
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q757']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P27 resource:Q757 . ?z rdf:type ontology:Q502895 }
Papa Winnie Sydney Gun-Munro Tevin Slater Phyllis Joyce McClean Punnett Dwayne Sandy Gregson Hazell Marlon James Shawn King Tolga Akcayli Milton Cato Natasha Mayers Rodney Jack Thomas Dickson Myron Samuel Stephenson Wallace Eversley Linley Floyd Miller Julian Charles Cornelius Bernard Huggins Joseph Lambert Eustace Cornelius Stewart Chavel Cunningham Wesley Charles Kevin Lyttle Damal Francis Caswain Mason Pamenos Ballantyne Erasto Sampson Kendall Velox Ebenezer Joshua Louis Straker Azinho Solomon Arnhim Eustace Ralph Gonsalves Oalex Anderson James Fitz-Allen Mitchell Jared Lewis Frederick Ballantyne Teran Matthews Wesley John Shandel Samuel Eswort Coombs Jolanshoy McDowall Kineke Alexander Sancho Lyttle Chad Balcombe Courtney Carl Williams Andy Grant Ezra Hendrickson Shake Keane Reginald Richardson Joseph Chatoyer
52
[{'concept': 'common name'}, 'country of citizenship', 'Saint Vincent and the Grenadines']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:country_of_citizenship resource:Saint_Vincent_and_the_Grenadines . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5910333 Q5261948
P1412 P364
Q34770
USER
What are spoken by Derek Enright or are considered to be the original language of creation of Hot Saturday ?
OR((Q5261948,P1412,c(Q34770)), (Q5910333,P364,c(Q34770)))
action filter_type
action union
action find
entity Q5261948
relation P1412
action find
entity Q5910333
relation P364
type Q34770
{'OR': [['Q5261948', 'P1412', {'concept': 'Q34770'}], ['Q5910333', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5910333 property:P364 ?u } UNION { resource:Q5261948 property:P1412 ?u } } . ?u rdf:type ontology:Q34770 }
Hot Saturday Derek Enright
action filter_type
action union
action find
entity Derek Enright
relation languages spoken, written or signed
action find
entity Hot Saturday
relation original language of work
type language
{'OR': [['Derek Enright', 'languages spoken, written or signed', {'concept': 'language'}], ['Hot Saturday', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Hot_Saturday property:original_language_of_work ?u } UNION { resource:Derek_Enright property:languages_spoken,_written_or_signed ?u } } . ?u rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
OR((Q5261948,P1412,c(Q34770)), (Q5910333,P364,c(Q34770)))
action filter_type
action union
action find
entity Q5261948
relation P1412
action find
entity Q5910333
relation P364
type Q34770
[ANSWER] is spoken by Derek Enright or is considered to be the original language of creation of Hot Saturday
{'OR': [['Q5261948', 'P1412', {'concept': 'Q34770'}], ['Q5910333', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5910333 property:P364 ?u } UNION { resource:Q5261948 property:P1412 ?u } } . ?u rdf:type ontology:Q34770 }
English
English is spoken by Derek Enright or is considered to be the original language of creation of Hot Saturday
English
action filter_type
action union
action find
entity Derek Enright
relation languages spoken, written or signed
action find
entity Hot Saturday
relation original language of work
type language
{'OR': [['Derek Enright', 'languages spoken, written or signed', {'concept': 'language'}], ['Hot Saturday', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Hot_Saturday property:original_language_of_work ?u } UNION { resource:Derek_Enright property:languages_spoken,_written_or_signed ?u } } . ?u rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q44325 Q38168
P361
Q5962346
USER
Is that language a part of ontology and Olde English Bulldogge ?
(Q1860,P361,Q44325) (Q1860,P361,Q38168)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q44325
relation P361
action find_reverse
entity Q38168
relation P361
['Q1860', 'P361', 'Q44325'] ['Q1860', 'P361', 'Q38168']
ASK WHERE { resource:Q1860 property:P361 resource:Q44325 . resource:Q1860 property:P361 resource:Q38168 }
English ontology Olde English Bulldogge
action is_in
entity English
action intersection
action find_reverse
entity ontology
relation part of
action find_reverse
entity Olde English Bulldogge
relation part of
['English', 'part of', 'ontology'] ['English', 'part of', 'Olde English Bulldogge']
ASK WHERE { resource:English property:part_of resource:ontology . resource:English property:part_of resource:Olde_English_Bulldogge }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q44325) (Q1860,P361,Q38168)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q44325
relation P361
action find_reverse
entity Q38168
relation P361
[ANSWER]
['Q1860', 'P361', 'Q44325'] ['Q1860', 'P361', 'Q38168']
ASK WHERE { resource:Q1860 property:P361 resource:Q44325 . resource:Q1860 property:P361 resource:Q38168 }
No
action is_in
entity English
action intersection
action find_reverse
entity ontology
relation part of
action find_reverse
entity Olde English Bulldogge
relation part of
['English', 'part of', 'ontology'] ['English', 'part of', 'Olde English Bulldogge']
ASK WHERE { resource:English property:part_of resource:ontology . resource:English property:part_of resource:Olde_English_Bulldogge }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1510196 Q44325
P361 P101
Q11862829
USER
Which academic disciplines are ontology a part of and are the area of Laurentius Weger ?
AND((Q44325,P361,c(Q11862829)), (Q1510196,P101,c(Q11862829)))
action filter_type
action intersection
action find
entity Q44325
relation P361
action find
entity Q1510196
relation P101
type Q11862829
{'AND': [['Q44325', 'P361', {'concept': 'Q11862829'}], ['Q1510196', 'P101', {'concept': 'Q11862829'}]]}
SELECT DISTINCT ?s WHERE { resource:Q44325 property:P361 ?s . resource:Q1510196 property:P101 ?s . ?s rdf:type ontology:Q11862829 }
Laurentius Weger ontology
action filter_type
action intersection
action find
entity ontology
relation part of
action find
entity Laurentius Weger
relation field of work
type academic discipline
{'AND': [['ontology', 'part of', {'concept': 'academic discipline'}], ['Laurentius Weger', 'field of work', {'concept': 'academic discipline'}]]}
SELECT DISTINCT ?s WHERE { resource:ontology property:part_of ?s . resource:Laurentius_Weger property:field_of_work ?s . ?s rdf:type ontology:academic_discipline }
[]
academic discipline
Q35277
SYSTEM
metaphysics
Q35277
AND((Q44325,P361,c(Q11862829)), (Q1510196,P101,c(Q11862829)))
action filter_type
action intersection
action find
entity Q44325
relation P361
action find
entity Q1510196
relation P101
type Q11862829
The [ANSWER] is ontology a part of and is the area of Laurentius Weger
{'AND': [['Q44325', 'P361', {'concept': 'Q11862829'}], ['Q1510196', 'P101', {'concept': 'Q11862829'}]]}
SELECT DISTINCT ?s WHERE { resource:Q44325 property:P361 ?s . resource:Q1510196 property:P101 ?s . ?s rdf:type ontology:Q11862829 }
metaphysics
The metaphysics is ontology a part of and is the area of Laurentius Weger
metaphysics
action filter_type
action intersection
action find
entity ontology
relation part of
action find
entity Laurentius Weger
relation field of work
type academic discipline
{'AND': [['ontology', 'part of', {'concept': 'academic discipline'}], ['Laurentius Weger', 'field of work', {'concept': 'academic discipline'}]]}
SELECT DISTINCT ?s WHERE { resource:ontology property:part_of ?s . resource:Laurentius_Weger property:field_of_work ?s . ?s rdf:type ontology:academic_discipline }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2594990
P85
Q484692 Q7725634 Q1048835
USER
Which political territories have an anthem named more number of hymns or literary works than Dominion of New Zealand ?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q2594990
relation P85
type Q484692
type Q7725634
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?h WHERE { { ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 . ?h property:P85 ?c } UNION { ?h property:P85 ?c . ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q2594990 property:P85 ?m . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?a > ?q ) }
Dominion of New Zealand
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Dominion of New Zealand
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?h WHERE { { ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn . ?h property:anthem ?c } UNION { ?h property:anthem ?c . ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Dominion_of_New_Zealand property:anthem ?m . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?a > ?q ) }
[]
hymn literary work political territorial entity
Q408 Q35 Q769
SYSTEM
Australia, Denmark, Grenada
Q769 Q766 Q781 Q35 Q408
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q2594990
relation P85
type Q484692
type Q7725634
[ANSWERS] have an anthem named more number of hymns or literary works than Dominion of New Zealand
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?h WHERE { { ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q484692 . ?h property:P85 ?c } UNION { ?h property:P85 ?c . ?h rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q2594990 property:P85 ?m . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?a > ?q ) }
Grenada Jamaica Antigua and Barbuda Denmark Australia
Australia, Denmark and Grenada have an anthem named more number of hymns or literary works than Dominion of New Zealand
Australia Denmark Grenada
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Dominion of New Zealand
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?h WHERE { { ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:hymn . ?h property:anthem ?c } UNION { ?h property:anthem ?c . ?h rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Dominion_of_New_Zealand property:anthem ?m . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?a > ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q601252
P85
Q484692 Q7725634 Q1048835
USER
And how about Banovina of Croatia?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q601252
relation P85
type Q484692
type Q7725634
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Q601252 property:P85 ?k . { VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?k rdf:type ?m } } } . FILTER ( ?s > ?l ) . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?s ) WHERE { { ?t property:P85 ?e . ?t rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?e . ?t rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q484692 } } GROUP BY ?t } }
Banovina of Croatia
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Banovina of Croatia
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Banovina_of_Croatia property:anthem ?k . { VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?k rdf:type ?m } } } . FILTER ( ?s > ?l ) . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?s ) WHERE { { ?t property:anthem ?e . ?t rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:literary_work } UNION { ?t property:anthem ?e . ?t rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:hymn } } GROUP BY ?t } }
[]
hymn literary work political territorial entity
Q408 Q35 Q769
SYSTEM
Australia, Denmark, Grenada
Q769 Q766 Q781 Q35 Q408
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q601252
relation P85
type Q484692
type Q7725634
[ANSWERS]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Q601252 property:P85 ?k . { VALUES ( ?m ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?k rdf:type ?m } } } . FILTER ( ?s > ?l ) . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?s ) WHERE { { ?t property:P85 ?e . ?t rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?e . ?t rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q484692 } } GROUP BY ?t } }
Grenada Jamaica Antigua and Barbuda Denmark Australia
Australia Denmark Grenada
action greater
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Banovina of Croatia
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { resource:Banovina_of_Croatia property:anthem ?k . { VALUES ( ?m ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?k rdf:type ?m } } } . FILTER ( ?s > ?l ) . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?s ) WHERE { { ?t property:anthem ?e . ?t rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:literary_work } UNION { ?t property:anthem ?e . ?t rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:hymn } } GROUP BY ?t } }
[]