Simple Question (Direct)
Simple Question
Q1346393
P607
Q198
USER
What battle was Rudolf Tobias a part of ?
(Q1346393,P607,c(Q198))
action filter_type
action find
entity Q1346393
relation P607
type Q198
['Q1346393', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q198 . resource:Q1346393 property:P607 ?t }
Rudolf Tobias
action filter_type
action find
entity Rudolf Tobias
relation conflict
type war
['Rudolf Tobias', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:war . resource:Rudolf_Tobias property:conflict ?t }
[]
war
Q361
SYSTEM
World War I
Q361
(Q1346393,P607,c(Q198))
action filter_type
action find
entity Q1346393
relation P607
type Q198
Rudolf Tobias was in [ANSWER]
['Q1346393', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q198 . resource:Q1346393 property:P607 ?t }
World War I
Rudolf Tobias was in World War I
World War I
action filter_type
action find
entity Rudolf Tobias
relation conflict
type war
['Rudolf Tobias', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:war . resource:Rudolf_Tobias property:conflict ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1346393
P509
Q2057971
USER
What caused the death of that person ?
(Q361,P509,c(Q2057971))
action filter_type
action find
entity Q1346393
relation P509
type Q2057971
['Q361', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q1346393 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
Rudolf Tobias
action filter_type
action find
entity Rudolf Tobias
relation cause of death
type health problem
['World War I', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:Rudolf_Tobias property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q361,P509,c(Q2057971))
action filter_type
action find
entity Q1346393
relation P509
type Q2057971
[ANSWER] caused the death of that person
['Q361', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q1346393 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
pneumonia
Pneumonia caused the death of that person
pneumonia
action filter_type
action find
entity Rudolf Tobias
relation cause of death
type health problem
['World War I', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:Rudolf_Tobias property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q61047 Q1346393
P509
Q2057971
USER
Or Gotthold Eisenstein?
OR((Q1346393,P509,c(Q2057971)), (Q61047,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q1346393
relation P509
action find
entity Q61047
relation P509
type Q2057971
{'OR': [['Q1346393', 'P509', {'concept': 'Q2057971'}], ['Q61047', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2057971 . { ?p property:P509 ?s . VALUES ( ?p ) { ( resource:Q61047 ) ( resource:Q1346393 ) } } }
Gotthold Eisenstein Rudolf Tobias
action filter_type
action union
action find
entity Rudolf Tobias
relation cause of death
action find
entity Gotthold Eisenstein
relation cause of death
type health problem
{'OR': [['Rudolf Tobias', 'cause of death', {'concept': 'health problem'}], ['Gotthold Eisenstein', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:health_problem . { ?p property:cause_of_death ?s . VALUES ( ?p ) { ( resource:Gotthold_Eisenstein ) ( resource:Rudolf_Tobias ) } } }
[]
health problem
Q12204 Q12192
SYSTEM
tuberculosis, pneumonia
Q12204 Q12192
OR((Q1346393,P509,c(Q2057971)), (Q61047,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q1346393
relation P509
action find
entity Q61047
relation P509
type Q2057971
[ANSWERS]
{'OR': [['Q1346393', 'P509', {'concept': 'Q2057971'}], ['Q61047', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2057971 . { ?p property:P509 ?s . VALUES ( ?p ) { ( resource:Q61047 ) ( resource:Q1346393 ) } } }
tuberculosis pneumonia
tuberculosis pneumonia
action filter_type
action union
action find
entity Rudolf Tobias
relation cause of death
action find
entity Gotthold Eisenstein
relation cause of death
type health problem
{'OR': [['Rudolf Tobias', 'cause of death', {'concept': 'health problem'}], ['Gotthold Eisenstein', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:health_problem . { ?p property:cause_of_death ?s . VALUES ( ?p ) { ( resource:Gotthold_Eisenstein ) ( resource:Rudolf_Tobias ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3983843
P509
Q502895
USER
Did Teodone die from those health problems ?
(Q3983843,P509,Q12204) (Q3983843,P509,Q12192)
action is_in
entity prev_answer
action find
entity Q3983843
relation P509
['Q3983843', 'P509', 'Q12204'] ['Q3983843', 'P509', 'Q12192']
ASK WHERE { VALUES ( ?v ) { ( resource:Q12204 ) ( resource:Q12192 ) } . resource:Q3983843 property:P509 ?v }
Teodone
action is_in
entity prev_answer
action find
entity Teodone
relation cause of death
['Teodone', 'cause of death', 'tuberculosis'] ['Teodone', 'cause of death', 'pneumonia']
ASK WHERE { VALUES ( ?v ) { ( resource:tuberculosis ) ( resource:pneumonia ) } . resource:Teodone property:cause_of_death ?v }
[]
common name
SYSTEM
NO
(Q3983843,P509,Q12204) (Q3983843,P509,Q12192)
action is_in
entity prev_answer
action find
entity Q3983843
relation P509
[ANSWER]
['Q3983843', 'P509', 'Q12204'] ['Q3983843', 'P509', 'Q12192']
ASK WHERE { VALUES ( ?v ) { ( resource:Q12204 ) ( resource:Q12192 ) } . resource:Q3983843 property:P509 ?v }
No
action is_in
entity prev_answer
action find
entity Teodone
relation cause of death
['Teodone', 'cause of death', 'tuberculosis'] ['Teodone', 'cause of death', 'pneumonia']
ASK WHERE { VALUES ( ?v ) { ( resource:tuberculosis ) ( resource:pneumonia ) } . resource:Teodone property:cause_of_death ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12204 Q18037162
P2293
Q863908
USER
Does ZFPM2 have genetic connection with tuberculosis ?
(Q12204,P2293,Q18037162)
action is_in
entity Q18037162
action find
entity Q12204
relation P2293
['Q12204', 'P2293', 'Q18037162']
ASK WHERE { resource:Q12204 property:P2293 resource:Q18037162 }
tuberculosis ZFPM2
action is_in
entity ZFPM2
action find
entity tuberculosis
relation genetic association
['tuberculosis', 'genetic association', 'ZFPM2']
ASK WHERE { resource:tuberculosis property:genetic_association resource:ZFPM2 }
[]
nucleic acid sequence
SYSTEM
YES
(Q12204,P2293,Q18037162)
action is_in
entity Q18037162
action find
entity Q12204
relation P2293
[ANSWER]
['Q12204', 'P2293', 'Q18037162']
ASK WHERE { resource:Q12204 property:P2293 resource:Q18037162 }
Yes
action is_in
entity ZFPM2
action find
entity tuberculosis
relation genetic association
['tuberculosis', 'genetic association', 'ZFPM2']
ASK WHERE { resource:tuberculosis property:genetic_association resource:ZFPM2 }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q361 Q408668
P1196
Q502895
USER
How many people died as World War I or ricin ?
(c(Q502895),P1196,Q361) (c(Q502895),P1196,Q408668)
action count
action union
action filter_type
action find_reverse
entity Q361
relation P1196
type Q502895
action filter_type
action find_reverse
entity Q408668
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q361'] [{'concept': 'Q502895'}, 'P1196', 'Q408668']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P1196 resource:Q361 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P1196 resource:Q408668 . ?s rdf:type ontology:Q502895 } }
World War I ricin
action count
action union
action filter_type
action find_reverse
entity World War I
relation manner of death
type common name
action filter_type
action find_reverse
entity ricin
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'World War I'] [{'concept': 'common name'}, 'manner of death', 'ricin']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:manner_of_death resource:World_War_I . ?s rdf:type ontology:common_name } UNION { ?s property:manner_of_death resource:ricin . ?s rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q20897950 Q446534 Q20539063
(c(Q502895),P1196,Q361) (c(Q502895),P1196,Q408668)
action count
action union
action filter_type
action find_reverse
entity Q361
relation P1196
type Q502895
action filter_type
action find_reverse
entity Q408668
relation P1196
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1196', 'Q361'] [{'concept': 'Q502895'}, 'P1196', 'Q408668']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P1196 resource:Q361 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P1196 resource:Q408668 . ?s rdf:type ontology:Q502895 } }
Georges Peignot Lyudmila Zhivkova Marcel Casadesus
3
action count
action union
action filter_type
action find_reverse
entity World War I
relation manner of death
type common name
action filter_type
action find_reverse
entity ricin
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'World War I'] [{'concept': 'common name'}, 'manner of death', 'ricin']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:manner_of_death resource:World_War_I . ?s rdf:type ontology:common_name } UNION { ?s property:manner_of_death resource:ricin . ?s rdf:type ontology:common_name } }
[]