Simple Question (Direct)
Simple Question
Q215489
P106
Q12737077
USER
What is the job of Franz Pfeffer ?
(Q215489,P106,c(Q12737077))
action filter_type
action find
entity Q215489
relation P106
type Q12737077
['Q215489', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q215489 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Franz Pfeffer
action filter_type
action find
entity Franz Pfeffer
relation occupation
type occupation
['Franz Pfeffer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Franz_Pfeffer property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q193391
SYSTEM
diplomat
Q193391
(Q215489,P106,c(Q12737077))
action filter_type
action find
entity Q215489
relation P106
type Q12737077
The job of Franz Pfeffer is a [ANSWER]
['Q215489', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q215489 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
diplomat
The job of Franz Pfeffer is a diplomat
diplomat
action filter_type
action find
entity Franz Pfeffer
relation occupation
type occupation
['Franz Pfeffer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Franz_Pfeffer property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q215489
P39
Q12737077
USER
Which occupation was a position held by Franz Pfeffer ?
(Q215489,P39,c(Q12737077))
action filter_type
action find
entity Q215489
relation P39
type Q12737077
['Q215489', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q215489 property:P39 ?d }
Franz Pfeffer
action filter_type
action find
entity Franz Pfeffer
relation position held
type occupation
['Franz Pfeffer', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Franz_Pfeffer property:position_held ?d }
[]
occupation
Q22145176
SYSTEM
Ambassador of Germany to France
Q22145176
(Q215489,P39,c(Q12737077))
action filter_type
action find
entity Q215489
relation P39
type Q12737077
[ANSWER] was a position held by Franz Pfeffer
['Q215489', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q215489 property:P39 ?d }
Ambassador of Germany to France
Ambassador of Germany to France was a position held by Franz Pfeffer
Ambassador of Germany to France
action filter_type
action find
entity Franz Pfeffer
relation position held
type occupation
['Franz Pfeffer', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Franz_Pfeffer property:position_held ?d }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q22145176
P39 P21
Q502895
USER
Which people were appointed for the position of Ambassador of Germany to France and have male as the sex ?
AND((c(Q502895),P39,Q22145176), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q22145176
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q22145176'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q22145176 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
male Ambassador of Germany to France
action filter_type
action intersection
action find_reverse
entity Ambassador of Germany to France
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'Ambassador of Germany to France'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:Ambassador_of_Germany_to_France . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
common name
Q214444 Q215483 Q215355 Q214972 Q77851 Q3562916 Q214904 Q2075497 Q214517 Q215542
SYSTEM
Some of them are Immo Stabreit, Hans-Hellmuth Ruete, Sigismund von Braun, Reinhard Schäfers, Wilhelm Hausenstein, Vollrath von Maltzan, Peter Ammon, Peter Hartmann, Nikolaus Meyer-Landrut, Klaus Neubert
Q792189 Q215355 Q214419 Q215483 Q214517 Q214972 Q215554 Q215489 Q214463 Q214444 Q2075497 Q215503 Q214904 Q3562916 Q215492 Q77851 Q215542
AND((c(Q502895),P39,Q22145176), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q22145176
relation P39
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were appointed for the position of Ambassador of Germany to France and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P39', 'Q22145176'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q22145176 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
Axel Herbst Sigismund von Braun Herbert Blankenhorn Hans-Hellmuth Ruete Nikolaus Meyer-Landrut Reinhard Schäfers Manfred Klaiber Franz Pfeffer Fritjof von Nordenskjöld Immo Stabreit Peter Hartmann Franz Jochen Schoeller Peter Ammon Vollrath von Maltzan Jürgen Sudhoff Wilhelm Hausenstein Klaus Neubert
Immo Stabreit, Hans-Hellmuth Ruete, Sigismund von Braun, Reinhard Schäfers, Wilhelm Hausenstein, Vollrath von Maltzan, Peter Ammon, Peter Hartmann, Nikolaus Meyer-Landrut and Klaus Neubert were appointed for the position of Ambassador of Germany to France and have male as the sex
Immo Stabreit Hans-Hellmuth Ruete Sigismund von Braun Reinhard Schäfers Wilhelm Hausenstein Vollrath von Maltzan Peter Ammon Peter Hartmann Nikolaus Meyer-Landrut Klaus Neubert
action filter_type
action intersection
action find_reverse
entity Ambassador of Germany to France
relation position held
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'position held', 'Ambassador of Germany to France'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:Ambassador_of_Germany_to_France . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]