Simple Question (Direct)
Simple Question
Q4761216
P937
Q56061
USER
Which is the work location of Andy Reed ?
(Q4761216,P937,c(Q56061))
action filter_type
action find
entity Q4761216
relation P937
type Q56061
['Q4761216', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q4761216 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Andy Reed
action filter_type
action find
entity Andy Reed
relation work location
type administrative territorial entity
['Andy Reed', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Andy_Reed property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q4761216,P937,c(Q56061))
action filter_type
action find
entity Q4761216
relation P937
type Q56061
[ANSWER] is the work location of Andy Reed
['Q4761216', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q4761216 property:P937 ?v . ?v rdf:type ontology:Q56061 }
London
London is the work location of Andy Reed
London
action filter_type
action find
entity Andy Reed
relation work location
type administrative territorial entity
['Andy Reed', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Andy_Reed property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4761216
P1412
Q34770
USER
Which language can that person understand ?
(Q84,P1412,c(Q34770))
action filter_type
action find
entity Q4761216
relation P1412
type Q34770
['Q84', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q34770 . resource:Q4761216 property:P1412 ?k }
Andy Reed
action filter_type
action find
entity Andy Reed
relation languages spoken, written or signed
type language
['London', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:language . resource:Andy_Reed property:languages_spoken,_written_or_signed ?k }
[]
language
Q1860
SYSTEM
English
Q1860
(Q84,P1412,c(Q34770))
action filter_type
action find
entity Q4761216
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q84', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q34770 . resource:Q4761216 property:P1412 ?k }
English
That person can understand the English
English
action filter_type
action find
entity Andy Reed
relation languages spoken, written or signed
type language
['London', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:language . resource:Andy_Reed property:languages_spoken,_written_or_signed ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4761216
P39
Q12737077
USER
Which occupation was a position for which that person was appointed ?
(Q1860,P39,c(Q12737077))
action filter_type
action find
entity Q4761216
relation P39
type Q12737077
['Q1860', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4761216 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Andy Reed
action filter_type
action find
entity Andy Reed
relation position held
type occupation
['English', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Andy_Reed property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q1860,P39,c(Q12737077))
action filter_type
action find
entity Q4761216
relation P39
type Q12737077
The [ANSWER] was a position for which that person was appointed
['Q1860', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4761216 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position for which that person was appointed
Member of Parliament in the United Kingdom
action filter_type
action find
entity Andy Reed
relation position held
type occupation
['English', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Andy_Reed property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that occupation situated in ?
(Q16707842,P17,c(Q15617994))
action count
action filter_type
action find
entity Q16707842
relation P17
type Q15617994
['Q16707842', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q16707842 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation country
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q16707842,P17,c(Q15617994))
action count
action filter_type
action find
entity Q16707842
relation P17
type Q15617994
[ANSWER]
['Q16707842', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q16707842 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Member of Parliament in the United Kingdom
relation country
type designation for an administrative territorial entity
['Member of Parliament in the United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Member_of_Parliament_in_the_United_Kingdom property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16707842 Q683120
P39
Q502895
USER
How many people were responsible for occupying the position of Member of Parliament in the United Kingdom and Privy Council of the United Kingdom ?
(c(Q502895),P39,Q16707842) (c(Q502895),P39,Q683120)
action count
action intersection
action filter_type
action find_reverse
entity Q16707842
relation P39
type Q502895
action filter_type
action find_reverse
entity Q683120
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q16707842'] [{'concept': 'Q502895'}, 'P39', 'Q683120']
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P39 resource:Q16707842 . ?z rdf:type ontology:Q502895 . ?z property:P39 resource:Q683120 . ?z rdf:type ontology:Q502895 }
Member of Parliament in the United Kingdom Privy Council of the United Kingdom
action count
action intersection
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation position held
type common name
action filter_type
action find_reverse
entity Privy Council of the United Kingdom
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Member of Parliament in the United Kingdom'] [{'concept': 'common name'}, 'position held', 'Privy Council of the United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:position_held resource:Member_of_Parliament_in_the_United_Kingdom . ?z rdf:type ontology:common_name . ?z property:position_held resource:Privy_Council_of_the_United_Kingdom . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q3066350 Q4677688 Q3132669 Q5765264 Q336497
(c(Q502895),P39,Q16707842) (c(Q502895),P39,Q683120)
action count
action intersection
action filter_type
action find_reverse
entity Q16707842
relation P39
type Q502895
action filter_type
action find_reverse
entity Q683120
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q16707842'] [{'concept': 'Q502895'}, 'P39', 'Q683120']
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P39 resource:Q16707842 . ?z rdf:type ontology:Q502895 . ?z property:P39 resource:Q683120 . ?z rdf:type ontology:Q502895 }
Mountstuart Elphinstone Grant Duff Acton Smee Ayrton Henry Bulwer, 1st Baron Dalling and Bulwer John Eldon Gorst James Bryce, 1st Viscount Bryce
5
action count
action intersection
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation position held
type common name
action filter_type
action find_reverse
entity Privy Council of the United Kingdom
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Member of Parliament in the United Kingdom'] [{'concept': 'common name'}, 'position held', 'Privy Council of the United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:position_held resource:Member_of_Parliament_in_the_United_Kingdom . ?z rdf:type ontology:common_name . ?z property:position_held resource:Privy_Council_of_the_United_Kingdom . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4761216
P102
Q7210356
USER
Which parties are Andy Reed affiliated with ?
(Q4761216,P102,c(Q7210356))
action filter_type
action find
entity Q4761216
relation P102
type Q7210356
['Q4761216', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q4761216 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Andy Reed
action filter_type
action find
entity Andy Reed
relation member of political party
type political organization
['Andy Reed', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Andy_Reed property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q6467393 Q9630
SYSTEM
Labour Co-operative, Labour Party
Q6467393 Q9630
(Q4761216,P102,c(Q7210356))
action filter_type
action find
entity Q4761216
relation P102
type Q7210356
Andy Reed are affiliated with [ANSWERS]
['Q4761216', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q4761216 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Labour Co-operative Labour Party
Andy Reed are affiliated with Labour Co-operative and Labour Party
Labour Co-operative Labour Party
action filter_type
action find
entity Andy Reed
relation member of political party
type political organization
['Andy Reed', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Andy_Reed property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4706373
Q7210356
USER
And how about Alan Chorlton?
(Q4706373,P102,c(Q7210356))
action filter_type
action find
entity Q4706373
relation P102
type Q7210356
['Q4706373', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q4706373 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Alan Chorlton
action filter_type
action find
entity Alan Chorlton
relation member of political party
type political organization
['Alan Chorlton', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Alan_Chorlton property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q4706373,P102,c(Q7210356))
action filter_type
action find
entity Q4706373
relation P102
type Q7210356
[ANSWER]
['Q4706373', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q4706373 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Conservative Party
Conservative Party
action filter_type
action find
entity Alan Chorlton
relation member of political party
type political organization
['Alan Chorlton', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Alan_Chorlton property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]