Simple Question (Direct)
Simple Question
Q658468
P509
Q2057971
USER
What lead to the death of Mouss Diouf ?
(Q658468,P509,c(Q2057971))
action filter_type
action find
entity Q658468
relation P509
type Q2057971
['Q658468', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2057971 . resource:Q658468 property:P509 ?j }
Mouss Diouf
action filter_type
action find
entity Mouss Diouf
relation cause of death
type health problem
['Mouss Diouf', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:health_problem . resource:Mouss_Diouf property:cause_of_death ?j }
[]
health problem
Q12202
SYSTEM
stroke
Q12202
(Q658468,P509,c(Q2057971))
action filter_type
action find
entity Q658468
relation P509
type Q2057971
The [ANSWER] lead to the death of Mouss Diouf
['Q658468', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2057971 . resource:Q658468 property:P509 ?j }
stroke
The stroke lead to the death of Mouss Diouf
stroke
action filter_type
action find
entity Mouss Diouf
relation cause of death
type health problem
['Mouss Diouf', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:health_problem . resource:Mouss_Diouf property:cause_of_death ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12202
P2176
Q8386
USER
Which drug is used as a remedy for that health problem ?
(Q12202,P2176,c(Q8386))
action filter_type
action find
entity Q12202
relation P2176
type Q8386
['Q12202', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q8386 . resource:Q12202 property:P2176 ?r }
stroke
action filter_type
action find
entity stroke
relation drug used for treatment
type drug
['stroke', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:drug . resource:stroke property:drug_used_for_treatment ?r }
[]
drug
Q416331
SYSTEM
pentoxifylline
Q416331
(Q12202,P2176,c(Q8386))
action filter_type
action find
entity Q12202
relation P2176
type Q8386
[ANSWER] is used as a remedy for that health problem
['Q12202', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q8386 . resource:Q12202 property:P2176 ?r }
pentoxifylline
Pentoxifylline is used as a remedy for that health problem
pentoxifylline
action filter_type
action find
entity stroke
relation drug used for treatment
type drug
['stroke', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:drug . resource:stroke property:drug_used_for_treatment ?r }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q68833
P828
Q2057971 Q12136 Q3839081
USER
Which health problems are the underlying cause of lesser number of diseases and disasters than bone fracture ?
(c(Q12136)|c(Q3839081),P828,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action count
action filter_multi_types
action find_reverse
entity Q68833
relation P828
type Q12136
type Q3839081
[[{'concept': 'Q12136'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P828 resource:Q68833 . { VALUES ( ?m ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?o rdf:type ?m } } } . FILTER ( ?y < ?s ) }
bone fracture
action less
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action count
action filter_multi_types
action find_reverse
entity bone fracture
relation has cause
type disease
type disaster
[[{'concept': 'disease'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:disease ) ( ontology:disaster ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:has_cause resource:bone_fracture . { VALUES ( ?m ) { ( ontology:disease ) ( ontology:disaster ) } . ?o rdf:type ?m } } } . FILTER ( ?y < ?s ) }
[]
health problem disease disaster
Q221668 Q11085 Q12152
SYSTEM
acute cystitis, Parkinson's disease, myocardial infarction
Q83319 Q271759 Q41478 Q1346016 Q1909343 Q7080278 Q836356 Q721073 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q478389 Q1704044 Q6673122 Q180152 Q12152 Q1135338 Q217519 Q2047938 Q3043145 Q511097 Q727028 Q3149939 Q18554068 Q42982 Q847583 Q460167 Q767485 Q799615 Q32446 Q662298 Q1518637 Q5160454 Q181754 Q105688 Q11085 Q378681 Q221668 Q124604 Q281928 Q4366062 Q2450598 Q2064603 Q661015 Q477390 Q736715 Q12125 Q273510 Q179945 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q664174 Q133780 Q15715457 Q2840
(c(Q12136)|c(Q3839081),P828,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action count
action filter_multi_types
action find_reverse
entity Q68833
relation P828
type Q12136
type Q3839081
[ANSWERS] are the underlying cause of lesser number of diseases and disasters than bone fracture
[[{'concept': 'Q12136'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P828 resource:Q68833 . { VALUES ( ?m ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?o rdf:type ?m } } } . FILTER ( ?y < ?s ) }
typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis Oguchi disease croup delusional disorder intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak kyphosis portal vein thrombosis thyroid gland disease Vitiligo myocardial infarction Bell's palsy bubonic plague side effect cytochrome P450 Oxidoreductase Deficiency psoriatic arthritis bacterial infectious disease neonatal alloimmune disease lens subluxation type I hypersensitivity cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa pulmonary fibrosis ectropion VIPoma congenital syphilis heart failure hypoxia Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia Hyperinsulinism chronic kidney disease common cold candidiasis psoriasis respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis asbestosis plague hepatobiliary disease influenza
Acute cystitis, Parkinson's disease and myocardial infarction are the underlying cause of lesser number of diseases and disasters than bone fracture
acute cystitis Parkinson's disease myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action count
action filter_multi_types
action find_reverse
entity bone fracture
relation has cause
type disease
type disaster
[[{'concept': 'disease'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:disease ) ( ontology:disaster ) } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:has_cause resource:bone_fracture . { VALUES ( ?m ) { ( ontology:disease ) ( ontology:disaster ) } . ?o rdf:type ?m } } } . FILTER ( ?y < ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q12090
P828
Q2057971 Q12136 Q3839081
USER
And also tell me about Cholera?
(c(Q12136)|c(Q3839081),P828,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action count
action filter_multi_types
action find_reverse
entity Q12090
relation P828
type Q12136
type Q3839081
[[{'concept': 'Q12136'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?t ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?e rdf:type ?t } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P828 resource:Q12090 . { VALUES ( ?w ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?n rdf:type ?w } } } . FILTER ( ?r < ?s ) }
Cholera
action less
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action count
action filter_multi_types
action find_reverse
entity Cholera
relation has cause
type disease
type disaster
[[{'concept': 'disease'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?t ) { ( ontology:disease ) ( ontology:disaster ) } . ?e rdf:type ?t } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:has_cause resource:Cholera . { VALUES ( ?w ) { ( ontology:disease ) ( ontology:disaster ) } . ?n rdf:type ?w } } } . FILTER ( ?r < ?s ) }
[]
health problem disease disaster
Q221668 Q11085 Q12152
SYSTEM
acute cystitis, Parkinson's disease, myocardial infarction
Q83319 Q271759 Q41478 Q1346016 Q1909343 Q7080278 Q836356 Q721073 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q478389 Q1704044 Q6673122 Q180152 Q12152 Q1135338 Q217519 Q2047938 Q3043145 Q511097 Q727028 Q3149939 Q18554068 Q42982 Q847583 Q460167 Q767485 Q799615 Q32446 Q662298 Q1518637 Q5160454 Q181754 Q105688 Q11085 Q378681 Q221668 Q124604 Q281928 Q4366062 Q2450598 Q2064603 Q661015 Q477390 Q736715 Q12125 Q273510 Q179945 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q664174 Q133780 Q15715457 Q2840
(c(Q12136)|c(Q3839081),P828,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action count
action filter_multi_types
action find_reverse
entity Q12090
relation P828
type Q12136
type Q3839081
[ANSWERS]
[[{'concept': 'Q12136'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?t ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?e rdf:type ?t } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:P828 resource:Q12090 . { VALUES ( ?w ) { ( ontology:Q12136 ) ( ontology:Q3839081 ) } . ?n rdf:type ?w } } } . FILTER ( ?r < ?s ) }
typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis Oguchi disease croup delusional disorder intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak kyphosis portal vein thrombosis thyroid gland disease Vitiligo myocardial infarction Bell's palsy bubonic plague side effect cytochrome P450 Oxidoreductase Deficiency psoriatic arthritis bacterial infectious disease neonatal alloimmune disease lens subluxation type I hypersensitivity cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa pulmonary fibrosis ectropion VIPoma congenital syphilis heart failure hypoxia Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia Hyperinsulinism chronic kidney disease common cold candidiasis psoriasis respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis asbestosis plague hepatobiliary disease influenza
acute cystitis Parkinson's disease myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action count
action filter_multi_types
action find_reverse
entity Cholera
relation has cause
type disease
type disaster
[[{'concept': 'disease'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?r ) WHERE { VALUES ( ?t ) { ( ontology:disease ) ( ontology:disaster ) } . ?e rdf:type ?t } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { ?n property:has_cause resource:Cholera . { VALUES ( ?w ) { ( ontology:disease ) ( ontology:disaster ) } . ?n rdf:type ?w } } } . FILTER ( ?r < ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P828
Q2057971 Q169872 Q7189713
USER
Which health problems leads to min number of symptoms and physiological conditions ?
(c(Q169872)|c(Q7189713),P828,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q169872
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q7189713
[[{'concept': 'Q169872'}, {'concept': 'Q7189713'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?u WHERE { VALUES ( ?q ) { ( ontology:Q7189713 ) ( ontology:Q169872 ) } . ?r rdf:type ?q } GROUP BY ?u } . { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?o WHERE { VALUES ( ?v ) { ( ontology:Q7189713 ) ( ontology:Q169872 ) } . ?k rdf:type ?v } GROUP BY ?o } } }
action argmin
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type symptom
action find_reverse_tuple_counts
relation has cause
type health problem
type physiological condition
[[{'concept': 'symptom'}, {'concept': 'physiological condition'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?u WHERE { VALUES ( ?q ) { ( ontology:physiological_condition ) ( ontology:symptom ) } . ?r rdf:type ?q } GROUP BY ?u } . { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?o WHERE { VALUES ( ?v ) { ( ontology:physiological_condition ) ( ontology:symptom ) } . ?k rdf:type ?v } GROUP BY ?o } } }
[]
health problem symptom physiological condition
Q1485 Q124407 Q12152
SYSTEM
systemic lupus erythematosus, type 1 diabetes mellitus, myocardial infarction
Q972514 Q1346016 Q1909343 Q18554545 Q836356 Q721073 Q1485 Q1186703 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q243257 Q558070 Q41571 Q221159 Q3339235 Q183392 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q1899576 Q1704044 Q6673122 Q12090 Q8084905 Q180152 Q12152 Q1135338 Q12156 Q217519 Q2047938 Q2351083 Q3043145 Q199804 Q13365776 Q511097 Q7331102 Q847057 Q727028 Q3149939 Q42982 Q3043158 Q5384031 Q847583 Q460167 Q32446 Q662298 Q1518637 Q3087172 Q68833 Q105688 Q1601794 Q378681 Q124604 Q79793 Q4366062 Q2064603 Q661015 Q12204 Q12206 Q4862390 Q477390 Q12125 Q273510 Q12199 Q12195 Q124407 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q133823 Q664174 Q133780 Q2840
(c(Q169872)|c(Q7189713),P828,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q169872
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q7189713
[ANSWERS] lead to min number of symptoms and physiological conditions
[[{'concept': 'Q169872'}, {'concept': 'Q7189713'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?u WHERE { VALUES ( ?q ) { ( ontology:Q7189713 ) ( ontology:Q169872 ) } . ?r rdf:type ?q } GROUP BY ?u } . { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?o WHERE { VALUES ( ?v ) { ( ontology:Q7189713 ) ( ontology:Q169872 ) } . ?k rdf:type ?v } GROUP BY ?o } } }
optic neuritis pernicious anemia dermatophytosis angle-closure glaucoma croup delusional disorder systemic lupus erythematosus demyelinating disease intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis chikungunya pelvic inflammatory disease epilepsy schistosomiasis nervous system disease rickets hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak Vasa praevia portal vein thrombosis thyroid gland disease Cholera autoimmune neuromuscular disease Vitiligo myocardial infarction Bell's palsy malaria bubonic plague side effect disease of metabolism cytochrome P450 Oxidoreductase Deficiency chronic obstructive pulmonary disease uremia psoriatic arthritis alcohol abuse retinitis pigmentosa bacterial infectious disease neonatal alloimmune disease type I hypersensitivity mevalonic aciduria Epstein–Barr virus infection cardiomyopathy Meniere's disease pulmonary fibrosis ectropion VIPoma developmental disorder of mental health bone fracture hypoxia parasitic infectious disease peripheral artery disease portal hypertension measles Pneumococcal infection pleomorphic adenoma achalasia tuberculosis diabetes mellitus brain ischemia Hyperinsulinism common cold candidiasis acquired immunodeficiency syndrome poliomyelitis type 1 diabetes mellitus respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis migraine asbestosis plague influenza
Systemic lupus erythematosus, type 1 diabetes mellitus and myocardial infarction lead to min number of symptoms and physiological conditions
systemic lupus erythematosus type 1 diabetes mellitus myocardial infarction
action argmin
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type symptom
action find_reverse_tuple_counts
relation has cause
type health problem
type physiological condition
[[{'concept': 'symptom'}, {'concept': 'physiological condition'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?u WHERE { VALUES ( ?q ) { ( ontology:physiological_condition ) ( ontology:symptom ) } . ?r rdf:type ?q } GROUP BY ?u } . { SELECT DISTINCT ( MIN ( ?j ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?o WHERE { VALUES ( ?v ) { ( ontology:physiological_condition ) ( ontology:symptom ) } . ?k rdf:type ?v } GROUP BY ?o } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q17011974
P828
Q2057971 Q7189713
USER
How many physiological conditions do more number of health problems cause than Elevated alkaline phosphatase ?
(c(Q7189713),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q17011974
relation P828
type Q7189713
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q17011974 property:P828 ?f . ?f rdf:type ontology:Q7189713 } } . FILTER ( ?c > ?q ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?c ) WHERE { ?g property:P828 ?z . ?z rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q7189713 } GROUP BY ?g } }
Elevated alkaline phosphatase
action count
action greater
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity Elevated alkaline phosphatase
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Elevated_alkaline_phosphatase property:has_cause ?f . ?f rdf:type ontology:physiological_condition } } . FILTER ( ?c > ?q ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?c ) WHERE { ?g property:has_cause ?z . ?z rdf:type ontology:health_problem . ?g rdf:type ontology:physiological_condition } GROUP BY ?g } }
[]
health problem physiological condition
SYSTEM
19
Q1149382 Q18347891 Q1424702 Q3542219 Q3427755 Q738538 Q3557657 Q4976425 Q4099570 Q7261489 Q7370380 Q418527 Q8036919 Q1516325 Q4143478 Q6884891 Q3398233 Q649122 Q16946733
(c(Q7189713),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find
entity Q17011974
relation P828
type Q7189713
[ANSWER]
[{'concept': 'Q7189713'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q17011974 property:P828 ?f . ?f rdf:type ontology:Q7189713 } } . FILTER ( ?c > ?q ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?c ) WHERE { ?g property:P828 ?z . ?z rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q7189713 } GROUP BY ?g } }
Janeway lesion Haab's striae Hutchinson's teeth typhoid state Diaphragmatic paradox tic social anxiety Brown tumor Forchheimer spots purple urine bag syndrome Roth's spot akinesia Woronoff's ring Osler's node hunchback Mizuo–Nakamura phenomenon porphyrinuria Jugular venous pressure Phacodonesis
19
action count
action greater
action find_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find
entity Elevated alkaline phosphatase
relation has cause
type physiological condition
[{'concept': 'physiological condition'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Elevated_alkaline_phosphatase property:has_cause ?f . ?f rdf:type ontology:physiological_condition } } . FILTER ( ?c > ?q ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?c ) WHERE { ?g property:has_cause ?z . ?z rdf:type ontology:health_problem . ?g rdf:type ontology:physiological_condition } GROUP BY ?g } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12202
P1196
Q502895
USER
Which people died with stroke as their reason ?
(c(Q502895),P1196,Q12202)
action filter_type
action find_reverse
entity Q12202
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q12202']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P1196 resource:Q12202 }
stroke
action filter_type
action find_reverse
entity stroke
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'stroke']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:manner_of_death resource:stroke }
[]
common name
Q18331257 Q18002257
SYSTEM
John Mortvedt, Adolphe Lèbre
Q18331257 Q18002257
(c(Q502895),P1196,Q12202)
action filter_type
action find_reverse
entity Q12202
relation P1196
type Q502895
[ANSWERS] died with stroke as their reason
[{'concept': 'Q502895'}, 'P1196', 'Q12202']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P1196 resource:Q12202 }
John Mortvedt Adolphe Lèbre
John Mortvedt and Adolphe Lèbre died with stroke as their reason
John Mortvedt Adolphe Lèbre
action filter_type
action find_reverse
entity stroke
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'stroke']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:manner_of_death resource:stroke }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12202
P921
Q1318295
USER
Which narrative has that health problem as its principal topic ?
(c(Q1318295),P921,Q18331257) (c(Q1318295),P921,Q18002257)
action filter_type
action find_reverse
entity Q12202
relation P921
type Q1318295
[{'concept': 'Q1318295'}, 'P921', 'Q18331257'] [{'concept': 'Q1318295'}, 'P921', 'Q18002257']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1318295 . ?d property:P921 resource:Q12202 }
stroke
action filter_type
action find_reverse
entity stroke
relation main subject
type narrative
[{'concept': 'narrative'}, 'main subject', 'John Mortvedt'] [{'concept': 'narrative'}, 'main subject', 'Adolphe Lèbre']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:narrative . ?d property:main_subject resource:stroke }
[]
narrative
Q23069606
SYSTEM
You'll not die
Q23069606
(c(Q1318295),P921,Q18331257) (c(Q1318295),P921,Q18002257)
action filter_type
action find_reverse
entity Q12202
relation P921
type Q1318295
[ANSWER] has that health problem as its principal topic
[{'concept': 'Q1318295'}, 'P921', 'Q18331257'] [{'concept': 'Q1318295'}, 'P921', 'Q18002257']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1318295 . ?d property:P921 resource:Q12202 }
You'll not die
You'll not die has that health problem as its principal topic
You'll not die
action filter_type
action find_reverse
entity stroke
relation main subject
type narrative
[{'concept': 'narrative'}, 'main subject', 'John Mortvedt'] [{'concept': 'narrative'}, 'main subject', 'Adolphe Lèbre']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:narrative . ?d property:main_subject resource:stroke }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q23069606 Q3544366
P800
Q502895
USER
Is Kuriko Namino accredited with being the author of the notable work that narrative ?
(Q3544366,P800,Q23069606)
action is_in
entity Q3544366
action find
entity Q23069606
relation P800
['Q3544366', 'P800', 'Q23069606']
ASK WHERE { resource:Q23069606 property:P800 resource:Q3544366 }
You'll not die Kuriko Namino
action is_in
entity Kuriko Namino
action find
entity You'll not die
relation notable work
['Kuriko Namino', 'notable work', "You'll not die"]
ASK WHERE { resource:You'll_not_die property:notable_work resource:Kuriko_Namino }
[]
common name
SYSTEM
NO
(Q3544366,P800,Q23069606)
action is_in
entity Q3544366
action find
entity Q23069606
relation P800
[ANSWER]
['Q3544366', 'P800', 'Q23069606']
ASK WHERE { resource:Q23069606 property:P800 resource:Q3544366 }
No
action is_in
entity Kuriko Namino
action find
entity You'll not die
relation notable work
['Kuriko Namino', 'notable work', "You'll not die"]
ASK WHERE { resource:You'll_not_die property:notable_work resource:Kuriko_Namino }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q658468 Q543627
P27
Q15617994
USER
Is Mouss Diouf a civilian of Mettlach ?
(Q658468,P27,Q543627)
action is_in
entity Q543627
action find
entity Q658468
relation P27
['Q658468', 'P27', 'Q543627']
ASK WHERE { resource:Q658468 property:P27 resource:Q543627 }
Mouss Diouf Mettlach
action is_in
entity Mettlach
action find
entity Mouss Diouf
relation country of citizenship
['Mouss Diouf', 'country of citizenship', 'Mettlach']
ASK WHERE { resource:Mouss_Diouf property:country_of_citizenship resource:Mettlach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q658468,P27,Q543627)
action is_in
entity Q543627
action find
entity Q658468
relation P27
[ANSWER]
['Q658468', 'P27', 'Q543627']
ASK WHERE { resource:Q658468 property:P27 resource:Q543627 }
No
action is_in
entity Mettlach
action find
entity Mouss Diouf
relation country of citizenship
['Mouss Diouf', 'country of citizenship', 'Mettlach']
ASK WHERE { resource:Mouss_Diouf property:country_of_citizenship resource:Mettlach }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7861692 Q221668
P2176
Q8386
USER
Which drugs are used as an antidote for acute cystitis or tyrosinemia type III ?
OR((Q221668,P2176,c(Q8386)), (Q7861692,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q221668
relation P2176
action find
entity Q7861692
relation P2176
type Q8386
{'OR': [['Q221668', 'P2176', {'concept': 'Q8386'}], ['Q7861692', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q221668 property:P2176 ?x } UNION { resource:Q7861692 property:P2176 ?x } } . ?x rdf:type ontology:Q8386 }
tyrosinemia type III acute cystitis
action filter_type
action union
action find
entity acute cystitis
relation drug used for treatment
action find
entity tyrosinemia type III
relation drug used for treatment
type drug
{'OR': [['acute cystitis', 'drug used for treatment', {'concept': 'drug'}], ['tyrosinemia type III', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?x WHERE { { { resource:acute_cystitis property:drug_used_for_treatment ?x } UNION { resource:tyrosinemia_type_III property:drug_used_for_treatment ?x } } . ?x rdf:type ontology:drug }
[]
drug
Q417968 Q203618 Q421670 Q423787 Q2313471 Q3307752 Q281082 Q415739 Q2555060 Q1050019
SYSTEM
Some of them are Cefotaxime, Lomefloxacin, Meropenem, Piperacillin, Dicloxacillin, Mezlocillin, Nalidixic Acid, Cefazolin, Sulfadiazine, Carbenicillin
Q1758380 Q1638852 Q2313471 Q418725 Q2552927 Q183554 Q367700 Q1639588 Q1639616 Q3976824 Q216935 Q3307752 Q1050019 Q2319020 Q422669 Q422482 Q203618 Q411447 Q2601530 Q412223 Q2736402 Q244150 Q422665 Q7636169 Q422219 Q348260 Q421713 Q163901 Q20817140 Q418546 Q423787 Q3877355 Q372598 Q417897 Q425152 Q281082 Q411417 Q808845 Q1082945 Q417968 Q424193 Q2365016 Q2878140 Q413728 Q5119441 Q1639595 Q415843 Q2325775 Q415739 Q201928 Q2602246 Q415167 Q424940 Q2555060 Q256602 Q421670 Q2601832
OR((Q221668,P2176,c(Q8386)), (Q7861692,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q221668
relation P2176
action find
entity Q7861692
relation P2176
type Q8386
[ANSWERS] are used as an antidote for acute cystitis or tyrosinemia type III
{'OR': [['Q221668', 'P2176', {'concept': 'Q8386'}], ['Q7861692', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q221668 property:P2176 ?x } UNION { resource:Q7861692 property:P2176 ?x } } . ?x rdf:type ontology:Q8386 }
Tobramycin Nafcillin Dicloxacillin Oxacillin Cefepime Fosfomycin Cyclosporine Cinoxacin enoxacin Sulfamethizole lidocaine Mezlocillin Carbenicillin cefadroxil Nitrofurantoin gentamicin Lomefloxacin Ofloxacin Cefamandole Amphotericin B Demeclocycline Ampicillin Trimethoprim Sulfacytine Cloxacillin Adalimumab ceftriaxone Cefixime Colistimethate Aztreonam Piperacillin nitisinone Sulfisoxazole Norfloxacin Imipenem Nalidixic Acid cephalexin Ceftazidime Ceftizoxime Cefotaxime Levofloxacin Gatifloxacin Bacampicillin Cefuroxime cyclacillin Gemifloxacin Sulfamethoxazole cefoperazone Cefazolin Amoxicillin Cefotetan Cefaclor Moxifloxacin Sulfadiazine Ciprofloxacin Meropenem Ticarcillin
Cefotaxime, Lomefloxacin, Meropenem, Piperacillin, Dicloxacillin, Mezlocillin, Nalidixic Acid, Cefazolin, Sulfadiazine and Carbenicillin are used as an antidote for acute cystitis or tyrosinemia type III
Cefotaxime Lomefloxacin Meropenem Piperacillin Dicloxacillin Mezlocillin Nalidixic Acid Cefazolin Sulfadiazine Carbenicillin
action filter_type
action union
action find
entity acute cystitis
relation drug used for treatment
action find
entity tyrosinemia type III
relation drug used for treatment
type drug
{'OR': [['acute cystitis', 'drug used for treatment', {'concept': 'drug'}], ['tyrosinemia type III', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?x WHERE { { { resource:acute_cystitis property:drug_used_for_treatment ?x } UNION { resource:tyrosinemia_type_III property:drug_used_for_treatment ?x } } . ?x rdf:type ontology:drug }
[]