Simple Question (Direct)
Simple Question
Q683299
P509
Q2057971
USER
What lead to the death of Stephen Boyd ?
(Q683299,P509,c(Q2057971))
action filter_type
action find
entity Q683299
relation P509
type Q2057971
['Q683299', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q683299 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
Stephen Boyd
action filter_type
action find
entity Stephen Boyd
relation cause of death
type health problem
['Stephen Boyd', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Stephen_Boyd property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q683299,P509,c(Q2057971))
action filter_type
action find
entity Q683299
relation P509
type Q2057971
[ANSWER] lead to the death of Stephen Boyd
['Q683299', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q683299 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction lead to the death of Stephen Boyd
myocardial infarction
action filter_type
action find
entity Stephen Boyd
relation cause of death
type health problem
['Stephen Boyd', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Stephen_Boyd property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q683299
P1196
Q1931388
USER
What situation did Stephen Boyd die in ?
(Q683299,P1196,c(Q1931388))
action filter_type
action find
entity Q683299
relation P1196
type Q1931388
['Q683299', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?o WHERE { resource:Q683299 property:P1196 ?o . ?o rdf:type ontology:Q1931388 }
Stephen Boyd
action filter_type
action find
entity Stephen Boyd
relation manner of death
type cause of death
['Stephen Boyd', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?o WHERE { resource:Stephen_Boyd property:manner_of_death ?o . ?o rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q683299,P1196,c(Q1931388))
action filter_type
action find
entity Q683299
relation P1196
type Q1931388
Stephen Boyd died of [ANSWER]
['Q683299', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?o WHERE { resource:Q683299 property:P1196 ?o . ?o rdf:type ontology:Q1931388 }
natural causes
Stephen Boyd died of natural causes
natural causes
action filter_type
action find
entity Stephen Boyd
relation manner of death
type cause of death
['Stephen Boyd', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?o WHERE { resource:Stephen_Boyd property:manner_of_death ?o . ?o rdf:type ontology:cause_of_death }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q727740
Q1931388
USER
And what about Cornel Wilde?
(Q727740,P1196,c(Q1931388))
action filter_type
action find
entity Q727740
relation P1196
type Q1931388
['Q727740', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?b WHERE { resource:Q727740 property:P1196 ?b . ?b rdf:type ontology:Q1931388 }
Cornel Wilde
action filter_type
action find
entity Cornel Wilde
relation manner of death
type cause of death
['Cornel Wilde', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?b WHERE { resource:Cornel_Wilde property:manner_of_death ?b . ?b rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q727740,P1196,c(Q1931388))
action filter_type
action find
entity Q727740
relation P1196
type Q1931388
[ANSWER]
['Q727740', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?b WHERE { resource:Q727740 property:P1196 ?b . ?b rdf:type ontology:Q1931388 }
natural causes
natural causes
action filter_type
action find
entity Cornel Wilde
relation manner of death
type cause of death
['Cornel Wilde', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?b WHERE { resource:Cornel_Wilde property:manner_of_death ?b . ?b rdf:type ontology:cause_of_death }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q1441305
USER
Which medical signs do exactly 1 health problem lead to ?
(c(Q1441305),P828,c(Q2057971))
action equal
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?a ) WHERE { ?t property:P828 ?j . ?t rdf:type ontology:Q1441305 . ?j rdf:type ontology:Q2057971 } GROUP BY ?t } . FILTER ( ?a = 1 ) }
action equal
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?a ) WHERE { ?t property:has_cause ?j . ?t rdf:type ontology:medical_sign . ?j rdf:type ontology:health_problem } GROUP BY ?t } . FILTER ( ?a = 1 ) }
[]
health problem medical sign
Q189643 Q1938763 Q1404110
SYSTEM
delusion, fecal vomiting, greyout
Q1938763 Q189643 Q1404110 Q1566762 Q5893790 Q21402569
(c(Q1441305),P828,c(Q2057971))
action equal
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[ANSWERS] exactly 1 health problem lead to
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?a ) WHERE { ?t property:P828 ?j . ?t rdf:type ontology:Q1441305 . ?j rdf:type ontology:Q2057971 } GROUP BY ?t } . FILTER ( ?a = 1 ) }
fecal vomiting delusion greyout steeple sign Honeycombing rice water diarrhea
Delusion, fecal vomiting and greyout exactly 1 health problem lead to
delusion fecal vomiting greyout
action equal
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?a ) WHERE { ?t property:has_cause ?j . ?t rdf:type ontology:medical_sign . ?j rdf:type ontology:health_problem } GROUP BY ?t } . FILTER ( ?a = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P780
Q1441305 Q2057971
USER
Which health problems are exactly 2 medical signs a symtom of ?
(c(Q2057971),P780,c(Q1441305))
action equal
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
value 2
[{'concept': 'Q2057971'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?a = 2 ) . { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?a ) WHERE { ?z property:P780 ?n . ?z rdf:type ontology:Q2057971 . ?n rdf:type ontology:Q1441305 } GROUP BY ?z } }
action equal
action find_tuple_counts
relation symptoms
type health problem
type medical sign
value 2
[{'concept': 'health problem'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?a = 2 ) . { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?a ) WHERE { ?z property:symptoms ?n . ?z rdf:type ontology:health_problem . ?n rdf:type ontology:medical_sign } GROUP BY ?z } }
[]
medical sign health problem
Q131755 Q212961 Q264118
SYSTEM
bipolar disorder, pancreatic cancer, acute myeloid leukemia
Q131755 Q8071861 Q1077603 Q212961 Q264118 Q1981276
(c(Q2057971),P780,c(Q1441305))
action equal
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
value 2
[ANSWERS] are exactly 2 medical signs a symtom of
[{'concept': 'Q2057971'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?a = 2 ) . { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?a ) WHERE { ?z property:P780 ?n . ?z rdf:type ontology:Q2057971 . ?n rdf:type ontology:Q1441305 } GROUP BY ?z } }
bipolar disorder Zika fever malignant mesothelioma pancreatic cancer acute myeloid leukemia neuroendocrine tumor
Bipolar disorder, pancreatic cancer and acute myeloid leukemia are exactly 2 medical signs a symtom of
bipolar disorder pancreatic cancer acute myeloid leukemia
action equal
action find_tuple_counts
relation symptoms
type health problem
type medical sign
value 2
[{'concept': 'health problem'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?a = 2 ) . { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?a ) WHERE { ?z property:symptoms ?n . ?z rdf:type ontology:health_problem . ?n rdf:type ontology:medical_sign } GROUP BY ?z } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q131755 Q212961 Q264118
P2175
Q8386
USER
Which drugs are used to cure those health problems ?
(c(Q8386),P2175,Q131755) (c(Q8386),P2175,Q212961) (c(Q8386),P2175,Q264118)
action filter_type
action find_reverse
entity prev_answer
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q131755'] [{'concept': 'Q8386'}, 'P2175', 'Q212961'] [{'concept': 'Q8386'}, 'P2175', 'Q264118']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q8386 . VALUES ( ?p ) { ( resource:Q131755 ) ( resource:Q8071861 ) ( resource:Q1077603 ) } . ?o property:P2175 ?p }
bipolar disorder pancreatic cancer acute myeloid leukemia
action filter_type
action find_reverse
entity prev_answer
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'bipolar disorder'] [{'concept': 'drug'}, 'medical condition treated', 'pancreatic cancer'] [{'concept': 'drug'}, 'medical condition treated', 'acute myeloid leukemia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:drug . VALUES ( ?p ) { ( resource:bipolar_disorder ) ( resource:Zika_fever ) ( resource:malignant_mesothelioma ) } . ?o property:medical_condition_treated ?p }
[]
drug
Q251347 Q670131 Q58375
SYSTEM
haloperidol, simvastatin, thioridazine
Q410273 Q221174 Q411188 Q221361 Q423292 Q670131 Q410352 Q58614 Q152763 Q251347 Q412486 Q422112 Q412443 Q408535 Q201872 Q417689 Q415744 Q240642 Q407988 Q18216 Q414873 Q907219 Q410346 Q410412 Q418560 Q417775 Q423762 Q416451 Q257331 Q419935 Q419940 Q420436 Q413299 Q905901 Q3891664 Q421052 Q240642 Q2459042 Q13896859 Q412178 Q412197 Q7914515 Q238512 Q4567614 Q420207 Q1187179 Q7739 Q20801757 Q416451 Q239426 Q411659 Q29417 Q418817 Q419319 Q419940 Q408524 Q417824 Q3151081 Q185916 Q905901 Q421862 Q7699074 Q421052 Q5134875 Q180983 Q1063862 Q418192 Q621834 Q905835 Q1181878 Q58375 Q412685 Q7739
(c(Q8386),P2175,Q131755) (c(Q8386),P2175,Q212961) (c(Q8386),P2175,Q264118)
action filter_type
action find_reverse
entity prev_answer
relation P2175
type Q8386
[ANSWERS] are used to cure those health problems
[{'concept': 'Q8386'}, 'P2175', 'Q131755'] [{'concept': 'Q8386'}, 'P2175', 'Q212961'] [{'concept': 'Q8386'}, 'P2175', 'Q264118']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q8386 . VALUES ( ?p ) { ( resource:Q131755 ) ( resource:Q8071861 ) ( resource:Q1077603 ) } . ?o property:P2175 ?p }
Eslicarbazepine acetate topiramate aripiprazole clozapine paliperidone simvastatin gabapentin loxapine Lithium haloperidol allopurinol methylphenidate risperidone quetiapine Olanzapine ramelteon riluzole valproic acid clonazepam acetylsalicylic acid Isradipine tiagabine lamotrigine carbamazepine ifosfamide Panitumumab Paclitaxel azacitidine Streptozocin Octreotide dasatinib docetaxel Bevacizumab vorinostat regorafenib Everolimus valproic acid Ipilimumab Pembrolizumab tamoxifen irinotecan vandetanib 5-fluorouracil mycophenolate mofetil capecitabine Denileukin diftitox Arsenic trioxide Secretin azacitidine mitoxantrone daunorubicin all-trans-retinoic acid etoposide Bortezomib dasatinib cyclophosphamide gefitinib Filgrastim fludarabine phosphate vorinostat ribavirin temsirolimus Everolimus clofarabine cytarabine idarubicin bexarotene aprepitant plerixafor decitabine thioridazine Gemtuzumab ozogamicin Arsenic trioxide
Haloperidol, simvastatin and thioridazine are used to cure those health problems
haloperidol simvastatin thioridazine
action filter_type
action find_reverse
entity prev_answer
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'bipolar disorder'] [{'concept': 'drug'}, 'medical condition treated', 'pancreatic cancer'] [{'concept': 'drug'}, 'medical condition treated', 'acute myeloid leukemia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:drug . VALUES ( ?p ) { ( resource:bipolar_disorder ) ( resource:Zika_fever ) ( resource:malignant_mesothelioma ) } . ?o property:medical_condition_treated ?p }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q251347 Q670131 Q58375
P129
Q181394
USER
What do those drugs interact with ?
(Q251347,P129,c(Q181394)) (Q670131,P129,c(Q181394)) (Q58375,P129,c(Q181394))
action filter_type
action find
entity prev_answer
relation P129
type Q181394
['Q251347', 'P129', {'concept': 'Q181394'}] ['Q670131', 'P129', {'concept': 'Q181394'}] ['Q58375', 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q181394 . ?v property:P129 ?z . VALUES ( ?v ) { ( resource:Q410273 ) ( resource:Q221174 ) ( resource:Q411188 ) } }
haloperidol simvastatin thioridazine
action filter_type
action find
entity prev_answer
relation physically interacts with
type nutrient
['haloperidol', 'physically interacts with', {'concept': 'nutrient'}] ['simvastatin', 'physically interacts with', {'concept': 'nutrient'}] ['thioridazine', 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:nutrient . ?v property:physically_interacts_with ?z . VALUES ( ?v ) { ( resource:Eslicarbazepine_acetate ) ( resource:topiramate ) ( resource:aripiprazole ) } }
[]
nutrient
Q2034004 Q1949517 Q1949517
SYSTEM
D(2) dopamine receptor for 1st, 5-hydroxytryptamine receptor 2A for 2nd, 3rd
Q21497939 Q21110532 Q4639596 Q1949517 Q21110867 Q308856 Q21110872 Q21109355 Q21115046 Q2034004 Q21115043 Q309513 Q21497878 Q21131500 Q415607 Q309513 Q1949517 Q21110867 Q21109355 Q21497878 Q21109363 Q21108118 Q21131500 Q21115043
(Q251347,P129,c(Q181394)) (Q670131,P129,c(Q181394)) (Q58375,P129,c(Q181394))
action filter_type
action find
entity prev_answer
relation P129
type Q181394
[ANSWERS]
['Q251347', 'P129', {'concept': 'Q181394'}] ['Q670131', 'P129', {'concept': 'Q181394'}] ['Q58375', 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q181394 . ?v property:P129 ?z . VALUES ( ?v ) { ( resource:Q410273 ) ( resource:Q221174 ) ( resource:Q411188 ) } }
5-hydroxytryptamine receptor 7 Potassium voltage-gated channel subfamily H member 1 5-hydroxytryptamine receptor 2B 5-hydroxytryptamine receptor 2A D(1A) dopamine receptor D(4) dopamine receptor D(3) dopamine receptor 5-hydroxytryptamine receptor 7 5-hydroxytryptamine receptor 1D D(2) dopamine receptor 5-hydroxytryptamine receptor 1A Histamine H1 receptor G protein-activated inward rectifier potassium channel 2 D(1B) dopamine receptor 3-hydroxy-3-methylglutaryl-coenzyme A reductase Histamine H1 receptor 5-hydroxytryptamine receptor 2A D(1A) dopamine receptor 5-hydroxytryptamine receptor 7 G protein-activated inward rectifier potassium channel 2 5-hydroxytryptamine receptor 6 5-hydroxytryptamine receptor 2C D(1B) dopamine receptor 5-hydroxytryptamine receptor 1A
Those drugs interact with D(2) dopamine receptor, 5-hydroxytryptamine receptor 2A and 5-hydroxytryptamine receptor 2A
D(2) dopamine receptor 5-hydroxytryptamine receptor 2A 5-hydroxytryptamine receptor 2A
action filter_type
action find
entity prev_answer
relation physically interacts with
type nutrient
['haloperidol', 'physically interacts with', {'concept': 'nutrient'}] ['simvastatin', 'physically interacts with', {'concept': 'nutrient'}] ['thioridazine', 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:nutrient . ?v property:physically_interacts_with ?z . VALUES ( ?v ) { ( resource:Eslicarbazepine_acetate ) ( resource:topiramate ) ( resource:aripiprazole ) } }
[]