Simple Question (Direct)
Simple Question
Q5902829
P39
Q12737077
USER
What were the positions held by Horatio Walpole, 1st Baron Walpole ?
(Q5902829,P39,c(Q12737077))
action filter_type
action find
entity Q5902829
relation P39
type Q12737077
['Q5902829', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5902829 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Horatio Walpole, 1st Baron Walpole
action filter_type
action find
entity Horatio Walpole, 1st Baron Walpole
relation position held
type occupation
['Horatio Walpole, 1st Baron Walpole', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Horatio_Walpole,_1st_Baron_Walpole property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q18018860 Q18015642
SYSTEM
Member of Parliament in the Parliament of England, Member of Parliament in the Parliament of Great Britain
Q18018860 Q18015642
(Q5902829,P39,c(Q12737077))
action filter_type
action find
entity Q5902829
relation P39
type Q12737077
The positions held by Horatio Walpole , 1st Baron were [ANSWERS]
['Q5902829', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5902829 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of England Member of Parliament in the Parliament of Great Britain
The positions held by Horatio Walpole , 1st Baron were Member of Parliament in the Parliament of England and Member of Parliament in the Parliament of Great Britain
Member of Parliament in the Parliament of England Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity Horatio Walpole, 1st Baron Walpole
relation position held
type occupation
['Horatio Walpole, 1st Baron Walpole', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Horatio_Walpole,_1st_Baron_Walpole property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q18018860 Q18015642
P106
Q502895
USER
Which people have the profession of those occupations ?
(c(Q502895),P106,Q18018860) (c(Q502895),P106,Q18015642)
action filter_type
action find_reverse
entity prev_answer
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q18018860'] [{'concept': 'Q502895'}, 'P106', 'Q18015642']
SELECT DISTINCT ?v WHERE { VALUES ( ?e ) { ( resource:Q18018860 ) ( resource:Q18015642 ) } . ?v property:P106 ?e . ?v rdf:type ontology:Q502895 }
Member of Parliament in the Parliament of England Member of Parliament in the Parliament of Great Britain
action filter_type
action find_reverse
entity prev_answer
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of England'] [{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain']
SELECT DISTINCT ?v WHERE { VALUES ( ?e ) { ( resource:Member_of_Parliament_in_the_Parliament_of_England ) ( resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain ) } . ?v property:occupation ?e . ?v rdf:type ontology:common_name }
[]
common name
Q20899853 Q22087320
SYSTEM
Thomas Chicheley, Francis Gregg
Q20899853 Q22087320
(c(Q502895),P106,Q18018860) (c(Q502895),P106,Q18015642)
action filter_type
action find_reverse
entity prev_answer
relation P106
type Q502895
[ANSWERS] have the profession of those occupations
[{'concept': 'Q502895'}, 'P106', 'Q18018860'] [{'concept': 'Q502895'}, 'P106', 'Q18015642']
SELECT DISTINCT ?v WHERE { VALUES ( ?e ) { ( resource:Q18018860 ) ( resource:Q18015642 ) } . ?v property:P106 ?e . ?v rdf:type ontology:Q502895 }
Thomas Chicheley Francis Gregg
Thomas Chicheley and Francis Gregg have the profession of those occupations
Thomas Chicheley Francis Gregg
action filter_type
action find_reverse
entity prev_answer
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of England'] [{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain']
SELECT DISTINCT ?v WHERE { VALUES ( ?e ) { ( resource:Member_of_Parliament_in_the_Parliament_of_England ) ( resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain ) } . ?v property:occupation ?e . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20899853
P40
Q502895
USER
Which person is a child of Thomas Chicheley ?
(Q20899853,P40,c(Q502895))
action filter_type
action find
entity Q20899853
relation P40
type Q502895
['Q20899853', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q20899853 property:P40 ?b }
Thomas Chicheley
action filter_type
action find
entity Thomas Chicheley
relation child
type common name
['Thomas Chicheley', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Thomas_Chicheley property:child ?b }
[]
common name
Q7788385
SYSTEM
Thomas Chicheley
Q7788385
(Q20899853,P40,c(Q502895))
action filter_type
action find
entity Q20899853
relation P40
type Q502895
[ANSWER] is a child of [ANSWER]
['Q20899853', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q20899853 property:P40 ?b }
Thomas Chicheley
Thomas Chicheley is a child of Thomas Chicheley
Thomas Chicheley
action filter_type
action find
entity Thomas Chicheley
relation child
type common name
['Thomas Chicheley', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Thomas_Chicheley property:child ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7073844
Q502895
USER
And how about Oakes Angier Ames?
(Q7073844,P40,c(Q502895))
action filter_type
action find
entity Q7073844
relation P40
type Q502895
['Q7073844', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7073844 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Oakes Angier Ames
action filter_type
action find
entity Oakes Angier Ames
relation child
type common name
['Oakes Angier Ames', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Oakes_Angier_Ames property:child ?l . ?l rdf:type ontology:common_name }
[]
common name
Q2074516
SYSTEM
Winthrop Ames
Q2074516
(Q7073844,P40,c(Q502895))
action filter_type
action find
entity Q7073844
relation P40
type Q502895
[ANSWER]
['Q7073844', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7073844 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Winthrop Ames
Winthrop Ames
action filter_type
action find
entity Oakes Angier Ames
relation child
type common name
['Oakes Angier Ames', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Oakes_Angier_Ames property:child ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately 3204 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3204
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?r = 3204 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3204
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?r = 3204 ) }
[]
musical instrument common name
SYSTEM
3
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3204
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?r = 3204 ) }
violin organ drum kit
3
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3204
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?r = 3204 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q886717 Q20899853
P39
Q12737077
USER
Which occupations were the positions occupied by Thomas Chicheley or John W. Hall ?
OR((Q20899853,P39,c(Q12737077)), (Q886717,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q20899853
relation P39
action find
entity Q886717
relation P39
type Q12737077
{'OR': [['Q20899853', 'P39', {'concept': 'Q12737077'}], ['Q886717', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q20899853 property:P39 ?e } UNION { resource:Q886717 property:P39 ?e } } . ?e rdf:type ontology:Q12737077 }
John W. Hall Thomas Chicheley
action filter_type
action union
action find
entity Thomas Chicheley
relation position held
action find
entity John W. Hall
relation position held
type occupation
{'OR': [['Thomas Chicheley', 'position held', {'concept': 'occupation'}], ['John W. Hall', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Thomas_Chicheley property:position_held ?e } UNION { resource:John_W._Hall property:position_held ?e } } . ?e rdf:type ontology:occupation }
[]
occupation
Q18018860 Q20801656 Q21362489
SYSTEM
Member of Parliament in the Parliament of England, Governor of Delaware, member of the State Senate of Delaware
Q18018860 Q20801656 Q21362489
OR((Q20899853,P39,c(Q12737077)), (Q886717,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q20899853
relation P39
action find
entity Q886717
relation P39
type Q12737077
[ANSWERS] were the positions occupied by Thomas Chicheley or John W. Hall
{'OR': [['Q20899853', 'P39', {'concept': 'Q12737077'}], ['Q886717', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q20899853 property:P39 ?e } UNION { resource:Q886717 property:P39 ?e } } . ?e rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of England Governor of Delaware member of the State Senate of Delaware
Member of Parliament in the Parliament of England, Governor of Delaware and member of the State Senate of Delaware were the positions occupied by Thomas Chicheley or John W. Hall
Member of Parliament in the Parliament of England Governor of Delaware member of the State Senate of Delaware
action filter_type
action union
action find
entity Thomas Chicheley
relation position held
action find
entity John W. Hall
relation position held
type occupation
{'OR': [['Thomas Chicheley', 'position held', {'concept': 'occupation'}], ['John W. Hall', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Thomas_Chicheley property:position_held ?e } UNION { resource:John_W._Hall property:position_held ?e } } . ?e rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that occupation belong to ?
(Q21362489,P17,c(Q15617994))
['Q21362489', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21362489 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['member of the State Senate of Delaware', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:member_of_the_State_Senate_of_Delaware property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q18018860
SYSTEM
Did you mean Member of Parliament in the Parliament of England ?
(Q18018860,P17,c(Q15617994)) (Q20801656,P17,c(Q15617994)) (Q21362489,P17,c(Q15617994))
[ANSWER]
['Q18018860', 'P17', {'concept': 'Q15617994'}] ['Q20801656', 'P17', {'concept': 'Q15617994'}] ['Q21362489', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21362489 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Member of Parliament in the Parliament of England ?
Member of Parliament in the Parliament of England
['Member of Parliament in the Parliament of England', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Governor of Delaware', 'country', {'concept': 'designation for an administrative territorial entity'}] ['member of the State Senate of Delaware', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:member_of_the_State_Senate_of_Delaware property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant member of the State Senate of Delaware. Could you tell me the answer for that?
(Q21362489,P17,c(Q15617994))
Q21362489
['Q21362489', 'P17', {'concept': 'Q15617994'}]
['member of the State Senate of Delaware', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q21362489,P17,c(Q15617994))
[ANSWER]
['Q21362489', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21362489 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['member of the State Senate of Delaware', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:member_of_the_State_Senate_of_Delaware property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q21362489 Q52912
P361
Q192350
USER
How many ministries are member of the State Senate of Delaware or Statens Järnvägar a part of ?
(Q21362489,P361,c(Q192350)) (Q52912,P361,c(Q192350))
action count
action union
action filter_type
action find
entity Q21362489
relation P361
type Q192350
action filter_type
action find
entity Q52912
relation P361
type Q192350
['Q21362489', 'P361', {'concept': 'Q192350'}] ['Q52912', 'P361', {'concept': 'Q192350'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Q21362489 property:P361 ?w . ?w rdf:type ontology:Q192350 } UNION { resource:Q52912 property:P361 ?w . ?w rdf:type ontology:Q192350 } }
member of the State Senate of Delaware Statens Järnvägar
action count
action union
action filter_type
action find
entity member of the State Senate of Delaware
relation part of
type ministry
action filter_type
action find
entity Statens Järnvägar
relation part of
type ministry
['member of the State Senate of Delaware', 'part of', {'concept': 'ministry'}] ['Statens Järnvägar', 'part of', {'concept': 'ministry'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:member_of_the_State_Senate_of_Delaware property:part_of ?w . ?w rdf:type ontology:ministry } UNION { resource:Statens_Järnvägar property:part_of ?w . ?w rdf:type ontology:ministry } }
[]
ministry
SYSTEM
2
Q1780898 Q10547426
(Q21362489,P361,c(Q192350)) (Q52912,P361,c(Q192350))
action count
action union
action filter_type
action find
entity Q21362489
relation P361
type Q192350
action filter_type
action find
entity Q52912
relation P361
type Q192350
[ANSWER]
['Q21362489', 'P361', {'concept': 'Q192350'}] ['Q52912', 'P361', {'concept': 'Q192350'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Q21362489 property:P361 ?w . ?w rdf:type ontology:Q192350 } UNION { resource:Q52912 property:P361 ?w . ?w rdf:type ontology:Q192350 } }
Ministry of Enterprise, Energy and Communications Ministry of Communications
2
action count
action union
action filter_type
action find
entity member of the State Senate of Delaware
relation part of
type ministry
action filter_type
action find
entity Statens Järnvägar
relation part of
type ministry
['member of the State Senate of Delaware', 'part of', {'concept': 'ministry'}] ['Statens Järnvägar', 'part of', {'concept': 'ministry'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:member_of_the_State_Senate_of_Delaware property:part_of ?w . ?w rdf:type ontology:ministry } UNION { resource:Statens_Järnvägar property:part_of ?w . ?w rdf:type ontology:ministry } }
[]