Simple Question (Direct)
Simple Question
Q4908036
P20
Q56061
USER
Where did the expiration of Bill Barnard occur ?
(Q4908036,P20,c(Q56061))
action filter_type
action find
entity Q4908036
relation P20
type Q56061
['Q4908036', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q4908036 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Bill Barnard
action filter_type
action find
entity Bill Barnard
relation place of death
type administrative territorial entity
['Bill Barnard', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bill_Barnard property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q37100
SYSTEM
Auckland
Q37100
(Q4908036,P20,c(Q56061))
action filter_type
action find
entity Q4908036
relation P20
type Q56061
The expiration of Bill Barnard occurred in [ANSWER]
['Q4908036', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q4908036 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Auckland
The expiration of Bill Barnard occurred in Auckland
Auckland
action filter_type
action find
entity Bill Barnard
relation place of death
type administrative territorial entity
['Bill Barnard', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bill_Barnard property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4908036
P102
Q7210356
USER
Which political organization is Bill Barnard a member of ?
(Q4908036,P102,c(Q7210356))
action filter_type
action find
entity Q4908036
relation P102
type Q7210356
['Q4908036', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q4908036 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Bill Barnard
action filter_type
action find
entity Bill Barnard
relation member of political party
type political organization
['Bill Barnard', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Bill_Barnard property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q1048192
SYSTEM
New Zealand Labour Party
Q1048192
(Q4908036,P102,c(Q7210356))
action filter_type
action find
entity Q4908036
relation P102
type Q7210356
Party [ANSWER] is Bill Barnard a member of
['Q4908036', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q4908036 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
New Zealand Labour Party
Party New Zealand Labour Party is Bill Barnard a member of
New Zealand Labour Party
action filter_type
action find
entity Bill Barnard
relation member of political party
type political organization
['Bill Barnard', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Bill_Barnard property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5343662
Q7210356
USER
And also tell me about Edward J. McCormack, Jr.?
(Q5343662,P102,c(Q7210356))
action filter_type
action find
entity Q5343662
relation P102
type Q7210356
['Q5343662', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q5343662 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Edward J. McCormack, Jr.
action filter_type
action find
entity Edward J. McCormack, Jr.
relation member of political party
type political organization
['Edward J. McCormack, Jr.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Edward_J._McCormack,_Jr. property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q5343662,P102,c(Q7210356))
action filter_type
action find
entity Q5343662
relation P102
type Q7210356
[ANSWER]
['Q5343662', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q5343662 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Democratic Party
Democratic Party
action filter_type
action find
entity Edward J. McCormack, Jr.
relation member of political party
type political organization
['Edward J. McCormack, Jr.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Edward_J._McCormack,_Jr. property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2003797 Q29552
P159
Q56061
USER
Which administrative territories are the headquarter locations of Democratic Party or Bank of Baroda ?
OR((Q29552,P159,c(Q56061)), (Q2003797,P159,c(Q56061)))
action filter_type
action union
action find
entity Q29552
relation P159
action find
entity Q2003797
relation P159
type Q56061
{'OR': [['Q29552', 'P159', {'concept': 'Q56061'}], ['Q2003797', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Q29552 ) ( resource:Q2003797 ) } . ?t property:P159 ?c } . ?c rdf:type ontology:Q56061 }
Bank of Baroda Democratic Party
action filter_type
action union
action find
entity Democratic Party
relation headquarters location
action find
entity Bank of Baroda
relation headquarters location
type administrative territorial entity
{'OR': [['Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Bank of Baroda', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Democratic_Party ) ( resource:Bank_of_Baroda ) } . ?t property:headquarters_location ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q11909 Q61
SYSTEM
Vadodara, Washington, D.C.
Q11909 Q61
OR((Q29552,P159,c(Q56061)), (Q2003797,P159,c(Q56061)))
action filter_type
action union
action find
entity Q29552
relation P159
action find
entity Q2003797
relation P159
type Q56061
[ANSWERS]
{'OR': [['Q29552', 'P159', {'concept': 'Q56061'}], ['Q2003797', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Q29552 ) ( resource:Q2003797 ) } . ?t property:P159 ?c } . ?c rdf:type ontology:Q56061 }
Vadodara Washington, D.C.
Vadodara and Washington, D.C. are the headquarter locations of Democratic Party or Bank of Baroda
Vadodara Washington, D.C.
action filter_type
action union
action find
entity Democratic Party
relation headquarters location
action find
entity Bank of Baroda
relation headquarters location
type administrative territorial entity
{'OR': [['Democratic Party', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Bank of Baroda', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Democratic_Party ) ( resource:Bank_of_Baroda ) } . ?t property:headquarters_location ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11959118 Q5343662
P27
Q15617994
USER
Which administrative territories do Edward J. McCormack, Jr. or Arnfinn Malm belong to ?
OR((Q5343662,P27,c(Q15617994)), (Q11959118,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5343662
relation P27
action find
entity Q11959118
relation P27
type Q15617994
{'OR': [['Q5343662', 'P27', {'concept': 'Q15617994'}], ['Q11959118', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?r property:P27 ?q . VALUES ( ?r ) { ( resource:Q11959118 ) ( resource:Q5343662 ) } } . ?q rdf:type ontology:Q15617994 }
Arnfinn Malm Edward J. McCormack, Jr.
action filter_type
action union
action find
entity Edward J. McCormack, Jr.
relation country of citizenship
action find
entity Arnfinn Malm
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edward J. McCormack, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arnfinn Malm', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?r property:country_of_citizenship ?q . VALUES ( ?r ) { ( resource:Arnfinn_Malm ) ( resource:Edward_J._McCormack,_Jr. ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q30
SYSTEM
Norway, United States of America
Q20 Q30
OR((Q5343662,P27,c(Q15617994)), (Q11959118,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5343662
relation P27
action find
entity Q11959118
relation P27
type Q15617994
[ANSWERS] do Edward J. McCormack, Jr. or Arnfinn Malm belong to
{'OR': [['Q5343662', 'P27', {'concept': 'Q15617994'}], ['Q11959118', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?r property:P27 ?q . VALUES ( ?r ) { ( resource:Q11959118 ) ( resource:Q5343662 ) } } . ?q rdf:type ontology:Q15617994 }
Norway United States of America
Norway and United States of America do Edward J. McCormack, Jr. or Arnfinn Malm belong to
Norway United States of America
action filter_type
action union
action find
entity Edward J. McCormack, Jr.
relation country of citizenship
action find
entity Arnfinn Malm
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edward J. McCormack, Jr.', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arnfinn Malm', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?r property:country_of_citizenship ?q . VALUES ( ?r ) { ( resource:Arnfinn_Malm ) ( resource:Edward_J._McCormack,_Jr. ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P30
Q2221906
USER
Which geographic locations are that administrative territory situated in ?
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
United States of America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q20
SYSTEM
Did you mean Norway ?
Q20 Q30
(Q20,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
[ANSWER]
['Q20', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
Norway United States of America
Did you mean Norway ?
Norway
['Norway', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
No, I meant United States of America. Could you tell me the answer for that?
(Q30,P30,c(Q2221906))
Q30
['Q30', 'P30', {'concept': 'Q2221906'}]
['United States of America', 'continent', {'concept': 'geographic location'}]
[]
Q538 Q49
SYSTEM
Oceania, North America
Q49 Q538
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
That administrative territory are situated in [ANSWERS]
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
North America Oceania
That administrative territory are situated in Oceania and North America
Oceania North America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16645
P30
Q33837
USER
Are United States Minor Outlying Islands located in those geographic locations ?
(Q16645,P30,Q538) (Q16645,P30,Q49)
action is_in
entity prev_answer
action find
entity Q16645
relation P30
['Q16645', 'P30', 'Q538'] ['Q16645', 'P30', 'Q49']
ASK WHERE { VALUES ( ?u ) { ( resource:Q49 ) ( resource:Q538 ) } . resource:Q16645 property:P30 ?u }
United States Minor Outlying Islands
action is_in
entity prev_answer
action find
entity United States Minor Outlying Islands
relation continent
['United States Minor Outlying Islands', 'continent', 'Oceania'] ['United States Minor Outlying Islands', 'continent', 'North America']
ASK WHERE { VALUES ( ?u ) { ( resource:North_America ) ( resource:Oceania ) } . resource:United_States_Minor_Outlying_Islands property:continent ?u }
[]
archipelago
SYSTEM
YES
(Q16645,P30,Q538) (Q16645,P30,Q49)
action is_in
entity prev_answer
action find
entity Q16645
relation P30
[ANSWER]
['Q16645', 'P30', 'Q538'] ['Q16645', 'P30', 'Q49']
ASK WHERE { VALUES ( ?u ) { ( resource:Q49 ) ( resource:Q538 ) } . resource:Q16645 property:P30 ?u }
Yes
action is_in
entity prev_answer
action find
entity United States Minor Outlying Islands
relation continent
['United States Minor Outlying Islands', 'continent', 'Oceania'] ['United States Minor Outlying Islands', 'continent', 'North America']
ASK WHERE { VALUES ( ?u ) { ( resource:North_America ) ( resource:Oceania ) } . resource:United_States_Minor_Outlying_Islands property:continent ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29552 Q5811820
P159
Q56061
USER
Is Amiran-e Sofla the head office of Democratic Party ?
(Q29552,P159,Q5811820)
action is_in
entity Q5811820
action find
entity Q29552
relation P159
['Q29552', 'P159', 'Q5811820']
ASK WHERE { resource:Q29552 property:P159 resource:Q5811820 }
Democratic Party Amiran-e Sofla
action is_in
entity Amiran-e Sofla
action find
entity Democratic Party
relation headquarters location
['Democratic Party', 'headquarters location', 'Amiran-e Sofla']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Amiran-e_Sofla }
[]
administrative territorial entity
SYSTEM
NO
(Q29552,P159,Q5811820)
action is_in
entity Q5811820
action find
entity Q29552
relation P159
[ANSWER]
['Q29552', 'P159', 'Q5811820']
ASK WHERE { resource:Q29552 property:P159 resource:Q5811820 }
No
action is_in
entity Amiran-e Sofla
action find
entity Democratic Party
relation headquarters location
['Democratic Party', 'headquarters location', 'Amiran-e Sofla']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Amiran-e_Sofla }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P35
Q502895
USER
Which person has the highest formal authority in Norway ?
(Q20,P35,c(Q502895))
action filter_type
action find
entity Q20
relation P35
type Q502895
['Q20', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q20 property:P35 ?g }
Norway
action filter_type
action find
entity Norway
relation head of state
type common name
['Norway', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Norway property:head_of_state ?g }
[]
common name
Q57287
SYSTEM
Harald V of Norway
Q57287
(Q20,P35,c(Q502895))
action filter_type
action find
entity Q20
relation P35
type Q502895
[ANSWER] has the highest formal authority in Norway
['Q20', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q20 property:P35 ?g }
Harald V of Norway
Harald V of Norway has the highest formal authority in Norway
Harald V of Norway
action filter_type
action find
entity Norway
relation head of state
type common name
['Norway', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Norway property:head_of_state ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20
P194
Q1752346
USER
Which assembly represents that administrative territory ?
(Q57287,P194,c(Q1752346))
action filter_type
action find
entity Q20
relation P194
type Q1752346
['Q57287', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1752346 . resource:Q20 property:P194 ?t }
Norway
action filter_type
action find
entity Norway
relation legislative body
type assembly
['Harald V of Norway', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:assembly . resource:Norway property:legislative_body ?t }
[]
assembly
Q109016
SYSTEM
Parliament of Norway
Q109016
(Q57287,P194,c(Q1752346))
action filter_type
action find
entity Q20
relation P194
type Q1752346
The [ANSWER] represents that administrative territory
['Q57287', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1752346 . resource:Q20 property:P194 ?t }
Parliament of Norway
The Parliament of Norway represents that administrative territory
Parliament of Norway
action filter_type
action find
entity Norway
relation legislative body
type assembly
['Harald V of Norway', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:assembly . resource:Norway property:legislative_body ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1965 Q20
P194
Q1752346
USER
Or New Brunswick?
OR((Q20,P194,c(Q1752346)), (Q1965,P194,c(Q1752346)))
action filter_type
action union
action find
entity Q20
relation P194
action find
entity Q1965
relation P194
type Q1752346
{'OR': [['Q20', 'P194', {'concept': 'Q1752346'}], ['Q1965', 'P194', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1965 property:P194 ?v } UNION { resource:Q20 property:P194 ?v } } . ?v rdf:type ontology:Q1752346 }
New Brunswick Norway
action filter_type
action union
action find
entity Norway
relation legislative body
action find
entity New Brunswick
relation legislative body
type assembly
{'OR': [['Norway', 'legislative body', {'concept': 'assembly'}], ['New Brunswick', 'legislative body', {'concept': 'assembly'}]]}
SELECT DISTINCT ?v WHERE { { { resource:New_Brunswick property:legislative_body ?v } UNION { resource:Norway property:legislative_body ?v } } . ?v rdf:type ontology:assembly }
[]
assembly
Q109016 Q3251036
SYSTEM
Parliament of Norway, Legislature of New Brunswick
Q109016 Q3251036
OR((Q20,P194,c(Q1752346)), (Q1965,P194,c(Q1752346)))
action filter_type
action union
action find
entity Q20
relation P194
action find
entity Q1965
relation P194
type Q1752346
[ANSWERS]
{'OR': [['Q20', 'P194', {'concept': 'Q1752346'}], ['Q1965', 'P194', {'concept': 'Q1752346'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1965 property:P194 ?v } UNION { resource:Q20 property:P194 ?v } } . ?v rdf:type ontology:Q1752346 }
Parliament of Norway Legislature of New Brunswick
Parliament of Norway Legislature of New Brunswick
action filter_type
action union
action find
entity Norway
relation legislative body
action find
entity New Brunswick
relation legislative body
type assembly
{'OR': [['Norway', 'legislative body', {'concept': 'assembly'}], ['New Brunswick', 'legislative body', {'concept': 'assembly'}]]}
SELECT DISTINCT ?v WHERE { { { resource:New_Brunswick property:legislative_body ?v } UNION { resource:Norway property:legislative_body ?v } } . ?v rdf:type ontology:assembly }
[]