Simple Question (Direct)
Simple Question
Q2907971
P27
Q1048835
USER
Which political territory is the country of citizenship of Bob Leiter ?
(Q2907971,P27,c(Q1048835))
action filter_type
action find
entity Q2907971
relation P27
type Q1048835
['Q2907971', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q2907971 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Bob Leiter
action filter_type
action find
entity Bob Leiter
relation country of citizenship
type political territorial entity
['Bob Leiter', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Bob_Leiter property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q2907971,P27,c(Q1048835))
action filter_type
action find
entity Q2907971
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Bob Leiter
['Q2907971', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q2907971 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Canada
Canada is the country of citizenship of Bob Leiter
Canada
action filter_type
action find
entity Bob Leiter
relation country of citizenship
type political territorial entity
['Bob Leiter', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Bob_Leiter property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2907971
P19
Q515
USER
Where was that person born ?
(Q16,P19,c(Q515))
action filter_type
action find
entity Q2907971
relation P19
type Q515
['Q16', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q2907971 property:P19 ?a . ?a rdf:type ontology:Q515 }
Bob Leiter
action filter_type
action find
entity Bob Leiter
relation place of birth
type city
['Canada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Bob_Leiter property:place_of_birth ?a . ?a rdf:type ontology:city }
[]
city
Q2135
SYSTEM
Winnipeg
Q2135
(Q16,P19,c(Q515))
action filter_type
action find
entity Q2907971
relation P19
type Q515
That person was born in [ANSWER]
['Q16', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q2907971 property:P19 ?a . ?a rdf:type ontology:Q515 }
Winnipeg
That person was born in Winnipeg
Winnipeg
action filter_type
action find
entity Bob Leiter
relation place of birth
type city
['Canada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Bob_Leiter property:place_of_birth ?a . ?a rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q515 Q1048835 Q515
USER
Which cities are the capital of min number of cities or political territories ?
(c(Q515),P1376,c(Q515)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?a WHERE { { ?a property:P1376 ?k . ?a rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 } UNION { ?a property:P1376 ?k . ?a rdf:type ontology:Q515 . ?k rdf:type ontology:Q1048835 } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?x WHERE { { ?x property:P1376 ?l . ?x rdf:type ontology:Q515 . ?l rdf:type ontology:Q1048835 } UNION { ?x property:P1376 ?l . ?x rdf:type ontology:Q515 . ?l rdf:type ontology:Q515 } } GROUP BY ?x } . FILTER ( ?j = ?g ) }
action argmin
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?a WHERE { { ?a property:capital_of ?k . ?a rdf:type ontology:city . ?k rdf:type ontology:city } UNION { ?a property:capital_of ?k . ?a rdf:type ontology:city . ?k rdf:type ontology:political_territorial_entity } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?x WHERE { { ?x property:capital_of ?l . ?x rdf:type ontology:city . ?l rdf:type ontology:political_territorial_entity } UNION { ?x property:capital_of ?l . ?x rdf:type ontology:city . ?l rdf:type ontology:city } } GROUP BY ?x } . FILTER ( ?j = ?g ) }
[]
city political territorial entity city
Q1486 Q1773 Q1794
SYSTEM
Buenos Aires, Riga, Frankfurt
Q373542 Q780731 Q3572 Q843001 Q843006 Q843009 Q861296 Q637647 Q240026 Q19689 Q853746 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q379030 Q496667 Q240504 Q281371 Q258884 Q3624 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q932806 Q377834 Q295367 Q653389 Q851097 Q861292 Q57953 Q917888 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q80989 Q14424 Q304803 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q834567 Q851675 Q842908 Q23482 Q505208 Q911530 Q5838 Q181276 Q3692 Q847546 Q330409 Q847543 Q854956 Q379160 Q132997 Q478038 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1461 Q843018 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q117676 Q16959 Q650015 Q30340 Q23430 Q225257 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q288413 Q1519 Q8684 Q270704 Q3838 Q167109 Q3104 Q734378 Q585630 Q855529 Q7248 Q4346 Q1107569 Q6602 Q602042 Q237699 Q207406 Q517407 Q7856199 Q3904 Q325164 Q305640 Q740810 Q1069007 Q861221 Q911667 Q6807568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q3861 Q43433 Q3852 Q846652 Q3859 Q155975 Q19660 Q674311 Q3915 Q863747 Q841125 Q487439 Q385591 Q1953 Q124375 Q933641 Q854940 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 Q1330294 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q911628 Q632146 Q52564 Q4905 Q207876 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q680743 Q564234 Q488990 Q3955 Q668318 Q2773 Q6829 Q260522 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1854 Q855016 Q3787 Q855011 Q308657 Q480421 Q823907 Q7070 Q3826 Q642031 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q2526233 Q946769 Q846351 Q739304 Q789233 Q530634 Q4827 Q877227 Q5753 Q429409 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q390796 Q271917 Q1720 Q1721 Q83247 Q390798 Q11443 Q7033 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q2907 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q20073 Q1863 Q1865 Q18342086 Q430207 Q756273 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q187136 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q189761 Q189769 Q1761 Q57948 Q378225 Q954569 Q2887 Q738275 Q69060 Q727383 Q2061 Q2069869 Q184998 Q854965 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q843043 Q850676 Q36063 Q7003 Q3931 Q726993 Q3919 Q3751 Q3616 Q42666 Q738013 Q933638 Q25475 Q613813 Q375862 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q911642 Q187284 Q158245 Q284480 Q632080 Q207309 Q187812 Q16666
(c(Q515),P1376,c(Q515)|c(Q1048835))
action argmin
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q1048835
[ANSWERS] are the capital of min number of cities or political territories
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?a WHERE { { ?a property:P1376 ?k . ?a rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 } UNION { ?a property:P1376 ?k . ?a rdf:type ontology:Q515 . ?k rdf:type ontology:Q1048835 } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?x WHERE { { ?x property:P1376 ?l . ?x rdf:type ontology:Q515 . ?l rdf:type ontology:Q1048835 } UNION { ?x property:P1376 ?l . ?x rdf:type ontology:Q515 . ?l rdf:type ontology:Q515 } } GROUP BY ?x } . FILTER ( ?j = ?g ) }
Szigetvár Szeghalom Tunis Csorna Nagykálló Marcali Nōgata Pásztó Jászapáti Tirana Bátonyterenye Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Zalaszentgrót Muroran Makó Jászberény Bélapátfalva Addis Ababa 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 Polgárdi Szentes Nagyatád Nobeoka Iiyama Hitoyoshi Schwarzenberg Vinaròs Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Gönc Tata Celldömölk Záhony Toyooka Pétervására Bhopal Nagykanizsa Mezőcsát Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Bonyhád Takahashi Gyál Marseille Ouarzazate Hajdúhadház Kabul Szolnok Riyadh Saiki Ústí nad Orlicí Katsuyama Ibrány Kunszentmárton Florianópolis Kiskunfélegyháza Ő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 Berettyóújfalu Lugdunum Tiszaújváros Putnok Zhanjiang Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Manila Kunszentmiklós Tamási Keszthely Olbia Akō Szentlőrinc Adony Viseu Ürümqi Pannonhalma Zhengzhou Ulaanbaatar Rupea Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Tapolca Abu Dhabi Seoul Třebíč Kinshasa Eger Koblenz Yonezawa Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Turquoise Mountain Mbabane Kayes Abashiri Békés Washukanni Nakatsu Elek Emmen Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Doha Chandigarh Worms Cigánd Kigali Kutná Hora Bucharest Kisvárda Antananarivo Uda Tsuyama Oral Ōmura Yerevan Hódmezővásárhely Martonvásár Dabas Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár Jiankang Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Balatonfüred Annaka Kostanay Weimar Sárospatak Braunschweig Speyer Bácsalmás Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Ho Chi Minh City Csurgó Abuja Heves Minas Tirith Abony HigashiMatsuyama Eisenach Muscat Gárdony Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Caracas Morioka Lucknow Patna Ungaran Hirado Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Pilisvörösvár Vyritsa Ogi Samarkand Szob Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Orosháza Kushiro Mainz Wiesbaden Braga Szentendre Kediri Nordhausen Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Sucre Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Kuala Lumpur Oyo-Ile Komló Karcag Sarkad Ajka Taiyuan Bangalore Most Fuchū Luoyang Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Sivas Brand-Erbisdorf Fukuchiyama Szekszárd Salgótarján Dublin Aue Hagi Vyškov Santiago Karatsu Xining Sokolov Yellowknife Edoras Kaposvár Lenti Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Sárvár Blansko Vecsés Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Tehran Shaoxing Xàtiva Mezőkövesd Batumi Kőszeg Nyíradony Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Füzesabony Hurghada Písek Bóly Tét Tokushima Dunaújváros Nanjing
Buenos Aires, Riga and Frankfurt are the capital of min number of cities or political territories
Buenos Aires Riga Frankfurt
action argmin
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) ?a WHERE { { ?a property:capital_of ?k . ?a rdf:type ontology:city . ?k rdf:type ontology:city } UNION { ?a property:capital_of ?k . ?a rdf:type ontology:city . ?k rdf:type ontology:political_territorial_entity } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?x WHERE { { ?x property:capital_of ?l . ?x rdf:type ontology:city . ?l rdf:type ontology:political_territorial_entity } UNION { ?x property:capital_of ?l . ?x rdf:type ontology:city . ?l rdf:type ontology:city } } GROUP BY ?x } . FILTER ( ?j = ?g ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P163
Q14660 Q515
USER
How many cities have flag named approximately the same number of flags as that city ?
(c(Q515),P163,c(Q14660))
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
flag city
Comparative|Count over More/Less|Single entity type|Clarification
Q1794
SYSTEM
Did you mean Frankfurt ?
(c(Q515),P163,c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Did you mean Frankfurt ?
Frankfurt
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(c(Q515),P163,c(Q14660))
Q1486
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
[]
SYSTEM
15
Q43196 Q841296 Q612815 Q5540 Q19689 Q1953 Q1209 Q1865 Q494777 Q23768 Q3926 Q1773 Q2337 Q157835 Q2135
(c(Q515),P163,c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Cincinnati Příbram Garachico Penza Tirana Yerevan Free Hanseatic City of Bremen Kuala Lumpur Alcoi Las Vegas Pretoria Riga Smolensk Zaporizhzhya Winnipeg
15
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11862643 Q1486
P190 P937
Q56061
USER
Which administrative territories are twin cities of Buenos Aires or are the work locations of Hilma Valjakka ?
OR((Q1486,P190,c(Q56061)), (Q11862643,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1486
relation P190
action find
entity Q11862643
relation P937
type Q56061
{'OR': [['Q1486', 'P190', {'concept': 'Q56061'}], ['Q11862643', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1486 property:P190 ?h } UNION { resource:Q11862643 property:P937 ?h } } . ?h rdf:type ontology:Q56061 }
Hilma Valjakka Buenos Aires
action filter_type
action union
action find
entity Buenos Aires
relation sister city
action find
entity Hilma Valjakka
relation work location
type administrative territorial entity
{'OR': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], ['Hilma Valjakka', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Buenos_Aires property:sister_city ?h } UNION { resource:Hilma_Valjakka property:work_location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q244324 Q8745 Q1897 Q8717 Q33935 Q1524 Q2868 Q64 Q628
SYSTEM
Some of them are Moscow, Guadix, Vigo, Cagliari, Seville, Tel Aviv, Athens, Lima, Berlin, Bergamo
Q1757 Q8678 Q3766 Q628 Q649 Q8745 Q270 Q13678 Q34820 Q25395 Q15695 Q1524 Q2634 Q1489 Q71 Q8717 Q8692 Q518431 Q3711 Q2868 Q33935 Q2656 Q84 Q85 Q34370 Q7880 Q1449 Q40269 Q406 Q1930 Q10400 Q174 Q244324 Q14314 Q15682 Q490 Q2807 Q597 Q956 Q1335 Q1492 Q64 Q1218 Q3820 Q5465 Q1085 Q1897
OR((Q1486,P190,c(Q56061)), (Q11862643,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1486
relation P190
action find
entity Q11862643
relation P937
type Q56061
[ANSWERS] are twin cities of Buenos Aires or are the work locations of Hilma Valjakka
{'OR': [['Q1486', 'P190', {'concept': 'Q56061'}], ['Q11862643', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1486 property:P190 ?h } UNION { resource:Q11862643 property:P937 ?h } } . ?h rdf:type ontology:Q56061 }
Helsinki Rio de Janeiro Damascus Bergamo Moscow Vigo Warsaw Agrigento Santo Domingo Newark Salamanca Athens Naples Mexico City Geneva Seville Bilbao Chimbote Belgrade Lima Tel Aviv Palermo London Cairo Rotterdam Toulouse Genoa Porto Alegre Istanbul Ottawa Almería São Paulo Guadix Santiago de Compostela Cádiz Milan Madrid Lisbon Beijing Montevideo Barcelona Berlin Jerusalem Beirut Cape Town Prague Cagliari
Moscow, Guadix, Vigo, Cagliari, Seville, Tel Aviv, Athens, Lima, Berlin and Bergamo are twin cities of Buenos Aires or are the work locations of Hilma Valjakka
Moscow Guadix Vigo Cagliari Seville Tel Aviv Athens Lima Berlin Bergamo
action filter_type
action union
action find
entity Buenos Aires
relation sister city
action find
entity Hilma Valjakka
relation work location
type administrative territorial entity
{'OR': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], ['Hilma Valjakka', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Buenos_Aires property:sister_city ?h } UNION { resource:Hilma_Valjakka property:work_location ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1486
P190
Q515
USER
Are Buenos Aires sister town of those administrative territories ?
(Q1486,P190,Q649) (Q1486,P190,Q244324) (Q1486,P190,Q8745) (Q1486,P190,Q1897) (Q1486,P190,Q8717) (Q1486,P190,Q33935) (Q1486,P190,Q1524) (Q1486,P190,Q2868) (Q1486,P190,Q64) (Q1486,P190,Q628)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q244324'] ['Q1486', 'P190', 'Q8745'] ['Q1486', 'P190', 'Q1897'] ['Q1486', 'P190', 'Q8717'] ['Q1486', 'P190', 'Q33935'] ['Q1486', 'P190', 'Q1524'] ['Q1486', 'P190', 'Q2868'] ['Q1486', 'P190', 'Q64'] ['Q1486', 'P190', 'Q628']
ASK WHERE { VALUES ( ?j ) { ( resource:Q1757 ) ( resource:Q8678 ) ( resource:Q3766 ) } . resource:Q1486 property:P190 ?j }
Buenos Aires
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Guadix'] ['Buenos Aires', 'sister city', 'Vigo'] ['Buenos Aires', 'sister city', 'Cagliari'] ['Buenos Aires', 'sister city', 'Seville'] ['Buenos Aires', 'sister city', 'Tel Aviv'] ['Buenos Aires', 'sister city', 'Athens'] ['Buenos Aires', 'sister city', 'Lima'] ['Buenos Aires', 'sister city', 'Berlin'] ['Buenos Aires', 'sister city', 'Bergamo']
ASK WHERE { VALUES ( ?j ) { ( resource:Helsinki ) ( resource:Rio_de_Janeiro ) ( resource:Damascus ) } . resource:Buenos_Aires property:sister_city ?j }
[]
city
SYSTEM
YES
(Q1486,P190,Q649) (Q1486,P190,Q244324) (Q1486,P190,Q8745) (Q1486,P190,Q1897) (Q1486,P190,Q8717) (Q1486,P190,Q33935) (Q1486,P190,Q1524) (Q1486,P190,Q2868) (Q1486,P190,Q64) (Q1486,P190,Q628)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
[ANSWER]
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q244324'] ['Q1486', 'P190', 'Q8745'] ['Q1486', 'P190', 'Q1897'] ['Q1486', 'P190', 'Q8717'] ['Q1486', 'P190', 'Q33935'] ['Q1486', 'P190', 'Q1524'] ['Q1486', 'P190', 'Q2868'] ['Q1486', 'P190', 'Q64'] ['Q1486', 'P190', 'Q628']
ASK WHERE { VALUES ( ?j ) { ( resource:Q1757 ) ( resource:Q8678 ) ( resource:Q3766 ) } . resource:Q1486 property:P190 ?j }
Yes
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Guadix'] ['Buenos Aires', 'sister city', 'Vigo'] ['Buenos Aires', 'sister city', 'Cagliari'] ['Buenos Aires', 'sister city', 'Seville'] ['Buenos Aires', 'sister city', 'Tel Aviv'] ['Buenos Aires', 'sister city', 'Athens'] ['Buenos Aires', 'sister city', 'Lima'] ['Buenos Aires', 'sister city', 'Berlin'] ['Buenos Aires', 'sister city', 'Bergamo']
ASK WHERE { VALUES ( ?j ) { ( resource:Helsinki ) ( resource:Rio_de_Janeiro ) ( resource:Damascus ) } . resource:Buenos_Aires property:sister_city ?j }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16 Q58769 Q928
P530
Q15617994
USER
Does Canada have diplomatic relations with Pontelatone and Philippines ?
(Q16,P530,Q58769) (Q16,P530,Q928)
action is_in
entity Q16
action intersection
action find_reverse
entity Q58769
relation P530
action find_reverse
entity Q928
relation P530
['Q16', 'P530', 'Q58769'] ['Q16', 'P530', 'Q928']
ASK WHERE { resource:Q16 property:P530 resource:Q928 . resource:Q16 property:P530 resource:Q58769 }
Canada Pontelatone Philippines
action is_in
entity Canada
action intersection
action find_reverse
entity Pontelatone
relation diplomatic relation
action find_reverse
entity Philippines
relation diplomatic relation
['Canada', 'diplomatic relation', 'Pontelatone'] ['Canada', 'diplomatic relation', 'Philippines']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Philippines . resource:Canada property:diplomatic_relation resource:Pontelatone }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q16,P530,Q58769) (Q16,P530,Q928)
action is_in
entity Q16
action intersection
action find_reverse
entity Q58769
relation P530
action find_reverse
entity Q928
relation P530
[ANSWER]
['Q16', 'P530', 'Q58769'] ['Q16', 'P530', 'Q928']
ASK WHERE { resource:Q16 property:P530 resource:Q928 . resource:Q16 property:P530 resource:Q58769 }
NO and YES respectively
action is_in
entity Canada
action intersection
action find_reverse
entity Pontelatone
relation diplomatic relation
action find_reverse
entity Philippines
relation diplomatic relation
['Canada', 'diplomatic relation', 'Pontelatone'] ['Canada', 'diplomatic relation', 'Philippines']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Philippines . resource:Canada property:diplomatic_relation resource:Pontelatone }
[]