Simple Question (Direct)
Simple Question
Q11671015
P509
Q2057971
USER
What lead to the death of Kenji Takahashi ?
(Q11671015,P509,c(Q2057971))
action filter_type
action find
entity Q11671015
relation P509
type Q2057971
['Q11671015', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { resource:Q11671015 property:P509 ?h . ?h rdf:type ontology:Q2057971 }
Kenji Takahashi
action filter_type
action find
entity Kenji Takahashi
relation cause of death
type health problem
['Kenji Takahashi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { resource:Kenji_Takahashi property:cause_of_death ?h . ?h rdf:type ontology:health_problem }
[]
health problem
Q48143
SYSTEM
meningitis
Q48143
(Q11671015,P509,c(Q2057971))
action filter_type
action find
entity Q11671015
relation P509
type Q2057971
[ANSWER] lead to the death of Kenji Takahashi
['Q11671015', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { resource:Q11671015 property:P509 ?h . ?h rdf:type ontology:Q2057971 }
meningitis
Meningitis lead to the death of Kenji Takahashi
meningitis
action filter_type
action find
entity Kenji Takahashi
relation cause of death
type health problem
['Kenji Takahashi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { resource:Kenji_Takahashi property:cause_of_death ?h . ?h rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q48143
P1050
Q502895
USER
Which person suffers from that health problem ?
(c(Q502895),P1050,Q48143)
action filter_type
action find_reverse
entity Q48143
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q48143']
SELECT DISTINCT ?b WHERE { ?b property:P1050 resource:Q48143 . ?b rdf:type ontology:Q502895 }
meningitis
action filter_type
action find_reverse
entity meningitis
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'meningitis']
SELECT DISTINCT ?b WHERE { ?b property:medical_condition resource:meningitis . ?b rdf:type ontology:common_name }
[]
common name
Q1396646
SYSTEM
Olga Skorokhodova
Q1396646
(c(Q502895),P1050,Q48143)
action filter_type
action find_reverse
entity Q48143
relation P1050
type Q502895
[ANSWER] suffers from that health problem
[{'concept': 'Q502895'}, 'P1050', 'Q48143']
SELECT DISTINCT ?b WHERE { ?b property:P1050 resource:Q48143 . ?b rdf:type ontology:Q502895 }
Olga Skorokhodova
Olga Skorokhodova suffers from that health problem
Olga Skorokhodova
action filter_type
action find_reverse
entity meningitis
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'meningitis']
SELECT DISTINCT ?b WHERE { ?b property:medical_condition resource:meningitis . ?b rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1928978
P1542
Q2057971 Q8386 Q12136
USER
Which health problems are the effects of more number of drugs and diseases than viral infectious disease ?
(c(Q8386)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q1928978
relation P1542
type Q8386
type Q12136
[[{'concept': 'Q8386'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?p WHERE { { ?j property:P1542 ?p . ?j rdf:type ontology:Q8386 . ?p rdf:type ontology:Q2057971 } UNION { ?j property:P1542 ?p . ?p rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q12136 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { { ?t rdf:type ontology:Q12136 } UNION { ?t rdf:type ontology:Q8386 } } . ?t property:P1542 resource:Q1928978 } } . FILTER ( ?s > ?u ) }
viral infectious disease
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity viral infectious disease
relation cause of
type drug
type disease
[[{'concept': 'drug'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?p WHERE { { ?j property:cause_of ?p . ?j rdf:type ontology:drug . ?p rdf:type ontology:health_problem } UNION { ?j property:cause_of ?p . ?p rdf:type ontology:health_problem . ?j rdf:type ontology:disease } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { { ?t rdf:type ontology:disease } UNION { ?t rdf:type ontology:drug } } . ?t property:cause_of resource:viral_infectious_disease } } . FILTER ( ?s > ?u ) }
[]
health problem drug disease
Q208414 Q47912 Q147778
SYSTEM
lymphoma, lung cancer, liver cirrhosis
Q229256 Q13452408 Q5062120 Q835061 Q147778 Q208414 Q127724 Q5445 Q47912 Q68833
(c(Q8386)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q1928978
relation P1542
type Q8386
type Q12136
[ANSWERS] are the effects of more number of drugs and diseases than viral infectious disease
[[{'concept': 'Q8386'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?p WHERE { { ?j property:P1542 ?p . ?j rdf:type ontology:Q8386 . ?p rdf:type ontology:Q2057971 } UNION { ?j property:P1542 ?p . ?p rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q12136 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { { ?t rdf:type ontology:Q12136 } UNION { ?t rdf:type ontology:Q8386 } } . ?t property:P1542 resource:Q1928978 } } . FILTER ( ?s > ?u ) }
dermatitis neuropathy central nervous system depression mastitis liver cirrhosis lymphoma cataract anemia lung cancer bone fracture
Lymphoma, lung cancer and liver cirrhosis are the effects of more number of drugs and diseases than viral infectious disease
lymphoma lung cancer liver cirrhosis
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity viral infectious disease
relation cause of
type drug
type disease
[[{'concept': 'drug'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?p WHERE { { ?j property:cause_of ?p . ?j rdf:type ontology:drug . ?p rdf:type ontology:health_problem } UNION { ?j property:cause_of ?p . ?p rdf:type ontology:health_problem . ?j rdf:type ontology:disease } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { { ?t rdf:type ontology:disease } UNION { ?t rdf:type ontology:drug } } . ?t property:cause_of resource:viral_infectious_disease } } . FILTER ( ?s > ?u ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q208414 Q47912 Q147778
P1542
Q12136
USER
Which diseases result in those health problems ?
(c(Q12136),P1542,Q208414) (c(Q12136),P1542,Q47912) (c(Q12136),P1542,Q147778)
action filter_type
action find_reverse
entity prev_answer
relation P1542
type Q12136
[{'concept': 'Q12136'}, 'P1542', 'Q208414'] [{'concept': 'Q12136'}, 'P1542', 'Q47912'] [{'concept': 'Q12136'}, 'P1542', 'Q147778']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12136 . ?n property:P1542 ?t . VALUES ( ?t ) { ( resource:Q229256 ) ( resource:Q13452408 ) ( resource:Q5062120 ) } }
lymphoma lung cancer liver cirrhosis
action filter_type
action find_reverse
entity prev_answer
relation cause of
type disease
[{'concept': 'disease'}, 'cause of', 'lymphoma'] [{'concept': 'disease'}, 'cause of', 'lung cancer'] [{'concept': 'disease'}, 'cause of', 'liver cirrhosis']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:disease . ?n property:cause_of ?t . VALUES ( ?t ) { ( resource:dermatitis ) ( resource:neuropathy ) ( resource:central_nervous_system_depression ) } }
[]
disease
Q730249 Q730249 Q15326
SYSTEM
alcoholism for 3rd, arsenic poisoning for 1st, 2nd
Q730249 Q730249 Q15326
(c(Q12136),P1542,Q208414) (c(Q12136),P1542,Q47912) (c(Q12136),P1542,Q147778)
action filter_type
action find_reverse
entity prev_answer
relation P1542
type Q12136
[ANSWERS]
[{'concept': 'Q12136'}, 'P1542', 'Q208414'] [{'concept': 'Q12136'}, 'P1542', 'Q47912'] [{'concept': 'Q12136'}, 'P1542', 'Q147778']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12136 . ?n property:P1542 ?t . VALUES ( ?t ) { ( resource:Q229256 ) ( resource:Q13452408 ) ( resource:Q5062120 ) } }
arsenic poisoning arsenic poisoning alcoholism
Arsenic poisoning, arsenic poisoning and alcoholism result in those health problems
arsenic poisoning arsenic poisoning alcoholism
action filter_type
action find_reverse
entity prev_answer
relation cause of
type disease
[{'concept': 'disease'}, 'cause of', 'lymphoma'] [{'concept': 'disease'}, 'cause of', 'lung cancer'] [{'concept': 'disease'}, 'cause of', 'liver cirrhosis']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:disease . ?n property:cause_of ?t . VALUES ( ?t ) { ( resource:dermatitis ) ( resource:neuropathy ) ( resource:central_nervous_system_depression ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15326
P828
Q2057971
USER
What does that disease cause ?
(c(Q2057971),P828,Q15326)
action filter_type
action find_reverse
entity Q15326
relation P828
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q15326']
SELECT DISTINCT ?f WHERE { ?f property:P828 resource:Q15326 . ?f rdf:type ontology:Q2057971 }
alcoholism
action filter_type
action find_reverse
entity alcoholism
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', 'alcoholism']
SELECT DISTINCT ?f WHERE { ?f property:has_cause resource:alcoholism . ?f rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q15326
SYSTEM
Did you mean alcoholism ?
Q730249 Q730249 Q15326
(c(Q2057971),P828,Q730249) (c(Q2057971),P828,Q730249) (c(Q2057971),P828,Q15326)
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', 'Q730249'] [{'concept': 'Q2057971'}, 'P828', 'Q730249'] [{'concept': 'Q2057971'}, 'P828', 'Q15326']
SELECT DISTINCT ?f WHERE { ?f property:P828 resource:Q15326 . ?f rdf:type ontology:Q2057971 }
arsenic poisoning arsenic poisoning alcoholism
Did you mean alcoholism ?
alcoholism
[{'concept': 'health problem'}, 'has cause', 'arsenic poisoning'] [{'concept': 'health problem'}, 'has cause', 'arsenic poisoning'] [{'concept': 'health problem'}, 'has cause', 'alcoholism']
SELECT DISTINCT ?f WHERE { ?f property:has_cause resource:alcoholism . ?f rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2057971),P828,Q15326)
[{'concept': 'Q2057971'}, 'P828', 'Q15326']
[{'concept': 'health problem'}, 'has cause', 'alcoholism']
[]
Q147778
SYSTEM
liver cirrhosis
Q147778
(c(Q2057971),P828,Q15326)
action filter_type
action find_reverse
entity Q15326
relation P828
type Q2057971
That disease causes the [ANSWER]
[{'concept': 'Q2057971'}, 'P828', 'Q15326']
SELECT DISTINCT ?f WHERE { ?f property:P828 resource:Q15326 . ?f rdf:type ontology:Q2057971 }
liver cirrhosis
That disease causes the liver cirrhosis
liver cirrhosis
action filter_type
action find_reverse
entity alcoholism
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', 'alcoholism']
SELECT DISTINCT ?f WHERE { ?f property:has_cause resource:alcoholism . ?f rdf:type ontology:health_problem }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q796194 Q2057971
USER
Which medical procedures leads to min number of health problems ?
(c(Q2057971),P828,Q974135)
action argmin
action find_reverse_tuple_counts
relation P828
type Q796194
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q974135']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?o ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:P828 ?t . ?q rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q796194 } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?h ) WHERE { ?f rdf:type ontology:Q796194 . ?z rdf:type ontology:Q2057971 . ?z property:P828 ?f } GROUP BY ?f } . FILTER ( ?h = ?o ) }
action argmin
action find_reverse_tuple_counts
relation has cause
type medical procedure
type health problem
[{'concept': 'health problem'}, 'has cause', 'chemotherapy']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?o ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:has_cause ?t . ?q rdf:type ontology:health_problem . ?t rdf:type ontology:medical_procedure } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?h ) WHERE { ?f rdf:type ontology:medical_procedure . ?z rdf:type ontology:health_problem . ?z property:has_cause ?f } GROUP BY ?f } . FILTER ( ?h = ?o ) }
[]
medical procedure health problem
Q974135
SYSTEM
chemotherapy
Q974135
(c(Q2057971),P828,Q974135)
action argmin
action find_reverse_tuple_counts
relation P828
type Q796194
type Q2057971
[ANSWER] leads to min number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q974135']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?o ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:P828 ?t . ?q rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q796194 } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?h ) WHERE { ?f rdf:type ontology:Q796194 . ?z rdf:type ontology:Q2057971 . ?z property:P828 ?f } GROUP BY ?f } . FILTER ( ?h = ?o ) }
chemotherapy
Chemotherapy leads to min number of health problems
chemotherapy
action argmin
action find_reverse_tuple_counts
relation has cause
type medical procedure
type health problem
[{'concept': 'health problem'}, 'has cause', 'chemotherapy']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?o ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q property:has_cause ?t . ?q rdf:type ontology:health_problem . ?t rdf:type ontology:medical_procedure } GROUP BY ?t } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?h ) WHERE { ?f rdf:type ontology:medical_procedure . ?z rdf:type ontology:health_problem . ?z property:has_cause ?f } GROUP BY ?f } . FILTER ( ?h = ?o ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q181394 Q2057971
USER
Which nutrients are the underlying cause of min number of health problems ?
(c(Q2057971),P828,Q419507)
action argmin
action find_reverse_tuple_counts
relation P828
type Q181394
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q419507']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:P828 ?p . ?p rdf:type ontology:Q181394 . ?v rdf:type ontology:Q2057971 } GROUP BY ?p } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P828 ?q . ?q rdf:type ontology:Q181394 . ?j rdf:type ontology:Q2057971 } GROUP BY ?q } }
action argmin
action find_reverse_tuple_counts
relation has cause
type nutrient
type health problem
[{'concept': 'health problem'}, 'has cause', 'Microtubule-associated protein tau']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:has_cause ?p . ?p rdf:type ontology:nutrient . ?v rdf:type ontology:health_problem } GROUP BY ?p } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:has_cause ?q . ?q rdf:type ontology:nutrient . ?j rdf:type ontology:health_problem } GROUP BY ?q } }
[]
nutrient health problem
Q408668
SYSTEM
ricin
Q408668
(c(Q2057971),P828,Q419507)
action argmin
action find_reverse_tuple_counts
relation P828
type Q181394
type Q2057971
[ANSWER] is the underlying cause of min number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q419507']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:P828 ?p . ?p rdf:type ontology:Q181394 . ?v rdf:type ontology:Q2057971 } GROUP BY ?p } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P828 ?q . ?q rdf:type ontology:Q181394 . ?j rdf:type ontology:Q2057971 } GROUP BY ?q } }
ricin
Ricin is the underlying cause of min number of health problems
ricin
action argmin
action find_reverse_tuple_counts
relation has cause
type nutrient
type health problem
[{'concept': 'health problem'}, 'has cause', 'Microtubule-associated protein tau']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?r ) { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v property:has_cause ?p . ?p rdf:type ontology:nutrient . ?v rdf:type ontology:health_problem } GROUP BY ?p } } . FILTER ( ?f = ?r ) . { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:has_cause ?q . ?q rdf:type ontology:nutrient . ?j rdf:type ontology:health_problem } GROUP BY ?q } }
[]