Simple Question (Direct)
Simple Question
Q1355480
P937
Q56061
USER
Which is the work location of Andreas Henke ?
(Q1355480,P937,c(Q56061))
action filter_type
action find
entity Q1355480
relation P937
type Q56061
['Q1355480', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1355480 property:P937 ?e }
Andreas Henke
action filter_type
action find
entity Andreas Henke
relation work location
type administrative territorial entity
['Andreas Henke', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Andreas_Henke property:work_location ?e }
[]
administrative territorial entity
Q7072
SYSTEM
Halberstadt
Q7072
(Q1355480,P937,c(Q56061))
action filter_type
action find
entity Q1355480
relation P937
type Q56061
[ANSWER] is the work location of Andreas Henke
['Q1355480', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1355480 property:P937 ?e }
Halberstadt
Halberstadt is the work location of Andreas Henke
Halberstadt
action filter_type
action find
entity Andreas Henke
relation work location
type administrative territorial entity
['Andreas Henke', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Andreas_Henke property:work_location ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7072
P190
Q515
USER
Which cities are partner towns of that administrative territory ?
(Q7072,P190,c(Q515))
action filter_type
action find
entity Q7072
relation P190
type Q515
['Q7072', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q7072 property:P190 ?m }
Halberstadt
action filter_type
action find
entity Halberstadt
relation sister city
type city
['Halberstadt', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Halberstadt property:sister_city ?m }
[]
city
Q3014 Q591823
SYSTEM
Wolfsburg, Náchod
Q3014 Q591823
(Q7072,P190,c(Q515))
action filter_type
action find
entity Q7072
relation P190
type Q515
[ANSWERS] are partner towns of that administrative territory
['Q7072', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q7072 property:P190 ?m }
Wolfsburg Náchod
Wolfsburg and Náchod are partner towns of that administrative territory
Wolfsburg Náchod
action filter_type
action find
entity Halberstadt
relation sister city
type city
['Halberstadt', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Halberstadt property:sister_city ?m }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7399330
P190
Q56061
USER
Are Sago, Burkina Faso sister town of those cities ?
(Q7399330,P190,Q3014) (Q7399330,P190,Q591823)
action is_in
entity prev_answer
action find
entity Q7399330
relation P190
['Q7399330', 'P190', 'Q3014'] ['Q7399330', 'P190', 'Q591823']
ASK WHERE { resource:Q7399330 property:P190 ?x . VALUES ( ?x ) { ( resource:Q3014 ) ( resource:Q591823 ) } }
Sago, Burkina Faso
action is_in
entity prev_answer
action find
entity Sago, Burkina Faso
relation sister city
['Sago, Burkina Faso', 'sister city', 'Wolfsburg'] ['Sago, Burkina Faso', 'sister city', 'Náchod']
ASK WHERE { resource:Sago,_Burkina_Faso property:sister_city ?x . VALUES ( ?x ) { ( resource:Wolfsburg ) ( resource:Náchod ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q7399330,P190,Q3014) (Q7399330,P190,Q591823)
action is_in
entity prev_answer
action find
entity Q7399330
relation P190
[ANSWER]
['Q7399330', 'P190', 'Q3014'] ['Q7399330', 'P190', 'Q591823']
ASK WHERE { resource:Q7399330 property:P190 ?x . VALUES ( ?x ) { ( resource:Q3014 ) ( resource:Q591823 ) } }
No
action is_in
entity prev_answer
action find
entity Sago, Burkina Faso
relation sister city
['Sago, Burkina Faso', 'sister city', 'Wolfsburg'] ['Sago, Burkina Faso', 'sister city', 'Náchod']
ASK WHERE { resource:Sago,_Burkina_Faso property:sister_city ?x . VALUES ( ?x ) { ( resource:Wolfsburg ) ( resource:Náchod ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5356434 Q1355480
P102
Q7278
USER
Which political parties are Andreas Henke or Zhou Bohua affiliated with ?
OR((Q1355480,P102,c(Q7278)), (Q5356434,P102,c(Q7278)))
action filter_type
action union
action find
entity Q1355480
relation P102
action find
entity Q5356434
relation P102
type Q7278
{'OR': [['Q1355480', 'P102', {'concept': 'Q7278'}], ['Q5356434', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?k WHERE { { ?v property:P102 ?k . VALUES ( ?v ) { ( resource:Q1355480 ) ( resource:Q5356434 ) } } . ?k rdf:type ontology:Q7278 }
Zhou Bohua Andreas Henke
action filter_type
action union
action find
entity Andreas Henke
relation member of political party
action find
entity Zhou Bohua
relation member of political party
type political party
{'OR': [['Andreas Henke', 'member of political party', {'concept': 'political party'}], ['Zhou Bohua', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?k WHERE { { ?v property:member_of_political_party ?k . VALUES ( ?v ) { ( resource:Andreas_Henke ) ( resource:Zhou_Bohua ) } } . ?k rdf:type ontology:political_party }
[]
political party
Q49750 Q17427
SYSTEM
Socialist Unity Party of Germany, Communist Party of China
Q49750 Q17427
OR((Q1355480,P102,c(Q7278)), (Q5356434,P102,c(Q7278)))
action filter_type
action union
action find
entity Q1355480
relation P102
action find
entity Q5356434
relation P102
type Q7278
Andreas Henke or Zhou Bohua are affiliated with [ANSWERS]
{'OR': [['Q1355480', 'P102', {'concept': 'Q7278'}], ['Q5356434', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?k WHERE { { ?v property:P102 ?k . VALUES ( ?v ) { ( resource:Q1355480 ) ( resource:Q5356434 ) } } . ?k rdf:type ontology:Q7278 }
Socialist Unity Party of Germany Communist Party of China
Andreas Henke or Zhou Bohua are affiliated with Socialist Unity Party of Germany and Communist Party of China
Socialist Unity Party of Germany Communist Party of China
action filter_type
action union
action find
entity Andreas Henke
relation member of political party
action find
entity Zhou Bohua
relation member of political party
type political party
{'OR': [['Andreas Henke', 'member of political party', {'concept': 'political party'}], ['Zhou Bohua', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?k WHERE { { ?v property:member_of_political_party ?k . VALUES ( ?v ) { ( resource:Andreas_Henke ) ( resource:Zhou_Bohua ) } } . ?k rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q61217
P102
Q502895
USER
Does Otto Braun belong to the political party named those ones ?
(Q61217,P102,Q49750) (Q61217,P102,Q17427)
action is_in
entity prev_answer
action find
entity Q61217
relation P102
['Q61217', 'P102', 'Q49750'] ['Q61217', 'P102', 'Q17427']
ASK WHERE { VALUES ( ?c ) { ( resource:Q49750 ) ( resource:Q17427 ) } . resource:Q61217 property:P102 ?c }
Otto Braun
action is_in
entity prev_answer
action find
entity Otto Braun
relation member of political party
['Otto Braun', 'member of political party', 'Socialist Unity Party of Germany'] ['Otto Braun', 'member of political party', 'Communist Party of China']
ASK WHERE { VALUES ( ?c ) { ( resource:Socialist_Unity_Party_of_Germany ) ( resource:Communist_Party_of_China ) } . resource:Otto_Braun property:member_of_political_party ?c }
[]
common name
SYSTEM
YES
(Q61217,P102,Q49750) (Q61217,P102,Q17427)
action is_in
entity prev_answer
action find
entity Q61217
relation P102
[ANSWER]
['Q61217', 'P102', 'Q49750'] ['Q61217', 'P102', 'Q17427']
ASK WHERE { VALUES ( ?c ) { ( resource:Q49750 ) ( resource:Q17427 ) } . resource:Q61217 property:P102 ?c }
Yes
action is_in
entity prev_answer
action find
entity Otto Braun
relation member of political party
['Otto Braun', 'member of political party', 'Socialist Unity Party of Germany'] ['Otto Braun', 'member of political party', 'Communist Party of China']
ASK WHERE { VALUES ( ?c ) { ( resource:Socialist_Unity_Party_of_Germany ) ( resource:Communist_Party_of_China ) } . resource:Otto_Braun property:member_of_political_party ?c }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q1048835 Q56061
USER
Which cities are partner towns of min number of political territories and administrative territories ?
(c(Q1048835)|c(Q56061),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?w rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?p } . FILTER ( ?i = ?r ) }
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?p } . FILTER ( ?i = ?r ) }
[]
city political territorial entity administrative territorial entity
Q270704 Q320943 Q804395
SYSTEM
Třebíč, Matsudo, Blatná
Q1021103 Q39738 Q823988 Q843001 Q1017045 Q847607 Q1000086 Q362865 Q197379 Q703158 Q205914 Q259498 Q158239 Q854913 Q696925 Q1000060 Q850969 Q270814 Q379030 Q57921 Q837968 Q571808 Q209785 Q1088716 Q1407742 Q1015011 Q766168 Q837173 Q58650 Q823874 Q830394 Q320943 Q679428 Q1009003 Q789256 Q873835 Q71266 Q15720 Q946743 Q602042 Q5779 Q166255 Q57953 Q916679 Q1010131 Q653372 Q653478 Q911517 Q548097 Q783255 Q59205 Q843035 Q75978 Q198240 Q373346 Q935846 Q1000029 Q1623 Q835227 Q1008750 Q158423 Q851001 Q127026 Q849439 Q851419 Q1008686 Q714636 Q384796 Q505208 Q605256 Q841603 Q1018795 Q374477 Q819664 Q847546 Q857202 Q854956 Q235004 Q933641 Q71227 Q1632616 Q571033 Q132997 Q394453 Q68695 Q461020 Q57997 Q57996 Q913754 Q958157 Q507846 Q602976 Q3846983 Q503411 Q1818241 Q630358 Q583910 Q203027 Q179608 Q144988 Q154540 Q425492 Q68534 Q1010144 Q379160 Q607625 Q200500 Q645014 Q854906 Q427367 Q423371 Q819629 Q1015409 Q1013843 Q755698 Q583620 Q1008983 Q986070 Q515573 Q736276 Q182378 Q847577 Q855513 Q79535 Q288413 Q270704 Q851021 Q911610 Q386026 Q837157 Q149097 Q898468 Q1025213 Q276132 Q3866 Q325164 Q158435 Q193724 Q820760 Q784229 Q1017261 Q1000033 Q3599 Q851037 Q749283 Q496431 Q937688 Q75110 Q58324 Q1017769 Q1676870 Q68614 Q1017806 Q857234 Q17182 Q496681 Q854940 Q514796 Q854949 Q416544 Q633983 Q75203 Q239597 Q158432 Q1471150 Q495821 Q633789 Q1019844 Q368929 Q252325 Q250733 Q781435 Q740915 Q837161 Q840595 Q1676863 Q941061 Q203929 Q273880 Q71355 Q1473 Q841129 Q842996 Q1020874 Q338616 Q875070 Q260522 Q752838 Q426237 Q854977 Q496499 Q819613 Q941032 Q166829 Q854987 Q394108 Q855011 Q1258284 Q1013914 Q930396 Q214948 Q111739 Q667208 Q191097 Q75336 Q57885 Q385623 Q846351 Q789233 Q1729076 Q360374 Q75230 Q594275 Q499493 Q463171 Q246634 Q851048 Q1394252 Q750587 Q210661 Q532560 Q210667 Q911674 Q987487 Q217698 Q207311 Q1641829 Q57936 Q83247 Q851029 Q1645 Q509923 Q149105 Q732300 Q789510 Q470369 Q2209 Q727143 Q863739 Q1756960 Q76010 Q756273 Q17176 Q633996 Q188247 Q144663 Q508591 Q570427 Q1018857 Q75379 Q789282 Q839796 Q637913 Q427769 Q837170 Q55740 Q845857 Q851492 Q494627 Q57941 Q855082 Q59223 Q71151 Q71159 Q460812 Q57944 Q390156 Q236197 Q386250 Q750224 Q378225 Q57866 Q329790 Q804395 Q263757 Q5217 Q269634 Q755701 Q604385 Q679224 Q843031 Q850676 Q990988 Q726993 Q248959 Q59213 Q844852 Q518360 Q742160 Q158272 Q17189 Q386661 Q819672 Q166183 Q523956 Q169064 Q950352 Q1889017 Q680963 Q933374 Q40626 Q954808 Q209983 Q240891 Q240489 Q936145 Q302526 Q1019371 Q303478 Q217681 Q721163 Q284480 Q1641781 Q104125 Q247387 Q1737652
(c(Q1048835)|c(Q56061),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
[ANSWERS] are partner towns of min number of political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?w rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?h rdf:type ?d } GROUP BY ?p } . FILTER ( ?i = ?r ) }
Meziboří Laoag Kakegawa Csorna Protivín Sanda Nový Bor Pingxiang Zhangjiajie Velké Meziříčí Lijiang Rafaela Kroměříž Szikszó Iruma Humpolec Victoria Ishinomaki Zalaszentgrót Lößnitz Băile Tușnad Guigang Ichikawa Lőrinci Horní Bříza Milevsko Nagykáta Cisnădie Zhangjiakou Toda Nagykőrös Matsudo Tălmaciu Staré Město Balatonalmádi Tomioka Yichang Satsumasendai Skalná Baktalórántháza Banda Aceh Horšovský Týn Schwarzenberg Téglás Frýdlant nad Ostravicí Higashihiroshima Mishima Létavértes Visegrád Kapuvár Heyuan Celldömölk Calamba Zhumadian Linyi Vlăhița Kraslice Valenzuela Ineu Stříbro Buštěhrad Măcin Sakurai Kopřivnice Turnov Ivančice Miyakojima Ōda Ouarzazate Shimada Tiszakécske Bzenec Ashikaga Sukagawa Saiki Sanuki Ibrány Vigan Martonvásár Shiyan Počátky Hulunbuir Florianópolis Žďár nad Sázavou Quanzhou Imabari Wolkenstein Thum Zalalövő Sezimovo Ústí Sebiș Klatovy Șimleu Silvaniei Inuyama Rousínov Sedlčany Aš Tsu Nanning Zalakaros Sásd Luzhou Nanping Hluboká nad Vltavou Kunszentmárton Tamási Takehara Túrkeve Gyömrő Guang'an Ștei Toba Bílovec Dačice Svitavy Dévaványa Vodňany Chrudim Hanzhong Cernavodă Putrajaya Susono Bük Fort Smith Tapolca Třebíč Pâncota Lengyeltóti Orlová Covasna Jirkov Brandýs nad Labem-Stará Boleslav Rosice Pecica Dodoma Kayes Vrbno pod Pradědem Slavkov u Brna Mihara Szigethalom Rotava Lanškroun Bicske Comarnic San Juan Sakaiminato Strmilov Dandong Zhoushan Mnichovo Hradiště Jablonné nad Orlicí Sanming Nové Sedlo Shōbara Parañaque Ebetsu Dabas Baoji Nyergesújfalu Changde Kashiwazaki Liaoyang Neratovice Stochov Fryšták Saku Dombóvár Přimda Jindřichův Hradec Hajdúdorog Wa Derecske Fulnek Sânnicolau Mare Kamisu Jablonec nad Jizerou Bystřice pod Hostýnem Zimnicea Beppu Huanggang Davao City Iida Pécsvárad Přeštice Čelákovice Dagupan Bácsalmás Aszód Guangyuan Kerekegyháza Kazuno Uozu Kozármisleny Miercurea Nirajului Soltvadkert Žirovnice Heves Raspenava Polička Nagakute Cegléd Puerto Princesa Fertőd Tachov Chaoyang Elterlein Ōmuta, Fukuoka Miyazu Balassagyarmat Kardašova Řečice Anqing Panjin General Santos Seto Handa Zábřeh Făget Kosmonosy Shirakawa Musashino Jiayuguan City Chōfu Simontornya Ostrov Weifang Suzuka Jiříkov Scheibenberg Braga Aleșd Cagayan de Oro Mezőhegyes Tanvald Gyomaendrőd Balmazújváros Kolín Roxas Örkény Kasaoka Poběžovice Santa Rosa Karcag Muntinlupa Kameoka Sarkad Hengyang Police nad Metují Obernkirchen Nový Bydžov Huludao Balatonföldvár Borsec Tōgane Kisbér Gura Humorului San Fernando Uwajima Shibukawa Ruhla Schneeberg, Saxony Csenger Zhongshan Sayda Brand-Erbisdorf Naruto Annaberg-Buchholz Petrila Hino City Ōtake Strakonice Hagi Yancheng Kamaishi Blatná Kadarkút Bacolod Tachikawa City Ráckeve Shizuishan Hajdúböszörmény Vasvár Blansko Broumov Cotabato City Zărnești Qingyuan Ueda Bílina Shijōnawate Žamberk Pasay Fujisawa Kumano Nabari Auerbach in der Oberpfalz Sângeorgiu de Pădure Brtnice Mandaue Mór Nagybajom Tacloban Kaplice Gyöngyös Higashiōmi Higashimurayama Loket Tab Studénka Kravaře Tai'an Itō Bóly Vítkov Lucena Kaba Kdyně
Třebíč, Matsudo and Blatná are partner towns of min number of political territories and administrative territories
Třebíč Matsudo Blatná
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?q } GROUP BY ?y } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?i ) WHERE { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?h rdf:type ?d } GROUP BY ?p } . FILTER ( ?i = ?r ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q270704 Q320943 Q804395
P17
Q15617994
USER
Which administrative territories do those cities belong to ?
(Q270704,P17,c(Q15617994)) (Q320943,P17,c(Q15617994)) (Q804395,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q270704', 'P17', {'concept': 'Q15617994'}] ['Q320943', 'P17', {'concept': 'Q15617994'}] ['Q804395', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?j property:P17 ?i . VALUES ( ?j ) { ( resource:Q1021103 ) ( resource:Q39738 ) ( resource:Q823988 ) } }
Třebíč Matsudo Blatná
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Třebíč', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Matsudo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Blatná', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:country ?i . VALUES ( ?j ) { ( resource:Meziboří ) ( resource:Laoag ) ( resource:Kakegawa ) } }
[]
designation for an administrative territorial entity
Q213 Q17 Q213
SYSTEM
Czech Republic for 1st, 3rd, Japan for 2nd
Q213 Q17 Q213
(Q270704,P17,c(Q15617994)) (Q320943,P17,c(Q15617994)) (Q804395,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q270704', 'P17', {'concept': 'Q15617994'}] ['Q320943', 'P17', {'concept': 'Q15617994'}] ['Q804395', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . ?j property:P17 ?i . VALUES ( ?j ) { ( resource:Q1021103 ) ( resource:Q39738 ) ( resource:Q823988 ) } }
Czech Republic Japan Czech Republic
Those cities belong to Czech Republic, Japan and Czech Republic
Czech Republic Japan Czech Republic
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Třebíč', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Matsudo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Blatná', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:country ?i . VALUES ( ?j ) { ( resource:Meziboří ) ( resource:Laoag ) ( resource:Kakegawa ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that administrative territory ?
(Q17,P1313,c(Q12737077))
action filter_type
action find
entity Q17
relation P1313
type Q12737077
['Q17', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q17 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Japan
action filter_type
action find
entity Japan
relation office held by head of government
type occupation
['Japan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Japan property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q17
SYSTEM
Did you mean Japan ?
Q213 Q17 Q213
(Q213,P1313,c(Q12737077)) (Q17,P1313,c(Q12737077)) (Q213,P1313,c(Q12737077))
[ANSWER]
['Q213', 'P1313', {'concept': 'Q12737077'}] ['Q17', 'P1313', {'concept': 'Q12737077'}] ['Q213', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q17 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Czech Republic Japan Czech Republic
Did you mean Japan ?
Japan
['Czech Republic', 'office held by head of government', {'concept': 'occupation'}] ['Japan', 'office held by head of government', {'concept': 'occupation'}] ['Czech Republic', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Japan property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q17,P1313,c(Q12737077))
['Q17', 'P1313', {'concept': 'Q12737077'}]
['Japan', 'office held by head of government', {'concept': 'occupation'}]
[]
Q274948
SYSTEM
Prime Minister of Japan
Q274948
(Q17,P1313,c(Q12737077))
action filter_type
action find
entity Q17
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that administrative territory
['Q17', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q17 property:P1313 ?d . ?d rdf:type ontology:Q12737077 }
Prime Minister of Japan
The Prime Minister of Japan serves as the political office that is fulfilled by the head of the government of that administrative territory
Prime Minister of Japan
action filter_type
action find
entity Japan
relation office held by head of government
type occupation
['Japan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Japan property:office_held_by_head_of_government ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q274948 Q244138 Q17
P17
Q15617994
USER
Is that occupation located in Brenna and Japan ?
(Q274948,P17,Q244138) (Q274948,P17,Q17)
action is_in
entity Q274948
action intersection
action find_reverse
entity Q244138
relation P17
action find_reverse
entity Q17
relation P17
['Q274948', 'P17', 'Q244138'] ['Q274948', 'P17', 'Q17']
ASK WHERE { resource:Q274948 property:P17 resource:Q244138 . resource:Q274948 property:P17 resource:Q17 }
Prime Minister of Japan Brenna Japan
action is_in
entity Prime Minister of Japan
action intersection
action find_reverse
entity Brenna
relation country
action find_reverse
entity Japan
relation country
['Prime Minister of Japan', 'country', 'Brenna'] ['Prime Minister of Japan', 'country', 'Japan']
ASK WHERE { resource:Prime_Minister_of_Japan property:country resource:Brenna . resource:Prime_Minister_of_Japan property:country resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q274948,P17,Q244138) (Q274948,P17,Q17)
action is_in
entity Q274948
action intersection
action find_reverse
entity Q244138
relation P17
action find_reverse
entity Q17
relation P17
[ANSWER]
['Q274948', 'P17', 'Q244138'] ['Q274948', 'P17', 'Q17']
ASK WHERE { resource:Q274948 property:P17 resource:Q244138 . resource:Q274948 property:P17 resource:Q17 }
NO and YES respectively
action is_in
entity Prime Minister of Japan
action intersection
action find_reverse
entity Brenna
relation country
action find_reverse
entity Japan
relation country
['Prime Minister of Japan', 'country', 'Brenna'] ['Prime Minister of Japan', 'country', 'Japan']
ASK WHERE { resource:Prime_Minister_of_Japan property:country resource:Brenna . resource:Prime_Minister_of_Japan property:country resource:Japan }
[]