Simple Question (Direct)
Simple Question
Q4834225
P509
Q2057971
USER
What caused the death of B. T. Collins ?
(Q4834225,P509,c(Q2057971))
action filter_type
action find
entity Q4834225
relation P509
type Q2057971
['Q4834225', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2057971 . resource:Q4834225 property:P509 ?o }
B. T. Collins
action filter_type
action find
entity B. T. Collins
relation cause of death
type health problem
['B. T. Collins', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:health_problem . resource:B._T._Collins property:cause_of_death ?o }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q4834225,P509,c(Q2057971))
action filter_type
action find
entity Q4834225
relation P509
type Q2057971
In [ANSWER] caused the death of B. T. Collins
['Q4834225', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2057971 . resource:Q4834225 property:P509 ?o }
myocardial infarction
In myocardial infarction caused the death of B. T. Collins
myocardial infarction
action filter_type
action find
entity B. T. Collins
relation cause of death
type health problem
['B. T. Collins', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:health_problem . resource:B._T._Collins property:cause_of_death ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12152
P1542
Q2057971
USER
Which health problem has its outcome as that one ?
(c(Q2057971),P1542,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P1542
type Q2057971
[{'concept': 'Q2057971'}, 'P1542', 'Q12152']
SELECT DISTINCT ?i WHERE { ?i property:P1542 resource:Q12152 . ?i rdf:type ontology:Q2057971 }
myocardial infarction
action filter_type
action find_reverse
entity myocardial infarction
relation cause of
type health problem
[{'concept': 'health problem'}, 'cause of', 'myocardial infarction']
SELECT DISTINCT ?i WHERE { ?i property:cause_of resource:myocardial_infarction . ?i rdf:type ontology:health_problem }
[]
health problem
Q844935
SYSTEM
coronary artery disease
Q844935
(c(Q2057971),P1542,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P1542
type Q2057971
[ANSWER] has its outcome as that one
[{'concept': 'Q2057971'}, 'P1542', 'Q12152']
SELECT DISTINCT ?i WHERE { ?i property:P1542 resource:Q12152 . ?i rdf:type ontology:Q2057971 }
coronary artery disease
Coronary artery disease has its outcome as that one
coronary artery disease
action filter_type
action find_reverse
entity myocardial infarction
relation cause of
type health problem
[{'concept': 'health problem'}, 'cause of', 'myocardial infarction']
SELECT DISTINCT ?i WHERE { ?i property:cause_of resource:myocardial_infarction . ?i rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12152
P780
Q12136
USER
What can be a sign of myocardial infarction ?
(Q12152,P780,c(Q12136))
action filter_type
action find
entity Q12152
relation P780
type Q12136
['Q12152', 'P780', {'concept': 'Q12136'}]
SELECT DISTINCT ?q WHERE { resource:Q12152 property:P780 ?q . ?q rdf:type ontology:Q12136 }
myocardial infarction
action filter_type
action find
entity myocardial infarction
relation symptoms
type disease
['myocardial infarction', 'symptoms', {'concept': 'disease'}]
SELECT DISTINCT ?q WHERE { resource:myocardial_infarction property:symptoms ?q . ?q rdf:type ontology:disease }
[]
disease
Q693058
SYSTEM
chest pain
Q693058
(Q12152,P780,c(Q12136))
action filter_type
action find
entity Q12152
relation P780
type Q12136
[ANSWER] can be a sign of myocardial infarction
['Q12152', 'P780', {'concept': 'Q12136'}]
SELECT DISTINCT ?q WHERE { resource:Q12152 property:P780 ?q . ?q rdf:type ontology:Q12136 }
chest pain
Chest pain can be a sign of myocardial infarction
chest pain
action filter_type
action find
entity myocardial infarction
relation symptoms
type disease
['myocardial infarction', 'symptoms', {'concept': 'disease'}]
SELECT DISTINCT ?q WHERE { resource:myocardial_infarction property:symptoms ?q . ?q rdf:type ontology:disease }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21396183
Q12136
USER
And also tell me about arsenic pentoxide exposure?
(Q21396183,P780,c(Q12136))
action filter_type
action find
entity Q21396183
relation P780
type Q12136
['Q21396183', 'P780', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12136 . resource:Q21396183 property:P780 ?p }
arsenic pentoxide exposure
action filter_type
action find
entity arsenic pentoxide exposure
relation symptoms
type disease
['arsenic pentoxide exposure', 'symptoms', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:disease . resource:arsenic_pentoxide_exposure property:symptoms ?p }
[]
disease
Q86 Q167844 Q945238
SYSTEM
headache, conjunctivitis, peripheral neuropathy
Q167844 Q737460 Q2141836 Q185935 Q693058 Q86 Q945238 Q6402731 Q775940
(Q21396183,P780,c(Q12136))
action filter_type
action find
entity Q21396183
relation P780
type Q12136
[ANSWERS]
['Q21396183', 'P780', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12136 . resource:Q21396183 property:P780 ?p }
conjunctivitis visual impairment chemical burn mania chest pain headache peripheral neuropathy Dysgeusia Diplopia
headache conjunctivitis peripheral neuropathy
action filter_type
action find
entity arsenic pentoxide exposure
relation symptoms
type disease
['arsenic pentoxide exposure', 'symptoms', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:disease . resource:arsenic_pentoxide_exposure property:symptoms ?p }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21175040 Q21396183
P780
Q1441305
USER
Which medical signs can be a sign of arsenic pentoxide exposure or Petroleum naphtha exposure ?
OR((Q21396183,P780,c(Q1441305)), (Q21175040,P780,c(Q1441305)))
action filter_type
action union
action find
entity Q21396183
relation P780
action find
entity Q21175040
relation P780
type Q1441305
{'OR': [['Q21396183', 'P780', {'concept': 'Q1441305'}], ['Q21175040', 'P780', {'concept': 'Q1441305'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q21396183 ) ( resource:Q21175040 ) } . ?e property:P780 ?z } . ?z rdf:type ontology:Q1441305 }
Petroleum naphtha exposure arsenic pentoxide exposure
action filter_type
action union
action find
entity arsenic pentoxide exposure
relation symptoms
action find
entity Petroleum naphtha exposure
relation symptoms
type medical sign
{'OR': [['arsenic pentoxide exposure', 'symptoms', {'concept': 'medical sign'}], ['Petroleum naphtha exposure', 'symptoms', {'concept': 'medical sign'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:arsenic_pentoxide_exposure ) ( resource:Petroleum_naphtha_exposure ) } . ?e property:symptoms ?z } . ?z rdf:type ontology:medical_sign }
[]
medical sign
Q21402574 Q21402635 Q21402580 Q1292082 Q373597 Q254327 Q38933 Q1495657 Q633403 Q127076
SYSTEM
Some of them are phrenic nerve paralysis, mimicked myocardial infarction, motor neuropathy, sore throat, hematuria, anorexia, fever, gastrointestinal bleeding, weakness, vomiting
Q188008 Q21110289 Q21112283 Q180007 Q373597 Q21111972 Q199602 Q21402574 Q21402577 Q109186 Q35805 Q633403 Q127076 Q183425 Q254327 Q10916362 Q3443277 Q1292082 Q1495657 Q38933 Q186889 Q21402569 Q21402580 Q21402634 Q21402635
OR((Q21396183,P780,c(Q1441305)), (Q21175040,P780,c(Q1441305)))
action filter_type
action union
action find
entity Q21396183
relation P780
action find
entity Q21175040
relation P780
type Q1441305
[ANSWERS] can be a sign of arsenic pentoxide exposure or Petroleum naphtha exposure
{'OR': [['Q21396183', 'P780', {'concept': 'Q1441305'}], ['Q21175040', 'P780', {'concept': 'Q1441305'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q21396183 ) ( resource:Q21175040 ) } . ?e property:P780 ?z } . ?z rdf:type ontology:Q1441305 }
dyspnea dry cracked skin respiratory irritation fainting hematuria eye irritation itch phrenic nerve paralysis myocardial dysfunction swelling cough weakness vomiting abdominal pain anorexia dizziness flushing sore throat gastrointestinal bleeding fever nausea rice water diarrhea motor neuropathy microhemorrhage mimicked myocardial infarction
Phrenic nerve paralysis, mimicked myocardial infarction, motor neuropathy, sore throat, hematuria, anorexia, fever, gastrointestinal bleeding, weakness and vomiting can be a sign of arsenic pentoxide exposure or Petroleum naphtha exposure
phrenic nerve paralysis mimicked myocardial infarction motor neuropathy sore throat hematuria anorexia fever gastrointestinal bleeding weakness vomiting
action filter_type
action union
action find
entity arsenic pentoxide exposure
relation symptoms
action find
entity Petroleum naphtha exposure
relation symptoms
type medical sign
{'OR': [['arsenic pentoxide exposure', 'symptoms', {'concept': 'medical sign'}], ['Petroleum naphtha exposure', 'symptoms', {'concept': 'medical sign'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:arsenic_pentoxide_exposure ) ( resource:Petroleum_naphtha_exposure ) } . ?e property:symptoms ?z } . ?z rdf:type ontology:medical_sign }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P780
Q12136 Q2057971 Q12136
USER
Which diseases does presence of max number of diseases and health problems indicate ?
(c(Q12136),P780,c(Q12136)|c(Q2057971))
action argmax
action union
action find_tuple_counts
relation P780
type Q12136
type Q12136
action find_tuple_counts
relation P780
type Q12136
type Q2057971
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?n ) WHERE { { ?f property:P780 ?u . ?f rdf:type ontology:Q12136 . ?u rdf:type ontology:Q12136 } UNION { ?f property:P780 ?u . ?f rdf:type ontology:Q12136 . ?u rdf:type ontology:Q2057971 } } GROUP BY ?f } } . { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } } GROUP BY ?w } . FILTER ( ?d = ?q ) }
action argmax
action union
action find_tuple_counts
relation symptoms
type disease
type disease
action find_tuple_counts
relation symptoms
type disease
type health problem
[{'concept': 'disease'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?n ) WHERE { { ?f property:symptoms ?u . ?f rdf:type ontology:disease . ?u rdf:type ontology:disease } UNION { ?f property:symptoms ?u . ?f rdf:type ontology:disease . ?u rdf:type ontology:health_problem } } GROUP BY ?f } } . { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:health_problem ) } } GROUP BY ?w } . FILTER ( ?d = ?q ) }
[]
disease health problem disease
Q110315
SYSTEM
lead poisoning
Q110315
(c(Q12136),P780,c(Q12136)|c(Q2057971))
action argmax
action union
action find_tuple_counts
relation P780
type Q12136
type Q12136
action find_tuple_counts
relation P780
type Q12136
type Q2057971
Presence of max number of diseases and health problems indicates the [ANSWER]
[{'concept': 'Q12136'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?n ) WHERE { { ?f property:P780 ?u . ?f rdf:type ontology:Q12136 . ?u rdf:type ontology:Q12136 } UNION { ?f property:P780 ?u . ?f rdf:type ontology:Q12136 . ?u rdf:type ontology:Q2057971 } } GROUP BY ?f } } . { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } } GROUP BY ?w } . FILTER ( ?d = ?q ) }
lead poisoning
Presence of max number of diseases and health problems indicates the lead poisoning
lead poisoning
action argmax
action union
action find_tuple_counts
relation symptoms
type disease
type disease
action find_tuple_counts
relation symptoms
type disease
type health problem
[{'concept': 'disease'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?n ) WHERE { { ?f property:symptoms ?u . ?f rdf:type ontology:disease . ?u rdf:type ontology:disease } UNION { ?f property:symptoms ?u . ?f rdf:type ontology:disease . ?u rdf:type ontology:health_problem } } GROUP BY ?f } } . { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?d ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:health_problem ) } } GROUP BY ?w } . FILTER ( ?d = ?q ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q110315
P689
Q188193
USER
What is afflicted by that disease ?
(Q110315,P689,c(Q188193))
action filter_type
action find
entity Q110315
relation P689
type Q188193
['Q110315', 'P689', {'concept': 'Q188193'}]
SELECT DISTINCT ?w WHERE { resource:Q110315 property:P689 ?w . ?w rdf:type ontology:Q188193 }
lead poisoning
action filter_type
action find
entity lead poisoning
relation afflicts
type biological system
['lead poisoning', 'afflicts', {'concept': 'biological system'}]
SELECT DISTINCT ?w WHERE { resource:lead_poisoning property:afflicts ?w . ?w rdf:type ontology:biological_system }
[]
biological system
Q9649
SYSTEM
human digestive system
Q9649
(Q110315,P689,c(Q188193))
action filter_type
action find
entity Q110315
relation P689
type Q188193
Is [ANSWER] is afflicted by that disease
['Q110315', 'P689', {'concept': 'Q188193'}]
SELECT DISTINCT ?w WHERE { resource:Q110315 property:P689 ?w . ?w rdf:type ontology:Q188193 }
human digestive system
Is human digestive system is afflicted by that disease
human digestive system
action filter_type
action find
entity lead poisoning
relation afflicts
type biological system
['lead poisoning', 'afflicts', {'concept': 'biological system'}]
SELECT DISTINCT ?w WHERE { resource:lead_poisoning property:afflicts ?w . ?w rdf:type ontology:biological_system }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P361
Q4936952 Q25570959
USER
How many anatomical structures and animal structures are a component of that biological system ?
(c(Q4936952),P361,Q9649) (c(Q25570959),P361,Q9649) (c(Q4936952),P361,Q9649) (c(Q25570959),P361,Q9649)
action count
action union
action filter_type
action find_reverse
entity Q9649
relation P361
type Q4936952
action filter_type
action find_reverse
entity Q9649
relation P361
type Q25570959
[{'concept': 'Q4936952'}, 'P361', 'Q9649'] [{'concept': 'Q25570959'}, 'P361', 'Q9649'] [{'concept': 'Q4936952'}, 'P361', 'Q9649'] [{'concept': 'Q25570959'}, 'P361', 'Q9649']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { VALUES ( ?a ) { ( ontology:Q4936952 ) ( ontology:Q25570959 ) } . ?s rdf:type ?a }
action count
action union
action filter_type
action find_reverse
entity human digestive system
relation part of
type anatomical structure
action filter_type
action find_reverse
entity human digestive system
relation part of
type animal structure
[{'concept': 'anatomical structure'}, 'part of', 'human digestive system'] [{'concept': 'animal structure'}, 'part of', 'human digestive system'] [{'concept': 'anatomical structure'}, 'part of', 'human digestive system'] [{'concept': 'animal structure'}, 'part of', 'human digestive system']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { VALUES ( ?a ) { ( ontology:anatomical_structure ) ( ontology:animal_structure ) } . ?s rdf:type ?a }
[]
anatomical structure animal structure
SYSTEM
2 anatomical structures and 1 animal structures
Q64386 Q11090 Q497
(c(Q4936952),P361,Q9649) (c(Q25570959),P361,Q9649) (c(Q4936952),P361,Q9649) (c(Q25570959),P361,Q9649)
action count
action union
action filter_type
action find_reverse
entity Q9649
relation P361
type Q4936952
action filter_type
action find_reverse
entity Q9649
relation P361
type Q25570959
[ANSWER]
[{'concept': 'Q4936952'}, 'P361', 'Q9649'] [{'concept': 'Q25570959'}, 'P361', 'Q9649'] [{'concept': 'Q4936952'}, 'P361', 'Q9649'] [{'concept': 'Q25570959'}, 'P361', 'Q9649']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { VALUES ( ?a ) { ( ontology:Q4936952 ) ( ontology:Q25570959 ) } . ?s rdf:type ?a }
gallbladder small intestine anus
2 anatomical structures and 1 animal structures
action count
action union
action filter_type
action find_reverse
entity human digestive system
relation part of
type anatomical structure
action filter_type
action find_reverse
entity human digestive system
relation part of
type animal structure
[{'concept': 'anatomical structure'}, 'part of', 'human digestive system'] [{'concept': 'animal structure'}, 'part of', 'human digestive system'] [{'concept': 'anatomical structure'}, 'part of', 'human digestive system'] [{'concept': 'animal structure'}, 'part of', 'human digestive system']
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { VALUES ( ?a ) { ( ontology:anatomical_structure ) ( ontology:animal_structure ) } . ?s rdf:type ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110315
P2239
Q796194
USER
Which medical procedure is used as the emergency measure for lead poisoning ?
(Q110315,P2239,c(Q796194))
action filter_type
action find
entity Q110315
relation P2239
type Q796194
['Q110315', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ?h WHERE { resource:Q110315 property:P2239 ?h . ?h rdf:type ontology:Q796194 }
lead poisoning
action filter_type
action find
entity lead poisoning
relation first aid measures
type medical procedure
['lead poisoning', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ?h WHERE { resource:lead_poisoning property:first_aid_measures ?h . ?h rdf:type ontology:medical_procedure }
[]
medical procedure
Q545991
SYSTEM
artificial respiration
Q545991
(Q110315,P2239,c(Q796194))
action filter_type
action find
entity Q110315
relation P2239
type Q796194
[ANSWER] is used as the emergency measure for lead poisoning
['Q110315', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ?h WHERE { resource:Q110315 property:P2239 ?h . ?h rdf:type ontology:Q796194 }
artificial respiration
Artificial respiration is used as the emergency measure for lead poisoning
artificial respiration
action filter_type
action find
entity lead poisoning
relation first aid measures
type medical procedure
['lead poisoning', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ?h WHERE { resource:lead_poisoning property:first_aid_measures ?h . ?h rdf:type ontology:medical_procedure }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21175393
Q796194
USER
And also tell me about 1,2,4-Trimethylbenzene exposure?
(Q21175393,P2239,c(Q796194))
action filter_type
action find
entity Q21175393
relation P2239
type Q796194
['Q21175393', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ?b WHERE { resource:Q21175393 property:P2239 ?b . ?b rdf:type ontology:Q796194 }
1,2,4-Trimethylbenzene exposure
action filter_type
action find
entity 1,2,4-Trimethylbenzene exposure
relation first aid measures
type medical procedure
['1,2,4-Trimethylbenzene exposure', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ?b WHERE { resource:1,2,4-Trimethylbenzene_exposure property:first_aid_measures ?b . ?b rdf:type ontology:medical_procedure }
[]
medical procedure
Q545991
SYSTEM
artificial respiration
Q545991
(Q21175393,P2239,c(Q796194))
action filter_type
action find
entity Q21175393
relation P2239
type Q796194
[ANSWER]
['Q21175393', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ?b WHERE { resource:Q21175393 property:P2239 ?b . ?b rdf:type ontology:Q796194 }
artificial respiration
artificial respiration
action filter_type
action find
entity 1,2,4-Trimethylbenzene exposure
relation first aid measures
type medical procedure
['1,2,4-Trimethylbenzene exposure', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ?b WHERE { resource:1,2,4-Trimethylbenzene_exposure property:first_aid_measures ?b . ?b rdf:type ontology:medical_procedure }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P780
Q1441305 Q2057971 Q12136
USER
Which medical signs can be a sign of atmost 11 health problems or diseases ?
(c(Q2057971)|c(Q12136),P780,c(Q1441305))
action atmost
action union
action find_reverse_tuple_counts
relation P780
type Q1441305
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q1441305
type Q12136
value 11
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:P780 ?m . ?m rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q2057971 } UNION { ?d property:P780 ?m . ?m rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q12136 } } GROUP BY ?m } . FILTER ( ?i <= 11 ) }
action atmost
action union
action find_reverse_tuple_counts
relation symptoms
type medical sign
type health problem
action find_reverse_tuple_counts
relation symptoms
type medical sign
type disease
value 11
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:symptoms ?m . ?m rdf:type ontology:medical_sign . ?d rdf:type ontology:health_problem } UNION { ?d property:symptoms ?m . ?m rdf:type ontology:medical_sign . ?d rdf:type ontology:disease } } GROUP BY ?m } . FILTER ( ?i <= 11 ) }
[]
medical sign health problem disease
Q127076 Q101991 Q683498
SYSTEM
vomiting, inflammation, joint pain
Q223907 Q21110117 Q21111950 Q21112499 Q21112080 Q21112656 Q21110052 Q21120241 Q21110349 Q21109898 Q21117562 Q683498 Q21109742 Q213373 Q21117369 Q21119839 Q23309319 Q21118175 Q21116801 Q21120154 Q21505002 Q21120151 Q188008 Q21120010 Q21402601 Q21110289 Q21110105 Q21110112 Q21515327 Q21515325 Q21515324 Q21515328 Q21112091 Q183425 Q21120235 Q623289 Q647099 Q10916362 Q3443277 Q21402592 Q127076 Q101991 Q21515257 Q21118168 Q21120136 Q21116849 Q21112553 Q21109236 Q4930803 Q21117872 Q21116709 Q633403 Q21117204 Q21110074 Q1269399 Q2266426 Q21117184 Q21120220 Q21119990 Q21120182 Q180007 Q21118017 Q4736316 Q21119309 Q21117104 Q21112016 Q21112011 Q21119917 Q352585 Q21119919 Q22314576 Q35805 Q21112701 Q21112075 Q403648 Q21116678 Q21110165 Q21117511 Q21117191 Q21110311 Q21118227 Q21402619 Q21117218 Q21117198 Q3589142 Q21110084 Q21117353 Q1938763 Q3525894 Q1433921 Q21117290 Q21112474 Q21119414 Q19000619 Q189643 Q21112577 Q1495657 Q32069 Q38933 Q21402608 Q21120212 Q21112361 Q21402580 Q21117554 Q21110016 Q21109840 Q270421 Q21120214 Q21116602 Q21908909 Q21112683 Q21127492 Q21128616 Q21116842 Q21112283 Q21117327 Q373597 Q21110098 Q21112276 Q21402574 Q21402577 Q21402579 Q109186 Q3002092 Q21112278 Q21112279 Q8038367 Q21504918 Q21109826 Q21110145 Q21117237 Q21120278 Q254327 Q21116617 Q21120271 Q21112293 Q21112290 Q394129 Q673083 Q517104 Q21112456 Q21118411 Q21109775 Q1115038 Q21119540 Q21120146 Q21112692 Q3245488 Q21119945 Q21112235 Q21402561 Q21120168 Q21112198 Q186889 Q21402569 Q5456583 Q21077144 Q21077145 Q21077147 Q21112386 Q21110281 Q21109837 Q21111985 Q21110038 Q1324592 Q21110157 Q21120269 Q21117302 Q21515279 Q21119551 Q21120264 Q21119765 Q21541481 Q21120069 Q21109768 Q21119347 Q199602 Q21112421 Q17005258 Q21505036 Q21402620 Q3991639 Q18356391 Q21112057 Q21111994 Q21504931 Q21109805 Q21116781 Q21116634 Q1162276 Q21112341 Q21120094 Q21116733 Q21111972 Q21120091 Q21110047 Q21120092 Q21110350 Q21120255 Q1292082 Q21120251 Q21117140 Q21109757 Q21118530 Q21120148 Q21117532 Q21117153 Q2260058 Q21862894 Q21112539 Q21109286 Q21119928 Q21505006 Q7315912 Q4346317 Q21402634 Q21402635
(c(Q2057971)|c(Q12136),P780,c(Q1441305))
action atmost
action union
action find_reverse_tuple_counts
relation P780
type Q1441305
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q1441305
type Q12136
value 11
[ANSWERS] can be a sign of atmost 11 health problems or diseases
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:P780 ?m . ?m rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q2057971 } UNION { ?d property:P780 ?m . ?m rdf:type ontology:Q1441305 . ?d rdf:type ontology:Q12136 } } GROUP BY ?m } . FILTER ( ?i <= 11 ) }
tremor decreased pulmonary function excitement nasal ulcer bleeding hemolytic effects pink frothy sputum temporary loss of hair bitter taste emotional disturbance clonic convulsions emotional upset joint pain bronchial secretions ataxia tonic spasms eye pain conjunctival injection restlessness sense of well being pain on inspiration cornea blistering increased pulse rate dyspnea poor sleep clouding of the corneas dry cracked skin decreased forced expiratory volume decreased nerve conduction in lower legs distractibility short attention span denial of illness erratic behavior high blood urea nitrogen abdominal pain urine discoloration dysphagia hemoptysis dizziness flushing agitation vomiting inflammation necrotizing bronchiolitis retrosternal tightness foamy sputum skin blisters ocular changes urinary burning blurred vision deep pain stiff spine weakness optic nerve damage cutaneous hypersensitivity Dysuria visual disturbance staggering gait dry throat mental dullness corneal inflammation fainting palmar planter hyperkeratosis altered level of consciousness liver tenderness week feet gastrointestinal upset gastrointestinal disturbance lip bleeding frequent urination mucous membrane hemorrhage cold skin cough respiratory sensitization hand tremor Rectal tenesmus reflex bronchoconstriction delayed healing of wounds stiff neck slurred speech EKG abnormal flu-like symptoms feeling of neck constriction hearing disturbance convulsions epigastric pain dark urine hyperexcitability fecal vomiting personality changes Heinz body skin hyperpigmentation myoclonus of limbs increased cardiac output urination disorder delusion pallor or cyanosis of extremities gastrointestinal bleeding Meningism fever disorientation corneal vesiculation lung changes motor neuropathy muscle incoordination corneal damage chest tightness muscle weakness burning mouth prolonged colds toneless voice hematopoietic effects dry nose and throat localized pain skin erythema respiratory irritation indecision hematuria decreased audio-visual performance bladder irritation phrenic nerve paralysis myocardial dysfunction multi-system organ failure swelling abdominal cramps gastrointestinal irritation mucous membrane irritation wrist pain muscle rigidity facial twitch temporary blindness ulceration of nasal septum blue lips and skin anorexia psycho-neurologic disturbance cherry red lips upper respiratory irritation skin irritation psychomotor agitation Gingivitis wheeze myocardial damage gastrointestinal effects unpleasant taste runny nose jaw pain pulmonary sensitization reproductive effects nasal congestion weak pulse increased reflex excitability vascular collapse black sputum increased blood clotting time nausea rice water diarrhea flaccid paralysis abnormal hematologic indices absent deep tendon reflex eye ache measle-like eruptions dry burning throat finger tremor facial pallor corneal opacity laryngospasm degenerative changes in central nervous system retrosternal pain twitching skin blanching unsteady gait precordial pain skin photosensitivity severe tissue destruction behavioral changes burning sensation in chest mouth irritation itch minor changes in blood enzymes clouding of consciousness sinus pain giddiness hair coloring unconsciousness hand sweating facial paresthesia gastric hypomotility central nervous system excitement skin eruption pulmonary irritation xerostomia localized sweating hair discoloration respiratory hypersensitivity eye irritation discomfort corneal vacuolization skin discoloration enlarged liver paroxysmal cough sore throat black skin blue-gray vision bronze skin epigastric pain increased breath rate jerking limbs colored halos chills motor dysfunction numb mucous membrane blood changes facial edema eye perforation respiratory distress strawberry tongue microhemorrhage mimicked myocardial infarction
Vomiting, inflammation and joint pain can be a sign of atmost 11 health problems or diseases
vomiting inflammation joint pain
action atmost
action union
action find_reverse_tuple_counts
relation symptoms
type medical sign
type health problem
action find_reverse_tuple_counts
relation symptoms
type medical sign
type disease
value 11
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?d property:symptoms ?m . ?m rdf:type ontology:medical_sign . ?d rdf:type ontology:health_problem } UNION { ?d property:symptoms ?m . ?m rdf:type ontology:medical_sign . ?d rdf:type ontology:disease } } GROUP BY ?m } . FILTER ( ?i <= 11 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q21175026 Q110315
P780
Q2057971
USER
Which health problems are symptoms of lead poisoning and Paraquat exposure ?
AND((Q110315,P780,c(Q2057971)), (Q21175026,P780,c(Q2057971)))
action filter_type
action intersection
action find
entity Q110315
relation P780
action find
entity Q21175026
relation P780
type Q2057971
{'AND': [['Q110315', 'P780', {'concept': 'Q2057971'}], ['Q21175026', 'P780', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2057971 . resource:Q21175026 property:P780 ?o . resource:Q110315 property:P780 ?o }
Paraquat exposure lead poisoning
action filter_type
action intersection
action find
entity lead poisoning
relation symptoms
action find
entity Paraquat exposure
relation symptoms
type health problem
{'AND': [['lead poisoning', 'symptoms', {'concept': 'health problem'}], ['Paraquat exposure', 'symptoms', {'concept': 'health problem'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:health_problem . resource:Paraquat_exposure property:symptoms ?o . resource:lead_poisoning property:symptoms ?o }
[]
health problem
Q1054718
SYSTEM
kidney disease
Q1054718
AND((Q110315,P780,c(Q2057971)), (Q21175026,P780,c(Q2057971)))
action filter_type
action intersection
action find
entity Q110315
relation P780
action find
entity Q21175026
relation P780
type Q2057971
[ANSWER] is symptoms of lead poisoning and Paraquat exposure
{'AND': [['Q110315', 'P780', {'concept': 'Q2057971'}], ['Q21175026', 'P780', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2057971 . resource:Q21175026 property:P780 ?o . resource:Q110315 property:P780 ?o }
kidney disease
Kidney disease is symptoms of lead poisoning and Paraquat exposure
kidney disease
action filter_type
action intersection
action find
entity lead poisoning
relation symptoms
action find
entity Paraquat exposure
relation symptoms
type health problem
{'AND': [['lead poisoning', 'symptoms', {'concept': 'health problem'}], ['Paraquat exposure', 'symptoms', {'concept': 'health problem'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:health_problem . resource:Paraquat_exposure property:symptoms ?o . resource:lead_poisoning property:symptoms ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q8495
P828
Q10675206 Q2057971
USER
How many ingredients are the causes of around the same number of health problems as milk ?
(c(Q2057971),P828,c(Q10675206))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q10675206
type Q2057971
action count
action filter_type
action find
entity Q8495
relation P828
type Q10675206
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q10675206'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?w ) WHERE { ?t rdf:type ontology:Q10675206 . ?h rdf:type ontology:Q2057971 . ?h property:P828 ?t } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:Q8495 property:P828 ?s . ?s rdf:type ontology:Q10675206 } } . FILTER ( ?w = ?a ) }
milk
action count
action approx
action find_reverse_tuple_counts
relation has cause
type ingredient
type health problem
action count
action filter_type
action find
entity milk
relation has cause
type ingredient
[{'concept': 'health problem'}, 'has cause', {'concept': 'ingredient'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?w ) WHERE { ?t rdf:type ontology:ingredient . ?h rdf:type ontology:health_problem . ?h property:has_cause ?t } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:milk property:has_cause ?s . ?s rdf:type ontology:ingredient } } . FILTER ( ?w = ?a ) }
[]
ingredient health problem
SYSTEM
2
Q8495 Q3621199
(c(Q2057971),P828,c(Q10675206))
action count
action approx
action find_reverse_tuple_counts
relation P828
type Q10675206
type Q2057971
action count
action filter_type
action find
entity Q8495
relation P828
type Q10675206
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q10675206'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?w ) WHERE { ?t rdf:type ontology:Q10675206 . ?h rdf:type ontology:Q2057971 . ?h property:P828 ?t } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:Q8495 property:P828 ?s . ?s rdf:type ontology:Q10675206 } } . FILTER ( ?w = ?a ) }
milk peanut
2
action count
action approx
action find_reverse_tuple_counts
relation has cause
type ingredient
type health problem
action count
action filter_type
action find
entity milk
relation has cause
type ingredient
[{'concept': 'health problem'}, 'has cause', {'concept': 'ingredient'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?w ) WHERE { ?t rdf:type ontology:ingredient . ?h rdf:type ontology:health_problem . ?h property:has_cause ?t } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:milk property:has_cause ?s . ?s rdf:type ontology:ingredient } } . FILTER ( ?w = ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P689
Q25570959 Q4936952 Q12136
USER
How many diseases can afflict approximately 3 animal structures or anatomical structures ?
(c(Q12136),P689,c(Q25570959)|c(Q4936952))
action count
action approx
action union
action find_tuple_counts
relation P689
type Q12136
type Q25570959
action find_tuple_counts
relation P689
type Q12136
type Q4936952
value 3
[{'concept': 'Q12136'}, 'P689', [{'concept': 'Q25570959'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { { ?s rdf:type ontology:Q25570959 . ?q rdf:type ontology:Q12136 . ?q property:P689 ?s } UNION { ?s rdf:type ontology:Q4936952 . ?q rdf:type ontology:Q12136 . ?q property:P689 ?s } } GROUP BY ?q } . FILTER ( ?c = 3 ) }
action count
action approx
action union
action find_tuple_counts
relation afflicts
type disease
type animal structure
action find_tuple_counts
relation afflicts
type disease
type anatomical structure
value 3
[{'concept': 'disease'}, 'afflicts', [{'concept': 'animal structure'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { { ?s rdf:type ontology:animal_structure . ?q rdf:type ontology:disease . ?q property:afflicts ?s } UNION { ?s rdf:type ontology:anatomical_structure . ?q rdf:type ontology:disease . ?q property:afflicts ?s } } GROUP BY ?q } . FILTER ( ?c = 3 ) }
[]
animal structure anatomical structure disease
SYSTEM
1
Q110315
(c(Q12136),P689,c(Q25570959)|c(Q4936952))
action count
action approx
action union
action find_tuple_counts
relation P689
type Q12136
type Q25570959
action find_tuple_counts
relation P689
type Q12136
type Q4936952
value 3
[ANSWER]
[{'concept': 'Q12136'}, 'P689', [{'concept': 'Q25570959'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { { ?s rdf:type ontology:Q25570959 . ?q rdf:type ontology:Q12136 . ?q property:P689 ?s } UNION { ?s rdf:type ontology:Q4936952 . ?q rdf:type ontology:Q12136 . ?q property:P689 ?s } } GROUP BY ?q } . FILTER ( ?c = 3 ) }
lead poisoning
1
action count
action approx
action union
action find_tuple_counts
relation afflicts
type disease
type animal structure
action find_tuple_counts
relation afflicts
type disease
type anatomical structure
value 3
[{'concept': 'disease'}, 'afflicts', [{'concept': 'animal structure'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { { ?s rdf:type ontology:animal_structure . ?q rdf:type ontology:disease . ?q property:afflicts ?s } UNION { ?s rdf:type ontology:anatomical_structure . ?q rdf:type ontology:disease . ?q property:afflicts ?s } } GROUP BY ?q } . FILTER ( ?c = 3 ) }
[]