Simple Question (Direct)
Simple Question
Q2792931
P21
Q290
USER
Which sex does Paul Grote possess ?
(Q2792931,P21,c(Q290))
action filter_type
action find
entity Q2792931
relation P21
type Q290
['Q2792931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2792931 property:P21 ?z . ?z rdf:type ontology:Q290 }
Paul Grote
action filter_type
action find
entity Paul Grote
relation gender
type sex
['Paul Grote', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Paul_Grote property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2792931,P21,c(Q290))
action filter_type
action find
entity Q2792931
relation P21
type Q290
Paul Grote possesses het [ANSWER]
['Q2792931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2792931 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Paul Grote possesses het male
male
action filter_type
action find
entity Paul Grote
relation gender
type sex
['Paul Grote', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Paul_Grote property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2792931
P937
Q56061
USER
Which is the work location of that person ?
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q2792931
relation P937
type Q56061
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2792931 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Paul Grote
action filter_type
action find
entity Paul Grote
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Grote property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q2792931
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q2792931 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Berlin
The work location of that person is in Berlin
Berlin
action filter_type
action find
entity Paul Grote
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Grote property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P291
Q571
USER
Which books were published in that administrative territory ?
(c(Q571),P291,Q64)
action filter_type
action find_reverse
entity Q64
relation P291
type Q571
[{'concept': 'Q571'}, 'P291', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P291 resource:Q64 . ?v rdf:type ontology:Q571 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:place_of_publication resource:Berlin . ?v rdf:type ontology:book }
[]
book
Q16735600 Q22244830 Q15151346
SYSTEM
Wir (first German edition), Verified Software: Theories, Tools, Experiments, Der parteiliche Journalist (1st edition)
Q15116791 Q15151346 Q15104557 Q22244830 Q16735600 Q15260927 Q15919422
(c(Q571),P291,Q64)
action filter_type
action find_reverse
entity Q64
relation P291
type Q571
[ANSWERS] were published in that administrative territory
[{'concept': 'Q571'}, 'P291', 'Q64']
SELECT DISTINCT ?v WHERE { ?v property:P291 resource:Q64 . ?v rdf:type ontology:Q571 }
"In tiefem Dunkel liegt Deutschland" Der parteiliche Journalist (1st edition) Tonträgerverzeichnis der DDR-Features, 2nd edition Verified Software: Theories, Tools, Experiments Wir (first German edition) Beate und Mareile (1st edition) М. L. Mikhailov's poems
Wir (first German edition), Verified Software: Theories, Tools, Experiments and Der parteiliche Journalist (1st edition) were published in that administrative territory
Wir (first German edition) Verified Software: Theories, Tools, Experiments Der parteiliche Journalist (1st edition)
action filter_type
action find_reverse
entity Berlin
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Berlin']
SELECT DISTINCT ?v WHERE { ?v property:place_of_publication resource:Berlin . ?v rdf:type ontology:book }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15151346
P629
Q2342494
USER
What is that book an edition or translation of ?
(Q15151346,P629,c(Q2342494))
action filter_type
action find
entity Q15151346
relation P629
type Q2342494
['Q15151346', 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?j WHERE { resource:Q15151346 property:P629 ?j . ?j rdf:type ontology:Q2342494 }
Der parteiliche Journalist (1st edition)
action filter_type
action find
entity Der parteiliche Journalist (1st edition)
relation edition or translation of
type collectable
['Der parteiliche Journalist (1st edition)', 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?j WHERE { resource:Der_parteiliche_Journalist_(1st_edition) property:edition_or_translation_of ?j . ?j rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q22244830
SYSTEM
Did you mean Verified Software: Theories, Tools, Experiments ?
Q16735600 Q22244830 Q15151346
(Q16735600,P629,c(Q2342494)) (Q22244830,P629,c(Q2342494)) (Q15151346,P629,c(Q2342494))
[ANSWER]
['Q16735600', 'P629', {'concept': 'Q2342494'}] ['Q22244830', 'P629', {'concept': 'Q2342494'}] ['Q15151346', 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?j WHERE { resource:Q15151346 property:P629 ?j . ?j rdf:type ontology:Q2342494 }
Wir (first German edition) Verified Software: Theories, Tools, Experiments Der parteiliche Journalist (1st edition)
Did you mean Verified Software: Theories, Tools, Experiments ?
Verified Software: Theories, Tools, Experiments
['Wir (first German edition)', 'edition or translation of', {'concept': 'collectable'}] ['Verified Software: Theories, Tools, Experiments', 'edition or translation of', {'concept': 'collectable'}] ['Der parteiliche Journalist (1st edition)', 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?j WHERE { resource:Der_parteiliche_Journalist_(1st_edition) property:edition_or_translation_of ?j . ?j rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Der parteiliche Journalist (1st edition). Could you tell me the answer for that?
(Q15151346,P629,c(Q2342494))
Q15151346
['Q15151346', 'P629', {'concept': 'Q2342494'}]
['Der parteiliche Journalist (1st edition)', 'edition or translation of', {'concept': 'collectable'}]
[]
Q25555
SYSTEM
The Party Journalist
Q25555
(Q15151346,P629,c(Q2342494))
action filter_type
action find
entity Q15151346
relation P629
type Q2342494
That book an edition or translation of is [ANSWER]
['Q15151346', 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?j WHERE { resource:Q15151346 property:P629 ?j . ?j rdf:type ontology:Q2342494 }
The Party Journalist
That book an edition or translation of is The Party Journalist
The Party Journalist
action filter_type
action find
entity Der parteiliche Journalist (1st edition)
relation edition or translation of
type collectable
['Der parteiliche Journalist (1st edition)', 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?j WHERE { resource:Der_parteiliche_Journalist_(1st_edition) property:edition_or_translation_of ?j . ?j rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2526897 Q64
P19 P190
Q56061
USER
Which administrative territories are the sister cities of Berlin or are the places of birth of Vincenzo Gagini ?
OR((Q64,P190,c(Q56061)), (Q2526897,P19,c(Q56061)))
action filter_type
action union
action find
entity Q64
relation P190
action find
entity Q2526897
relation P19
type Q56061
{'OR': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q2526897', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q2526897 property:P19 ?x } UNION { resource:Q64 property:P190 ?x } } . ?x rdf:type ontology:Q56061 }
Vincenzo Gagini Berlin
action filter_type
action union
action find
entity Berlin
relation sister city
action find
entity Vincenzo Gagini
relation place of birth
type administrative territorial entity
{'OR': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Vincenzo Gagini', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Vincenzo_Gagini property:place_of_birth ?x } UNION { resource:Berlin property:sister_city ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q1490 Q1489 Q65 Q2656 Q269 Q239 Q2807 Q956 Q1085
SYSTEM
Some of them are Warsaw, Tokyo, Mexico City, Los Angeles, Palermo, Tashkent, Brussels, Madrid, Beijing, Prague
Q269 Q84 Q3630 Q270 Q649 Q239 Q90 Q2807 Q2656 Q956 Q1781 Q1489 Q1490 Q65 Q406 Q1085
OR((Q64,P190,c(Q56061)), (Q2526897,P19,c(Q56061)))
action filter_type
action union
action find
entity Q64
relation P190
action find
entity Q2526897
relation P19
type Q56061
[ANSWERS] are the sister cities of Berlin or are the places of birth of Vincenzo Gagini
{'OR': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q2526897', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q2526897 property:P19 ?x } UNION { resource:Q64 property:P190 ?x } } . ?x rdf:type ontology:Q56061 }
Tashkent London Jakarta Warsaw Moscow Brussels Paris Madrid Palermo Beijing Budapest Mexico City Tokyo Los Angeles Istanbul Prague
Warsaw, Tokyo, Mexico City, Los Angeles, Palermo, Tashkent, Brussels, Madrid, Beijing and Prague are the sister cities of Berlin or are the places of birth of Vincenzo Gagini
Warsaw Tokyo Mexico City Los Angeles Palermo Tashkent Brussels Madrid Beijing Prague
action filter_type
action union
action find
entity Berlin
relation sister city
action find
entity Vincenzo Gagini
relation place of birth
type administrative territorial entity
{'OR': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Vincenzo Gagini', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Vincenzo_Gagini property:place_of_birth ?x } UNION { resource:Berlin property:sister_city ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q270 Q1490 Q1489 Q65 Q2656 Q269 Q239 Q2807 Q956 Q1085
P159
Q7210356
USER
Which political organizations have HQ at Warsaw, Tokyo, Mexico City, Los Angeles, Palermo, Tashkent, Brussels, Madrid, Beijing and Prague ?
(c(Q7210356),P159,Q270) (c(Q7210356),P159,Q1490) (c(Q7210356),P159,Q1489) (c(Q7210356),P159,Q65) (c(Q7210356),P159,Q2656) (c(Q7210356),P159,Q269) (c(Q7210356),P159,Q239) (c(Q7210356),P159,Q2807) (c(Q7210356),P159,Q956) (c(Q7210356),P159,Q1085)
action union
action filter_type
action find_reverse
entity Q270
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1490
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1489
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q65
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q2656
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q269
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q239
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q2807
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q956
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1085
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q270'] [{'concept': 'Q7210356'}, 'P159', 'Q1490'] [{'concept': 'Q7210356'}, 'P159', 'Q1489'] [{'concept': 'Q7210356'}, 'P159', 'Q65'] [{'concept': 'Q7210356'}, 'P159', 'Q2656'] [{'concept': 'Q7210356'}, 'P159', 'Q269'] [{'concept': 'Q7210356'}, 'P159', 'Q239'] [{'concept': 'Q7210356'}, 'P159', 'Q2807'] [{'concept': 'Q7210356'}, 'P159', 'Q956'] [{'concept': 'Q7210356'}, 'P159', 'Q1085']
SELECT DISTINCT ?q WHERE { { ?q property:P159 resource:Q1490 . ?q rdf:type ontology:Q7210356 } UNION { ?q property:P159 resource:Q270 . ?q rdf:type ontology:Q7210356 } }
Warsaw Tokyo Mexico City Los Angeles Palermo Tashkent Brussels Madrid Beijing Prague
action union
action filter_type
action find_reverse
entity Warsaw
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Tokyo
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Mexico City
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Los Angeles
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Palermo
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Tashkent
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Brussels
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Madrid
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Beijing
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Prague
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Warsaw'] [{'concept': 'political organization'}, 'headquarters location', 'Tokyo'] [{'concept': 'political organization'}, 'headquarters location', 'Mexico City'] [{'concept': 'political organization'}, 'headquarters location', 'Los Angeles'] [{'concept': 'political organization'}, 'headquarters location', 'Palermo'] [{'concept': 'political organization'}, 'headquarters location', 'Tashkent'] [{'concept': 'political organization'}, 'headquarters location', 'Brussels'] [{'concept': 'political organization'}, 'headquarters location', 'Madrid'] [{'concept': 'political organization'}, 'headquarters location', 'Beijing'] [{'concept': 'political organization'}, 'headquarters location', 'Prague']
SELECT DISTINCT ?q WHERE { { ?q property:headquarters_location resource:Tokyo . ?q rdf:type ontology:political_organization } UNION { ?q property:headquarters_location resource:Warsaw . ?q rdf:type ontology:political_organization } }
[]
political organization
Q631218 Q1413371 Q199007
SYSTEM
Green Party, Democratic Party – demokraci.pl, The Greens
Q1628291 Q3738536 Q7209955 Q156874 Q3776987 Q1584987 Q2102649 Q1506868 Q1339181 Q687574 Q980083 Q15303489 Q2026927 Q2981251 Q156868 Q1784503 Q7197809 Q218477 Q5442008 Q5109960 Q953174 Q1074046 Q4346035 Q2617519 Q1471199 Q1154554 Q199007 Q967759 Q210638 Q210671 Q210431 Q1270771 Q505989 Q537303 Q5027717 Q3825660 Q2102505 Q1128266 Q751688 Q94771 Q3488584 Q2351138 Q2537981 Q94430 Q944312 Q1413371 Q1353524 Q241325 Q60658 Q2054716 Q851087 Q2173623 Q10920094 Q2016845 Q613206 Q2080372 Q7141096 Q753453 Q2788519 Q15984928 Q2058323 Q4732414 Q753446 Q267886 Q5154419 Q3979015 Q682969 Q540320 Q1129427 Q383718 Q2054610 Q3227945 Q1803295 Q3366487 Q767010 Q5144824 Q6781824 Q3366610 Q2074764 Q6092631 Q3879812 Q3218145 Q1146334 Q1029663 Q128064 Q645787 Q1117600 Q1442412 Q176788 Q840814 Q939354 Q1418382 Q1376486 Q5923693 Q3395022 Q6064354 Q2629532 Q1124888 Q2982832 Q623740 Q9053006 Q3330661 Q15980746 Q176727 Q2713131 Q3780794 Q1249339 Q1144342 Q1133626 Q1133577 Q197765 Q1185348 Q1185330 Q1202612 Q1348513 Q1133583 Q682368 Q2165477 Q631218 Q1354183 Q6541452 Q727724 Q2948615 Q2296356 Q3504357 Q1142687 Q2412718 Q1315362 Q15980880
(c(Q7210356),P159,Q270) (c(Q7210356),P159,Q1490) (c(Q7210356),P159,Q1489) (c(Q7210356),P159,Q65) (c(Q7210356),P159,Q2656) (c(Q7210356),P159,Q269) (c(Q7210356),P159,Q239) (c(Q7210356),P159,Q2807) (c(Q7210356),P159,Q956) (c(Q7210356),P159,Q1085)
action union
action filter_type
action find_reverse
entity Q270
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1490
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1489
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q65
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q2656
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q269
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q239
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q2807
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q956
relation P159
type Q7210356
action filter_type
action find_reverse
entity Q1085
relation P159
type Q7210356
[ANSWERS] have HQ at Warsaw, Tokyo, Mexico City, Los Angeles, Palermo, Tashkent, Brussels, Madrid, Beijing and Prague
[{'concept': 'Q7210356'}, 'P159', 'Q270'] [{'concept': 'Q7210356'}, 'P159', 'Q1490'] [{'concept': 'Q7210356'}, 'P159', 'Q1489'] [{'concept': 'Q7210356'}, 'P159', 'Q65'] [{'concept': 'Q7210356'}, 'P159', 'Q2656'] [{'concept': 'Q7210356'}, 'P159', 'Q269'] [{'concept': 'Q7210356'}, 'P159', 'Q239'] [{'concept': 'Q7210356'}, 'P159', 'Q2807'] [{'concept': 'Q7210356'}, 'P159', 'Q956'] [{'concept': 'Q7210356'}, 'P159', 'Q1085']
SELECT DISTINCT ?q WHERE { { ?q property:P159 resource:Q1490 . ?q rdf:type ontology:Q7210356 } UNION { ?q property:P159 resource:Q270 . ?q rdf:type ontology:Q7210356 } }
Social Democracy of the Republic of Poland National Radical Camp Falanga Polish National Party Law and Justice People's Party Congress of the New Right Polish Christian Democratic Party Labour Union Palikot's Movement League of Polish Families Social Democracy of Poland Polska Razem Party of Regions Bloc of National Minorities Civic Platform Poland Comes First Pirate Party Polish People's Party Polish People's Party (1945–1949) Christian National Union Democratic Left Alliance National Revival of Poland Labor Party Camp of National Unity Polish People's Party "Piast" Polish People's Party "Wyzwolenie" The Greens Social Democracy of the Kingdom of Poland and Lithuania National-Democratic Party National Radical Camp Polish Socialist Party Real Politics Union Nonpartisan Bloc for Cooperation with the Government Polish United Workers' Party Camp of Great Poland Stronnictwo Chłopskie Labor Party Self-Defence of the Republic of Poland Reason Party Right Wing of the Republic Forward Poland Alliance of Democrats United People's Party Popular National Union National Party Democratic Party – demokraci.pl Sunrise Party People's New Party New Party Nippon Popular Socialist Party of Mexico National Action Party Party of the Nationalist Society Citizens' Movement (Mexico) Social Alliance Party Mexicano Liberal Party New Alliance Party Party of Mexican Communists Authentic Party of the Mexican Revolution Laborist Party Conservative Party Democratic Center Party of Mexico Alliance for Yucatan Party Popular Socialist Party Party of the Cardenist Front of National Reconstruction Communist Party of Mexico (Marxist–Leninist) Mexican Democratic Party Institutional Revolutionary Party Labor Party Convergence (Mexico) Ecologist Green Party of Mexico Mexican Communist Organization Workers' Revolutionary Party Social Democratic Party Liberal Party Party of the Democratic Revolution Colima Democratic Association Marz-e Por Gohar Populist Party of America Constitutionalist Party of Iran Italian Anti-Bolshevik Front New Sicily Communist Party of Uzbekistan Uzbekistan Liberal Democratic Party People's Democratic Party of Uzbekistan Centrist Democrat International Socialist Party Federation of Young European Greens European Free Alliance Youth Comac Humanist Democratic Centre Socialist Party Different Libertas.eu Ecosy Izquierda Abierta Spanish Social Democratic Union Spanish Democratic Socialist Party Carlist Tradicionalist Party Spanish Confederation of the Autonomous Right Collectives of Communist Youth United Left Organization of Communist Left Libertarian Party Communist Party of Spain (Marxist–Leninist) Democratic Action Party Republican Social Movement Authentic Falange Falange Española Tradicionalista y de las Juntas de Ofensiva Nacional Sindicalista Union, Progress and Democracy Chinese Peasants' and Workers' Democratic Party China Democratic National Construction Association China Zhi Gong Party Jiusan Society Taiwan Democratic Self-Government League Revolutionary Committee of the Kuomintang China Democratic League China Association for Promoting Democracy European Democratic Party SNK European Democrats Green Party National Socialists – 21st Century Left Libertas Communist Party of Czechoslovakia Politika 21 Freedom Union – Democratic Union Conservative Party Christian and Democratic Union – Czechoslovak People's Party National Party Party of Democratic Socialism Citizens of the Czech Republic
Green Party, Democratic Party – demokraci.pl and The Greens have HQ at Warsaw, Tokyo, Mexico City, Los Angeles, Palermo, Tashkent, Brussels, Madrid, Beijing and Prague
Green Party Democratic Party – demokraci.pl The Greens
action union
action filter_type
action find_reverse
entity Warsaw
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Tokyo
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Mexico City
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Los Angeles
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Palermo
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Tashkent
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Brussels
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Madrid
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Beijing
relation headquarters location
type political organization
action filter_type
action find_reverse
entity Prague
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Warsaw'] [{'concept': 'political organization'}, 'headquarters location', 'Tokyo'] [{'concept': 'political organization'}, 'headquarters location', 'Mexico City'] [{'concept': 'political organization'}, 'headquarters location', 'Los Angeles'] [{'concept': 'political organization'}, 'headquarters location', 'Palermo'] [{'concept': 'political organization'}, 'headquarters location', 'Tashkent'] [{'concept': 'political organization'}, 'headquarters location', 'Brussels'] [{'concept': 'political organization'}, 'headquarters location', 'Madrid'] [{'concept': 'political organization'}, 'headquarters location', 'Beijing'] [{'concept': 'political organization'}, 'headquarters location', 'Prague']
SELECT DISTINCT ?q WHERE { { ?q property:headquarters_location resource:Tokyo . ?q rdf:type ontology:political_organization } UNION { ?q property:headquarters_location resource:Warsaw . ?q rdf:type ontology:political_organization } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q631218 Q1413371 Q199007
P159
Q56061
USER
Which administrative territories are the head offices of Green Party, Democratic Party – demokraci.pl and The Greens ?
(Q631218,P159,c(Q56061)) (Q1413371,P159,c(Q56061)) (Q199007,P159,c(Q56061))
action union
action filter_type
action find
entity Q631218
relation P159
type Q56061
action filter_type
action find
entity Q1413371
relation P159
type Q56061
action filter_type
action find
entity Q199007
relation P159
type Q56061
['Q631218', 'P159', {'concept': 'Q56061'}] ['Q1413371', 'P159', {'concept': 'Q56061'}] ['Q199007', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { resource:Q1413371 property:P159 ?c . ?c rdf:type ontology:Q56061 } UNION { resource:Q631218 property:P159 ?c . ?c rdf:type ontology:Q56061 } }
Green Party Democratic Party – demokraci.pl The Greens
action union
action filter_type
action find
entity Green Party
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Democratic Party – demokraci.pl
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity The Greens
relation headquarters location
type administrative territorial entity
['Green Party', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Democratic Party – demokraci.pl', 'headquarters location', {'concept': 'administrative territorial entity'}] ['The Greens', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { resource:Democratic_Party_–_demokraci.pl property:headquarters_location ?c . ?c rdf:type ontology:administrative_territorial_entity } UNION { resource:Green_Party property:headquarters_location ?c . ?c rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q1085 Q270 Q270
SYSTEM
Warsaw for 2nd, 3rd, Prague for 1st
Q1085 Q270 Q270
(Q631218,P159,c(Q56061)) (Q1413371,P159,c(Q56061)) (Q199007,P159,c(Q56061))
action union
action filter_type
action find
entity Q631218
relation P159
type Q56061
action filter_type
action find
entity Q1413371
relation P159
type Q56061
action filter_type
action find
entity Q199007
relation P159
type Q56061
[ANSWERS]
['Q631218', 'P159', {'concept': 'Q56061'}] ['Q1413371', 'P159', {'concept': 'Q56061'}] ['Q199007', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { resource:Q1413371 property:P159 ?c . ?c rdf:type ontology:Q56061 } UNION { resource:Q631218 property:P159 ?c . ?c rdf:type ontology:Q56061 } }
Prague Warsaw Warsaw
Prague, Warsaw and Warsaw are the head offices of Green Party, Democratic Party – demokraci.pl and The Greens
Prague Warsaw Warsaw
action union
action filter_type
action find
entity Green Party
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Democratic Party – demokraci.pl
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity The Greens
relation headquarters location
type administrative territorial entity
['Green Party', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Democratic Party – demokraci.pl', 'headquarters location', {'concept': 'administrative territorial entity'}] ['The Greens', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { resource:Democratic_Party_–_demokraci.pl property:headquarters_location ?c . ?c rdf:type ontology:administrative_territorial_entity } UNION { resource:Green_Party property:headquarters_location ?c . ?c rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q631218
P102
Q502895
USER
Which people are members of that political organization ?
(c(Q502895),P102,Q631218)
action filter_type
action find_reverse
entity Q631218
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q631218']
SELECT DISTINCT ?b WHERE { ?b property:P102 resource:Q631218 . ?b rdf:type ontology:Q502895 }
Green Party
action filter_type
action find_reverse
entity Green Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Green Party']
SELECT DISTINCT ?b WHERE { ?b property:member_of_political_party resource:Green_Party . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q631218
SYSTEM
Did you mean Green Party ?
Q1085 Q270 Q270
(c(Q502895),P102,Q1085) (c(Q502895),P102,Q270) (c(Q502895),P102,Q270)
[ANSWER]
[{'concept': 'Q502895'}, 'P102', 'Q1085'] [{'concept': 'Q502895'}, 'P102', 'Q270'] [{'concept': 'Q502895'}, 'P102', 'Q270']
SELECT DISTINCT ?b WHERE { ?b property:P102 resource:Q631218 . ?b rdf:type ontology:Q502895 }
Prague Warsaw Warsaw
Did you mean Green Party ?
Green Party
[{'concept': 'common name'}, 'member of political party', 'Prague'] [{'concept': 'common name'}, 'member of political party', 'Warsaw'] [{'concept': 'common name'}, 'member of political party', 'Warsaw']
SELECT DISTINCT ?b WHERE { ?b property:member_of_political_party resource:Green_Party . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P102,Q631218)
[{'concept': 'Q502895'}, 'P102', 'Q631218']
[{'concept': 'common name'}, 'member of political party', 'Green Party']
[]
Q6376025 Q23765836 Q1606856
SYSTEM
Kateřina Jacques, Martin Mach, Matěj Stropnický
Q6148572 Q5214769 Q1322110 Q1399947 Q16516372 Q12025639 Q11872965 Q15651934 Q1046372 Q15680185 Q12032502 Q15916675 Q1606856 Q15679990 Q11775243 Q20057518 Q23765836 Q11985694 Q6376025 Q12045073 Q10795043 Q12027228 Q18042588 Q5415199 Q12048029 Q17278080 Q23765472 Q11775276 Q7938786 Q22303323 Q10774104 Q17541620 Q12001680 Q12044338 Q6148813
(c(Q502895),P102,Q631218)
action filter_type
action find_reverse
entity Q631218
relation P102
type Q502895
[ANSWERS] are members of that political organization
[{'concept': 'Q502895'}, 'P102', 'Q631218']
SELECT DISTINCT ?b WHERE { ?b property:P102 resource:Q631218 . ?b rdf:type ontology:Q502895 }
Jan Beránek Dana Kuchtová Petr Šlegr Ondřej Liška Tomáš Tožička Jiří Čejka Eduard Havel Martin Ander Džamila Stehlíková Ivana Fajnorová Ladislav Hrabal Lukáš Tůma Matěj Stropnický Tomáš Průša Emil Zeman Jasna Flamiková Martin Mach Václav Láska Kateřina Jacques Petr Vilgus Matěj Hollan Juraj Mesík Ilona Picková Eva Tylová Přemysl Rabas Josef Jadrný Pavel Himl Miroslav Rokos Vladimír Buřt Irena Moudrá Wünschová Aleš Mucha Ivana Cabrnochová Věra Jakubková Pavel Šremer Jan Dusík
Kateřina Jacques, Martin Mach and Matěj Stropnický are members of that political organization
Kateřina Jacques Martin Mach Matěj Stropnický
action filter_type
action find_reverse
entity Green Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Green Party']
SELECT DISTINCT ?b WHERE { ?b property:member_of_political_party resource:Green_Party . ?b rdf:type ontology:common_name }
[]