Simple Question (Direct)
Simple Question
Q1688181
P20
Q56061
USER
Where did the expiration of Jesse Overstreet occur ?
(Q1688181,P20,c(Q56061))
action filter_type
action find
entity Q1688181
relation P20
type Q56061
['Q1688181', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1688181 property:P20 ?a }
Jesse Overstreet
action filter_type
action find
entity Jesse Overstreet
relation place of death
type administrative territorial entity
['Jesse Overstreet', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Jesse_Overstreet property:place_of_death ?a }
[]
administrative territorial entity
Q6346
SYSTEM
Indianapolis
Q6346
(Q1688181,P20,c(Q56061))
action filter_type
action find
entity Q1688181
relation P20
type Q56061
The expiration of Jesse Overstreet occurred in [ANSWER]
['Q1688181', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1688181 property:P20 ?a }
Indianapolis
The expiration of Jesse Overstreet occurred in Indianapolis
Indianapolis
action filter_type
action find
entity Jesse Overstreet
relation place of death
type administrative territorial entity
['Jesse Overstreet', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Jesse_Overstreet property:place_of_death ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1688181
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q6346,P102,c(Q7210356))
action filter_type
action find
entity Q1688181
relation P102
type Q7210356
['Q6346', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q1688181 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Jesse Overstreet
action filter_type
action find
entity Jesse Overstreet
relation member of political party
type political organization
['Indianapolis', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Jesse_Overstreet property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6346,P102,c(Q7210356))
action filter_type
action find
entity Q1688181
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q6346', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q1688181 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Republican Party
That person is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Jesse Overstreet
relation member of political party
type political organization
['Indianapolis', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Jesse_Overstreet property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22002945 Q1688181
P27
Q15617994
USER
Which administrative territories are Jesse Overstreet or M'Bairo Abakar a civilian of ?
OR((Q1688181,P27,c(Q15617994)), (Q22002945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1688181
relation P27
action find
entity Q22002945
relation P27
type Q15617994
{'OR': [['Q1688181', 'P27', {'concept': 'Q15617994'}], ['Q22002945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?t ) { ( resource:Q1688181 ) ( resource:Q22002945 ) } . ?t property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
M'Bairo Abakar Jesse Overstreet
action filter_type
action union
action find
entity Jesse Overstreet
relation country of citizenship
action find
entity M'Bairo Abakar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jesse Overstreet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["M'Bairo Abakar", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?t ) { ( resource:Jesse_Overstreet ) ( resource:M'Bairo_Abakar ) } . ?t property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q657
SYSTEM
United States of America, Chad
Q30 Q657
OR((Q1688181,P27,c(Q15617994)), (Q22002945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1688181
relation P27
action find
entity Q22002945
relation P27
type Q15617994
[ANSWERS] are Jesse Overstreet or M'Bairo Abakar a civilian of
{'OR': [['Q1688181', 'P27', {'concept': 'Q15617994'}], ['Q22002945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?t ) { ( resource:Q1688181 ) ( resource:Q22002945 ) } . ?t property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
United States of America Chad
United States of America and Chad are Jesse Overstreet or M'Bairo Abakar a civilian of
United States of America Chad
action filter_type
action union
action find
entity Jesse Overstreet
relation country of citizenship
action find
entity M'Bairo Abakar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jesse Overstreet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["M'Bairo Abakar", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?t ) { ( resource:Jesse_Overstreet ) ( resource:M'Bairo_Abakar ) } . ?t property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q43229 Q1129645
USER
How many organizations or trade blocs had that administrative territory as their member ?
(Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q657,P463,c(Q43229)) (Q657,P463,c(Q1129645))
['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q657', 'P463', {'concept': 'Q43229'}] ['Q657', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q18248306 property:P463 ?z } UNION { resource:Q18248306 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q1129645 }
['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['Chad', 'member of', {'concept': 'organization'}] ['Chad', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Chad property:member_of ?z } UNION { resource:Chad property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:trade_bloc }
[]
organization trade bloc
Quantitative|Count|Mult. entity type|Clarification
Q657
SYSTEM
Did you mean Chad ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q18248306 property:P463 ?z } UNION { resource:Q18248306 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q1129645 }
Did you mean Chad ?
Chad
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Chad property:member_of ?z } UNION { resource:Chad property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:trade_bloc }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q657,P463,c(Q43229)) (Q657,P463,c(Q1129645))
Q30
['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q657', 'P463', {'concept': 'Q43229'}] ['Q657', 'P463', {'concept': 'Q1129645'}]
['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['Chad', 'member of', {'concept': 'organization'}] ['Chad', 'member of', {'concept': 'trade bloc'}]
[]
SYSTEM
9
Q340195 Q191384 Q899770 Q41550 Q181574 Q656801 Q7825 Q170481 Q827525
(Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q30,P463,c(Q43229)) (Q30,P463,c(Q1129645)) (Q657,P463,c(Q43229)) (Q657,P463,c(Q1129645))
[ANSWER]
['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q30', 'P463', {'concept': 'Q43229'}] ['Q30', 'P463', {'concept': 'Q1129645'}] ['Q657', 'P463', {'concept': 'Q43229'}] ['Q657', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q30 property:P463 ?z } UNION { resource:Q30 property:P463 ?y } UNION { resource:Q18248306 property:P463 ?z } UNION { resource:Q18248306 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q1129645 }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Organisation for Economic Co-operation and Development North American Free Trade Agreement International Finance Corporation World Trade Organization Asia-Pacific Economic Cooperation International Development Association
9
['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['United States of America', 'member of', {'concept': 'organization'}] ['United States of America', 'member of', {'concept': 'trade bloc'}] ['Chad', 'member of', {'concept': 'organization'}] ['Chad', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:United_States_of_America property:member_of ?z } UNION { resource:United_States_of_America property:member_of ?y } UNION { resource:Chad property:member_of ?z } UNION { resource:Chad property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:trade_bloc }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q310772
P17
Q15617994
USER
Which administrative territory is Al Mukalla a part of ?
(Q310772,P17,c(Q15617994))
action filter_type
action find
entity Q310772
relation P17
type Q15617994
['Q310772', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q310772 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Al Mukalla
action filter_type
action find
entity Al Mukalla
relation country
type designation for an administrative territorial entity
['Al Mukalla', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Al_Mukalla property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q805
SYSTEM
Yemen
Q805
(Q310772,P17,c(Q15617994))
action filter_type
action find
entity Q310772
relation P17
type Q15617994
[ANSWER] is Al Mukalla a part of
['Q310772', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q310772 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Yemen
Yemen is Al Mukalla a part of
Yemen
action filter_type
action find
entity Al Mukalla
relation country
type designation for an administrative territorial entity
['Al Mukalla', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Al_Mukalla property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q805
P35
Q502895
USER
Who are the heads of state of that administrative territory ?
(Q805,P35,c(Q502895))
action filter_type
action find
entity Q805
relation P35
type Q502895
['Q805', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q805 property:P35 ?z . ?z rdf:type ontology:Q502895 }
Yemen
action filter_type
action find
entity Yemen
relation head of state
type common name
['Yemen', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Yemen property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
common name
Q57480 Q483672
SYSTEM
Abdrabbuh Mansour Hadi, Ali Abdullah Saleh
Q57480 Q483672
(Q805,P35,c(Q502895))
action filter_type
action find
entity Q805
relation P35
type Q502895
The heads of state of that administrative territory are Ali [ANSWERS]
['Q805', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q805 property:P35 ?z . ?z rdf:type ontology:Q502895 }
Abdrabbuh Mansour Hadi Ali Abdullah Saleh
The heads of state of that administrative territory are Ali Abdrabbuh Mansour Hadi and Ali Abdullah Saleh
Abdrabbuh Mansour Hadi Ali Abdullah Saleh
action filter_type
action find
entity Yemen
relation head of state
type common name
['Yemen', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Yemen property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19686631
P710
Q350604
USER
Were those people a participant of Yemeni Civil War ?
(Q19686631,P710,Q57480) (Q19686631,P710,Q483672)
action is_in
entity prev_answer
action find
entity Q19686631
relation P710
['Q19686631', 'P710', 'Q57480'] ['Q19686631', 'P710', 'Q483672']
ASK WHERE { resource:Q19686631 property:P710 ?z . VALUES ( ?z ) { ( resource:Q57480 ) ( resource:Q483672 ) } }
Yemeni Civil War
action is_in
entity prev_answer
action find
entity Yemeni Civil War
relation participant
['Yemeni Civil War', 'participant', 'Abdrabbuh Mansour Hadi'] ['Yemeni Civil War', 'participant', 'Ali Abdullah Saleh']
ASK WHERE { resource:Yemeni_Civil_War property:participant ?z . VALUES ( ?z ) { ( resource:Abdrabbuh_Mansour_Hadi ) ( resource:Ali_Abdullah_Saleh ) } }
[]
armed conflict
SYSTEM
YES
(Q19686631,P710,Q57480) (Q19686631,P710,Q483672)
action is_in
entity prev_answer
action find
entity Q19686631
relation P710
[ANSWER]
['Q19686631', 'P710', 'Q57480'] ['Q19686631', 'P710', 'Q483672']
ASK WHERE { resource:Q19686631 property:P710 ?z . VALUES ( ?z ) { ( resource:Q57480 ) ( resource:Q483672 ) } }
Yes
action is_in
entity prev_answer
action find
entity Yemeni Civil War
relation participant
['Yemeni Civil War', 'participant', 'Abdrabbuh Mansour Hadi'] ['Yemeni Civil War', 'participant', 'Ali Abdullah Saleh']
ASK WHERE { resource:Yemeni_Civil_War property:participant ?z . VALUES ( ?z ) { ( resource:Abdrabbuh_Mansour_Hadi ) ( resource:Ali_Abdullah_Saleh ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q101631 Q805
P47 P530
Q15617994
USER
Which administrative territories have diplomatic relations with Yemen or are bordered by Stezzano ?
OR((Q805,P530,c(Q15617994)), (Q101631,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q805
relation P530
action find
entity Q101631
relation P47
type Q15617994
{'OR': [['Q805', 'P530', {'concept': 'Q15617994'}], ['Q101631', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q805 property:P530 ?v } UNION { resource:Q101631 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Stezzano Yemen
action filter_type
action union
action find
entity Yemen
relation diplomatic relation
action find
entity Stezzano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Yemen', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Stezzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Yemen property:diplomatic_relation ?v } UNION { resource:Stezzano property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q398 Q148 Q159 Q101810 Q1016 Q30 Q801 Q43 Q842 Q796
SYSTEM
Some of them are Bahrain, People's Republic of China, Russia, Zanica, Libya, United States of America, Israel, Turkey, Oman, Iraq
Q101028 Q801 Q843 Q842 Q101187 Q100404 Q101810 Q145 Q148 Q30 Q38 Q878 Q858 Q851 Q1016 Q101196 Q398 Q159 Q43 Q796 Q794 Q95082
OR((Q805,P530,c(Q15617994)), (Q101631,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q805
relation P530
action find
entity Q101631
relation P47
type Q15617994
[ANSWERS] have diplomatic relations with Yemen or are bordered by Stezzano
{'OR': [['Q805', 'P530', {'concept': 'Q15617994'}], ['Q101631', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q805 property:P530 ?v } UNION { resource:Q101631 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Dalmine Israel Pakistan Oman Lallio Comun Nuovo Zanica United Kingdom People's Republic of China United States of America Italy United Arab Emirates Syria Saudi Arabia Libya Levate Bahrain Russia Turkey Iraq Iran Azzano San Paolo
Bahrain, People's Republic of China, Russia, Zanica, Libya, United States of America, Israel, Turkey, Oman and Iraq have diplomatic relations with Yemen or are bordered by Stezzano
Bahrain People's Republic of China Russia Zanica Libya United States of America Israel Turkey Oman Iraq
action filter_type
action union
action find
entity Yemen
relation diplomatic relation
action find
entity Stezzano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Yemen', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Stezzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Yemen property:diplomatic_relation ?v } UNION { resource:Stezzano property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q43
P30
Q2221906
USER
Which geographic locations are that administrative territory situated in ?
(Q43,P30,c(Q2221906))
action filter_type
action find
entity Q43
relation P30
type Q2221906
['Q43', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2221906 . resource:Q43 property:P30 ?z }
Turkey
action filter_type
action find
entity Turkey
relation continent
type geographic location
['Turkey', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:geographic_location . resource:Turkey property:continent ?z }
[]
geographic location
Clarification for simple ques.
Q1016
SYSTEM
Did you mean Libya ?
Q398 Q148 Q159 Q101810 Q1016 Q30 Q801 Q43 Q842 Q796
(Q398,P30,c(Q2221906)) (Q148,P30,c(Q2221906)) (Q159,P30,c(Q2221906)) (Q101810,P30,c(Q2221906)) (Q1016,P30,c(Q2221906)) (Q30,P30,c(Q2221906)) (Q801,P30,c(Q2221906)) (Q43,P30,c(Q2221906)) (Q842,P30,c(Q2221906)) (Q796,P30,c(Q2221906))
[ANSWER]
['Q398', 'P30', {'concept': 'Q2221906'}] ['Q148', 'P30', {'concept': 'Q2221906'}] ['Q159', 'P30', {'concept': 'Q2221906'}] ['Q101810', 'P30', {'concept': 'Q2221906'}] ['Q1016', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}] ['Q801', 'P30', {'concept': 'Q2221906'}] ['Q43', 'P30', {'concept': 'Q2221906'}] ['Q842', 'P30', {'concept': 'Q2221906'}] ['Q796', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2221906 . resource:Q43 property:P30 ?z }
Bahrain People's Republic of China Russia Zanica Libya United States of America Israel Turkey Oman Iraq
Did you mean Libya ?
Libya
['Bahrain', 'continent', {'concept': 'geographic location'}] ["People's Republic of China", 'continent', {'concept': 'geographic location'}] ['Russia', 'continent', {'concept': 'geographic location'}] ['Zanica', 'continent', {'concept': 'geographic location'}] ['Libya', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}] ['Israel', 'continent', {'concept': 'geographic location'}] ['Turkey', 'continent', {'concept': 'geographic location'}] ['Oman', 'continent', {'concept': 'geographic location'}] ['Iraq', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:geographic_location . resource:Turkey property:continent ?z }
[]
Simple Question (Coreferenced)
USER
No, I meant Turkey. Could you tell me the answer for that?
(Q43,P30,c(Q2221906))
Q43
['Q43', 'P30', {'concept': 'Q2221906'}]
['Turkey', 'continent', {'concept': 'geographic location'}]
[]
Q46 Q48
SYSTEM
Europe, Asia
Q46 Q48
(Q43,P30,c(Q2221906))
action filter_type
action find
entity Q43
relation P30
type Q2221906
That administrative territory are situated in [ANSWERS]
['Q43', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2221906 . resource:Q43 property:P30 ?z }
Europe Asia
That administrative territory are situated in Europe and Asia
Europe Asia
action filter_type
action find
entity Turkey
relation continent
type geographic location
['Turkey', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:geographic_location . resource:Turkey property:continent ?z }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q46 Q48
P159
Q43229
USER
Which organizations have their HQ location at Europe and Asia ?
(c(Q43229),P159,Q46) (c(Q43229),P159,Q48)
action union
action filter_type
action find_reverse
entity Q46
relation P159
type Q43229
action filter_type
action find_reverse
entity Q48
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q46'] [{'concept': 'Q43229'}, 'P159', 'Q48']
SELECT DISTINCT ?n WHERE { { ?n property:P159 resource:Q46 . ?n rdf:type ontology:Q43229 } UNION { ?n rdf:type ontology:Q43229 . ?n property:P159 resource:Q48 } }
Europe Asia
action union
action filter_type
action find_reverse
entity Europe
relation headquarters location
type organization
action filter_type
action find_reverse
entity Asia
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Europe'] [{'concept': 'organization'}, 'headquarters location', 'Asia']
SELECT DISTINCT ?n WHERE { { ?n property:headquarters_location resource:Europe . ?n rdf:type ontology:organization } UNION { ?n rdf:type ontology:organization . ?n property:headquarters_location resource:Asia } }
[]
organization
Q7669567 Q6485792
SYSTEM
TBS GB, Langdon & Seah
Q7669567 Q6485792
(c(Q43229),P159,Q46) (c(Q43229),P159,Q48)
action union
action filter_type
action find_reverse
entity Q46
relation P159
type Q43229
action filter_type
action find_reverse
entity Q48
relation P159
type Q43229
[ANSWERS] have their HQ location at Europe and Asia
[{'concept': 'Q43229'}, 'P159', 'Q46'] [{'concept': 'Q43229'}, 'P159', 'Q48']
SELECT DISTINCT ?n WHERE { { ?n property:P159 resource:Q46 . ?n rdf:type ontology:Q43229 } UNION { ?n rdf:type ontology:Q43229 . ?n property:P159 resource:Q48 } }
TBS GB Langdon & Seah
TBS GB and Langdon & Seah have their HQ location at Europe and Asia
TBS GB Langdon & Seah
action union
action filter_type
action find_reverse
entity Europe
relation headquarters location
type organization
action filter_type
action find_reverse
entity Asia
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Europe'] [{'concept': 'organization'}, 'headquarters location', 'Asia']
SELECT DISTINCT ?n WHERE { { ?n property:headquarters_location resource:Europe . ?n rdf:type ontology:organization } UNION { ?n rdf:type ontology:organization . ?n property:headquarters_location resource:Asia } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q46
P706
Q82794
USER
What is the location where that geographic location is located ?
(Q46,P706,c(Q82794))
action filter_type
action find
entity Q46
relation P706
type Q82794
['Q46', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82794 . resource:Q46 property:P706 ?c }
Europe
action filter_type
action find
entity Europe
relation located on terrain feature
type geographic region
['Europe', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:geographic_region . resource:Europe property:located_on_terrain_feature ?c }
[]
geographic region
Clarification for simple ques.
Q46
SYSTEM
Did you mean Europe ?
Q7669567 Q6485792
(Q7669567,P706,c(Q82794)) (Q6485792,P706,c(Q82794))
[ANSWER]
['Q7669567', 'P706', {'concept': 'Q82794'}] ['Q6485792', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82794 . resource:Q46 property:P706 ?c }
TBS GB Langdon & Seah
Did you mean Europe ?
Europe
['TBS GB', 'located on terrain feature', {'concept': 'geographic region'}] ['Langdon & Seah', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:geographic_region . resource:Europe property:located_on_terrain_feature ?c }
[]
Simple Question (Coreferenced)
USER
Yes
(Q46,P706,c(Q82794))
['Q46', 'P706', {'concept': 'Q82794'}]
['Europe', 'located on terrain feature', {'concept': 'geographic region'}]
[]
Q39061
SYSTEM
Northern Hemisphere
Q39061
(Q46,P706,c(Q82794))
action filter_type
action find
entity Q46
relation P706
type Q82794
The location that geographic location is located is the [ANSWER]
['Q46', 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82794 . resource:Q46 property:P706 ?c }
Northern Hemisphere
The location that geographic location is located is the Northern Hemisphere
Northern Hemisphere
action filter_type
action find
entity Europe
relation located on terrain feature
type geographic region
['Europe', 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:geographic_region . resource:Europe property:located_on_terrain_feature ?c }
[]