Simple Question (Direct)
Simple Question
Q333141
P102
Q7210356
USER
Which party does Rhodri Morgan belong to ?
(Q333141,P102,c(Q7210356))
action filter_type
action find
entity Q333141
relation P102
type Q7210356
['Q333141', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q333141 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Rhodri Morgan
action filter_type
action find
entity Rhodri Morgan
relation member of political party
type political organization
['Rhodri Morgan', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Rhodri_Morgan property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q9630
SYSTEM
Labour Party
Q9630
(Q333141,P102,c(Q7210356))
action filter_type
action find
entity Q333141
relation P102
type Q7210356
Rhodri Morgan belongs to [ANSWER]
['Q333141', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q333141 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Labour Party
Rhodri Morgan belongs to Labour Party
Labour Party
action filter_type
action find
entity Rhodri Morgan
relation member of political party
type political organization
['Rhodri Morgan', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Rhodri_Morgan property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333141
P991
Q1076105
USER
Where were that person elected successfully from ?
(c(Q1076105),P991,Q9630)
action filter_type
action find_reverse
entity Q333141
relation P991
type Q1076105
[{'concept': 'Q1076105'}, 'P991', 'Q9630']
SELECT DISTINCT ?l WHERE { ?l property:P991 resource:Q333141 . ?l rdf:type ontology:Q1076105 }
Rhodri Morgan
action filter_type
action find_reverse
entity Rhodri Morgan
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Labour Party']
SELECT DISTINCT ?l WHERE { ?l property:successful_candidate resource:Rhodri_Morgan . ?l rdf:type ontology:general_election }
[]
general election
Q1655536 Q111715
SYSTEM
National Assembly for Wales election, 2003, National Assembly for Wales election, 2007
Q1655536 Q111715
(c(Q1076105),P991,Q9630)
action filter_type
action find_reverse
entity Q333141
relation P991
type Q1076105
[ANSWERS]
[{'concept': 'Q1076105'}, 'P991', 'Q9630']
SELECT DISTINCT ?l WHERE { ?l property:P991 resource:Q333141 . ?l rdf:type ontology:Q1076105 }
National Assembly for Wales election, 2003 National Assembly for Wales election, 2007
Successfully that person were elected from the National Assembly for Wales election, 2003 and National Assembly for Wales election, 2007
National Assembly for Wales election, 2003 National Assembly for Wales election, 2007
action filter_type
action find_reverse
entity Rhodri Morgan
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Labour Party']
SELECT DISTINCT ?l WHERE { ?l property:successful_candidate resource:Rhodri_Morgan . ?l rdf:type ontology:general_election }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q333141
P734
Q82799
USER
Which name is associated with that person ?
(Q1655536,P734,c(Q82799)) (Q111715,P734,c(Q82799))
action filter_type
action find
entity Q333141
relation P734
type Q82799
['Q1655536', 'P734', {'concept': 'Q82799'}] ['Q111715', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q333141 property:P734 ?l . ?l rdf:type ontology:Q82799 }
Rhodri Morgan
action filter_type
action find
entity Rhodri Morgan
relation family name
type name
['National Assembly for Wales election, 2003', 'family name', {'concept': 'name'}] ['National Assembly for Wales election, 2007', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Rhodri_Morgan property:family_name ?l . ?l rdf:type ontology:name }
[]
name
Q1260128
SYSTEM
Morgan
Q1260128
(Q1655536,P734,c(Q82799)) (Q111715,P734,c(Q82799))
action filter_type
action find
entity Q333141
relation P734
type Q82799
[ANSWER] is associated with that person
['Q1655536', 'P734', {'concept': 'Q82799'}] ['Q111715', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q333141 property:P734 ?l . ?l rdf:type ontology:Q82799 }
Morgan
Morgan is associated with that person
Morgan
action filter_type
action find
entity Rhodri Morgan
relation family name
type name
['National Assembly for Wales election, 2003', 'family name', {'concept': 'name'}] ['National Assembly for Wales election, 2007', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Rhodri_Morgan property:family_name ?l . ?l rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q333141
P69
Q1244442
USER
Which school building is Rhodri Morgan an alumni of ?
(Q333141,P69,c(Q1244442))
action filter_type
action find
entity Q333141
relation P69
type Q1244442
['Q333141', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?q WHERE { resource:Q333141 property:P69 ?q . ?q rdf:type ontology:Q1244442 }
Rhodri Morgan
action filter_type
action find
entity Rhodri Morgan
relation educated at
type school building
['Rhodri Morgan', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?q WHERE { resource:Rhodri_Morgan property:educated_at ?q . ?q rdf:type ontology:school_building }
[]
school building
Q609646
SYSTEM
St John's College
Q609646
(Q333141,P69,c(Q1244442))
action filter_type
action find
entity Q333141
relation P69
type Q1244442
[ANSWER] is Rhodri Morgan an alumni of
['Q333141', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?q WHERE { resource:Q333141 property:P69 ?q . ?q rdf:type ontology:Q1244442 }
St John's College
St John's College is Rhodri Morgan an alumni of
St John's College
action filter_type
action find
entity Rhodri Morgan
relation educated at
type school building
['Rhodri Morgan', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?q WHERE { resource:Rhodri_Morgan property:educated_at ?q . ?q rdf:type ontology:school_building }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q609646 Q34217
P159
Q515
USER
Is Oxford the headquarter of St John's College located ?
(Q609646,P159,Q34217)
action is_in
entity Q34217
action find
entity Q609646
relation P159
['Q609646', 'P159', 'Q34217']
ASK WHERE { resource:Q609646 property:P159 resource:Q34217 }
St John's College Oxford
action is_in
entity Oxford
action find
entity St John's College
relation headquarters location
["St John's College", 'headquarters location', 'Oxford']
ASK WHERE { resource:St_John's_College property:headquarters_location resource:Oxford }
[]
city
SYSTEM
YES
(Q609646,P159,Q34217)
action is_in
entity Q34217
action find
entity Q609646
relation P159
[ANSWER]
['Q609646', 'P159', 'Q34217']
ASK WHERE { resource:Q609646 property:P159 resource:Q34217 }
Yes
action is_in
entity Oxford
action find
entity St John's College
relation headquarters location
["St John's College", 'headquarters location', 'Oxford']
ASK WHERE { resource:St_John's_College property:headquarters_location resource:Oxford }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1655536 Q333141
P991
Q502895
USER
Was Rhodri Morgan the elected person from National Assembly for Wales election, 2003 ?
(Q1655536,P991,Q333141)
action is_in
entity Q333141
action find
entity Q1655536
relation P991
['Q1655536', 'P991', 'Q333141']
ASK WHERE { resource:Q1655536 property:P991 resource:Q333141 }
National Assembly for Wales election, 2003 Rhodri Morgan
action is_in
entity Rhodri Morgan
action find
entity National Assembly for Wales election, 2003
relation successful candidate
['National Assembly for Wales election, 2003', 'successful candidate', 'Rhodri Morgan']
ASK WHERE { resource:National_Assembly_for_Wales_election,_2003 property:successful_candidate resource:Rhodri_Morgan }
[]
common name
SYSTEM
YES
(Q1655536,P991,Q333141)
action is_in
entity Q333141
action find
entity Q1655536
relation P991
[ANSWER]
['Q1655536', 'P991', 'Q333141']
ASK WHERE { resource:Q1655536 property:P991 resource:Q333141 }
Yes
action is_in
entity Rhodri Morgan
action find
entity National Assembly for Wales election, 2003
relation successful candidate
['National Assembly for Wales election, 2003', 'successful candidate', 'Rhodri Morgan']
ASK WHERE { resource:National_Assembly_for_Wales_election,_2003 property:successful_candidate resource:Rhodri_Morgan }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q333141 Q11773942 Q2234278
P937
Q56061
USER
Does Rhodri Morgan have Tamerna Djedida and Lakhnadon as their work location ?
(Q333141,P937,Q11773942) (Q333141,P937,Q2234278)
action is_in
entity Q333141
action intersection
action find_reverse
entity Q11773942
relation P937
action find_reverse
entity Q2234278
relation P937
['Q333141', 'P937', 'Q11773942'] ['Q333141', 'P937', 'Q2234278']
ASK WHERE { resource:Q333141 property:P937 resource:Q2234278 . resource:Q333141 property:P937 resource:Q11773942 }
Rhodri Morgan Tamerna Djedida Lakhnadon
action is_in
entity Rhodri Morgan
action intersection
action find_reverse
entity Tamerna Djedida
relation work location
action find_reverse
entity Lakhnadon
relation work location
['Rhodri Morgan', 'work location', 'Tamerna Djedida'] ['Rhodri Morgan', 'work location', 'Lakhnadon']
ASK WHERE { resource:Rhodri_Morgan property:work_location resource:Lakhnadon . resource:Rhodri_Morgan property:work_location resource:Tamerna_Djedida }
[]
administrative territorial entity
SYSTEM
NO
(Q333141,P937,Q11773942) (Q333141,P937,Q2234278)
action is_in
entity Q333141
action intersection
action find_reverse
entity Q11773942
relation P937
action find_reverse
entity Q2234278
relation P937
[ANSWER]
['Q333141', 'P937', 'Q11773942'] ['Q333141', 'P937', 'Q2234278']
ASK WHERE { resource:Q333141 property:P937 resource:Q2234278 . resource:Q333141 property:P937 resource:Q11773942 }
No
action is_in
entity Rhodri Morgan
action intersection
action find_reverse
entity Tamerna Djedida
relation work location
action find_reverse
entity Lakhnadon
relation work location
['Rhodri Morgan', 'work location', 'Tamerna Djedida'] ['Rhodri Morgan', 'work location', 'Lakhnadon']
ASK WHERE { resource:Rhodri_Morgan property:work_location resource:Lakhnadon . resource:Rhodri_Morgan property:work_location resource:Tamerna_Djedida }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7891436 Q1655536
P991
Q502895
USER
Which people were the elected candidates from National Assembly for Wales election, 2003 or United States Senate election in Connecticut, 1964 ?
OR((Q1655536,P991,c(Q502895)), (Q7891436,P991,c(Q502895)))
action filter_type
action union
action find
entity Q1655536
relation P991
action find
entity Q7891436
relation P991
type Q502895
{'OR': [['Q1655536', 'P991', {'concept': 'Q502895'}], ['Q7891436', 'P991', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { { resource:Q1655536 property:P991 ?h } UNION { resource:Q7891436 property:P991 ?h } } }
United States Senate election in Connecticut, 1964 National Assembly for Wales election, 2003
action filter_type
action union
action find
entity National Assembly for Wales election, 2003
relation successful candidate
action find
entity United States Senate election in Connecticut, 1964
relation successful candidate
type common name
{'OR': [['National Assembly for Wales election, 2003', 'successful candidate', {'concept': 'common name'}], ['United States Senate election in Connecticut, 1964', 'successful candidate', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { { resource:National_Assembly_for_Wales_election,_2003 property:successful_candidate ?h } UNION { resource:United_States_Senate_election_in_Connecticut,_1964 property:successful_candidate ?h } } }
[]
common name
Q333141 Q1619366
SYSTEM
Rhodri Morgan, Thomas J. Dodd
Q333141 Q1619366
OR((Q1655536,P991,c(Q502895)), (Q7891436,P991,c(Q502895)))
action filter_type
action union
action find
entity Q1655536
relation P991
action find
entity Q7891436
relation P991
type Q502895
And [ANSWERS] were the elected candidates from National Assembly for Wales election, 2003 or United States Senate election in Connecticut, 1964
{'OR': [['Q1655536', 'P991', {'concept': 'Q502895'}], ['Q7891436', 'P991', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . { { resource:Q1655536 property:P991 ?h } UNION { resource:Q7891436 property:P991 ?h } } }
Rhodri Morgan Thomas J. Dodd
And Rhodri Morgan and Thomas J. Dodd were the elected candidates from National Assembly for Wales election, 2003 or United States Senate election in Connecticut, 1964
Rhodri Morgan Thomas J. Dodd
action filter_type
action union
action find
entity National Assembly for Wales election, 2003
relation successful candidate
action find
entity United States Senate election in Connecticut, 1964
relation successful candidate
type common name
{'OR': [['National Assembly for Wales election, 2003', 'successful candidate', {'concept': 'common name'}], ['United States Senate election in Connecticut, 1964', 'successful candidate', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . { { resource:National_Assembly_for_Wales_election,_2003 property:successful_candidate ?h } UNION { resource:United_States_Senate_election_in_Connecticut,_1964 property:successful_candidate ?h } } }
[]