Simple Question (Direct)
Simple Question
Q3174222
P410
Q4189293
USER
What is the title conferred upon Jean Rannou ?
(Q3174222,P410,c(Q4189293))
action filter_type
action find
entity Q3174222
relation P410
type Q4189293
['Q3174222', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q4189293 . resource:Q3174222 property:P410 ?c }
Jean Rannou
action filter_type
action find
entity Jean Rannou
relation military rank
type title
['Jean Rannou', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:title . resource:Jean_Rannou property:military_rank ?c }
[]
title
Q2300063
SYSTEM
Army General
Q2300063
(Q3174222,P410,c(Q4189293))
action filter_type
action find
entity Q3174222
relation P410
type Q4189293
The title conferred upon Jean Rannou is an [ANSWER]
['Q3174222', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q4189293 . resource:Q3174222 property:P410 ?c }
Army General
The title conferred upon Jean Rannou is an Army General
Army General
action filter_type
action find
entity Jean Rannou
relation military rank
type title
['Jean Rannou', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:title . resource:Jean_Rannou property:military_rank ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3174222
P106
Q12737077
USER
What are the professions of Jean Rannou ?
(Q3174222,P106,c(Q12737077))
action filter_type
action find
entity Q3174222
relation P106
type Q12737077
['Q3174222', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q3174222 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Jean Rannou
action filter_type
action find
entity Jean Rannou
relation occupation
type occupation
['Jean Rannou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Jean_Rannou property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q618694 Q47064
SYSTEM
fighter pilot, military personnel
Q618694 Q47064
(Q3174222,P106,c(Q12737077))
action filter_type
action find
entity Q3174222
relation P106
type Q12737077
The professions of Jean Rannou are a [ANSWERS]
['Q3174222', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q3174222 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
fighter pilot military personnel
The professions of Jean Rannou are a fighter pilot and military personnel
fighter pilot military personnel
action filter_type
action find
entity Jean Rannou
relation occupation
type occupation
['Jean Rannou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Jean_Rannou property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6163719
Q12737077
USER
And what about Virginia Guedea?
(Q6163719,P106,c(Q12737077))
action filter_type
action find
entity Q6163719
relation P106
type Q12737077
['Q6163719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q6163719 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Virginia Guedea
action filter_type
action find
entity Virginia Guedea
relation occupation
type occupation
['Virginia Guedea', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Virginia_Guedea property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q201788 Q462390 Q36180
SYSTEM
historian, docent, writer
Q201788 Q462390 Q36180
(Q6163719,P106,c(Q12737077))
action filter_type
action find
entity Q6163719
relation P106
type Q12737077
[ANSWERS]
['Q6163719', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q6163719 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
historian docent writer
historian docent writer
action filter_type
action find
entity Virginia Guedea
relation occupation
type occupation
['Virginia Guedea', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Virginia_Guedea property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36180
P180
Q838948
USER
Which work of art demonstrates that occupation ?
(c(Q838948),P180,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P180 resource:Q36180 . ?w rdf:type ontology:Q838948 }
writer
action filter_type
action find_reverse
entity writer
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:depicts resource:writer . ?w rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q201788
SYSTEM
Did you mean historian ?
Q201788 Q462390 Q36180
(c(Q838948),P180,Q201788) (c(Q838948),P180,Q462390) (c(Q838948),P180,Q36180)
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q201788'] [{'concept': 'Q838948'}, 'P180', 'Q462390'] [{'concept': 'Q838948'}, 'P180', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P180 resource:Q36180 . ?w rdf:type ontology:Q838948 }
historian docent writer
Did you mean historian ?
historian
[{'concept': 'work of art'}, 'depicts', 'historian'] [{'concept': 'work of art'}, 'depicts', 'docent'] [{'concept': 'work of art'}, 'depicts', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:depicts resource:writer . ?w rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant writer. Could you tell me the answer for that?
(c(Q838948),P180,Q36180)
Q36180
[{'concept': 'Q838948'}, 'P180', 'Q36180']
[{'concept': 'work of art'}, 'depicts', 'writer']
[]
Q19204877
SYSTEM
D'Alembert
Q19204877
(c(Q838948),P180,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P180
type Q838948
[ANSWER] demonstrates that occupation
[{'concept': 'Q838948'}, 'P180', 'Q36180']
SELECT DISTINCT ?w WHERE { ?w property:P180 resource:Q36180 . ?w rdf:type ontology:Q838948 }
D'Alembert
D'Alembert demonstrates that occupation
D'Alembert
action filter_type
action find_reverse
entity writer
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'writer']
SELECT DISTINCT ?w WHERE { ?w property:depicts resource:writer . ?w rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19204877 Q23681699
P180
Q502895
USER
Is André Sloth depicted in D'Alembert ?
(Q19204877,P180,Q23681699)
action is_in
entity Q23681699
action find
entity Q19204877
relation P180
['Q19204877', 'P180', 'Q23681699']
ASK WHERE { resource:Q19204877 property:P180 resource:Q23681699 }
D'Alembert André Sloth
action is_in
entity André Sloth
action find
entity D'Alembert
relation depicts
["D'Alembert", 'depicts', 'André Sloth']
ASK WHERE { resource:D'Alembert property:depicts resource:André_Sloth }
[]
common name
SYSTEM
NO
(Q19204877,P180,Q23681699)
action is_in
entity Q23681699
action find
entity Q19204877
relation P180
[ANSWER]
['Q19204877', 'P180', 'Q23681699']
ASK WHERE { resource:Q19204877 property:P180 resource:Q23681699 }
No
action is_in
entity André Sloth
action find
entity D'Alembert
relation depicts
["D'Alembert", 'depicts', 'André Sloth']
ASK WHERE { resource:D'Alembert property:depicts resource:André_Sloth }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q36180
P39 P21
Q502895
USER
Which people were responsible for occupying the position of writer and are a male ?
AND((c(Q502895),P39,Q36180), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q36180
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q36180'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P39 resource:Q36180 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male writer
action filter_type
action intersection
action find_reverse
entity writer
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'writer'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:position_held resource:writer . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q163042 Q723621 Q5945149 Q11294693 Q4255270
SYSTEM
David Duke, Paul Nizan, José Rocamora, Henri de Saint-Ignace, Mariano Roca de Togores, 1st Marquis of Molins
Q163042 Q723621 Q5945149 Q11294693 Q4255270
AND((c(Q502895),P39,Q36180), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q36180
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q36180'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P39 resource:Q36180 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
David Duke Paul Nizan José Rocamora Henri de Saint-Ignace Mariano Roca de Togores, 1st Marquis of Molins
David Duke, Paul Nizan, José Rocamora, Henri de Saint-Ignace and Mariano Roca de Togores, 1st Marquis of Molins were responsible for occupying the position of writer and are a male
David Duke Paul Nizan José Rocamora Henri de Saint-Ignace Mariano Roca de Togores, 1st Marquis of Molins
action filter_type
action intersection
action find_reverse
entity writer
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'writer'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:position_held resource:writer . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]