Simple Question (Direct)
Simple Question
Q478269
P1050
Q2057971
USER
What has Kipkemboi Kimeli contracted ?
(Q478269,P1050,c(Q2057971))
action filter_type
action find
entity Q478269
relation P1050
type Q2057971
['Q478269', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q478269 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
Kipkemboi Kimeli
action filter_type
action find
entity Kipkemboi Kimeli
relation medical condition
type health problem
['Kipkemboi Kimeli', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Kipkemboi_Kimeli property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q478269,P1050,c(Q2057971))
action filter_type
action find
entity Q478269
relation P1050
type Q2057971
[ANSWER]
['Q478269', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q478269 property:P1050 ?t . ?t rdf:type ontology:Q2057971 }
tuberculosis
tuberculosis
action filter_type
action find
entity Kipkemboi Kimeli
relation medical condition
type health problem
['Kipkemboi Kimeli', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Kipkemboi_Kimeli property:medical_condition ?t . ?t rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12204
P828
Q16521
USER
What is the cause of that health problem ?
(Q12204,P828,c(Q16521))
action filter_type
action find
entity Q12204
relation P828
type Q16521
['Q12204', 'P828', {'concept': 'Q16521'}]
SELECT DISTINCT ?s WHERE { resource:Q12204 property:P828 ?s . ?s rdf:type ontology:Q16521 }
tuberculosis
action filter_type
action find
entity tuberculosis
relation has cause
type taxon
['tuberculosis', 'has cause', {'concept': 'taxon'}]
SELECT DISTINCT ?s WHERE { resource:tuberculosis property:has_cause ?s . ?s rdf:type ontology:taxon }
[]
taxon
Q130971
SYSTEM
Mycobacterium tuberculosis
Q130971
(Q12204,P828,c(Q16521))
action filter_type
action find
entity Q12204
relation P828
type Q16521
[ANSWER]
['Q12204', 'P828', {'concept': 'Q16521'}]
SELECT DISTINCT ?s WHERE { resource:Q12204 property:P828 ?s . ?s rdf:type ontology:Q16521 }
Mycobacterium tuberculosis
Mycobacterium tuberculosis
action filter_type
action find
entity tuberculosis
relation has cause
type taxon
['tuberculosis', 'has cause', {'concept': 'taxon'}]
SELECT DISTINCT ?s WHERE { resource:tuberculosis property:has_cause ?s . ?s rdf:type ontology:taxon }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18554606
Q16521
USER
And how about inclusion conjunctivitis?
(Q18554606,P828,c(Q16521))
action filter_type
action find
entity Q18554606
relation P828
type Q16521
['Q18554606', 'P828', {'concept': 'Q16521'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q16521 . resource:Q18554606 property:P828 ?d }
inclusion conjunctivitis
action filter_type
action find
entity inclusion conjunctivitis
relation has cause
type taxon
['inclusion conjunctivitis', 'has cause', {'concept': 'taxon'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:taxon . resource:inclusion_conjunctivitis property:has_cause ?d }
[]
taxon
Q131065
SYSTEM
Chlamydia trachomatis
Q131065
(Q18554606,P828,c(Q16521))
action filter_type
action find
entity Q18554606
relation P828
type Q16521
[ANSWER]
['Q18554606', 'P828', {'concept': 'Q16521'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q16521 . resource:Q18554606 property:P828 ?d }
Chlamydia trachomatis
Chlamydia trachomatis
action filter_type
action find
entity inclusion conjunctivitis
relation has cause
type taxon
['inclusion conjunctivitis', 'has cause', {'concept': 'taxon'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:taxon . resource:inclusion_conjunctivitis property:has_cause ?d }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q788926 Q131065
P828 P1995
Q2057971
USER
Which health problems do Chlamydia trachomatis lead to and have Infectious disease as the associated medical expertise ?
AND((c(Q2057971),P828,Q131065), (c(Q2057971),P1995,Q788926))
action filter_type
action intersection
action find_reverse
entity Q131065
relation P828
action find_reverse
entity Q788926
relation P1995
type Q2057971
{'AND': [[{'concept': 'Q2057971'}, 'P828', 'Q131065'], [{'concept': 'Q2057971'}, 'P1995', 'Q788926']]}
SELECT DISTINCT ?q WHERE { ?q property:P828 resource:Q131065 . ?q property:P1995 resource:Q788926 . ?q rdf:type ontology:Q2057971 }
Infectious disease Chlamydia trachomatis
action filter_type
action intersection
action find_reverse
entity Chlamydia trachomatis
relation has cause
action find_reverse
entity Infectious disease
relation medical specialty
type health problem
{'AND': [[{'concept': 'health problem'}, 'has cause', 'Chlamydia trachomatis'], [{'concept': 'health problem'}, 'medical specialty', 'Infectious disease']]}
SELECT DISTINCT ?q WHERE { ?q property:has_cause resource:Chlamydia_trachomatis . ?q property:medical_specialty resource:Infectious_disease . ?q rdf:type ontology:health_problem }
[]
health problem
Q193216 Q694552 Q153356
SYSTEM
trachoma, lymphogranuloma venereum, chlamydia
Q193216 Q694552 Q153356
AND((c(Q2057971),P828,Q131065), (c(Q2057971),P1995,Q788926))
action filter_type
action intersection
action find_reverse
entity Q131065
relation P828
action find_reverse
entity Q788926
relation P1995
type Q2057971
[ANSWERS]
{'AND': [[{'concept': 'Q2057971'}, 'P828', 'Q131065'], [{'concept': 'Q2057971'}, 'P1995', 'Q788926']]}
SELECT DISTINCT ?q WHERE { ?q property:P828 resource:Q131065 . ?q property:P1995 resource:Q788926 . ?q rdf:type ontology:Q2057971 }
trachoma lymphogranuloma venereum chlamydia
trachoma lymphogranuloma venereum chlamydia
action filter_type
action intersection
action find_reverse
entity Chlamydia trachomatis
relation has cause
action find_reverse
entity Infectious disease
relation medical specialty
type health problem
{'AND': [[{'concept': 'health problem'}, 'has cause', 'Chlamydia trachomatis'], [{'concept': 'health problem'}, 'medical specialty', 'Infectious disease']]}
SELECT DISTINCT ?q WHERE { ?q property:has_cause resource:Chlamydia_trachomatis . ?q property:medical_specialty resource:Infectious_disease . ?q rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1938763
P828
Q2057971 Q1441305
USER
Which medical signs do around the same number of health problems lead to as fecal vomiting ?
(c(Q1441305),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
action count
action filter_type
action find
entity Q1938763
relation P828
type Q1441305
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?s ) WHERE { ?f property:P828 ?x . ?x rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q1441305 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q1938763 property:P828 ?u . ?u rdf:type ontology:Q1441305 } } . FILTER ( ?s = ?j ) }
fecal vomiting
action approx
action find_tuple_counts
relation has cause
type medical sign
type health problem
action count
action filter_type
action find
entity fecal vomiting
relation has cause
type medical sign
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?s ) WHERE { ?f property:has_cause ?x . ?x rdf:type ontology:health_problem . ?f rdf:type ontology:medical_sign } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:fecal_vomiting property:has_cause ?u . ?u rdf:type ontology:medical_sign } } . FILTER ( ?s = ?j ) }
[]
health problem medical sign
Q189643 Q1938763 Q1404110
SYSTEM
delusion, fecal vomiting, greyout
Q1938763 Q189643 Q1404110 Q1566762 Q5893790 Q21402569
(c(Q1441305),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
action count
action filter_type
action find
entity Q1938763
relation P828
type Q1441305
[ANSWERS]
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?s ) WHERE { ?f property:P828 ?x . ?x rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q1441305 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q1938763 property:P828 ?u . ?u rdf:type ontology:Q1441305 } } . FILTER ( ?s = ?j ) }
fecal vomiting delusion greyout steeple sign Honeycombing rice water diarrhea
delusion fecal vomiting greyout
action approx
action find_tuple_counts
relation has cause
type medical sign
type health problem
action count
action filter_type
action find
entity fecal vomiting
relation has cause
type medical sign
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?s ) WHERE { ?f property:has_cause ?x . ?x rdf:type ontology:health_problem . ?f rdf:type ontology:medical_sign } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:fecal_vomiting property:has_cause ?u . ?u rdf:type ontology:medical_sign } } . FILTER ( ?s = ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q788926 Q2277143
P101
Q502895
USER
How many people works in the domain of Infectious disease or sharing economy ?
(c(Q502895),P101,Q788926) (c(Q502895),P101,Q2277143)
action count
action union
action filter_type
action find_reverse
entity Q788926
relation P101
type Q502895
action filter_type
action find_reverse
entity Q2277143
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q788926'] [{'concept': 'Q502895'}, 'P101', 'Q2277143']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P101 resource:Q788926 . ?f rdf:type ontology:Q502895 } UNION { ?f property:P101 resource:Q2277143 . ?f rdf:type ontology:Q502895 } }
Infectious disease sharing economy
action count
action union
action filter_type
action find_reverse
entity Infectious disease
relation field of work
type common name
action filter_type
action find_reverse
entity sharing economy
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Infectious disease'] [{'concept': 'common name'}, 'field of work', 'sharing economy']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:field_of_work resource:Infectious_disease . ?f rdf:type ontology:common_name } UNION { ?f property:field_of_work resource:sharing_economy . ?f rdf:type ontology:common_name } }
[]
common name
SYSTEM
7
Q26706202 Q22298795 Q24809947 Q25115558 Q26693628 Q24809677 Q24697626
(c(Q502895),P101,Q788926) (c(Q502895),P101,Q2277143)
action count
action union
action filter_type
action find_reverse
entity Q788926
relation P101
type Q502895
action filter_type
action find_reverse
entity Q2277143
relation P101
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q788926'] [{'concept': 'Q502895'}, 'P101', 'Q2277143']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P101 resource:Q788926 . ?f rdf:type ontology:Q502895 } UNION { ?f property:P101 resource:Q2277143 . ?f rdf:type ontology:Q502895 } }
Albert Ko Haiyi Zhu Goro Kuno Emily E. Petersen Dennis Tappe Emilie Robin Maurice Paul Weinbren
7
action count
action union
action filter_type
action find_reverse
entity Infectious disease
relation field of work
type common name
action filter_type
action find_reverse
entity sharing economy
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Infectious disease'] [{'concept': 'common name'}, 'field of work', 'sharing economy']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:field_of_work resource:Infectious_disease . ?f rdf:type ontology:common_name } UNION { ?f property:field_of_work resource:sharing_economy . ?f rdf:type ontology:common_name } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q193216
P2176
Q8386
USER
How many drugs are used to cure trachoma ?
(Q193216,P2176,c(Q8386))
action count
action filter_type
action find
entity Q193216
relation P2176
type Q8386
['Q193216', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q8386 . resource:Q193216 property:P2176 ?v }
trachoma
action count
action filter_type
action find
entity trachoma
relation drug used for treatment
type drug
['trachoma', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:drug . resource:trachoma property:drug_used_for_treatment ?v }
[]
drug
SYSTEM
1
Q2022983
(Q193216,P2176,c(Q8386))
action count
action filter_type
action find
entity Q193216
relation P2176
type Q8386
[ANSWER]
['Q193216', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:Q8386 . resource:Q193216 property:P2176 ?v }
Sulfacetamide
1
action count
action filter_type
action find
entity trachoma
relation drug used for treatment
type drug
['trachoma', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ontology:drug . resource:trachoma property:drug_used_for_treatment ?v }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q41861
Q8386
USER
And what about hypertension?
(Q41861,P2176,c(Q8386))
action count
action filter_type
action find
entity Q41861
relation P2176
type Q8386
['Q41861', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q41861 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
hypertension
action count
action filter_type
action find
entity hypertension
relation drug used for treatment
type drug
['hypertension', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:hypertension property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
drug
SYSTEM
96
(Q41861,P2176,c(Q8386))
action count
action filter_type
action find
entity Q41861
relation P2176
type Q8386
[ANSWER]
['Q41861', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q41861 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
96
action count
action filter_type
action find
entity hypertension
relation drug used for treatment
type drug
['hypertension', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:hypertension property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q285787
P780
Q1441305 Q12136
USER
How many diseases do the presence of greater number of medical signs indicate than Amaurosis ?
(c(Q12136),P780,c(Q1441305))
action count
action greater
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action count
action filter_type
action find
entity Q285787
relation P780
type Q12136
[{'concept': 'Q12136'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a property:P780 ?i . ?i rdf:type ontology:Q1441305 . ?a rdf:type ontology:Q12136 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q285787 property:P780 ?u . ?u rdf:type ontology:Q12136 } } . FILTER ( ?f > ?r ) }
Amaurosis
action count
action greater
action find_tuple_counts
relation symptoms
type disease
type medical sign
action count
action filter_type
action find
entity Amaurosis
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a property:symptoms ?i . ?i rdf:type ontology:medical_sign . ?a rdf:type ontology:disease } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Amaurosis property:symptoms ?u . ?u rdf:type ontology:disease } } . FILTER ( ?f > ?r ) }
[]
medical sign disease
SYSTEM
10
Q1472 Q730249 Q6056727 Q1148337 Q17123258 Q125367 Q110315 Q840143 Q277254 Q2866610
(c(Q12136),P780,c(Q1441305))
action count
action greater
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action count
action filter_type
action find
entity Q285787
relation P780
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a property:P780 ?i . ?i rdf:type ontology:Q1441305 . ?a rdf:type ontology:Q12136 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q285787 property:P780 ?u . ?u rdf:type ontology:Q12136 } } . FILTER ( ?f > ?r ) }
Crohn's disease arsenic poisoning Intersection syndrome hepatocellular carcinoma fox mange carbon monoxide poisoning lead poisoning streptococcal pharyngitis Adams–Stokes syndrome hyposalivation
10
action count
action greater
action find_tuple_counts
relation symptoms
type disease
type medical sign
action count
action filter_type
action find
entity Amaurosis
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?f ) WHERE { ?a property:symptoms ?i . ?i rdf:type ontology:medical_sign . ?a rdf:type ontology:disease } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Amaurosis property:symptoms ?u . ?u rdf:type ontology:disease } } . FILTER ( ?f > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1148337
P780
Q1441305 Q12136
USER
And what about hepatocellular carcinoma?
(c(Q12136),P780,c(Q1441305))
action count
action greater
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action count
action filter_type
action find
entity Q1148337
relation P780
type Q12136
[{'concept': 'Q12136'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?b property:P780 ?c . ?b rdf:type ontology:Q12136 . ?c rdf:type ontology:Q1441305 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q1148337 property:P780 ?i . ?i rdf:type ontology:Q12136 } } . FILTER ( ?q > ?h ) }
hepatocellular carcinoma
action count
action greater
action find_tuple_counts
relation symptoms
type disease
type medical sign
action count
action filter_type
action find
entity hepatocellular carcinoma
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?b property:symptoms ?c . ?b rdf:type ontology:disease . ?c rdf:type ontology:medical_sign } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:hepatocellular_carcinoma property:symptoms ?i . ?i rdf:type ontology:disease } } . FILTER ( ?q > ?h ) }
[]
medical sign disease
SYSTEM
6
Q1472 Q730249 Q125367 Q110315 Q840143 Q277254
(c(Q12136),P780,c(Q1441305))
action count
action greater
action find_tuple_counts
relation P780
type Q12136
type Q1441305
action count
action filter_type
action find
entity Q1148337
relation P780
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?b property:P780 ?c . ?b rdf:type ontology:Q12136 . ?c rdf:type ontology:Q1441305 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q1148337 property:P780 ?i . ?i rdf:type ontology:Q12136 } } . FILTER ( ?q > ?h ) }
Crohn's disease arsenic poisoning carbon monoxide poisoning lead poisoning streptococcal pharyngitis Adams–Stokes syndrome
6
action count
action greater
action find_tuple_counts
relation symptoms
type disease
type medical sign
action count
action filter_type
action find
entity hepatocellular carcinoma
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?q ) WHERE { ?b property:symptoms ?c . ?b rdf:type ontology:disease . ?c rdf:type ontology:medical_sign } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:hepatocellular_carcinoma property:symptoms ?i . ?i rdf:type ontology:disease } } . FILTER ( ?q > ?h ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P780
Q2057971 Q2057971 Q12136
USER
Which health problems are a symptom of min number of health problems or diseases ?
(c(Q2057971)|c(Q12136),P780,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?f ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q2057971 ) ( ontology:Q12136 ) } . ?a rdf:type ?e } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?y ) WHERE { { ?r rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q2057971 . ?x property:P780 ?r } UNION { ?x property:P780 ?r . ?r rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q12136 } } GROUP BY ?r } . FILTER ( ?y = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?f ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:health_problem ) ( ontology:disease ) } . ?a rdf:type ?e } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?y ) WHERE { { ?r rdf:type ontology:health_problem . ?x rdf:type ontology:health_problem . ?x property:symptoms ?r } UNION { ?x property:symptoms ?r . ?r rdf:type ontology:health_problem . ?x rdf:type ontology:disease } } GROUP BY ?r } . FILTER ( ?y = ?f ) }
[]
health problem health problem disease
Q844935 Q35869 Q221668
SYSTEM
coronary artery disease, asthma, acute cystitis
Q19275831 Q972514 Q5958765 Q18554331 Q2085267 Q271759 Q864868 Q21117568 Q3513968 Q1598200 Q684383 Q16501 Q173022 Q7048905 Q147778 Q35869 Q1956682 Q5062120 Q177254 Q5062122 Q2879095 Q18642366 Q21117572 Q935293 Q1527888 Q1553850 Q21111998 Q857667 Q4330029 Q3339235 Q21110191 Q911386 Q48143 Q1500373 Q131742 Q846316 Q279330 Q468433 Q2306782 Q677449 Q783903 Q55998 Q570197 Q505142 Q1531991 Q16242752 Q2681162 Q10863074 Q21112607 Q21116779 Q1502312 Q1193870 Q18556080 Q183130 Q202837 Q12192 Q268594 Q5090486 Q612681 Q1153419 Q1264268 Q1131786 Q18553940 Q199804 Q622427 Q690210 Q21112593 Q684810 Q18556920 Q21109267 Q183344 Q1018652 Q1534492 Q42982 Q1294912 Q979168 Q11072 Q134003 Q170082 Q1145668 Q767485 Q21112038 Q662298 Q21504914 Q1628473 Q188605 Q1507609 Q181754 Q18553993 Q105688 Q906492 Q3042175 Q220570 Q883863 Q221668 Q936382 Q2906693 Q1623006 Q572111 Q2868696 Q838145 Q501561 Q179951 Q114085 Q203601 Q170518 Q344873 Q18554311 Q950591 Q794072 Q21128620 Q401402 Q5171111 Q1194557 Q21118423 Q32446 Q18967474 Q738153 Q748442 Q794086 Q21109048 Q2638851 Q5712565 Q844935 Q734512 Q1036696 Q651223 Q5309747 Q476921 Q18558124 Q18558125 Q187440 Q757838 Q5251081 Q202758 Q21109885 Q4116448 Q664174 Q1320276 Q648982 Q14509067 Q7259546 Q18556164 Q5090456 Q21109216
(c(Q2057971)|c(Q12136),P780,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
[ANSWERS]
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?f ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q2057971 ) ( ontology:Q12136 ) } . ?a rdf:type ?e } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?y ) WHERE { { ?r rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q2057971 . ?x property:P780 ?r } UNION { ?x property:P780 ?r . ?r rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q12136 } } GROUP BY ?r } . FILTER ( ?y = ?f ) }
choking optic neuritis hypersensitivity retinal perforation pharyngitis porphyria bone marrow suppression skin granuloma corneal opacity metabolic acidosis exophthalmos hypothyroidisms bronchitis Non-epileptic seizure liver cirrhosis asthma myoglobinuria central nervous system depression hyperopia central nervous system disease optic nerve disease intoxication lung granuloma purpura pancreatitis hemoglobinuria fingernail damage pulmonary edema airway obstruction nervous system disease diffuse nodular fibrosis stomatitis meningitis lactic acidosis hepatitis aplastic anemia bronchial disease anosmia hypochromic anemia aspiration pneumonia contact dermatitis pleurisy proteinuria eosinophilia Parkinsonian syndrome allergic contact dermatitis eye injury fatty liver disease leg paresthesia scaling dermatitis polyneuropathy multiple organ dysfunction syndrome cranial nerve palsy gastritis cardiac arrest pneumonia stupor toxic pneumonitis anuria interstitial lung disease stannosis Cor pulmonale gastric ulcer chronic obstructive pulmonary disease ptosis dysosmia hand paresis berylliosis diffuse pulmonary fibrosis fibrotic pneumoconiosis sinusitis byssinosis microhematuria type I hypersensitivity endophthalmitis brain edema amnestic disorder inherited blood coagulation disease psychotic disorder hemolytic anemia respiratory failure granulomatous pneumonitis ectropion wooden chest syndrome corneal ulcer pulmonary emphysema Ochronosis heart failure corneal edema hypoxia dystonia corneal dystrophy pulmonary embolism blepharospasm acute cystitis Hypocalcaemia baritosis keratoconjunctivitis anterograde amnesia pain agnosia leukoplakia pericarditis strabismus rhinitis pneumothorax burn adult respiratory distress syndrome corneal degeneration scotoma Azotemia spleen injury nephritis corneal perforation laryngitis auditory nerve damage pulmonary fibrosis pulmonary congestion and hypostasis ileus methemoglobinemia hypokalemia acute hemorrhagic cystitis Oligospermia hemorrhagic cystitis coronary artery disease bronchopneumonia hypothermia pneumoconiosis dryness kidney failure allergic asthma intracranial hypertension urticaria keratitis Defatting hypoglycemia chronic respiratory disease tracheal stenosis asbestosis hypovolemia argyria exanthem Pulmonary toxicity granulomatous gastritis Chemical eye injury benign pneumoconiosis
coronary artery disease asthma acute cystitis
action argmin
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?f ) { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:health_problem ) ( ontology:disease ) } . ?a rdf:type ?e } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?y ) WHERE { { ?r rdf:type ontology:health_problem . ?x rdf:type ontology:health_problem . ?x property:symptoms ?r } UNION { ?x property:symptoms ?r . ?r rdf:type ontology:health_problem . ?x rdf:type ontology:disease } } GROUP BY ?r } . FILTER ( ?y = ?f ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1542
Q3839081 Q2057971
USER
Which health problems caused greater number of disasters than that health problem ?
(c(Q2057971),P1542,c(Q3839081))
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ?z WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q3839081 }
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ?z WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:health_problem . ?y rdf:type ontology:disaster }
[]
disaster health problem
Comparative|More/Less|Single entity type|Clarification
Q221668
SYSTEM
Did you mean acute cystitis ?
(c(Q2057971),P1542,c(Q3839081))
[ANSWER]
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ?z WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q3839081 }
Did you mean acute cystitis ?
acute cystitis
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ?z WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:health_problem . ?y rdf:type ontology:disaster }
[]
Comparative Reasoning (All)
USER
No, I meant coronary artery disease. Could you tell me the answer for that?
(c(Q2057971),P1542,c(Q3839081))
Q844935
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
[]
Q12090 Q243257 Q12195
SYSTEM
Cholera, chikungunya, poliomyelitis
Q12090 Q243257 Q12195 Q79793
(c(Q2057971),P1542,c(Q3839081))
[ANSWERS]
[{'concept': 'Q2057971'}, 'P1542', {'concept': 'Q3839081'}]
SELECT DISTINCT ?z WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q3839081 }
Cholera chikungunya poliomyelitis measles
Cholera chikungunya poliomyelitis
[{'concept': 'health problem'}, 'cause of', {'concept': 'disaster'}]
SELECT DISTINCT ?z WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:health_problem . ?y rdf:type ontology:disaster }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q12136 Q2057971
USER
How many diseases are the causes of approximately 1 health problem ?
(c(Q2057971),P828,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
value 1
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?q ) WHERE { ?s property:P828 ?c . ?c rdf:type ontology:Q12136 . ?s rdf:type ontology:Q2057971 } GROUP BY ?c } . FILTER ( ?q = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?q ) WHERE { ?s property:has_cause ?c . ?c rdf:type ontology:disease . ?s rdf:type ontology:health_problem } GROUP BY ?c } . FILTER ( ?q = 1 ) }
[]
disease health problem
SYSTEM
13
Q945238 Q1266401 Q4778771 Q1778287 Q110315 Q2655893 Q18924571 Q15326 Q1431933 Q41392 Q523893 Q460591 Q125367
(c(Q2057971),P828,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?q ) WHERE { ?s property:P828 ?c . ?c rdf:type ontology:Q12136 . ?s rdf:type ontology:Q2057971 } GROUP BY ?c } . FILTER ( ?q = 1 ) }
peripheral neuropathy Duodenal atresia Aortocaval compression syndrome Waldenström's macroglobulinemia lead poisoning Vitamin A deficiency niacin deficiency alcoholism Aortoiliac occlusive disease Stress fracture Ichthyosis decompression sickness carbon monoxide poisoning
13
action count
action approx
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?q ) WHERE { ?s property:has_cause ?c . ?c rdf:type ontology:disease . ?s rdf:type ontology:health_problem } GROUP BY ?c } . FILTER ( ?q = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q35869
P2175
Q8386
USER
How many drugs are used for the treatment of asthma ?
(c(Q8386),P2175,Q35869)
action count
action filter_type
action find_reverse
entity Q35869
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q35869']
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w property:P2175 resource:Q35869 . ?w rdf:type ontology:Q8386 }
asthma
action count
action filter_type
action find_reverse
entity asthma
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'asthma']
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w property:medical_condition_treated resource:asthma . ?w rdf:type ontology:drug }
[]
drug
SYSTEM
46
Q415392 Q417767 Q407308 Q417740 Q670131 Q202998 Q422212 Q421475 Q58614 Q263958 Q20817199 Q3746835 Q32921 Q693482 Q7127523 Q2450337 Q1073333 Q422252 Q132621 Q410789 Q928378 Q1087499 Q11426176 Q424972 Q424952 Q8564098 Q219626 Q424340 Q5104342 Q1236526 Q417222 Q637247 Q424333 Q419769 Q4918914 Q471763 Q410358 Q2166700 Q190875 Q2697833 Q5119448 Q413879 Q410237 Q7444755 Q3306175 Q422232
(c(Q8386),P2175,Q35869)
action count
action filter_type
action find_reverse
entity Q35869
relation P2175
type Q8386
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', 'Q35869']
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w property:P2175 resource:Q35869 . ?w rdf:type ontology:Q8386 }
Omalizumab montelukast theophylline lovastatin simvastatin zileuton budesonide beclometasone dipropionate loxapine pseudoephedrine Ephedra Flunisolide halothane roflumilast Palifermin Interferon beta-1a dyphylline dexamethasone (-)-adrenaline ambrisentan zafirlukast Troleandomycin prednisolone prednisone nadolol fluticasone propionate (-)-ephedrine terbutaline Oxtriphylline pirbuterol methylprednisolone formoterol salmeterol bosentan Bitolterol Aminophylline salbutamol Fluticasone furoate cortisol Abatacept ciclesonide golimumab clopidogrel Secukinumab Mepolizumab methotrexate
46
action count
action filter_type
action find_reverse
entity asthma
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'asthma']
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w property:medical_condition_treated resource:asthma . ?w rdf:type ontology:drug }
[]