Simple Question (Direct)
Simple Question
Q5786866
P39
Q12737077
USER
Which occupation was a position occupied by Hugo Hammarskjöld ?
(Q5786866,P39,c(Q12737077))
action filter_type
action find
entity Q5786866
relation P39
type Q12737077
['Q5786866', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q5786866 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Hugo Hammarskjöld
action filter_type
action find
entity Hugo Hammarskjöld
relation position held
type occupation
['Hugo Hammarskjöld', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Hugo_Hammarskjöld property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q5786866,P39,c(Q12737077))
action filter_type
action find
entity Q5786866
relation P39
type Q12737077
[ANSWER] was a position occupied by Hugo Hammarskjöld
['Q5786866', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q5786866 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag was a position occupied by Hugo Hammarskjöld
Member of the Riksdag
action filter_type
action find
entity Hugo Hammarskjöld
relation position held
type occupation
['Hugo Hammarskjöld', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Hugo_Hammarskjöld property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5786866
P7
Q502895
USER
Who has Hugo Hammarskjöld as their brother ?
(Q5786866,P7,c(Q502895))
action filter_type
action find
entity Q5786866
relation P7
type Q502895
['Q5786866', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q5786866 property:P7 ?e . ?e rdf:type ontology:Q502895 }
Hugo Hammarskjöld
action filter_type
action find
entity Hugo Hammarskjöld
relation brother
type common name
['Hugo Hammarskjöld', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hugo_Hammarskjöld property:brother ?e . ?e rdf:type ontology:common_name }
[]
common name
Q5786847
SYSTEM
Carl Hammarskjöld
Q5786847
(Q5786866,P7,c(Q502895))
action filter_type
action find
entity Q5786866
relation P7
type Q502895
[ANSWER] has Hugo Hammarskjöld as their brother
['Q5786866', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q5786866 property:P7 ?e . ?e rdf:type ontology:Q502895 }
Carl Hammarskjöld
Carl Hammarskjöld has Hugo Hammarskjöld as their brother
Carl Hammarskjöld
action filter_type
action find
entity Hugo Hammarskjöld
relation brother
type common name
['Hugo Hammarskjöld', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hugo_Hammarskjöld property:brother ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q72707
Q502895
USER
And also tell me about Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg?
(Q72707,P7,c(Q502895))
action filter_type
action find
entity Q72707
relation P7
type Q502895
['Q72707', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q72707 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
action filter_type
action find
entity Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
relation brother
type common name
['Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Frederick_Charles_Ferdinand,_Duke_of_Brunswick-Lüneburg property:brother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q68683
SYSTEM
Augustus William, Duke of Brunswick-Bevern
Q68683
(Q72707,P7,c(Q502895))
action filter_type
action find
entity Q72707
relation P7
type Q502895
[ANSWER]
['Q72707', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q72707 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Augustus William, Duke of Brunswick-Bevern
Augustus William, Duke of Brunswick-Bevern
action filter_type
action find
entity Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
relation brother
type common name
['Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Frederick_Charles_Ferdinand,_Duke_of_Brunswick-Lüneburg property:brother ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7328447 Q72707
P22
Q502895
USER
Which people were the father of Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg or Richard Pitino ?
OR((Q72707,P22,c(Q502895)), (Q7328447,P22,c(Q502895)))
action filter_type
action union
action find
entity Q72707
relation P22
action find
entity Q7328447
relation P22
type Q502895
{'OR': [['Q72707', 'P22', {'concept': 'Q502895'}], ['Q7328447', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q72707 property:P22 ?s } UNION { resource:Q7328447 property:P22 ?s } } . ?s rdf:type ontology:Q502895 }
Richard Pitino Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
action filter_type
action union
action find
entity Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
relation father
action find
entity Richard Pitino
relation father
type common name
{'OR': [['Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg', 'father', {'concept': 'common name'}], ['Richard Pitino', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frederick_Charles_Ferdinand,_Duke_of_Brunswick-Lüneburg property:father ?s } UNION { resource:Richard_Pitino property:father ?s } } . ?s rdf:type ontology:common_name }
[]
common name
Q319027 Q686052
SYSTEM
Ernest Ferdinand, Duke of Brunswick-Lüneburg, Rick Pitino
Q319027 Q686052
OR((Q72707,P22,c(Q502895)), (Q7328447,P22,c(Q502895)))
action filter_type
action union
action find
entity Q72707
relation P22
action find
entity Q7328447
relation P22
type Q502895
[ANSWERS] were the father of Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg or Richard Pitino
{'OR': [['Q72707', 'P22', {'concept': 'Q502895'}], ['Q7328447', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q72707 property:P22 ?s } UNION { resource:Q7328447 property:P22 ?s } } . ?s rdf:type ontology:Q502895 }
Ernest Ferdinand, Duke of Brunswick-Lüneburg Rick Pitino
Ernest Ferdinand, Duke of Brunswick-Lüneburg and Rick Pitino were the father of Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg or Richard Pitino
Ernest Ferdinand, Duke of Brunswick-Lüneburg Rick Pitino
action filter_type
action union
action find
entity Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg
relation father
action find
entity Richard Pitino
relation father
type common name
{'OR': [['Frederick Charles Ferdinand, Duke of Brunswick-Lüneburg', 'father', {'concept': 'common name'}], ['Richard Pitino', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frederick_Charles_Ferdinand,_Duke_of_Brunswick-Lüneburg property:father ?s } UNION { resource:Richard_Pitino property:father ?s } } . ?s rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q319027
P40
Q502895
USER
Who have that one as an offspring ?
(c(Q502895),P40,Q319027)
action filter_type
action find_reverse
entity Q319027
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q319027']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q319027 . ?a rdf:type ontology:Q502895 }
Ernest Ferdinand, Duke of Brunswick-Lüneburg
action filter_type
action find_reverse
entity Ernest Ferdinand, Duke of Brunswick-Lüneburg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ernest Ferdinand, Duke of Brunswick-Lüneburg']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Ernest_Ferdinand,_Duke_of_Brunswick-Lüneburg . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q319027
SYSTEM
Did you mean Ernest Ferdinand, Duke of Brunswick-Lüneburg ?
Q319027 Q686052
(c(Q502895),P40,Q319027) (c(Q502895),P40,Q686052)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q319027'] [{'concept': 'Q502895'}, 'P40', 'Q686052']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q319027 . ?a rdf:type ontology:Q502895 }
Ernest Ferdinand, Duke of Brunswick-Lüneburg Rick Pitino
Did you mean Ernest Ferdinand, Duke of Brunswick-Lüneburg ?
Ernest Ferdinand, Duke of Brunswick-Lüneburg
[{'concept': 'common name'}, 'child', 'Ernest Ferdinand, Duke of Brunswick-Lüneburg'] [{'concept': 'common name'}, 'child', 'Rick Pitino']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Ernest_Ferdinand,_Duke_of_Brunswick-Lüneburg . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q319027)
[{'concept': 'Q502895'}, 'P40', 'Q319027']
[{'concept': 'common name'}, 'child', 'Ernest Ferdinand, Duke of Brunswick-Lüneburg']
[]
Q3821483 Q697249
SYSTEM
Christine of Hesse-Eschwege, Ferdinand Albert I, Duke of Brunswick-Lüneburg
Q3821483 Q697249
(c(Q502895),P40,Q319027)
action filter_type
action find_reverse
entity Q319027
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q319027']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q319027 . ?a rdf:type ontology:Q502895 }
Christine of Hesse-Eschwege Ferdinand Albert I, Duke of Brunswick-Lüneburg
Christine of Hesse-Eschwege and Ferdinand Albert I, Duke of Brunswick-Lüneburg have that one as an offspring
Christine of Hesse-Eschwege Ferdinand Albert I, Duke of Brunswick-Lüneburg
action filter_type
action find_reverse
entity Ernest Ferdinand, Duke of Brunswick-Lüneburg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ernest Ferdinand, Duke of Brunswick-Lüneburg']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Ernest_Ferdinand,_Duke_of_Brunswick-Lüneburg . ?a rdf:type ontology:common_name }
[]