Simple Question (Direct)
Simple Question
Q2856706
P39
Q12737077
USER
What was the position for which Antoine Sallès was appointed ?
(Q2856706,P39,c(Q12737077))
action filter_type
action find
entity Q2856706
relation P39
type Q12737077
['Q2856706', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2856706 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Antoine Sallès
action filter_type
action find
entity Antoine Sallès
relation position held
type occupation
['Antoine Sallès', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Antoine_Sallès property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q2856706,P39,c(Q12737077))
action filter_type
action find
entity Q2856706
relation P39
type Q12737077
Member of the French National Assembly
['Q2856706', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q2856706 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
member of the French National Assembly
Member of the French National Assembly
member of the French National Assembly
action filter_type
action find
entity Antoine Sallès
relation position held
type occupation
['Antoine Sallès', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Antoine_Sallès property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3044918
P106
Q502895
USER
Which person has the profession of that occupation ?
(c(Q502895),P106,Q3044918)
action filter_type
action find_reverse
entity Q3044918
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q3044918']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q3044918 }
member of the French National Assembly
action filter_type
action find_reverse
entity member of the French National Assembly
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the French\xa0National Assembly']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:occupation resource:member_of_the_French National_Assembly }
[]
common name
Q3085896
SYSTEM
François Thibault de Ménonville
Q3085896
(c(Q502895),P106,Q3044918)
action filter_type
action find_reverse
entity Q3044918
relation P106
type Q502895
[ANSWER] has the profession of that occupation
[{'concept': 'Q502895'}, 'P106', 'Q3044918']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P106 resource:Q3044918 }
François Thibault de Ménonville
François Thibault de Ménonville has the profession of that occupation
François Thibault de Ménonville
action filter_type
action find_reverse
entity member of the French National Assembly
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the French\xa0National Assembly']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:occupation resource:member_of_the_French National_Assembly }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3085896
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q3085896,P27,c(Q15617994))
action filter_type
action find
entity Q3085896
relation P27
type Q15617994
['Q3085896', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q3085896 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
François Thibault de Ménonville
action filter_type
action find
entity François Thibault de Ménonville
relation country of citizenship
type designation for an administrative territorial entity
['François Thibault de Ménonville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:François_Thibault_de_Ménonville property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3085896,P27,c(Q15617994))
action filter_type
action find
entity Q3085896
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q3085896', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q3085896 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
France
The France is that person a civilian of
France
action filter_type
action find
entity François Thibault de Ménonville
relation country of citizenship
type designation for an administrative territorial entity
['François Thibault de Ménonville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:François_Thibault_de_Ménonville property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q142 Q205995
P463
Q484652
USER
Was France a member of Caribbean Community ?
(Q142,P463,Q205995)
action is_in
entity Q205995
action find
entity Q142
relation P463
['Q142', 'P463', 'Q205995']
ASK WHERE { resource:Q142 property:P463 resource:Q205995 }
France Caribbean Community
action is_in
entity Caribbean Community
action find
entity France
relation member of
['France', 'member of', 'Caribbean Community']
ASK WHERE { resource:France property:member_of resource:Caribbean_Community }
[]
international organization
SYSTEM
NO
(Q142,P463,Q205995)
action is_in
entity Q205995
action find
entity Q142
relation P463
[ANSWER]
['Q142', 'P463', 'Q205995']
ASK WHERE { resource:Q142 property:P463 resource:Q205995 }
No
action is_in
entity Caribbean Community
action find
entity France
relation member of
['France', 'member of', 'Caribbean Community']
ASK WHERE { resource:France property:member_of resource:Caribbean_Community }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3085896 Q889817
P39
Q12737077
USER
Was President of Iraq the position for which François Thibault de Ménonville was appointed ?
(Q3085896,P39,Q889817)
action is_in
entity Q889817
action find
entity Q3085896
relation P39
['Q3085896', 'P39', 'Q889817']
ASK WHERE { resource:Q3085896 property:P39 resource:Q889817 }
François Thibault de Ménonville President of Iraq
action is_in
entity President of Iraq
action find
entity François Thibault de Ménonville
relation position held
['François Thibault de Ménonville', 'position held', 'President of Iraq']
ASK WHERE { resource:François_Thibault_de_Ménonville property:position_held resource:President_of_Iraq }
[]
occupation
SYSTEM
NO
(Q3085896,P39,Q889817)
action is_in
entity Q889817
action find
entity Q3085896
relation P39
[ANSWER]
['Q3085896', 'P39', 'Q889817']
ASK WHERE { resource:Q3085896 property:P39 resource:Q889817 }
No
action is_in
entity President of Iraq
action find
entity François Thibault de Ménonville
relation position held
['François Thibault de Ménonville', 'position held', 'President of Iraq']
ASK WHERE { resource:François_Thibault_de_Ménonville property:position_held resource:President_of_Iraq }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q649 Q205995
P190 P159
Q56061
USER
Which administrative territories are the head office for Caribbean Community located or are twin cities of Moscow ?
OR((Q205995,P159,c(Q56061)), (Q649,P190,c(Q56061)))
action filter_type
action union
action find
entity Q205995
relation P159
action find
entity Q649
relation P190
type Q56061
{'OR': [['Q205995', 'P159', {'concept': 'Q56061'}], ['Q649', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q205995 property:P159 ?w } UNION { resource:Q649 property:P190 ?w } } }
Moscow Caribbean Community
action filter_type
action union
action find
entity Caribbean Community
relation headquarters location
action find
entity Moscow
relation sister city
type administrative territorial entity
{'OR': [['Caribbean Community', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Moscow', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Caribbean_Community property:headquarters_location ?w } UNION { resource:Moscow property:sister_city ?w } } }
[]
administrative territorial entity
Q270 Q994 Q140147 Q486282 Q131290 Q1741 Q437 Q1780 Q1491 Q41572
SYSTEM
Some of them are Warsaw, Tbilisi, Brest, Pavlodar, Ganja, Vienna, Ljubljana, Bratislava, La Paz, Mykolaiv
Q807 Q41572 Q131290 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q13498 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q196678 Q3805 Q1524 Q1780 Q1520 Q1741 Q3630 Q140147 Q25409 Q33935 Q3561 Q1490 Q84 Q85 Q486282 Q10717 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q987 Q239 Q2807 Q956 Q3640 Q64 Q1491 Q1218 Q133026 Q186576 Q1085
OR((Q205995,P159,c(Q56061)), (Q649,P190,c(Q56061)))
action filter_type
action union
action find
entity Q205995
relation P159
action find
entity Q649
relation P190
type Q56061
[ANSWERS] are the head office for Caribbean Community located or are twin cities of Moscow
{'OR': [['Q205995', 'P159', {'concept': 'Q56061'}], ['Q649', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q205995 property:P159 ?w } UNION { resource:Q649 property:P190 ?w } } }
Lausanne Mykolaiv Ganja Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Taranto Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Torzhok Amman Athens Bratislava Astana Vienna Jakarta Brest Košice Tel Aviv Algiers Tokyo London Cairo Pavlodar Georgetown Simferopol Bangkok Beirut Vilnius Donetsk Warsaw New Delhi Brussels Madrid Beijing Ankara Berlin La Paz Jerusalem Kolomna Pazardzhik Prague
Warsaw, Tbilisi, Brest, Pavlodar, Ganja, Vienna, Ljubljana, Bratislava, La Paz and Mykolaiv are the head office for Caribbean Community located or are twin cities of Moscow
Warsaw Tbilisi Brest Pavlodar Ganja Vienna Ljubljana Bratislava La Paz Mykolaiv
action filter_type
action union
action find
entity Caribbean Community
relation headquarters location
action find
entity Moscow
relation sister city
type administrative territorial entity
{'OR': [['Caribbean Community', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Moscow', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Caribbean_Community property:headquarters_location ?w } UNION { resource:Moscow property:sister_city ?w } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6734144
P190
Q56061
USER
Are Mahizard twin city of those ones ?
(Q6734144,P190,Q270) (Q6734144,P190,Q994) (Q6734144,P190,Q140147) (Q6734144,P190,Q486282) (Q6734144,P190,Q131290) (Q6734144,P190,Q1741) (Q6734144,P190,Q437) (Q6734144,P190,Q1780) (Q6734144,P190,Q1491) (Q6734144,P190,Q41572)
action is_in
entity prev_answer
action find
entity Q6734144
relation P190
['Q6734144', 'P190', 'Q270'] ['Q6734144', 'P190', 'Q994'] ['Q6734144', 'P190', 'Q140147'] ['Q6734144', 'P190', 'Q486282'] ['Q6734144', 'P190', 'Q131290'] ['Q6734144', 'P190', 'Q1741'] ['Q6734144', 'P190', 'Q437'] ['Q6734144', 'P190', 'Q1780'] ['Q6734144', 'P190', 'Q1491'] ['Q6734144', 'P190', 'Q41572']
ASK WHERE { resource:Q6734144 property:P190 ?p . VALUES ( ?p ) { ( resource:Q807 ) ( resource:Q41572 ) ( resource:Q131290 ) } }
Mahizard
action is_in
entity prev_answer
action find
entity Mahizard
relation sister city
['Mahizard', 'sister city', 'Warsaw'] ['Mahizard', 'sister city', 'Tbilisi'] ['Mahizard', 'sister city', 'Brest'] ['Mahizard', 'sister city', 'Pavlodar'] ['Mahizard', 'sister city', 'Ganja'] ['Mahizard', 'sister city', 'Vienna'] ['Mahizard', 'sister city', 'Ljubljana'] ['Mahizard', 'sister city', 'Bratislava'] ['Mahizard', 'sister city', 'La Paz'] ['Mahizard', 'sister city', 'Mykolaiv']
ASK WHERE { resource:Mahizard property:sister_city ?p . VALUES ( ?p ) { ( resource:Lausanne ) ( resource:Mykolaiv ) ( resource:Ganja ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q6734144,P190,Q270) (Q6734144,P190,Q994) (Q6734144,P190,Q140147) (Q6734144,P190,Q486282) (Q6734144,P190,Q131290) (Q6734144,P190,Q1741) (Q6734144,P190,Q437) (Q6734144,P190,Q1780) (Q6734144,P190,Q1491) (Q6734144,P190,Q41572)
action is_in
entity prev_answer
action find
entity Q6734144
relation P190
[ANSWER]
['Q6734144', 'P190', 'Q270'] ['Q6734144', 'P190', 'Q994'] ['Q6734144', 'P190', 'Q140147'] ['Q6734144', 'P190', 'Q486282'] ['Q6734144', 'P190', 'Q131290'] ['Q6734144', 'P190', 'Q1741'] ['Q6734144', 'P190', 'Q437'] ['Q6734144', 'P190', 'Q1780'] ['Q6734144', 'P190', 'Q1491'] ['Q6734144', 'P190', 'Q41572']
ASK WHERE { resource:Q6734144 property:P190 ?p . VALUES ( ?p ) { ( resource:Q807 ) ( resource:Q41572 ) ( resource:Q131290 ) } }
No
action is_in
entity prev_answer
action find
entity Mahizard
relation sister city
['Mahizard', 'sister city', 'Warsaw'] ['Mahizard', 'sister city', 'Tbilisi'] ['Mahizard', 'sister city', 'Brest'] ['Mahizard', 'sister city', 'Pavlodar'] ['Mahizard', 'sister city', 'Ganja'] ['Mahizard', 'sister city', 'Vienna'] ['Mahizard', 'sister city', 'Ljubljana'] ['Mahizard', 'sister city', 'Bratislava'] ['Mahizard', 'sister city', 'La Paz'] ['Mahizard', 'sister city', 'Mykolaiv']
ASK WHERE { resource:Mahizard property:sister_city ?p . VALUES ( ?p ) { ( resource:Lausanne ) ( resource:Mykolaiv ) ( resource:Ganja ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q889817
P39 P21
Q502895
USER
Which people were appointed for the position of President of Iraq and have the gender as male ?
AND((c(Q502895),P39,Q889817), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q889817
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q889817'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P21 resource:Q6581097 . ?v property:P39 resource:Q889817 }
male President of Iraq
action filter_type
action intersection
action find_reverse
entity President of Iraq
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'President of Iraq'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:gender resource:male . ?v property:position_held resource:President_of_Iraq }
[]
common name
Q1316 Q180911 Q57306 Q307494 Q17410819
SYSTEM
Saddam Hussein, Ghazi Mashal Ajil al-Yawer, Jalal Talabani, Abdul Salam Arif, Fuad Masum
Q1316 Q180911 Q57306 Q307494 Q17410819
AND((c(Q502895),P39,Q889817), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q889817
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were appointed for the position of President of Iraq and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q889817'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P21 resource:Q6581097 . ?v property:P39 resource:Q889817 }
Saddam Hussein Ghazi Mashal Ajil al-Yawer Jalal Talabani Abdul Salam Arif Fuad Masum
Saddam Hussein, Ghazi Mashal Ajil al-Yawer, Jalal Talabani, Abdul Salam Arif and Fuad Masum were appointed for the position of President of Iraq and have the gender as male
Saddam Hussein Ghazi Mashal Ajil al-Yawer Jalal Talabani Abdul Salam Arif Fuad Masum
action filter_type
action intersection
action find_reverse
entity President of Iraq
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'President of Iraq'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:gender resource:male . ?v property:position_held resource:President_of_Iraq }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q6619679
USER
Which fictional humanoids had max number of people as the dubbing artist ?
(c(Q6619679),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { ?n property:P725 ?x . ?n rdf:type ontology:Q6619679 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?d = ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:P725 ?h . ?b rdf:type ontology:Q6619679 . ?h rdf:type ontology:Q502895 } GROUP BY ?b } }
action argmax
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { ?n property:voice_actor ?x . ?n rdf:type ontology:fictional_humanoid . ?x rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?d = ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:voice_actor ?h . ?b rdf:type ontology:fictional_humanoid . ?h rdf:type ontology:common_name } GROUP BY ?b } }
[]
common name fictional humanoid
Q15711517
SYSTEM
Granny Smith
Q15711517
(c(Q6619679),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[ANSWER] had max number of people as the dubbing artist
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { ?n property:P725 ?x . ?n rdf:type ontology:Q6619679 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?d = ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:P725 ?h . ?b rdf:type ontology:Q6619679 . ?h rdf:type ontology:Q502895 } GROUP BY ?b } }
Granny Smith
Granny Smith had max number of people as the dubbing artist
Granny Smith
action argmax
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { ?n property:voice_actor ?x . ?n rdf:type ontology:fictional_humanoid . ?x rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?d = ?o ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?d ) WHERE { ?b property:voice_actor ?h . ?b rdf:type ontology:fictional_humanoid . ?h rdf:type ontology:common_name } GROUP BY ?b } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q15711517 Q22069347
P725
Q502895
USER
Did Giacinto Cibrario work on the dubbing for that fictional humanoid ?
(Q15711517,P725,Q22069347)
action is_in
entity Q22069347
action find
entity Q15711517
relation P725
['Q15711517', 'P725', 'Q22069347']
ASK WHERE { resource:Q15711517 property:P725 resource:Q22069347 }
Granny Smith Giacinto Cibrario
action is_in
entity Giacinto Cibrario
action find
entity Granny Smith
relation voice actor
['Granny Smith', 'voice actor', 'Giacinto Cibrario']
ASK WHERE { resource:Granny_Smith property:voice_actor resource:Giacinto_Cibrario }
[]
common name
SYSTEM
NO
(Q15711517,P725,Q22069347)
action is_in
entity Q22069347
action find
entity Q15711517
relation P725
[ANSWER]
['Q15711517', 'P725', 'Q22069347']
ASK WHERE { resource:Q15711517 property:P725 resource:Q22069347 }
No
action is_in
entity Giacinto Cibrario
action find
entity Granny Smith
relation voice actor
['Granny Smith', 'voice actor', 'Giacinto Cibrario']
ASK WHERE { resource:Granny_Smith property:voice_actor resource:Giacinto_Cibrario }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q994 Q437 Q5150969
P190
Q56061
USER
Is Tbilisi sister town of Ljubljana and Combrook ?
(Q994,P190,Q437) (Q994,P190,Q5150969)
action is_in
entity Q994
action intersection
action find_reverse
entity Q437
relation P190
action find_reverse
entity Q5150969
relation P190
['Q994', 'P190', 'Q437'] ['Q994', 'P190', 'Q5150969']
ASK WHERE { resource:Q994 property:P190 resource:Q437 . resource:Q994 property:P190 resource:Q5150969 }
Tbilisi Ljubljana Combrook
action is_in
entity Tbilisi
action intersection
action find_reverse
entity Ljubljana
relation sister city
action find_reverse
entity Combrook
relation sister city
['Tbilisi', 'sister city', 'Ljubljana'] ['Tbilisi', 'sister city', 'Combrook']
ASK WHERE { resource:Tbilisi property:sister_city resource:Ljubljana . resource:Tbilisi property:sister_city resource:Combrook }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q994,P190,Q437) (Q994,P190,Q5150969)
action is_in
entity Q994
action intersection
action find_reverse
entity Q437
relation P190
action find_reverse
entity Q5150969
relation P190
[ANSWER]
['Q994', 'P190', 'Q437'] ['Q994', 'P190', 'Q5150969']
ASK WHERE { resource:Q994 property:P190 resource:Q437 . resource:Q994 property:P190 resource:Q5150969 }
YES and NO respectively
action is_in
entity Tbilisi
action intersection
action find_reverse
entity Ljubljana
relation sister city
action find_reverse
entity Combrook
relation sister city
['Tbilisi', 'sister city', 'Ljubljana'] ['Tbilisi', 'sister city', 'Combrook']
ASK WHERE { resource:Tbilisi property:sister_city resource:Ljubljana . resource:Tbilisi property:sister_city resource:Combrook }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1316
P102
Q7210356
USER
Which party does Saddam Hussein belong to ?
(Q1316,P102,c(Q7210356))
action filter_type
action find
entity Q1316
relation P102
type Q7210356
['Q1316', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1316 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Saddam Hussein
action filter_type
action find
entity Saddam Hussein
relation member of political party
type political organization
['Saddam Hussein', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Saddam_Hussein property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q179933
SYSTEM
Ba'ath Party
Q179933
(Q1316,P102,c(Q7210356))
action filter_type
action find
entity Q1316
relation P102
type Q7210356
Saddam Hussein belongs to [ANSWER]
['Q1316', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1316 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Ba'ath Party
Saddam Hussein belongs to Ba'ath Party
Ba'ath Party
action filter_type
action find
entity Saddam Hussein
relation member of political party
type political organization
['Saddam Hussein', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Saddam_Hussein property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q179933 Q500447 Q15196731
P112
Q502895
USER
Was that political organization founded by Salah al-Din al-Bitar and Ali Bagautinov ?
(Q179933,P112,Q500447) (Q179933,P112,Q15196731)
action is_in
entity Q179933
action intersection
action find_reverse
entity Q500447
relation P112
action find_reverse
entity Q15196731
relation P112
['Q179933', 'P112', 'Q500447'] ['Q179933', 'P112', 'Q15196731']
ASK WHERE { resource:Q179933 property:P112 resource:Q500447 . resource:Q179933 property:P112 resource:Q15196731 }
Ba'ath Party Salah al-Din al-Bitar Ali Bagautinov
action is_in
entity Ba'ath Party
action intersection
action find_reverse
entity Salah al-Din al-Bitar
relation founder
action find_reverse
entity Ali Bagautinov
relation founder
["Ba'ath Party", 'founder', 'Salah al-Din al-Bitar'] ["Ba'ath Party", 'founder', 'Ali Bagautinov']
ASK WHERE { resource:Ba'ath_Party property:founder resource:Salah_al-Din_al-Bitar . resource:Ba'ath_Party property:founder resource:Ali_Bagautinov }
[]
common name
SYSTEM
YES and NO respectively
(Q179933,P112,Q500447) (Q179933,P112,Q15196731)
action is_in
entity Q179933
action intersection
action find_reverse
entity Q500447
relation P112
action find_reverse
entity Q15196731
relation P112
[ANSWER]
['Q179933', 'P112', 'Q500447'] ['Q179933', 'P112', 'Q15196731']
ASK WHERE { resource:Q179933 property:P112 resource:Q500447 . resource:Q179933 property:P112 resource:Q15196731 }
YES and NO respectively
action is_in
entity Ba'ath Party
action intersection
action find_reverse
entity Salah al-Din al-Bitar
relation founder
action find_reverse
entity Ali Bagautinov
relation founder
["Ba'ath Party", 'founder', 'Salah al-Din al-Bitar'] ["Ba'ath Party", 'founder', 'Ali Bagautinov']
ASK WHERE { resource:Ba'ath_Party property:founder resource:Salah_al-Din_al-Bitar . resource:Ba'ath_Party property:founder resource:Ali_Bagautinov }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12048514 Q307494
P19
Q515
USER
Which cities were Abdul Salam Arif or Radek Tejml born in ?
OR((Q307494,P19,c(Q515)), (Q12048514,P19,c(Q515)))
action filter_type
action union
action find
entity Q307494
relation P19
action find
entity Q12048514
relation P19
type Q515
{'OR': [['Q307494', 'P19', {'concept': 'Q515'}], ['Q12048514', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q307494 property:P19 ?e } UNION { resource:Q12048514 property:P19 ?e } } . ?e rdf:type ontology:Q515 }
Radek Tejml Abdul Salam Arif
action filter_type
action union
action find
entity Abdul Salam Arif
relation place of birth
action find
entity Radek Tejml
relation place of birth
type city
{'OR': [['Abdul Salam Arif', 'place of birth', {'concept': 'city'}], ['Radek Tejml', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Abdul_Salam_Arif property:place_of_birth ?e } UNION { resource:Radek_Tejml property:place_of_birth ?e } } . ?e rdf:type ontology:city }
[]
city
Q1530 Q16506
SYSTEM
Baghdad, České Budějovice
Q1530 Q16506
OR((Q307494,P19,c(Q515)), (Q12048514,P19,c(Q515)))
action filter_type
action union
action find
entity Q307494
relation P19
action find
entity Q12048514
relation P19
type Q515
Abdul Salam Arif or Radek Tejml were born in [ANSWERS]
{'OR': [['Q307494', 'P19', {'concept': 'Q515'}], ['Q12048514', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q307494 property:P19 ?e } UNION { resource:Q12048514 property:P19 ?e } } . ?e rdf:type ontology:Q515 }
Baghdad České Budějovice
Abdul Salam Arif or Radek Tejml were born in Baghdad and České Budějovice
Baghdad České Budějovice
action filter_type
action union
action find
entity Abdul Salam Arif
relation place of birth
action find
entity Radek Tejml
relation place of birth
type city
{'OR': [['Abdul Salam Arif', 'place of birth', {'concept': 'city'}], ['Radek Tejml', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Abdul_Salam_Arif property:place_of_birth ?e } UNION { resource:Radek_Tejml property:place_of_birth ?e } } . ?e rdf:type ontology:city }
[]