Simple Question (Direct)
Simple Question
Q469055
P1196
Q1931388
USER
What manner did Michelle Thomas die ?
(Q469055,P1196,c(Q1931388))
action filter_type
action find
entity Q469055
relation P1196
type Q1931388
['Q469055', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?h WHERE { resource:Q469055 property:P1196 ?h . ?h rdf:type ontology:Q1931388 }
Michelle Thomas
action filter_type
action find
entity Michelle Thomas
relation manner of death
type cause of death
['Michelle Thomas', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?h WHERE { resource:Michelle_Thomas property:manner_of_death ?h . ?h rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q469055,P1196,c(Q1931388))
action filter_type
action find
entity Q469055
relation P1196
type Q1931388
Michelle Thomas died in [ANSWER]
['Q469055', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?h WHERE { resource:Q469055 property:P1196 ?h . ?h rdf:type ontology:Q1931388 }
natural causes
Michelle Thomas died in natural causes
natural causes
action filter_type
action find
entity Michelle Thomas
relation manner of death
type cause of death
['Michelle Thomas', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?h WHERE { resource:Michelle_Thomas property:manner_of_death ?h . ?h rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q469055
P509
Q2057971
USER
What lead to the death of that person ?
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q469055
relation P509
type Q2057971
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q469055 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
Michelle Thomas
action filter_type
action find
entity Michelle Thomas
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Michelle_Thomas property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
health problem
Q189588
SYSTEM
stomach cancer
Q189588
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q469055
relation P509
type Q2057971
[ANSWER] lead to the death of that person
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q469055 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
stomach cancer
Stomach cancer lead to the death of that person
stomach cancer
action filter_type
action find
entity Michelle Thomas
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Michelle_Thomas property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P2293
Q863908 Q2057971
USER
Which health problems are herditarily associated with less number of nucleic acid sequences than that health problem ?
(c(Q2057971),P2293,c(Q863908))
action less
action find_tuple_counts
relation P2293
type Q2057971
type Q863908
action count
action filter_type
action find
entity Q189588
relation P2293
type Q2057971
[{'concept': 'Q2057971'}, 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?k ) WHERE { ?a property:P2293 ?b . ?a rdf:type ontology:Q2057971 . ?b rdf:type ontology:Q863908 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q189588 property:P2293 ?e . ?e rdf:type ontology:Q2057971 } } . FILTER ( ?k < ?z ) }
action less
action find_tuple_counts
relation genetic association
type health problem
type nucleic acid sequence
action count
action filter_type
action find
entity stomach cancer
relation genetic association
type health problem
[{'concept': 'health problem'}, 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?k ) WHERE { ?a property:genetic_association ?b . ?a rdf:type ontology:health_problem . ?b rdf:type ontology:nucleic_acid_sequence } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:stomach_cancer property:genetic_association ?e . ?e rdf:type ontology:health_problem } } . FILTER ( ?k < ?z ) }
[]
nucleic acid sequence health problem
Q19000661 Q208414 Q159701
SYSTEM
congestive heart failure, lymphoma, glaucoma
Q1126831 Q188638 Q13452408 Q189588 Q3508565 Q5432941 Q1146454 Q977787 Q2290446 Q147778 Q1693598 Q18553423 Q2057356 Q1713037 Q1464888 Q160105 Q18557037 Q1815019 Q191779 Q18968110 Q504790 Q18554354 Q193894 Q185034 Q1549421 Q378183 Q208414 Q283656 Q503629 Q282142 Q126691 Q280156 Q556281 Q18554968 Q511097 Q496812 Q6742919 Q129104 Q826522 Q1424509 Q1343645 Q1132108 Q132971 Q188605 Q3616632 Q703961 Q808892 Q378681 Q431643 Q159701 Q161790 Q583908 Q756610 Q18553762 Q369157 Q18573410 Q693519 Q18554489 Q133087 Q1053948 Q18555943 Q861645 Q8285 Q18556570 Q1151801 Q19000661 Q18553444 Q17022356 Q18553447 Q3458131 Q49989 Q324464 Q756289
(c(Q2057971),P2293,c(Q863908))
action less
action find_tuple_counts
relation P2293
type Q2057971
type Q863908
action count
action filter_type
action find
entity Q189588
relation P2293
type Q2057971
[ANSWERS] are herditarily associated with less number of nucleic acid sequences than that health problem
[{'concept': 'Q2057971'}, 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?k ) WHERE { ?a property:P2293 ?b . ?a rdf:type ontology:Q2057971 . ?b rdf:type ontology:Q863908 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q189588 property:P2293 ?e . ?e rdf:type ontology:Q2057971 } } . FILTER ( ?k < ?z ) }
tetralogy of Fallot mood disorder neuropathy stomach cancer ABCD syndrome hyperlipoproteinemia type IV IgA glomerulonephritis gallbladder cancer idiopathic pulmonary fibrosis liver cirrhosis nasopharynx carcinoma vitamin metabolic disorder eosinophilic esophagitis membranous glomerulonephritis Fuchs' endothelial dystrophy cervical cancer nephrolithiasis Leigh disease Gilles de la Tourette syndrome duodenal ulcer nephrotic syndrome hypertrophic pyloric stenosis sarcoidosis sickle cell anemia tooth agenesis Craniosynostosis lymphoma Dilated cardiomyopathy osteonecrosis glioblastoma multiforme gestational diabetes male infertility uterine fibroid drug-induced hepatitis psoriatic arthritis leukopenia Male breast cancer anthrax disease thyroid cancer plantar fascial fibromatosis Hirschsprung's disease hypospadias dyslexia pulmonary emphysema Beta-thalassemia prion disease Barrett's esophagus peripheral artery disease microcephaly glaucoma Asperger syndrome vascular dementia otosclerosis migraine with aura meningioma dengue shock syndrome essential tremor diabetic cataract gout Stevens-Johnson syndrome skin carcinoma Gaucher's disease myasthenia gravis myelodysplastic myeloproliferative cancer Waardenburg syndrome congestive heart failure nicotine dependence hemoglobin E disease diffuse large B-cell lymphoma X linked juvenile retinoschisis Creutzfeldt-Jakob disease Testicular cancer nephroblastoma
Congestive heart failure, lymphoma and glaucoma are herditarily associated with less number of nucleic acid sequences than that health problem
congestive heart failure lymphoma glaucoma
action less
action find_tuple_counts
relation genetic association
type health problem
type nucleic acid sequence
action count
action filter_type
action find
entity stomach cancer
relation genetic association
type health problem
[{'concept': 'health problem'}, 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?k ) WHERE { ?a property:genetic_association ?b . ?a rdf:type ontology:health_problem . ?b rdf:type ontology:nucleic_acid_sequence } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:stomach_cancer property:genetic_association ?e . ?e rdf:type ontology:health_problem } } . FILTER ( ?k < ?z ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18971509 Q19000661
P2176
Q8386
USER
Which drugs are used to cure congestive heart failure or focal epilepsy ?
OR((Q19000661,P2176,c(Q8386)), (Q18971509,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q19000661
relation P2176
action find
entity Q18971509
relation P2176
type Q8386
{'OR': [['Q19000661', 'P2176', {'concept': 'Q8386'}], ['Q18971509', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q18971509 property:P2176 ?a } UNION { resource:Q19000661 property:P2176 ?a } } . ?a rdf:type ontology:Q8386 }
focal epilepsy congestive heart failure
action filter_type
action union
action find
entity congestive heart failure
relation drug used for treatment
action find
entity focal epilepsy
relation drug used for treatment
type drug
{'OR': [['congestive heart failure', 'drug used for treatment', {'concept': 'drug'}], ['focal epilepsy', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?a WHERE { { { resource:focal_epilepsy property:drug_used_for_treatment ?a } UNION { resource:congestive_heart_failure property:drug_used_for_treatment ?a } } . ?a rdf:type ontology:drug }
[]
drug
Q19606349 Q2072745 Q162867 Q5264583 Q413994 Q422188 Q2603363 Q412534 Q420077 Q7272222
SYSTEM
Some of them are Alteplase, trichlormethiazide, nitroglycerin, deslanoside, Timolol, spironolactone, chlorothiazide, carvedilol, lacosamide, quinethazone
Q412515 Q415970 Q907104 Q410074 Q421119 Q162867 Q424972 Q1318776 Q958087 Q410412 Q388801 Q415411 Q947266 Q6997373 Q2526479 Q907219 Q7272222 Q2072745 Q412534 Q423364 Q419987 Q3791957 Q1078392 Q2291605 Q423930 Q424952 Q4712362 Q412208 Q422188 Q929420 Q422185 Q6823919 Q2149443 Q418850 Q784717 Q221174 Q412486 Q2603363 Q275926 Q420077 Q410237 Q407241 Q412299 Q219957 Q413994 Q596022 Q139347 Q417227 Q411325 Q19606349 Q421156 Q1169561 Q733186 Q5264583 Q422724 Q1169164 Q900898 Q847399 Q5199066 Q17811448 Q412666 Q418571 Q425289 Q410352 Q2357007 Q277785 Q410358 Q409468 Q18216 Q412174 Q7227099 Q426132 Q410346 Q3702534 Q411347 Q425293 Q155472 Q418139 Q7559307 Q2889971 Q592802 Q190875 Q176301 Q422222 Q423890 Q207843 Q410273
OR((Q19000661,P2176,c(Q8386)), (Q18971509,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q19000661
relation P2176
action find
entity Q18971509
relation P2176
type Q8386
[ANSWERS] are used to cure congestive heart failure or focal epilepsy
{'OR': [['Q19000661', 'P2176', {'concept': 'Q8386'}], ['Q18971509', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q18971509 property:P2176 ?a } UNION { resource:Q19000661 property:P2176 ?a } } . ?a rdf:type ontology:Q8386 }
bisoprolol candesartan ranolazine losartan captopril nitroglycerin prednisone testosterone labetalol carbamazepine furosemide Anakinra Irbesartan Nesiritide Liraglutide tiagabine quinethazone trichlormethiazide carvedilol propranolol hydralazine hydroflumethiazide indapamide moexipril hydrochlorothiazide nadolol Albiglutide lisinopril spironolactone trandolapril enalapril methyclothiazide prazepam clorazepate eprosartan topiramate allopurinol chlorothiazide bumetanide lacosamide clopidogrel phenobarbital oxazepam zonisamide Timolol quinapril Cholecalciferol (R)-etiracetam atenolol Alteplase Olmesartan metolazone telmisartan deslanoside Amrinone bendroflumethiazide probenecid milrinone cyclothiazide sacubitril Ramipril ethacrynic acid chlorthalidone gabapentin fenoldopam perindopril salbutamol metoprolol acetylsalicylic acid pregabalin polythiazide tolvaptan lamotrigine mirabegron amlodipine Fosinopril Valsartan Esmolol Somatrem benzthiazide benazepril cortisol oxcarbazepine Digoxin digitoxin Nitric Oxide Eslicarbazepine acetate
Alteplase, trichlormethiazide, nitroglycerin, deslanoside, Timolol, spironolactone, chlorothiazide, carvedilol, lacosamide and quinethazone are used to cure congestive heart failure or focal epilepsy
Alteplase trichlormethiazide nitroglycerin deslanoside Timolol spironolactone chlorothiazide carvedilol lacosamide quinethazone
action filter_type
action union
action find
entity congestive heart failure
relation drug used for treatment
action find
entity focal epilepsy
relation drug used for treatment
type drug
{'OR': [['congestive heart failure', 'drug used for treatment', {'concept': 'drug'}], ['focal epilepsy', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?a WHERE { { { resource:focal_epilepsy property:drug_used_for_treatment ?a } UNION { resource:congestive_heart_failure property:drug_used_for_treatment ?a } } . ?a rdf:type ontology:drug }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q19606349 Q2072745 Q162867 Q5264583 Q413994 Q422188 Q2603363 Q412534 Q420077 Q7272222
P2176
Q2057971
USER
Which health problems require Alteplase, trichlormethiazide, nitroglycerin, deslanoside, Timolol, spironolactone, chlorothiazide, carvedilol, lacosamide and quinethazone as a remedy ?
(c(Q2057971),P2176,Q19606349) (c(Q2057971),P2176,Q2072745) (c(Q2057971),P2176,Q162867) (c(Q2057971),P2176,Q5264583) (c(Q2057971),P2176,Q413994) (c(Q2057971),P2176,Q422188) (c(Q2057971),P2176,Q2603363) (c(Q2057971),P2176,Q412534) (c(Q2057971),P2176,Q420077) (c(Q2057971),P2176,Q7272222)
action union
action filter_type
action find_reverse
entity Q19606349
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2072745
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q162867
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q5264583
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q413994
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q422188
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2603363
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q412534
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q420077
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q7272222
relation P2176
type Q2057971
[{'concept': 'Q2057971'}, 'P2176', 'Q19606349'] [{'concept': 'Q2057971'}, 'P2176', 'Q2072745'] [{'concept': 'Q2057971'}, 'P2176', 'Q162867'] [{'concept': 'Q2057971'}, 'P2176', 'Q5264583'] [{'concept': 'Q2057971'}, 'P2176', 'Q413994'] [{'concept': 'Q2057971'}, 'P2176', 'Q422188'] [{'concept': 'Q2057971'}, 'P2176', 'Q2603363'] [{'concept': 'Q2057971'}, 'P2176', 'Q412534'] [{'concept': 'Q2057971'}, 'P2176', 'Q420077'] [{'concept': 'Q2057971'}, 'P2176', 'Q7272222']
SELECT DISTINCT ?t WHERE { ?t property:P2176 ?j . VALUES ( ?j ) { ( resource:Q19606349 ) ( resource:Q2072745 ) } }
Alteplase trichlormethiazide nitroglycerin deslanoside Timolol spironolactone chlorothiazide carvedilol lacosamide quinethazone
action union
action filter_type
action find_reverse
entity Alteplase
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity trichlormethiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity nitroglycerin
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity deslanoside
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity Timolol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity spironolactone
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity chlorothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity carvedilol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity lacosamide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity quinethazone
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'Alteplase'] [{'concept': 'health problem'}, 'drug used for treatment', 'trichlormethiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'nitroglycerin'] [{'concept': 'health problem'}, 'drug used for treatment', 'deslanoside'] [{'concept': 'health problem'}, 'drug used for treatment', 'Timolol'] [{'concept': 'health problem'}, 'drug used for treatment', 'spironolactone'] [{'concept': 'health problem'}, 'drug used for treatment', 'chlorothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'carvedilol'] [{'concept': 'health problem'}, 'drug used for treatment', 'lacosamide'] [{'concept': 'health problem'}, 'drug used for treatment', 'quinethazone']
SELECT DISTINCT ?t WHERE { ?t property:drug_used_for_treatment ?j . VALUES ( ?j ) { ( resource:Alteplase ) ( resource:trichlormethiazide ) } }
[]
health problem
Q128581 Q41861 Q41861
SYSTEM
hypertension for 2nd, 3rd, breast cancer for 1st
Q166019 Q4862390 Q220570 Q19000661 Q12152 Q389735 Q504790 Q41861 Q19000661 Q486485 Q18556932 Q1128595 Q18556113 Q41861 Q165328 Q552348 Q41478 Q19000661 Q12152 Q389735 Q19000661 Q815819 Q41861 Q3108586 Q9294051 Q19000661 Q12152 Q1640860 Q1128595 Q41861 Q19000661 Q12152 Q486485 Q815819 Q504790 Q41861 Q19000661 Q486485 Q202387 Q1128595 Q41861 Q128581 Q19000661 Q41571 Q12152 Q815819 Q62736 Q133823 Q540571 Q18554191 Q18971509 Q41571 Q18556979 Q389735 Q504790 Q41861 Q19000661 Q486485
(c(Q2057971),P2176,Q19606349) (c(Q2057971),P2176,Q2072745) (c(Q2057971),P2176,Q162867) (c(Q2057971),P2176,Q5264583) (c(Q2057971),P2176,Q413994) (c(Q2057971),P2176,Q422188) (c(Q2057971),P2176,Q2603363) (c(Q2057971),P2176,Q412534) (c(Q2057971),P2176,Q420077) (c(Q2057971),P2176,Q7272222)
action union
action filter_type
action find_reverse
entity Q19606349
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2072745
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q162867
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q5264583
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q413994
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q422188
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2603363
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q412534
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q420077
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q7272222
relation P2176
type Q2057971
[ANSWERS]
[{'concept': 'Q2057971'}, 'P2176', 'Q19606349'] [{'concept': 'Q2057971'}, 'P2176', 'Q2072745'] [{'concept': 'Q2057971'}, 'P2176', 'Q162867'] [{'concept': 'Q2057971'}, 'P2176', 'Q5264583'] [{'concept': 'Q2057971'}, 'P2176', 'Q413994'] [{'concept': 'Q2057971'}, 'P2176', 'Q422188'] [{'concept': 'Q2057971'}, 'P2176', 'Q2603363'] [{'concept': 'Q2057971'}, 'P2176', 'Q412534'] [{'concept': 'Q2057971'}, 'P2176', 'Q420077'] [{'concept': 'Q2057971'}, 'P2176', 'Q7272222']
SELECT DISTINCT ?t WHERE { ?t property:P2176 ?j . VALUES ( ?j ) { ( resource:Q19606349 ) ( resource:Q2072745 ) } }
bleeding brain ischemia pulmonary embolism congestive heart failure myocardial infarction cardiovascular disease nephrotic syndrome hypertension congestive heart failure Anasarca large intestine cancer pulmonary hypertension non-small cell lung carcinoma hypertension osteoporosis eclampsia hemorrhoid congestive heart failure myocardial infarction cardiovascular disease congestive heart failure atrial fibrillation hypertension open-angle glaucoma ocular hypertension congestive heart failure myocardial infarction hyperaldosteronism pulmonary hypertension hypertension congestive heart failure myocardial infarction Anasarca atrial fibrillation nephrotic syndrome hypertension congestive heart failure Anasarca post-traumatic stress disorder pulmonary hypertension hypertension breast cancer congestive heart failure epilepsy myocardial infarction atrial fibrillation osteoarthritis/osteodystrophy migraine fibromyalgia visual epilepsy focal epilepsy epilepsy peripheral nervous system disease cardiovascular disease nephrotic syndrome hypertension congestive heart failure Anasarca
Breast cancer, hypertension and hypertension require Alteplase, trichlormethiazide, nitroglycerin, deslanoside, Timolol, spironolactone, chlorothiazide, carvedilol, lacosamide and quinethazone as a remedy
breast cancer hypertension hypertension
action union
action filter_type
action find_reverse
entity Alteplase
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity trichlormethiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity nitroglycerin
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity deslanoside
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity Timolol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity spironolactone
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity chlorothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity carvedilol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity lacosamide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity quinethazone
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'Alteplase'] [{'concept': 'health problem'}, 'drug used for treatment', 'trichlormethiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'nitroglycerin'] [{'concept': 'health problem'}, 'drug used for treatment', 'deslanoside'] [{'concept': 'health problem'}, 'drug used for treatment', 'Timolol'] [{'concept': 'health problem'}, 'drug used for treatment', 'spironolactone'] [{'concept': 'health problem'}, 'drug used for treatment', 'chlorothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'carvedilol'] [{'concept': 'health problem'}, 'drug used for treatment', 'lacosamide'] [{'concept': 'health problem'}, 'drug used for treatment', 'quinethazone']
SELECT DISTINCT ?t WHERE { ?t property:drug_used_for_treatment ?j . VALUES ( ?j ) { ( resource:Alteplase ) ( resource:trichlormethiazide ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q41861
P780
Q12136
USER
What is that health problem a symtom of ?
(c(Q12136),P780,Q41861)
action filter_type
action find_reverse
entity Q41861
relation P780
type Q12136
[{'concept': 'Q12136'}, 'P780', 'Q41861']
SELECT DISTINCT ?x WHERE { ?x property:P780 resource:Q41861 . ?x rdf:type ontology:Q12136 }
hypertension
action filter_type
action find_reverse
entity hypertension
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', 'hypertension']
SELECT DISTINCT ?x WHERE { ?x property:symptoms resource:hypertension . ?x rdf:type ontology:disease }
[]
disease
Clarification for simple ques.
Q128581
SYSTEM
Did you mean breast cancer ?
Q128581 Q41861 Q41861
(c(Q12136),P780,Q128581) (c(Q12136),P780,Q41861) (c(Q12136),P780,Q41861)
[ANSWER]
[{'concept': 'Q12136'}, 'P780', 'Q128581'] [{'concept': 'Q12136'}, 'P780', 'Q41861'] [{'concept': 'Q12136'}, 'P780', 'Q41861']
SELECT DISTINCT ?x WHERE { ?x property:P780 resource:Q41861 . ?x rdf:type ontology:Q12136 }
breast cancer hypertension hypertension
Did you mean breast cancer ?
breast cancer
[{'concept': 'disease'}, 'symptoms', 'breast cancer'] [{'concept': 'disease'}, 'symptoms', 'hypertension'] [{'concept': 'disease'}, 'symptoms', 'hypertension']
SELECT DISTINCT ?x WHERE { ?x property:symptoms resource:hypertension . ?x rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
USER
No, I meant hypertension. Could you tell me the answer for that?
(c(Q12136),P780,Q41861)
Q41861
[{'concept': 'Q12136'}, 'P780', 'Q41861']
[{'concept': 'disease'}, 'symptoms', 'hypertension']
[]
Q110315
SYSTEM
lead poisoning
Q110315
(c(Q12136),P780,Q41861)
action filter_type
action find_reverse
entity Q41861
relation P780
type Q12136
That health problem a symtom of is [ANSWER]
[{'concept': 'Q12136'}, 'P780', 'Q41861']
SELECT DISTINCT ?x WHERE { ?x property:P780 resource:Q41861 . ?x rdf:type ontology:Q12136 }
lead poisoning
That health problem a symtom of is lead poisoning
lead poisoning
action filter_type
action find_reverse
entity hypertension
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', 'hypertension']
SELECT DISTINCT ?x WHERE { ?x property:symptoms resource:hypertension . ?x rdf:type ontology:disease }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P780
Q2057971 Q12136 Q12136
USER
Which diseases have lesser number of health problems or diseases as one of their symptoms than that disease ?
(c(Q12136),P780,c(Q2057971)|c(Q12136))
action less
action union
action find_tuple_counts
relation P780
type Q12136
type Q2057971
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q110315
relation P780
type Q2057971
type Q12136
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?z WHERE { { ?z property:P780 ?e . ?z rdf:type ontology:Q12136 . ?e rdf:type ontology:Q2057971 } UNION { ?z property:P780 ?e . ?z rdf:type ontology:Q12136 . ?e rdf:type ontology:Q12136 } } GROUP BY ?z } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q110315 property:P780 ?c . { { ?c rdf:type ontology:Q2057971 } UNION { ?c rdf:type ontology:Q12136 } } } } }
action less
action union
action find_tuple_counts
relation symptoms
type disease
type health problem
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity lead poisoning
relation symptoms
type health problem
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?z WHERE { { ?z property:symptoms ?e . ?z rdf:type ontology:disease . ?e rdf:type ontology:health_problem } UNION { ?z property:symptoms ?e . ?z rdf:type ontology:disease . ?e rdf:type ontology:disease } } GROUP BY ?z } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:lead_poisoning property:symptoms ?c . { { ?c rdf:type ontology:health_problem } UNION { ?c rdf:type ontology:disease } } } } }
[]
health problem disease disease
SYSTEM
25
Q1857905 Q285787 Q1778287 Q167844 Q17122962 Q1424706 Q727008 Q6056727 Q572201 Q1148337 Q17123258 Q125367 Q2996866 Q19850514 Q18967299 Q840143 Q1559250 Q190454 Q1403928 Q18019453 Q12859193 Q3508612 Q6139748 Q277254 Q2866610
(c(Q12136),P780,c(Q2057971)|c(Q12136))
action less
action union
action find_tuple_counts
relation P780
type Q12136
type Q2057971
action find_tuple_counts
relation P780
type Q12136
type Q12136
action count
action filter_multi_types
action find
entity Q110315
relation P780
type Q2057971
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?z WHERE { { ?z property:P780 ?e . ?z rdf:type ontology:Q12136 . ?e rdf:type ontology:Q2057971 } UNION { ?z property:P780 ?e . ?z rdf:type ontology:Q12136 . ?e rdf:type ontology:Q12136 } } GROUP BY ?z } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q110315 property:P780 ?c . { { ?c rdf:type ontology:Q2057971 } UNION { ?c rdf:type ontology:Q12136 } } } } }
cyclic vomiting syndrome Amaurosis Waldenström's macroglobulinemia conjunctivitis Hypoplastic tibiae-postaxial polydactyly syndrome Opsoclonus myoclonus syndrome McCune–Albright syndrome Intersection syndrome Autophobia hepatocellular carcinoma fox mange carbon monoxide poisoning human coprophagia Olive Quick Decline Syndrome fusion with defective stereopsis streptococcal pharyngitis Peters plus syndrome Cerebral salt-wasting syndrome Ketotic hypoglycemia Polydactyly of a triphalangeal thumb Nightmare disorder sleep hypoventilation syndrome Progeroid syndrome Adams–Stokes syndrome hyposalivation
25
action less
action union
action find_tuple_counts
relation symptoms
type disease
type health problem
action find_tuple_counts
relation symptoms
type disease
type disease
action count
action filter_multi_types
action find
entity lead poisoning
relation symptoms
type health problem
type disease
[{'concept': 'disease'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?z WHERE { { ?z property:symptoms ?e . ?z rdf:type ontology:disease . ?e rdf:type ontology:health_problem } UNION { ?z property:symptoms ?e . ?z rdf:type ontology:disease . ?e rdf:type ontology:disease } } GROUP BY ?z } . FILTER ( ?p < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:lead_poisoning property:symptoms ?c . { { ?c rdf:type ontology:health_problem } UNION { ?c rdf:type ontology:disease } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110315
P1542
Q79529
USER
Which chemical substance is the cause of lead poisoning ?
(c(Q79529),P1542,Q110315)
action filter_type
action find_reverse
entity Q110315
relation P1542
type Q79529
[{'concept': 'Q79529'}, 'P1542', 'Q110315']
SELECT DISTINCT ?u WHERE { ?u property:P1542 resource:Q110315 . ?u rdf:type ontology:Q79529 }
lead poisoning
action filter_type
action find_reverse
entity lead poisoning
relation cause of
type chemical substance
[{'concept': 'chemical substance'}, 'cause of', 'lead poisoning']
SELECT DISTINCT ?u WHERE { ?u property:cause_of resource:lead_poisoning . ?u rdf:type ontology:chemical_substance }
[]
chemical substance
Q708
SYSTEM
lead
Q708
(c(Q79529),P1542,Q110315)
action filter_type
action find_reverse
entity Q110315
relation P1542
type Q79529
[ANSWER] is the cause of [ANSWER] poisoning
[{'concept': 'Q79529'}, 'P1542', 'Q110315']
SELECT DISTINCT ?u WHERE { ?u property:P1542 resource:Q110315 . ?u rdf:type ontology:Q79529 }
lead
Lead is the cause of lead poisoning
lead
action filter_type
action find_reverse
entity lead poisoning
relation cause of
type chemical substance
[{'concept': 'chemical substance'}, 'cause of', 'lead poisoning']
SELECT DISTINCT ?u WHERE { ?u property:cause_of resource:lead_poisoning . ?u rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q110315
P2175
Q8386
USER
Which drugs are used for the treatment of that disease ?
(c(Q8386),P2175,Q708)
action filter_type
action find_reverse
entity Q110315
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q708']
SELECT DISTINCT ?j WHERE { ?j property:P2175 resource:Q110315 . ?j rdf:type ontology:Q8386 }
lead poisoning
action filter_type
action find_reverse
entity lead poisoning
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'lead']
SELECT DISTINCT ?j WHERE { ?j property:medical_condition_treated resource:lead_poisoning . ?j rdf:type ontology:drug }
[]
drug
Q413968 Q421239 Q423814
SYSTEM
Dimercaprol, D-penicillamine, dimercaptosuccinic acid
Q413968 Q421239 Q423814
(c(Q8386),P2175,Q708)
action filter_type
action find_reverse
entity Q110315
relation P2175
type Q8386
[ANSWERS] are used for the treatment of that disease
[{'concept': 'Q8386'}, 'P2175', 'Q708']
SELECT DISTINCT ?j WHERE { ?j property:P2175 resource:Q110315 . ?j rdf:type ontology:Q8386 }
Dimercaprol D-penicillamine dimercaptosuccinic acid
Dimercaprol, D-penicillamine and dimercaptosuccinic acid are used for the treatment of that disease
Dimercaprol D-penicillamine dimercaptosuccinic acid
action filter_type
action find_reverse
entity lead poisoning
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'lead']
SELECT DISTINCT ?j WHERE { ?j property:medical_condition_treated resource:lead_poisoning . ?j rdf:type ontology:drug }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q209369
P2176
Q12136
USER
Does Hodgkin's lymphoma require those drugs in their treatment ?
(Q209369,P2176,Q413968) (Q209369,P2176,Q421239) (Q209369,P2176,Q423814)
action is_in
entity prev_answer
action find
entity Q209369
relation P2176
['Q209369', 'P2176', 'Q413968'] ['Q209369', 'P2176', 'Q421239'] ['Q209369', 'P2176', 'Q423814']
ASK WHERE { resource:Q209369 property:P2176 ?e . VALUES ( ?e ) { ( resource:Q413968 ) ( resource:Q421239 ) ( resource:Q423814 ) } }
Hodgkin's lymphoma
action is_in
entity prev_answer
action find
entity Hodgkin's lymphoma
relation drug used for treatment
["Hodgkin's lymphoma", 'drug used for treatment', 'Dimercaprol'] ["Hodgkin's lymphoma", 'drug used for treatment', 'D-penicillamine'] ["Hodgkin's lymphoma", 'drug used for treatment', 'dimercaptosuccinic acid']
ASK WHERE { resource:Hodgkin's_lymphoma property:drug_used_for_treatment ?e . VALUES ( ?e ) { ( resource:Dimercaprol ) ( resource:D-penicillamine ) ( resource:dimercaptosuccinic_acid ) } }
[]
disease
SYSTEM
NO
(Q209369,P2176,Q413968) (Q209369,P2176,Q421239) (Q209369,P2176,Q423814)
action is_in
entity prev_answer
action find
entity Q209369
relation P2176
[ANSWER]
['Q209369', 'P2176', 'Q413968'] ['Q209369', 'P2176', 'Q421239'] ['Q209369', 'P2176', 'Q423814']
ASK WHERE { resource:Q209369 property:P2176 ?e . VALUES ( ?e ) { ( resource:Q413968 ) ( resource:Q421239 ) ( resource:Q423814 ) } }
No
action is_in
entity prev_answer
action find
entity Hodgkin's lymphoma
relation drug used for treatment
["Hodgkin's lymphoma", 'drug used for treatment', 'Dimercaprol'] ["Hodgkin's lymphoma", 'drug used for treatment', 'D-penicillamine'] ["Hodgkin's lymphoma", 'drug used for treatment', 'dimercaptosuccinic acid']
ASK WHERE { resource:Hodgkin's_lymphoma property:drug_used_for_treatment ?e . VALUES ( ?e ) { ( resource:Dimercaprol ) ( resource:D-penicillamine ) ( resource:dimercaptosuccinic_acid ) } }
[]