Simple Question (Direct)
Simple Question
Q273169
P2175
Q2057971
USER
Which health problem is capsaicin a medication for ?
(Q273169,P2175,c(Q2057971))
action filter_type
action find
entity Q273169
relation P2175
type Q2057971
['Q273169', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { resource:Q273169 property:P2175 ?e . ?e rdf:type ontology:Q2057971 }
capsaicin
action filter_type
action find
entity capsaicin
relation medical condition treated
type health problem
['capsaicin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { resource:capsaicin property:medical_condition_treated ?e . ?e rdf:type ontology:health_problem }
[]
health problem
Q18556979
SYSTEM
peripheral nervous system disease
Q18556979
(Q273169,P2175,c(Q2057971))
action filter_type
action find
entity Q273169
relation P2175
type Q2057971
Disease [ANSWER] is capsaicin a medication for
['Q273169', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { resource:Q273169 property:P2175 ?e . ?e rdf:type ontology:Q2057971 }
peripheral nervous system disease
Disease peripheral nervous system disease is capsaicin a medication for
peripheral nervous system disease
action filter_type
action find
entity capsaicin
relation medical condition treated
type health problem
['capsaicin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { resource:capsaicin property:medical_condition_treated ?e . ?e rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q273169
P129
Q181394
USER
Which nutrients do capsaicin interact with ?
(Q273169,P129,c(Q181394))
action filter_type
action find
entity Q273169
relation P129
type Q181394
['Q273169', 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q181394 . resource:Q273169 property:P129 ?i }
capsaicin
action filter_type
action find
entity capsaicin
relation physically interacts with
type nutrient
['capsaicin', 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:nutrient . resource:capsaicin property:physically_interacts_with ?i }
[]
nutrient
Q413209 Q14908176 Q420470
SYSTEM
Transient receptor potential cation channel subfamily V member 1, Transient receptor potential cation channel subfamily V member 1, Cystic fibrosis transmembrane conductance regulator
Q21496564 Q21496563 Q420470 Q413209 Q14905969 Q14908176
(Q273169,P129,c(Q181394))
action filter_type
action find
entity Q273169
relation P129
type Q181394
Capsaicin interact with [ANSWERS]
['Q273169', 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q181394 . resource:Q273169 property:P129 ?i }
Potassium voltage-gated channel subfamily A member 7 Potassium voltage-gated channel subfamily C member 1 Cystic fibrosis transmembrane conductance regulator Transient receptor potential cation channel subfamily V member 1 Potassium voltage-gated channel subfamily A member 1 Transient receptor potential cation channel subfamily V member 1
Capsaicin interact with Transient receptor potential cation channel subfamily V member 1, Transient receptor potential cation channel subfamily V member 1 and Cystic fibrosis transmembrane conductance regulator
Transient receptor potential cation channel subfamily V member 1 Transient receptor potential cation channel subfamily V member 1 Cystic fibrosis transmembrane conductance regulator
action filter_type
action find
entity capsaicin
relation physically interacts with
type nutrient
['capsaicin', 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:nutrient . resource:capsaicin property:physically_interacts_with ?i }
[]
Clarification
Simple Question|Single Entity|Indirect
Q14908176
P688
Q863908
USER
Which nucleic acid sequence encodes that nutrient ?
(c(Q863908),P688,Q14908176)
action filter_type
action find_reverse
entity Q14908176
relation P688
type Q863908
[{'concept': 'Q863908'}, 'P688', 'Q14908176']
SELECT DISTINCT ?p WHERE { ?p property:P688 resource:Q14908176 . ?p rdf:type ontology:Q863908 }
Transient receptor potential cation channel subfamily V member 1
action filter_type
action find_reverse
entity Transient receptor potential cation channel subfamily V member 1
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'Transient receptor potential cation channel subfamily V member 1']
SELECT DISTINCT ?p WHERE { ?p property:encodes resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 . ?p rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Clarification for simple ques.
Q14908176
SYSTEM
Did you mean Transient receptor potential cation channel subfamily V member 1 ?
Q413209 Q14908176 Q420470
(c(Q863908),P688,Q413209) (c(Q863908),P688,Q14908176) (c(Q863908),P688,Q420470)
[ANSWER]
[{'concept': 'Q863908'}, 'P688', 'Q413209'] [{'concept': 'Q863908'}, 'P688', 'Q14908176'] [{'concept': 'Q863908'}, 'P688', 'Q420470']
SELECT DISTINCT ?p WHERE { ?p property:P688 resource:Q14908176 . ?p rdf:type ontology:Q863908 }
Transient receptor potential cation channel subfamily V member 1 Transient receptor potential cation channel subfamily V member 1 Cystic fibrosis transmembrane conductance regulator
Did you mean Transient receptor potential cation channel subfamily V member 1 ?
Transient receptor potential cation channel subfamily V member 1
[{'concept': 'nucleic acid sequence'}, 'encodes', 'Transient receptor potential cation channel subfamily V member 1'] [{'concept': 'nucleic acid sequence'}, 'encodes', 'Transient receptor potential cation channel subfamily V member 1'] [{'concept': 'nucleic acid sequence'}, 'encodes', 'Cystic fibrosis transmembrane conductance regulator']
SELECT DISTINCT ?p WHERE { ?p property:encodes resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 . ?p rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q863908),P688,Q14908176)
[{'concept': 'Q863908'}, 'P688', 'Q14908176']
[{'concept': 'nucleic acid sequence'}, 'encodes', 'Transient receptor potential cation channel subfamily V member 1']
[]
Q14908165
SYSTEM
Trpv1
Q14908165
(c(Q863908),P688,Q14908176)
action filter_type
action find_reverse
entity Q14908176
relation P688
type Q863908
[ANSWER] encodes that nutrient
[{'concept': 'Q863908'}, 'P688', 'Q14908176']
SELECT DISTINCT ?p WHERE { ?p property:P688 resource:Q14908176 . ?p rdf:type ontology:Q863908 }
Trpv1
Trpv1 encodes that nutrient
Trpv1
action filter_type
action find_reverse
entity Transient receptor potential cation channel subfamily V member 1
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'Transient receptor potential cation channel subfamily V member 1']
SELECT DISTINCT ?p WHERE { ?p property:encodes resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 . ?p rdf:type ontology:nucleic_acid_sequence }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q14908165 Q14908176
P702
Q181394
USER
Is Transient receptor potential cation channel subfamily V member 1 the gene that is encoded by that nucleic acid sequence ?
(Q14908176,P702,Q14908165)
action is_in
entity Q14908165
action find
entity Q14908176
relation P702
['Q14908176', 'P702', 'Q14908165']
ASK WHERE { resource:Q14908176 property:P702 resource:Q14908165 }
Trpv1 Transient receptor potential cation channel subfamily V member 1
action is_in
entity Trpv1
action find
entity Transient receptor potential cation channel subfamily V member 1
relation encoded by
['Transient receptor potential cation channel subfamily V member 1', 'encoded by', 'Trpv1']
ASK WHERE { resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 property:encoded_by resource:Trpv1 }
[]
nutrient
SYSTEM
YES
(Q14908176,P702,Q14908165)
action is_in
entity Q14908165
action find
entity Q14908176
relation P702
[ANSWER]
['Q14908176', 'P702', 'Q14908165']
ASK WHERE { resource:Q14908176 property:P702 resource:Q14908165 }
Yes
action is_in
entity Trpv1
action find
entity Transient receptor potential cation channel subfamily V member 1
relation encoded by
['Transient receptor potential cation channel subfamily V member 1', 'encoded by', 'Trpv1']
ASK WHERE { resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 property:encoded_by resource:Trpv1 }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1477 Q18556979
P2176
Q8386
USER
Which drugs are prescribed for peripheral nervous system disease and ulcerative colitis ?
AND((Q18556979,P2176,c(Q8386)), (Q1477,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q18556979
relation P2176
action find
entity Q1477
relation P2176
type Q8386
{'AND': [['Q18556979', 'P2176', {'concept': 'Q8386'}], ['Q1477', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?d WHERE { resource:Q18556979 property:P2176 ?d . resource:Q1477 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
ulcerative colitis peripheral nervous system disease
action filter_type
action intersection
action find
entity peripheral nervous system disease
relation drug used for treatment
action find
entity ulcerative colitis
relation drug used for treatment
type drug
{'AND': [['peripheral nervous system disease', 'drug used for treatment', {'concept': 'drug'}], ['ulcerative colitis', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?d WHERE { resource:peripheral_nervous_system_disease property:drug_used_for_treatment ?d . resource:ulcerative_colitis property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
drug
Q412323
SYSTEM
Rituximab
Q412323
AND((Q18556979,P2176,c(Q8386)), (Q1477,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q18556979
relation P2176
action find
entity Q1477
relation P2176
type Q8386
[ANSWER] is prescribed for peripheral nervous system disease and ulcerative colitis
{'AND': [['Q18556979', 'P2176', {'concept': 'Q8386'}], ['Q1477', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?d WHERE { resource:Q18556979 property:P2176 ?d . resource:Q1477 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
Rituximab
Rituximab is prescribed for peripheral nervous system disease and ulcerative colitis
Rituximab
action filter_type
action intersection
action find
entity peripheral nervous system disease
relation drug used for treatment
action find
entity ulcerative colitis
relation drug used for treatment
type drug
{'AND': [['peripheral nervous system disease', 'drug used for treatment', {'concept': 'drug'}], ['ulcerative colitis', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?d WHERE { resource:peripheral_nervous_system_disease property:drug_used_for_treatment ?d . resource:ulcerative_colitis property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P2175
Q12136 Q8386
USER
How many diseases require atmost 16 drugs to be prescribed ?
(c(Q8386),P2175,c(Q12136))
action count
action atmost
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
value 16
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?y ) WHERE { ?a property:P2175 ?h . ?h rdf:type ontology:Q12136 . ?a rdf:type ontology:Q8386 } GROUP BY ?h } . FILTER ( ?y <= 16 ) }
action count
action atmost
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
value 16
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?y ) WHERE { ?a property:medical_condition_treated ?h . ?h rdf:type ontology:disease . ?a rdf:type ontology:drug } GROUP BY ?h } . FILTER ( ?y <= 16 ) }
[]
disease drug
SYSTEM
39
Q1467339 Q2200381 Q167844 Q1444550 Q7514772 Q18555060 Q1935832 Q917620 Q988594 Q1415275 Q1956718 Q815753 Q854353 Q18554891 Q1148337 Q627368 Q1363738 Q4138762 Q852163 Q2915477 Q133212 Q127664 Q110315 Q3726949 Q86 Q4117658 Q2067267 Q18554341 Q189331 Q304497 Q23772742 Q12133 Q6029216 Q1068134 Q4118092 Q7616509 Q1996053 Q3072083 Q1283303
(c(Q8386),P2175,c(Q12136))
action count
action atmost
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
value 16
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?y ) WHERE { ?a property:P2175 ?h . ?h rdf:type ontology:Q12136 . ?a rdf:type ontology:Q8386 } GROUP BY ?h } . FILTER ( ?y <= 16 ) }
hypertriglyceridemia Neurogenic shock conjunctivitis ischaemic heart disease Silent stroke arteriosclerotic cardiovascular disease neurofibromatosis type II Onychomycosis eczema Spinal cord injury Becker myotonia filariasis enteritis squamous cell carcinoma hepatocellular carcinoma Blastomycosis Erythema nodosum Hypovitaminosis D lower back pain Folate deficiency tumor Febrile seizure lead poisoning episcleritis headache inflammatory myopathy Niemann–Pick disease, type C hepatic coma cardiac dysrhythmia Hemiplegia Bacteroides Infections deafness infectious bone disease Morning sickness Macroglobulinemia neurofibromatosis type I chronic pancreatitis memory disorder Tricuspid atresia
39
action count
action atmost
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
value 16
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?y ) WHERE { ?a property:medical_condition_treated ?h . ?h rdf:type ontology:disease . ?a rdf:type ontology:drug } GROUP BY ?h } . FILTER ( ?y <= 16 ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q217519
Q8386
USER
And what about bubonic plague?
(Q217519,P2175,c(Q8386))
action count
action filter_type
action find
entity Q217519
relation P2175
type Q8386
['Q217519', 'P2175', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { resource:Q217519 property:P2175 ?n . ?n rdf:type ontology:Q8386 }
bubonic plague
action count
action filter_type
action find
entity bubonic plague
relation medical condition treated
type drug
['bubonic plague', 'medical condition treated', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { resource:bubonic_plague property:medical_condition_treated ?n . ?n rdf:type ontology:drug }
[]
drug
SYSTEM
4
(Q217519,P2175,c(Q8386))
action count
action filter_type
action find
entity Q217519
relation P2175
type Q8386
[ANSWER]
['Q217519', 'P2175', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { resource:Q217519 property:P2175 ?n . ?n rdf:type ontology:Q8386 }
4
action count
action filter_type
action find
entity bubonic plague
relation medical condition treated
type drug
['bubonic plague', 'medical condition treated', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { resource:bubonic_plague property:medical_condition_treated ?n . ?n rdf:type ontology:drug }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q389735 Q14908176
P129 P2175
Q8386
USER
Which drugs can communicate with Transient receptor potential cation channel subfamily V member 1 or are used to cure cardiovascular disease ?
OR((c(Q8386),P129,Q14908176), (c(Q8386),P2175,Q389735))
action filter_type
action union
action find_reverse
entity Q14908176
relation P129
action find_reverse
entity Q389735
relation P2175
type Q8386
{'OR': [[{'concept': 'Q8386'}, 'P129', 'Q14908176'], [{'concept': 'Q8386'}, 'P2175', 'Q389735']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P129 resource:Q14908176 } UNION { ?c property:P2175 resource:Q389735 } } . ?c rdf:type ontology:Q8386 }
cardiovascular disease Transient receptor potential cation channel subfamily V member 1
action filter_type
action union
action find_reverse
entity Transient receptor potential cation channel subfamily V member 1
relation physically interacts with
action find_reverse
entity cardiovascular disease
relation medical condition treated
type drug
{'OR': [[{'concept': 'drug'}, 'physically interacts with', 'Transient receptor potential cation channel subfamily V member 1'], [{'concept': 'drug'}, 'medical condition treated', 'cardiovascular disease']]}
SELECT DISTINCT ?c WHERE { { { ?c property:physically_interacts_with resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 } UNION { ?c property:medical_condition_treated resource:cardiovascular_disease } } . ?c rdf:type ontology:drug }
[]
drug
Q5199066 Q18216 Q6823919 Q409231 Q5264583 Q2701912 Q412486 Q139347 Q419724 Q221520
SYSTEM
Some of them are cyclothiazide, acetylsalicylic acid, methyclothiazide, indomethacin, deslanoside, clofibrate, allopurinol, Cholecalciferol, fenofibrate, triamterene
Q417296 Q3342150 Q2072745 Q579348 Q18216 Q419948 Q10354103 Q5268499 Q258591 Q3791957 Q7227099 Q409231 Q424952 Q422232 Q412221 Q421429 Q2701912 Q273169 Q670131 Q7272222 Q414873 Q1169561 Q929420 Q5264583 Q419724 Q6823919 Q1169164 Q221520 Q5199066 Q423890 Q417740 Q412486 Q420644 Q418571 Q418101 Q139347
OR((c(Q8386),P129,Q14908176), (c(Q8386),P2175,Q389735))
action filter_type
action union
action find_reverse
entity Q14908176
relation P129
action find_reverse
entity Q389735
relation P2175
type Q8386
[ANSWERS] can communicate with Transient receptor potential cation channel subfamily V member 1 or are used to cure cardiovascular disease
{'OR': [[{'concept': 'Q8386'}, 'P129', 'Q14908176'], [{'concept': 'Q8386'}, 'P2175', 'Q389735']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P129 resource:Q14908176 } UNION { ?c property:P2175 resource:Q389735 } } . ?c rdf:type ontology:Q8386 }
febuxostat nisoldipine trichlormethiazide PGE1 acetylsalicylic acid torsemide probucol dextrothyroxine cilostazol hydroflumethiazide polythiazide indomethacin nadolol methotrexate clonidine nimodipine clofibrate capsaicin simvastatin quinethazone Isradipine metolazone trandolapril deslanoside fenofibrate methyclothiazide bendroflumethiazide triamterene cyclothiazide digitoxin lovastatin allopurinol felodipine ethacrynic acid pindolol Cholecalciferol
Cyclothiazide, acetylsalicylic acid, methyclothiazide, indomethacin, deslanoside, clofibrate, allopurinol, Cholecalciferol, fenofibrate and triamterene can communicate with Transient receptor potential cation channel subfamily V member 1 or are used to cure cardiovascular disease
cyclothiazide acetylsalicylic acid methyclothiazide indomethacin deslanoside clofibrate allopurinol Cholecalciferol fenofibrate triamterene
action filter_type
action union
action find_reverse
entity Transient receptor potential cation channel subfamily V member 1
relation physically interacts with
action find_reverse
entity cardiovascular disease
relation medical condition treated
type drug
{'OR': [[{'concept': 'drug'}, 'physically interacts with', 'Transient receptor potential cation channel subfamily V member 1'], [{'concept': 'drug'}, 'medical condition treated', 'cardiovascular disease']]}
SELECT DISTINCT ?c WHERE { { { ?c property:physically_interacts_with resource:Transient_receptor_potential_cation_channel_subfamily_V_member_1 } UNION { ?c property:medical_condition_treated resource:cardiovascular_disease } } . ?c rdf:type ontology:drug }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5199066 Q18216 Q6823919 Q409231 Q5264583 Q2701912 Q412486 Q139347 Q419724 Q221520
P2176
Q2057971
USER
Which health problems are treated with cyclothiazide, acetylsalicylic acid, methyclothiazide, indomethacin, deslanoside, clofibrate, allopurinol, Cholecalciferol, fenofibrate and triamterene ?
(c(Q2057971),P2176,Q5199066) (c(Q2057971),P2176,Q18216) (c(Q2057971),P2176,Q6823919) (c(Q2057971),P2176,Q409231) (c(Q2057971),P2176,Q5264583) (c(Q2057971),P2176,Q2701912) (c(Q2057971),P2176,Q412486) (c(Q2057971),P2176,Q139347) (c(Q2057971),P2176,Q419724) (c(Q2057971),P2176,Q221520)
action union
action filter_type
action find_reverse
entity Q5199066
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q18216
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q6823919
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q409231
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q5264583
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2701912
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q412486
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q139347
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q419724
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q221520
relation P2176
type Q2057971
[{'concept': 'Q2057971'}, 'P2176', 'Q5199066'] [{'concept': 'Q2057971'}, 'P2176', 'Q18216'] [{'concept': 'Q2057971'}, 'P2176', 'Q6823919'] [{'concept': 'Q2057971'}, 'P2176', 'Q409231'] [{'concept': 'Q2057971'}, 'P2176', 'Q5264583'] [{'concept': 'Q2057971'}, 'P2176', 'Q2701912'] [{'concept': 'Q2057971'}, 'P2176', 'Q412486'] [{'concept': 'Q2057971'}, 'P2176', 'Q139347'] [{'concept': 'Q2057971'}, 'P2176', 'Q419724'] [{'concept': 'Q2057971'}, 'P2176', 'Q221520']
SELECT DISTINCT ?x WHERE { VALUES ( ?f ) { ( resource:Q5199066 ) ( resource:Q18216 ) } . ?x property:P2176 ?f }
cyclothiazide acetylsalicylic acid methyclothiazide indomethacin deslanoside clofibrate allopurinol Cholecalciferol fenofibrate triamterene
action union
action filter_type
action find_reverse
entity cyclothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity acetylsalicylic acid
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity methyclothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity indomethacin
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 clofibrate
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity allopurinol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity Cholecalciferol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity fenofibrate
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity triamterene
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'cyclothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'acetylsalicylic acid'] [{'concept': 'health problem'}, 'drug used for treatment', 'methyclothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'indomethacin'] [{'concept': 'health problem'}, 'drug used for treatment', 'deslanoside'] [{'concept': 'health problem'}, 'drug used for treatment', 'clofibrate'] [{'concept': 'health problem'}, 'drug used for treatment', 'allopurinol'] [{'concept': 'health problem'}, 'drug used for treatment', 'Cholecalciferol'] [{'concept': 'health problem'}, 'drug used for treatment', 'fenofibrate'] [{'concept': 'health problem'}, 'drug used for treatment', 'triamterene']
SELECT DISTINCT ?x WHERE { VALUES ( ?f ) { ( resource:cyclothiazide ) ( resource:acetylsalicylic_acid ) } . ?x property:drug_used_for_treatment ?f }
[]
health problem
Q12174 Q187255 Q128581
SYSTEM
obesity, rheumatoid arthritis, breast cancer
Q389735 Q504790 Q41861 Q19000661 Q486485 Q18968110 Q172941 Q2157462 Q389735 Q18556932 Q18554884 Q18556697 Q1128595 Q133823 Q41861 Q131755 Q2421435 Q185034 Q199804 Q4862390 Q128581 Q179399 Q48143 Q18555280 Q2300099 Q844935 Q19000661 Q815819 Q18555944 Q389735 Q504790 Q41861 Q19000661 Q486485 Q645363 Q62736 Q3441028 Q52844 Q52849 Q133087 Q389735 Q1527888 Q2072063 Q187255 Q2300099 Q3041498 Q389735 Q19000661 Q815819 Q184559 Q389735 Q18554145 Q844935 Q29496 Q133087 Q389735 Q208414 Q41861 Q131755 Q657193 Q19000661 Q49970 Q736715 Q62736 Q4676432 Q2840 Q389735 Q1344835 Q18557172 Q18556932 Q18556020 Q18556697 Q18555315 Q181257 Q165328 Q18555066 Q185034 Q2661464 Q8277 Q128581 Q1477 Q10863074 Q154869 Q12174 Q19000661 Q1485 Q916280 Q949302 Q1088156 Q3041498 Q12192 Q184559 Q18554727 Q467635 Q389735 Q18556697 Q657193 Q18554145 Q844935 Q1072420 Q389735 Q41861 Q486485
(c(Q2057971),P2176,Q5199066) (c(Q2057971),P2176,Q18216) (c(Q2057971),P2176,Q6823919) (c(Q2057971),P2176,Q409231) (c(Q2057971),P2176,Q5264583) (c(Q2057971),P2176,Q2701912) (c(Q2057971),P2176,Q412486) (c(Q2057971),P2176,Q139347) (c(Q2057971),P2176,Q419724) (c(Q2057971),P2176,Q221520)
action union
action filter_type
action find_reverse
entity Q5199066
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q18216
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q6823919
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q409231
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q5264583
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q2701912
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q412486
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q139347
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q419724
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q221520
relation P2176
type Q2057971
[ANSWERS] are treated with cyclothiazide, acetylsalicylic acid, methyclothiazide, indomethacin, deslanoside, clofibrate, allopurinol, Cholecalciferol, fenofibrate and triamterene
[{'concept': 'Q2057971'}, 'P2176', 'Q5199066'] [{'concept': 'Q2057971'}, 'P2176', 'Q18216'] [{'concept': 'Q2057971'}, 'P2176', 'Q6823919'] [{'concept': 'Q2057971'}, 'P2176', 'Q409231'] [{'concept': 'Q2057971'}, 'P2176', 'Q5264583'] [{'concept': 'Q2057971'}, 'P2176', 'Q2701912'] [{'concept': 'Q2057971'}, 'P2176', 'Q412486'] [{'concept': 'Q2057971'}, 'P2176', 'Q139347'] [{'concept': 'Q2057971'}, 'P2176', 'Q419724'] [{'concept': 'Q2057971'}, 'P2176', 'Q221520']
SELECT DISTINCT ?x WHERE { VALUES ( ?f ) { ( resource:Q5199066 ) ( resource:Q18216 ) } . ?x property:P2176 ?f }
cardiovascular disease nephrotic syndrome hypertension congestive heart failure Anasarca duodenal ulcer peptic ulcer disease schizophreniform disorder cardiovascular disease large intestine cancer retinal vein occlusion human immunodeficiency virus infectious disease pulmonary hypertension migraine hypertension bipolar disorder pre-eclampsia sickle cell anemia chronic obstructive pulmonary disease brain ischemia breast cancer infertility meningitis giant cell glioblastoma gastrointestinal system disease coronary artery disease congestive heart failure atrial fibrillation brain infarction cardiovascular disease nephrotic syndrome hypertension congestive heart failure Anasarca bursitis osteoarthritis/osteodystrophy Norum disease enthesopathy ankylosing spondylitis gout cardiovascular disease pancreatitis patent ductus arteriosus rheumatoid arthritis gastrointestinal system disease eye disease cardiovascular disease congestive heart failure atrial fibrillation arteriosclerosis cardiovascular disease familial hyperlipidemia coronary artery disease leukemia gout cardiovascular disease lymphoma hypertension bipolar disorder metabolic syndrome congestive heart failure hyperuricemia chronic kidney disease osteoarthritis/osteodystrophy pustulosis of palm and sole influenza cardiovascular disease hyperparathyroidism follicular adenoma large intestine cancer lung benign neoplasm human immunodeficiency virus infectious disease skin benign neoplasm prostate cancer osteoporosis relapsing-remitting multiple sclerosis sickle cell anemia glucose intolerance multiple sclerosis breast cancer ulcerative colitis fatty liver disease hepatitis C obesity congestive heart failure systemic lupus erythematosus restless legs syndrome skin disease chronic lymphocytic leukemia eye disease pneumonia arteriosclerosis sclerosing cholangitis multiple myeloma cardiovascular disease human immunodeficiency virus infectious disease metabolic syndrome familial hyperlipidemia coronary artery disease primary biliary cirrhosis cardiovascular disease hypertension Anasarca
Obesity, rheumatoid arthritis and breast cancer are treated with cyclothiazide, acetylsalicylic acid, methyclothiazide, indomethacin, deslanoside, clofibrate, allopurinol, Cholecalciferol, fenofibrate and triamterene
obesity rheumatoid arthritis breast cancer
action union
action filter_type
action find_reverse
entity cyclothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity acetylsalicylic acid
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity methyclothiazide
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity indomethacin
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 clofibrate
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity allopurinol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity Cholecalciferol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity fenofibrate
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity triamterene
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'cyclothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'acetylsalicylic acid'] [{'concept': 'health problem'}, 'drug used for treatment', 'methyclothiazide'] [{'concept': 'health problem'}, 'drug used for treatment', 'indomethacin'] [{'concept': 'health problem'}, 'drug used for treatment', 'deslanoside'] [{'concept': 'health problem'}, 'drug used for treatment', 'clofibrate'] [{'concept': 'health problem'}, 'drug used for treatment', 'allopurinol'] [{'concept': 'health problem'}, 'drug used for treatment', 'Cholecalciferol'] [{'concept': 'health problem'}, 'drug used for treatment', 'fenofibrate'] [{'concept': 'health problem'}, 'drug used for treatment', 'triamterene']
SELECT DISTINCT ?x WHERE { VALUES ( ?f ) { ( resource:cyclothiazide ) ( resource:acetylsalicylic_acid ) } . ?x property:drug_used_for_treatment ?f }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12174
P509
Q502895
USER
Who died from that health problem ?
(c(Q502895),P509,Q12174)
action filter_type
action find_reverse
entity Q12174
relation P509
type Q502895
[{'concept': 'Q502895'}, 'P509', 'Q12174']
SELECT DISTINCT ?j WHERE { ?j property:P509 resource:Q12174 . ?j rdf:type ontology:Q502895 }
obesity
action filter_type
action find_reverse
entity obesity
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'obesity']
SELECT DISTINCT ?j WHERE { ?j property:cause_of_death resource:obesity . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q128581
SYSTEM
Did you mean breast cancer ?
Q12174 Q187255 Q128581
(c(Q502895),P509,Q12174) (c(Q502895),P509,Q187255) (c(Q502895),P509,Q128581)
[ANSWER]
[{'concept': 'Q502895'}, 'P509', 'Q12174'] [{'concept': 'Q502895'}, 'P509', 'Q187255'] [{'concept': 'Q502895'}, 'P509', 'Q128581']
SELECT DISTINCT ?j WHERE { ?j property:P509 resource:Q12174 . ?j rdf:type ontology:Q502895 }
obesity rheumatoid arthritis breast cancer
Did you mean breast cancer ?
breast cancer
[{'concept': 'common name'}, 'cause of death', 'obesity'] [{'concept': 'common name'}, 'cause of death', 'rheumatoid arthritis'] [{'concept': 'common name'}, 'cause of death', 'breast cancer']
SELECT DISTINCT ?j WHERE { ?j property:cause_of_death resource:obesity . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant obesity. Could you tell me the answer for that?
(c(Q502895),P509,Q12174)
Q12174
[{'concept': 'Q502895'}, 'P509', 'Q12174']
[{'concept': 'common name'}, 'cause of death', 'obesity']
[]
Q18603607
SYSTEM
Eric Garner
Q18603607
(c(Q502895),P509,Q12174)
action filter_type
action find_reverse
entity Q12174
relation P509
type Q502895
[ANSWER] died from that health problem
[{'concept': 'Q502895'}, 'P509', 'Q12174']
SELECT DISTINCT ?j WHERE { ?j property:P509 resource:Q12174 . ?j rdf:type ontology:Q502895 }
Eric Garner
Eric Garner died from that health problem
Eric Garner
action filter_type
action find_reverse
entity obesity
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'obesity']
SELECT DISTINCT ?j WHERE { ?j property:cause_of_death resource:obesity . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18603607 Q18557586 Q35869
P509
Q2057971
USER
Did that person died from polyvesicular vitelline pattern testicular yolk sac tumor and asthma ?
(Q18603607,P509,Q18557586) (Q18603607,P509,Q35869)
action is_in
entity Q18603607
action intersection
action find_reverse
entity Q18557586
relation P509
action find_reverse
entity Q35869
relation P509
['Q18603607', 'P509', 'Q18557586'] ['Q18603607', 'P509', 'Q35869']
ASK WHERE { resource:Q18603607 property:P509 resource:Q18557586 . resource:Q18603607 property:P509 resource:Q35869 }
Eric Garner polyvesicular vitelline pattern testicular yolk sac tumor asthma
action is_in
entity Eric Garner
action intersection
action find_reverse
entity polyvesicular vitelline pattern testicular yolk sac tumor
relation cause of death
action find_reverse
entity asthma
relation cause of death
['Eric Garner', 'cause of death', 'polyvesicular vitelline pattern testicular yolk sac tumor'] ['Eric Garner', 'cause of death', 'asthma']
ASK WHERE { resource:Eric_Garner property:cause_of_death resource:polyvesicular_vitelline_pattern_testicular_yolk_sac_tumor . resource:Eric_Garner property:cause_of_death resource:asthma }
[]
health problem
SYSTEM
NO and YES respectively
(Q18603607,P509,Q18557586) (Q18603607,P509,Q35869)
action is_in
entity Q18603607
action intersection
action find_reverse
entity Q18557586
relation P509
action find_reverse
entity Q35869
relation P509
[ANSWER]
['Q18603607', 'P509', 'Q18557586'] ['Q18603607', 'P509', 'Q35869']
ASK WHERE { resource:Q18603607 property:P509 resource:Q18557586 . resource:Q18603607 property:P509 resource:Q35869 }
NO and YES respectively
action is_in
entity Eric Garner
action intersection
action find_reverse
entity polyvesicular vitelline pattern testicular yolk sac tumor
relation cause of death
action find_reverse
entity asthma
relation cause of death
['Eric Garner', 'cause of death', 'polyvesicular vitelline pattern testicular yolk sac tumor'] ['Eric Garner', 'cause of death', 'asthma']
ASK WHERE { resource:Eric_Garner property:cause_of_death resource:polyvesicular_vitelline_pattern_testicular_yolk_sac_tumor . resource:Eric_Garner property:cause_of_death resource:asthma }
[]