Simple Question (Direct)
Simple Question
Q1145643
P20
Q56061
USER
Where did the demise of Matteo Manuguerra occur ?
(Q1145643,P20,c(Q56061))
action filter_type
action find
entity Q1145643
relation P20
type Q56061
['Q1145643', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q1145643 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Matteo Manuguerra
action filter_type
action find
entity Matteo Manuguerra
relation place of death
type administrative territorial entity
['Matteo Manuguerra', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Matteo_Manuguerra property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6441
SYSTEM
Montpellier
Q6441
(Q1145643,P20,c(Q56061))
action filter_type
action find
entity Q1145643
relation P20
type Q56061
The demise of Matteo Manuguerra occurred in [ANSWER]
['Q1145643', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q1145643 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Montpellier
The demise of Matteo Manuguerra occurred in Montpellier
Montpellier
action filter_type
action find
entity Matteo Manuguerra
relation place of death
type administrative territorial entity
['Matteo Manuguerra', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Matteo_Manuguerra property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1145643
P19
Q515
USER
Which city was Matteo Manuguerra born in ?
(Q1145643,P19,c(Q515))
action filter_type
action find
entity Q1145643
relation P19
type Q515
['Q1145643', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q1145643 property:P19 ?u . ?u rdf:type ontology:Q515 }
Matteo Manuguerra
action filter_type
action find
entity Matteo Manuguerra
relation place of birth
type city
['Matteo Manuguerra', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Matteo_Manuguerra property:place_of_birth ?u . ?u rdf:type ontology:city }
[]
city
Q3572
SYSTEM
Tunis
Q3572
(Q1145643,P19,c(Q515))
action filter_type
action find
entity Q1145643
relation P19
type Q515
Matteo Manuguerra was born in [ANSWER]
['Q1145643', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q1145643 property:P19 ?u . ?u rdf:type ontology:Q515 }
Tunis
Matteo Manuguerra was born in Tunis
Tunis
action filter_type
action find
entity Matteo Manuguerra
relation place of birth
type city
['Matteo Manuguerra', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Matteo_Manuguerra property:place_of_birth ?u . ?u rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5558028
Q515
USER
And also tell me about Gian Godoy?
(Q5558028,P19,c(Q515))
action filter_type
action find
entity Q5558028
relation P19
type Q515
['Q5558028', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q5558028 property:P19 ?k . ?k rdf:type ontology:Q515 }
Gian Godoy
action filter_type
action find
entity Gian Godoy
relation place of birth
type city
['Gian Godoy', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Gian_Godoy property:place_of_birth ?k . ?k rdf:type ontology:city }
[]
city
Q2887
SYSTEM
Santiago
Q2887
(Q5558028,P19,c(Q515))
action filter_type
action find
entity Q5558028
relation P19
type Q515
[ANSWER]
['Q5558028', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q5558028 property:P19 ?k . ?k rdf:type ontology:Q515 }
Santiago
Santiago
action filter_type
action find
entity Gian Godoy
relation place of birth
type city
['Gian Godoy', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Gian_Godoy property:place_of_birth ?k . ?k rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3926
P36
Q515 Q515 Q15617994
USER
How many cities are associated to less number of cities and administrative territories as the capital than Pretoria ?
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q3926
relation P36
type Q515
type Q15617994
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?l WHERE { { ?l rdf:type ontology:Q515 . ?o rdf:type ontology:Q515 . ?o property:P36 ?l } UNION { ?o property:P36 ?l . ?l rdf:type ontology:Q515 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P36 resource:Q3926 . { { ?d rdf:type ontology:Q515 } UNION { ?d rdf:type ontology:Q15617994 } } } } . FILTER ( ?k < ?x ) }
Pretoria
action count
action less
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Pretoria
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?l WHERE { { ?l rdf:type ontology:city . ?o rdf:type ontology:city . ?o property:capital ?l } UNION { ?o property:capital ?l . ?l rdf:type ontology:city . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:capital resource:Pretoria . { { ?d rdf:type ontology:city } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k < ?x ) }
[]
city city designation for an administrative territorial entity
SYSTEM
529
Q15826 Q384403 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q320950 Q8254 Q592338 Q43199 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q903177 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 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q505208 Q1000336 Q911530 Q181276 Q583137 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q270704 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q207408 Q1107569 Q1025387 Q316841 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q8652 Q842971 Q842976 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q155975 Q1020939 Q674311 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q188082 Q2973 Q137271 Q855060 Q1473 Q842996 Q679249 Q843021 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q329775 Q1854 Q890122 Q855016 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 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 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1721 Q83247 Q1645 Q7578 Q390798 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q11725 Q604516 Q73156 Q732300 Q789510 Q470369 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 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q2795 Q750224 Q378225 Q954569 Q738275 Q69060 Q8179 Q727383 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3936 Q3931 Q726993 Q3750 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q3926
relation P36
type Q515
type Q15617994
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?l WHERE { { ?l rdf:type ontology:Q515 . ?o rdf:type ontology:Q515 . ?o property:P36 ?l } UNION { ?o property:P36 ?l . ?l rdf:type ontology:Q515 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P36 resource:Q3926 . { { ?d rdf:type ontology:Q515 } UNION { ?d rdf:type ontology:Q15617994 } } } } . FILTER ( ?k < ?x ) }
Palu Litoměřice Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti 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 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 Tiszafüred 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 Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Surabaya Bonyhád Takahashi Castro Cottbus Gyál Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog 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 Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Třebíč Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Vác Kerma Maasin Karlovo 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 Miami Sellye Mátészalka Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kutná Hora Digos Kisvárda Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District 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 Maloe Verevo Druzhnaya Gorka Yamaguchi Český Krumlov Darmstadt Kota Kinabalu Encs Davao City Pécsvárad Kalocsa Tolna 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 Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama 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 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 Vojskovitsy Hefei Wollongong Suzuka Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Kolín 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 Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Chemnitz Strakonice Hagi Vyškov Karatsu Xining Pangkal Pinang Sokolov Edoras Kaposvár Bacolod Lenti Catbalogan Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Bamberg Brandenburg an der Havel Cotabato City Gera Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
529
action count
action less
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Pretoria
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) ?l WHERE { { ?l rdf:type ontology:city . ?o rdf:type ontology:city . ?o property:capital ?l } UNION { ?o property:capital ?l . ?l rdf:type ontology:city . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:capital resource:Pretoria . { { ?d rdf:type ontology:city } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k < ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3866
P36
Q515 Q515 Q15617994
USER
And also tell me about Dodoma?
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q3866
relation P36
type Q515
type Q15617994
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?o rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ?r . VALUES ( ?r ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } } . ?s property:P36 resource:Q3866 } } . FILTER ( ?a < ?f ) }
Dodoma
action count
action less
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Dodoma
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ?r . VALUES ( ?r ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?s property:capital resource:Dodoma } } . FILTER ( ?a < ?f ) }
[]
city city designation for an administrative territorial entity
SYSTEM
529
Q15826 Q384403 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q320950 Q8254 Q592338 Q43199 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q903177 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 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q505208 Q1000336 Q911530 Q181276 Q583137 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q270704 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q207408 Q1107569 Q1025387 Q316841 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q8652 Q842971 Q842976 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q155975 Q1020939 Q674311 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q188082 Q2973 Q137271 Q855060 Q1473 Q842996 Q679249 Q843021 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q329775 Q1854 Q890122 Q855016 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 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 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1721 Q83247 Q1645 Q7578 Q390798 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q11725 Q604516 Q73156 Q732300 Q789510 Q470369 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 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q2795 Q750224 Q378225 Q954569 Q738275 Q69060 Q8179 Q727383 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3936 Q3931 Q726993 Q3750 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q3866
relation P36
type Q515
type Q15617994
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?o rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ?r . VALUES ( ?r ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } } . ?s property:P36 resource:Q3866 } } . FILTER ( ?a < ?f ) }
Palu Litoměřice Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti 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 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 Tiszafüred 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 Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Surabaya Bonyhád Takahashi Castro Cottbus Gyál Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog 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 Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Třebíč Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Vác Kerma Maasin Karlovo 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 Miami Sellye Mátészalka Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kutná Hora Digos Kisvárda Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District 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 Maloe Verevo Druzhnaya Gorka Yamaguchi Český Krumlov Darmstadt Kota Kinabalu Encs Davao City Pécsvárad Kalocsa Tolna 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 Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama 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 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 Vojskovitsy Hefei Wollongong Suzuka Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Kolín 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 Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Chemnitz Strakonice Hagi Vyškov Karatsu Xining Pangkal Pinang Sokolov Edoras Kaposvár Bacolod Lenti Catbalogan Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Bamberg Brandenburg an der Havel Cotabato City Gera Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
529
action count
action less
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Dodoma
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { ?s rdf:type ?r . VALUES ( ?r ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?s property:capital resource:Dodoma } } . FILTER ( ?a < ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2887
P190
Q56061
USER
How many administrative territories are twin cities of Santiago ?
(Q2887,P190,c(Q56061))
action count
action filter_type
action find
entity Q2887
relation P190
type Q56061
['Q2887', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q2887 property:P190 ?s . ?s rdf:type ontology:Q56061 }
Santiago
action count
action filter_type
action find
entity Santiago
relation sister city
type administrative territorial entity
['Santiago', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Santiago property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
12
Q3070 Q685509 Q34820 Q1524 Q1489 Q43509 Q174 Q2807 Q956 Q241767 Q3640 Q1491
(Q2887,P190,c(Q56061))
action count
action filter_type
action find
entity Q2887
relation P190
type Q56061
[ANSWER]
['Q2887', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Q2887 property:P190 ?s . ?s rdf:type ontology:Q56061 }
San José Santiago de Veraguas Santo Domingo Athens Mexico City Guayaquil São Paulo Madrid Beijing Plasencia Ankara La Paz
12
action count
action filter_type
action find
entity Santiago
relation sister city
type administrative territorial entity
['Santiago', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { resource:Santiago property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33986
P190
Q56061
USER
Which administrative territories are twin cities of Valparaíso ?
(Q33986,P190,c(Q56061))
action filter_type
action find
entity Q33986
relation P190
type Q56061
['Q33986', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q33986 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Valparaíso
action filter_type
action find
entity Valparaíso
relation sister city
type administrative territorial entity
['Valparaíso', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Valparaíso property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q1492 Q1874
SYSTEM
Shanghai, Barcelona, Odessa
Q15760 Q8686 Q15468 Q61089 Q44210 Q105037 Q1874 Q52535 Q208725 Q1492 Q62
(Q33986,P190,c(Q56061))
action filter_type
action find
entity Q33986
relation P190
type Q56061
[ANSWERS] are twin cities of Valparaíso
['Q33986', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q33986 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Novorossiysk Shanghai Badalona Malacca City Córdoba Callao Odessa Rosario Bat Yam Barcelona San Francisco
Shanghai, Barcelona and Odessa are twin cities of Valparaíso
Shanghai Barcelona Odessa
action filter_type
action find
entity Valparaíso
relation sister city
type administrative territorial entity
['Valparaíso', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Valparaíso property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q131290
Q56061
USER
And also tell me about Ganja?
(Q131290,P190,c(Q56061))
action filter_type
action find
entity Q131290
relation P190
type Q56061
['Q131290', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q131290 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Ganja
action filter_type
action find
entity Ganja
relation sister city
type administrative territorial entity
['Ganja', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ganja property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q172415 Q9365
SYSTEM
Moscow, Kutaisi, Dushanbe
Q9365 Q182521 Q649 Q25395 Q172415 Q184539 Q127063
(Q131290,P190,c(Q56061))
action filter_type
action find
entity Q131290
relation P190
type Q56061
[ANSWERS]
['Q131290', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q131290 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Dushanbe Rustavi Moscow Newark Kutaisi Ordu Kars
Moscow Kutaisi Dushanbe
action filter_type
action find
entity Ganja
relation sister city
type administrative territorial entity
['Ganja', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ganja property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q131290
P190
Q56061
USER
Are Ganja partner town of those ones ?
(Q131290,P190,Q649) (Q131290,P190,Q172415) (Q131290,P190,Q9365)
action is_in
entity prev_answer
action find
entity Q131290
relation P190
['Q131290', 'P190', 'Q649'] ['Q131290', 'P190', 'Q172415'] ['Q131290', 'P190', 'Q9365']
ASK WHERE { resource:Q131290 property:P190 ?i . VALUES ( ?i ) { ( resource:Q9365 ) ( resource:Q182521 ) ( resource:Q649 ) } }
Ganja
action is_in
entity prev_answer
action find
entity Ganja
relation sister city
['Ganja', 'sister city', 'Moscow'] ['Ganja', 'sister city', 'Kutaisi'] ['Ganja', 'sister city', 'Dushanbe']
ASK WHERE { resource:Ganja property:sister_city ?i . VALUES ( ?i ) { ( resource:Dushanbe ) ( resource:Rustavi ) ( resource:Moscow ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q131290,P190,Q649) (Q131290,P190,Q172415) (Q131290,P190,Q9365)
action is_in
entity prev_answer
action find
entity Q131290
relation P190
[ANSWER]
['Q131290', 'P190', 'Q649'] ['Q131290', 'P190', 'Q172415'] ['Q131290', 'P190', 'Q9365']
ASK WHERE { resource:Q131290 property:P190 ?i . VALUES ( ?i ) { ( resource:Q9365 ) ( resource:Q182521 ) ( resource:Q649 ) } }
Yes
action is_in
entity prev_answer
action find
entity Ganja
relation sister city
['Ganja', 'sister city', 'Moscow'] ['Ganja', 'sister city', 'Kutaisi'] ['Ganja', 'sister city', 'Dushanbe']
ASK WHERE { resource:Ganja property:sister_city ?i . VALUES ( ?i ) { ( resource:Dushanbe ) ( resource:Rustavi ) ( resource:Moscow ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q649
P190
Q56061 Q13220204
USER
How many administrative territories or administrative country subdivisions are partner towns of Moscow ?
(Q649,P190,c(Q56061)) (Q649,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q649
relation P190
type Q56061
action filter_type
action find
entity Q649
relation P190
type Q13220204
['Q649', 'P190', {'concept': 'Q56061'}] ['Q649', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { resource:Q649 property:P190 ?j . ?j rdf:type ontology:Q13220204 } UNION { resource:Q649 property:P190 ?j . ?j rdf:type ontology:Q56061 } }
Moscow
action count
action union
action filter_type
action find
entity Moscow
relation sister city
type administrative territorial entity
action filter_type
action find
entity Moscow
relation sister city
type second-level administrative country subdivision
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Moscow', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { resource:Moscow property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Moscow property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity second-level administrative country subdivision
SYSTEM
51
Q807 Q41572 Q131290 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q13498 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q196678 Q156711 Q9899 Q1524 Q1780 Q1520 Q1741 Q64 Q3630 Q140147 Q25409 Q33935 Q3561 Q1490 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q987 Q239 Q2807 Q956 Q3640 Q3805 Q1491 Q1218 Q133026 Q186576 Q1085
(Q649,P190,c(Q56061)) (Q649,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q649
relation P190
type Q56061
action filter_type
action find
entity Q649
relation P190
type Q13220204
[ANSWER]
['Q649', 'P190', {'concept': 'Q56061'}] ['Q649', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { resource:Q649 property:P190 ?j . ?j rdf:type ontology:Q13220204 } UNION { resource:Q649 property:P190 ?j . ?j rdf:type ontology:Q56061 } }
Lausanne Mykolaiv Ganja Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Taranto Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Torzhok Uzhhorod Amsterdam Athens Bratislava Astana Vienna Berlin Jakarta Brest Košice Tel Aviv Algiers Tokyo London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw New Delhi Brussels Madrid Beijing Ankara Amman La Paz Jerusalem Kolomna Pazardzhik Prague
51
action count
action union
action filter_type
action find
entity Moscow
relation sister city
type administrative territorial entity
action filter_type
action find
entity Moscow
relation sister city
type second-level administrative country subdivision
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Moscow', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { { resource:Moscow property:sister_city ?j . ?j rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Moscow property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6441 Q8059936 Q16669774
P6
Q502895
USER
Does Montpellier have Yu Kijima and Philippe Saurel as its administrative leader ?
(Q6441,P6,Q8059936) (Q6441,P6,Q16669774)
action is_in
entity Q6441
action intersection
action find_reverse
entity Q8059936
relation P6
action find_reverse
entity Q16669774
relation P6
['Q6441', 'P6', 'Q8059936'] ['Q6441', 'P6', 'Q16669774']
ASK WHERE { resource:Q6441 property:P6 resource:Q8059936 . resource:Q6441 property:P6 resource:Q16669774 }
Montpellier Yu Kijima Philippe Saurel
action is_in
entity Montpellier
action intersection
action find_reverse
entity Yu Kijima
relation head of government
action find_reverse
entity Philippe Saurel
relation head of government
['Montpellier', 'head of government', 'Yu Kijima'] ['Montpellier', 'head of government', 'Philippe Saurel']
ASK WHERE { resource:Montpellier property:head_of_government resource:Yu_Kijima . resource:Montpellier property:head_of_government resource:Philippe_Saurel }
[]
common name
SYSTEM
NO and YES respectively
(Q6441,P6,Q8059936) (Q6441,P6,Q16669774)
action is_in
entity Q6441
action intersection
action find_reverse
entity Q8059936
relation P6
action find_reverse
entity Q16669774
relation P6
[ANSWER]
['Q6441', 'P6', 'Q8059936'] ['Q6441', 'P6', 'Q16669774']
ASK WHERE { resource:Q6441 property:P6 resource:Q8059936 . resource:Q6441 property:P6 resource:Q16669774 }
NO and YES respectively
action is_in
entity Montpellier
action intersection
action find_reverse
entity Yu Kijima
relation head of government
action find_reverse
entity Philippe Saurel
relation head of government
['Montpellier', 'head of government', 'Yu Kijima'] ['Montpellier', 'head of government', 'Philippe Saurel']
ASK WHERE { resource:Montpellier property:head_of_government resource:Yu_Kijima . resource:Montpellier property:head_of_government resource:Philippe_Saurel }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P417
Q502895
USER
Which person is the patron saint of Moscow ?
(Q649,P417,c(Q502895))
action filter_type
action find
entity Q649
relation P417
type Q502895
['Q649', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q649 property:P417 ?u . ?u rdf:type ontology:Q502895 }
Moscow
action filter_type
action find
entity Moscow
relation patron saint
type common name
['Moscow', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Moscow property:patron_saint ?u . ?u rdf:type ontology:common_name }
[]
common name
Q48438
SYSTEM
Saint George
Q48438
(Q649,P417,c(Q502895))
action filter_type
action find
entity Q649
relation P417
type Q502895
[ANSWER] is the patron saint of Moscow
['Q649', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q649 property:P417 ?u . ?u rdf:type ontology:Q502895 }
Saint George
Saint George is the patron saint of Moscow
Saint George
action filter_type
action find
entity Moscow
relation patron saint
type common name
['Moscow', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Moscow property:patron_saint ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P272
Q838948
USER
Which work of art had Moscow as the production house ?
(c(Q838948),P272,Q649)
action filter_type
action find_reverse
entity Q649
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q649']
SELECT DISTINCT ?i WHERE { ?i property:P272 resource:Q649 . ?i rdf:type ontology:Q838948 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Moscow']
SELECT DISTINCT ?i WHERE { ?i property:production_company resource:Moscow . ?i rdf:type ontology:work_of_art }
[]
work of art
Q873313
SYSTEM
The Red and the White
Q873313
(c(Q838948),P272,Q649)
action filter_type
action find_reverse
entity Q649
relation P272
type Q838948
[ANSWER] had Moscow as the production house
[{'concept': 'Q838948'}, 'P272', 'Q649']
SELECT DISTINCT ?i WHERE { ?i property:P272 resource:Q649 . ?i rdf:type ontology:Q838948 }
The Red and the White
The Red and the White had Moscow as the production house
The Red and the White
action filter_type
action find_reverse
entity Moscow
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Moscow']
SELECT DISTINCT ?i WHERE { ?i property:production_company resource:Moscow . ?i rdf:type ontology:work_of_art }
[]