Simple Question (Direct)
Simple Question
Q20168901
P39
Q12737077
USER
Which occupations were the positions occupied by Sir Wharton Amcotts, 1st Baronet ?
(Q20168901,P39,c(Q12737077))
action filter_type
action find
entity Q20168901
relation P39
type Q12737077
['Q20168901', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q20168901 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Sir Wharton Amcotts, 1st Baronet
action filter_type
action find
entity Sir Wharton Amcotts, 1st Baronet
relation position held
type occupation
['Sir Wharton Amcotts, 1st Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Sir_Wharton_Amcotts,_1st_Baronet property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q18015642 Q16707842
SYSTEM
Member of Parliament in the Parliament of Great Britain, Member of Parliament in the United Kingdom
Q18015642 Q16707842
(Q20168901,P39,c(Q12737077))
action filter_type
action find
entity Q20168901
relation P39
type Q12737077
[ANSWERS] were the positions occupied by Sir Wharton Amcotts, 1st Baronet
['Q20168901', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q20168901 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of Great Britain Member of Parliament in the United Kingdom
Member of Parliament in the Parliament of Great Britain and Member of Parliament in the United Kingdom were the positions occupied by Sir Wharton Amcotts, 1st Baronet
Member of Parliament in the Parliament of Great Britain Member of Parliament in the United Kingdom
action filter_type
action find
entity Sir Wharton Amcotts, 1st Baronet
relation position held
type occupation
['Sir Wharton Amcotts, 1st Baronet', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Sir_Wharton_Amcotts,_1st_Baronet property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18015642 Q16707842
P106
Q502895
USER
Which people have career as Member of Parliament in the Parliament of Great Britain and Member of Parliament in the United Kingdom ?
(c(Q502895),P106,Q18015642) (c(Q502895),P106,Q16707842)
action union
action filter_type
action find_reverse
entity Q18015642
relation P106
type Q502895
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q18015642'] [{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?j WHERE { ?j property:P106 ?g . VALUES ( ?g ) { ( resource:Q16707842 ) ( resource:Q18015642 ) } }
Member of Parliament in the Parliament of Great Britain Member of Parliament in the United Kingdom
action union
action filter_type
action find_reverse
entity Member of Parliament in the Parliament of Great Britain
relation occupation
type common name
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain'] [{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?j WHERE { ?j property:occupation ?g . VALUES ( ?g ) { ( resource:Member_of_Parliament_in_the_United_Kingdom ) ( resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain ) } }
[]
common name
Q22087320 Q21856725 Q24573112
SYSTEM
Francis Gregg, Edward Stanley, David Lewis
Q22087320 Q21856725 Q24573112 Q21548870 Q24292009
(c(Q502895),P106,Q18015642) (c(Q502895),P106,Q16707842)
action union
action filter_type
action find_reverse
entity Q18015642
relation P106
type Q502895
action filter_type
action find_reverse
entity Q16707842
relation P106
type Q502895
[ANSWERS] have career as Member of Parliament in the Parliament of Great Britain and Member of Parliament in the United Kingdom
[{'concept': 'Q502895'}, 'P106', 'Q18015642'] [{'concept': 'Q502895'}, 'P106', 'Q16707842']
SELECT DISTINCT ?j WHERE { ?j property:P106 ?g . VALUES ( ?g ) { ( resource:Q16707842 ) ( resource:Q18015642 ) } }
Francis Gregg Edward Stanley David Lewis Wilson Jones Sir James Hamlyn-Williams, 3rd Baronet
Francis Gregg, Edward Stanley and David Lewis have career as Member of Parliament in the Parliament of Great Britain and Member of Parliament in the United Kingdom
Francis Gregg Edward Stanley David Lewis
action union
action filter_type
action find_reverse
entity Member of Parliament in the Parliament of Great Britain
relation occupation
type common name
action filter_type
action find_reverse
entity Member of Parliament in the United Kingdom
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain'] [{'concept': 'common name'}, 'occupation', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?j WHERE { ?j property:occupation ?g . VALUES ( ?g ) { ( resource:Member_of_Parliament_in_the_United_Kingdom ) ( resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q22087320 Q21856725 Q24573112
P106
Q12737077
USER
What are the professions of those people ?
(Q22087320,P106,c(Q12737077)) (Q21856725,P106,c(Q12737077)) (Q24573112,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q22087320', 'P106', {'concept': 'Q12737077'}] ['Q21856725', 'P106', {'concept': 'Q12737077'}] ['Q24573112', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . VALUES ( ?q ) { ( resource:Q22087320 ) ( resource:Q21856725 ) ( resource:Q24573112 ) } . ?q property:P106 ?j }
Francis Gregg Edward Stanley David Lewis
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Francis Gregg', 'occupation', {'concept': 'occupation'}] ['Edward Stanley', 'occupation', {'concept': 'occupation'}] ['David Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . VALUES ( ?q ) { ( resource:Francis_Gregg ) ( resource:Edward_Stanley ) ( resource:David_Lewis ) } . ?q property:occupation ?j }
[]
occupation
Q16707842 Q16707842 Q18015642
SYSTEM
Member of Parliament in the Parliament of Great Britain for 3rd, Member of Parliament in the United Kingdom for 1st, 2nd
Q18015642 Q82955 Q82955 Q16707842 Q16707842
(Q22087320,P106,c(Q12737077)) (Q21856725,P106,c(Q12737077)) (Q24573112,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWERS]
['Q22087320', 'P106', {'concept': 'Q12737077'}] ['Q21856725', 'P106', {'concept': 'Q12737077'}] ['Q24573112', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . VALUES ( ?q ) { ( resource:Q22087320 ) ( resource:Q21856725 ) ( resource:Q24573112 ) } . ?q property:P106 ?j }
Member of Parliament in the Parliament of Great Britain politician politician Member of Parliament in the United Kingdom Member of Parliament in the United Kingdom
The professions of those people are Member of Parliament in the United Kingdom, Member of Parliament in the United Kingdom and Member of Parliament in the Parliament of Great Britain
Member of Parliament in the United Kingdom Member of Parliament in the United Kingdom Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Francis Gregg', 'occupation', {'concept': 'occupation'}] ['Edward Stanley', 'occupation', {'concept': 'occupation'}] ['David Lewis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . VALUES ( ?q ) { ( resource:Francis_Gregg ) ( resource:Edward_Stanley ) ( resource:David_Lewis ) } . ?q property:occupation ?j }
[]