Simple Question (Direct)
Simple Question
Q314418
P162
Q502895
USER
Who is the creator of Mephisto ?
(Q314418,P162,c(Q502895))
action filter_type
action find
entity Q314418
relation P162
type Q502895
['Q314418', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q314418 property:P162 ?i . ?i rdf:type ontology:Q502895 }
Mephisto
action filter_type
action find
entity Mephisto
relation producer
type common name
['Mephisto', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Mephisto property:producer ?i . ?i rdf:type ontology:common_name }
[]
common name
Q99907
SYSTEM
Manfred Durniok
Q99907
(Q314418,P162,c(Q502895))
action filter_type
action find
entity Q314418
relation P162
type Q502895
The creator of Mephisto is the [ANSWER]
['Q314418', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q314418 property:P162 ?i . ?i rdf:type ontology:Q502895 }
Manfred Durniok
The creator of Mephisto is the Manfred Durniok
Manfred Durniok
action filter_type
action find
entity Mephisto
relation producer
type common name
['Mephisto', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Mephisto property:producer ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q314418
P921
Q7275
USER
What topic was discussed in that work of art ?
(Q99907,P921,c(Q7275))
action filter_type
action find
entity Q314418
relation P921
type Q7275
['Q99907', 'P921', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7275 . resource:Q314418 property:P921 ?t }
Mephisto
action filter_type
action find
entity Mephisto
relation main subject
type state
['Manfred Durniok', 'main subject', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:state . resource:Mephisto property:main_subject ?t }
[]
state
Q7318
SYSTEM
Nazi Germany
Q7318
(Q99907,P921,c(Q7275))
action filter_type
action find
entity Q314418
relation P921
type Q7275
[ANSWER] was discussed in that work of art
['Q99907', 'P921', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7275 . resource:Q314418 property:P921 ?t }
Nazi Germany
Nazi Germany was discussed in that work of art
Nazi Germany
action filter_type
action find
entity Mephisto
relation main subject
type state
['Manfred Durniok', 'main subject', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:state . resource:Mephisto property:main_subject ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7318 Q64
P36
Q56061
USER
Is Berlin known as the capital of that state ?
(Q7318,P36,Q64)
action is_in
entity Q64
action find
entity Q7318
relation P36
['Q7318', 'P36', 'Q64']
ASK WHERE { resource:Q7318 property:P36 resource:Q64 }
Nazi Germany Berlin
action is_in
entity Berlin
action find
entity Nazi Germany
relation capital
['Nazi Germany', 'capital', 'Berlin']
ASK WHERE { resource:Nazi_Germany property:capital resource:Berlin }
[]
administrative territorial entity
SYSTEM
YES
(Q7318,P36,Q64)
action is_in
entity Q64
action find
entity Q7318
relation P36
[ANSWER]
['Q7318', 'P36', 'Q64']
ASK WHERE { resource:Q7318 property:P36 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Nazi Germany
relation capital
['Nazi Germany', 'capital', 'Berlin']
ASK WHERE { resource:Nazi_Germany property:capital resource:Berlin }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q432930 Q7318
P35 P344
Q502895
USER
Which people are elected as the head of state of Nazi Germany or are the cinematographers of The Student Prince in Old Heidelberg ?
OR((Q7318,P35,c(Q502895)), (Q432930,P344,c(Q502895)))
action filter_type
action union
action find
entity Q7318
relation P35
action find
entity Q432930
relation P344
type Q502895
{'OR': [['Q7318', 'P35', {'concept': 'Q502895'}], ['Q432930', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q7318 property:P35 ?t } UNION { resource:Q432930 property:P344 ?t } } . ?t rdf:type ontology:Q502895 }
The Student Prince in Old Heidelberg Nazi Germany
action filter_type
action union
action find
entity Nazi Germany
relation head of state
action find
entity The Student Prince in Old Heidelberg
relation director of photography
type common name
{'OR': [['Nazi Germany', 'head of state', {'concept': 'common name'}], ['The Student Prince in Old Heidelberg', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nazi_Germany property:head_of_state ?t } UNION { resource:The_Student_Prince_in_Old_Heidelberg property:director_of_photography ?t } } . ?t rdf:type ontology:common_name }
[]
common name
Q352 Q2667 Q76437 Q1700581
SYSTEM
Adolf Hitler, Paul von Hindenburg, Karl Dönitz, John J. Mescall
Q352 Q2667 Q76437 Q1700581
OR((Q7318,P35,c(Q502895)), (Q432930,P344,c(Q502895)))
action filter_type
action union
action find
entity Q7318
relation P35
action find
entity Q432930
relation P344
type Q502895
[ANSWERS] are elected as the head of state of Nazi Germany or are the cinematographers of The Student Prince in Old Heidelberg
{'OR': [['Q7318', 'P35', {'concept': 'Q502895'}], ['Q432930', 'P344', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q7318 property:P35 ?t } UNION { resource:Q432930 property:P344 ?t } } . ?t rdf:type ontology:Q502895 }
Adolf Hitler Paul von Hindenburg Karl Dönitz John J. Mescall
Adolf Hitler, Paul von Hindenburg, Karl Dönitz and John J. Mescall are elected as the head of state of Nazi Germany or are the cinematographers of The Student Prince in Old Heidelberg
Adolf Hitler Paul von Hindenburg Karl Dönitz John J. Mescall
action filter_type
action union
action find
entity Nazi Germany
relation head of state
action find
entity The Student Prince in Old Heidelberg
relation director of photography
type common name
{'OR': [['Nazi Germany', 'head of state', {'concept': 'common name'}], ['The Student Prince in Old Heidelberg', 'director of photography', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nazi_Germany property:head_of_state ?t } UNION { resource:The_Student_Prince_in_Old_Heidelberg property:director_of_photography ?t } } . ?t rdf:type ontology:common_name }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q502895 Q15850590
USER
How many people were greater number of theatrical genres inspired by than that person ?
(c(Q15850590),P941,c(Q502895))
[{'concept': 'Q15850590'}, 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q502895 }
[{'concept': 'theatrical genre'}, 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:common_name }
[]
common name theatrical genre
Comparative|Count over More/Less|Single entity type|Clarification
Q352
SYSTEM
Did you mean Adolf Hitler ?
(c(Q15850590),P941,c(Q502895))
[ANSWER]
[{'concept': 'Q15850590'}, 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q502895 }
Did you mean Adolf Hitler ?
Adolf Hitler
[{'concept': 'theatrical genre'}, 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q15850590),P941,c(Q502895))
[{'concept': 'Q15850590'}, 'P941', {'concept': 'Q502895'}]
[{'concept': 'theatrical genre'}, 'inspired by', {'concept': 'common name'}]
[]
SYSTEM
3
Q312502 Q3560424 Q123075
(c(Q15850590),P941,c(Q502895))
[ANSWER]
[{'concept': 'Q15850590'}, 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q502895 }
Fiorello H. La Guardia Violet Gordon-Woodhouse Robert Walser
3
[{'concept': 'theatrical genre'}, 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:common_name }
[]