Simple Question (Direct)
Simple Question
Q21115974
P702
Q863908
USER
Which gene encodes Gremlin-2 ?
(Q21115974,P702,c(Q863908))
action filter_type
action find
entity Q21115974
relation P702
type Q863908
['Q21115974', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?y WHERE { resource:Q21115974 property:P702 ?y . ?y rdf:type ontology:Q863908 }
Gremlin-2
action filter_type
action find
entity Gremlin-2
relation encoded by
type nucleic acid sequence
['Gremlin-2', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?y WHERE { resource:Gremlin-2 property:encoded_by ?y . ?y rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18045649
SYSTEM
GREM2
Q18045649
(Q21115974,P702,c(Q863908))
action filter_type
action find
entity Q21115974
relation P702
type Q863908
[ANSWER] encodes Gremlin-2
['Q21115974', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?y WHERE { resource:Q21115974 property:P702 ?y . ?y rdf:type ontology:Q863908 }
GREM2
GREM2 encodes Gremlin-2
GREM2
action filter_type
action find
entity Gremlin-2
relation encoded by
type nucleic acid sequence
['Gremlin-2', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?y WHERE { resource:Gremlin-2 property:encoded_by ?y . ?y rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21115974
P688
Q863908
USER
Which nucleic acid sequence encodes that nutrient ?
(c(Q863908),P688,Q18045649)
action filter_type
action find_reverse
entity Q21115974
relation P688
type Q863908
[{'concept': 'Q863908'}, 'P688', 'Q18045649']
SELECT DISTINCT ?q WHERE { ?q property:P688 resource:Q21115974 . ?q rdf:type ontology:Q863908 }
Gremlin-2
action filter_type
action find_reverse
entity Gremlin-2
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'GREM2']
SELECT DISTINCT ?q WHERE { ?q property:encodes resource:Gremlin-2 . ?q rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18045649
SYSTEM
GREM2
Q18045649
(c(Q863908),P688,Q18045649)
action filter_type
action find_reverse
entity Q21115974
relation P688
type Q863908
[ANSWER] encodes that nutrient
[{'concept': 'Q863908'}, 'P688', 'Q18045649']
SELECT DISTINCT ?q WHERE { ?q property:P688 resource:Q21115974 . ?q rdf:type ontology:Q863908 }
GREM2
GREM2 encodes that nutrient
GREM2
action filter_type
action find_reverse
entity Gremlin-2
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'GREM2']
SELECT DISTINCT ?q WHERE { ?q property:encodes resource:Gremlin-2 . ?q rdf:type ontology:nucleic_acid_sequence }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P129
Q181394 Q8386 Q79529
USER
Which nutrients do max number of drugs and chemical substances contact with ?
(c(Q8386)|c(Q79529),P129,c(Q181394))
action argmax
action union
action find_reverse_tuple_counts
relation P129
type Q181394
type Q8386
action find_reverse_tuple_counts
relation P129
type Q181394
type Q79529
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:P129 ?s . ?o rdf:type ontology:Q8386 . ?s rdf:type ontology:Q181394 } UNION { ?o rdf:type ontology:Q79529 . ?s rdf:type ontology:Q181394 . ?o property:P129 ?s } } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?i ) { ( ontology:Q8386 ) ( ontology:Q79529 ) } . ?a rdf:type ?i } GROUP BY ?j } . FILTER ( ?z = ?e ) }
action argmax
action union
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type drug
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:physically_interacts_with ?s . ?o rdf:type ontology:drug . ?s rdf:type ontology:nutrient } UNION { ?o rdf:type ontology:chemical_substance . ?s rdf:type ontology:nutrient . ?o property:physically_interacts_with ?s } } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?i ) { ( ontology:drug ) ( ontology:chemical_substance ) } . ?a rdf:type ?i } GROUP BY ?j } . FILTER ( ?z = ?e ) }
[]
nutrient drug chemical substance
Q1949517
SYSTEM
5-hydroxytryptamine receptor 2A
Q1949517
(c(Q8386)|c(Q79529),P129,c(Q181394))
action argmax
action union
action find_reverse_tuple_counts
relation P129
type Q181394
type Q8386
action find_reverse_tuple_counts
relation P129
type Q181394
type Q79529
Which nutrients max number of drugs and chemical substances contact with
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:P129 ?s . ?o rdf:type ontology:Q8386 . ?s rdf:type ontology:Q181394 } UNION { ?o rdf:type ontology:Q79529 . ?s rdf:type ontology:Q181394 . ?o property:P129 ?s } } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?i ) { ( ontology:Q8386 ) ( ontology:Q79529 ) } . ?a rdf:type ?i } GROUP BY ?j } . FILTER ( ?z = ?e ) }
5-hydroxytryptamine receptor 2A
Which nutrients max number of drugs and chemical substances contact with
5-hydroxytryptamine receptor 2A
action argmax
action union
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type drug
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?r ) WHERE { { ?o property:physically_interacts_with ?s . ?o rdf:type ontology:drug . ?s rdf:type ontology:nutrient } UNION { ?o rdf:type ontology:chemical_substance . ?s rdf:type ontology:nutrient . ?o property:physically_interacts_with ?s } } GROUP BY ?s } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?i ) { ( ontology:drug ) ( ontology:chemical_substance ) } . ?a rdf:type ?i } GROUP BY ?j } . FILTER ( ?z = ?e ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1949517 Q423005
P129
Q8386
USER
Does Malathion communicate with that nutrient ?
(Q423005,P129,Q1949517)
action is_in
entity Q423005
action find
entity Q1949517
relation P129
['Q423005', 'P129', 'Q1949517']
ASK WHERE { resource:Q1949517 property:P129 resource:Q423005 }
5-hydroxytryptamine receptor 2A Malathion
action is_in
entity Malathion
action find
entity 5-hydroxytryptamine receptor 2A
relation physically interacts with
['Malathion', 'physically interacts with', '5-hydroxytryptamine receptor 2A']
ASK WHERE { resource:5-hydroxytryptamine_receptor_2A property:physically_interacts_with resource:Malathion }
[]
drug
SYSTEM
NO
(Q423005,P129,Q1949517)
action is_in
entity Q423005
action find
entity Q1949517
relation P129
[ANSWER]
['Q423005', 'P129', 'Q1949517']
ASK WHERE { resource:Q1949517 property:P129 resource:Q423005 }
No
action is_in
entity Malathion
action find
entity 5-hydroxytryptamine receptor 2A
relation physically interacts with
['Malathion', 'physically interacts with', '5-hydroxytryptamine receptor 2A']
ASK WHERE { resource:5-hydroxytryptamine_receptor_2A property:physically_interacts_with resource:Malathion }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21115974 Q22329850
P681
Q5058355
USER
Is icosahedral viral capsid, spike the cell component of Gremlin-2 ?
(Q21115974,P681,Q22329850)
action is_in
entity Q22329850
action find
entity Q21115974
relation P681
['Q21115974', 'P681', 'Q22329850']
ASK WHERE { resource:Q21115974 property:P681 resource:Q22329850 }
Gremlin-2 icosahedral viral capsid, spike
action is_in
entity icosahedral viral capsid, spike
action find
entity Gremlin-2
relation cell component
['Gremlin-2', 'cell component', 'icosahedral viral capsid, spike']
ASK WHERE { resource:Gremlin-2 property:cell_component resource:icosahedral_viral_capsid,_spike }
[]
cellular component
SYSTEM
NO
(Q21115974,P681,Q22329850)
action is_in
entity Q22329850
action find
entity Q21115974
relation P681
[ANSWER]
['Q21115974', 'P681', 'Q22329850']
ASK WHERE { resource:Q21115974 property:P681 resource:Q22329850 }
No
action is_in
entity icosahedral viral capsid, spike
action find
entity Gremlin-2
relation cell component
['Gremlin-2', 'cell component', 'icosahedral viral capsid, spike']
ASK WHERE { resource:Gremlin-2 property:cell_component resource:icosahedral_viral_capsid,_spike }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18045649
P684
Q863908
USER
Which is the species that has GREM2 as its orthologous gene ?
(c(Q863908),P684,Q18045649)
action filter_type
action find
entity Q18045649
relation P684
type Q863908
[{'concept': 'Q863908'}, 'P684', 'Q18045649']
SELECT DISTINCT ?d WHERE { resource:Q18045649 property:P684 ?d . ?d rdf:type ontology:Q863908 }
GREM2
action filter_type
action find
entity GREM2
relation ortholog
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'ortholog', 'GREM2']
SELECT DISTINCT ?d WHERE { resource:GREM2 property:ortholog ?d . ?d rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18255567
SYSTEM
Grem2
Q18255567
(c(Q863908),P684,Q18045649)
action filter_type
action find
entity Q18045649
relation P684
type Q863908
[ANSWER] is the species that has GREM2 as its orthologous gene
[{'concept': 'Q863908'}, 'P684', 'Q18045649']
SELECT DISTINCT ?d WHERE { resource:Q18045649 property:P684 ?d . ?d rdf:type ontology:Q863908 }
Grem2
Grem2 is the species that has GREM2 as its orthologous gene
Grem2
action filter_type
action find
entity GREM2
relation ortholog
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'ortholog', 'GREM2']
SELECT DISTINCT ?d WHERE { resource:GREM2 property:ortholog ?d . ?d rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18045649
P703
Q16521
USER
Where is GREM2 found ?
(Q18045649,P703,c(Q16521))
action filter_type
action find
entity Q18045649
relation P703
type Q16521
['Q18045649', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?k WHERE { resource:Q18045649 property:P703 ?k . ?k rdf:type ontology:Q16521 }
GREM2
action filter_type
action find
entity GREM2
relation found in taxon
type taxon
['GREM2', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?k WHERE { resource:GREM2 property:found_in_taxon ?k . ?k rdf:type ontology:taxon }
[]
taxon
Q15978631
SYSTEM
Homo sapiens
Q15978631
(Q18045649,P703,c(Q16521))
action filter_type
action find
entity Q18045649
relation P703
type Q16521
GREM2 is found in [ANSWER]
['Q18045649', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?k WHERE { resource:Q18045649 property:P703 ?k . ?k rdf:type ontology:Q16521 }
Homo sapiens
GREM2 is found in Homo sapiens
Homo sapiens
action filter_type
action find
entity GREM2
relation found in taxon
type taxon
['GREM2', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?k WHERE { resource:GREM2 property:found_in_taxon ?k . ?k rdf:type ontology:taxon }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18045649
P2293
Q2057971
USER
Which health problem has genetic association with that nucleic acid sequence ?
(Q15978631,P2293,c(Q2057971))
action filter_type
action find
entity Q18045649
relation P2293
type Q2057971
['Q15978631', 'P2293', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q18045649 property:P2293 ?y }
GREM2
action filter_type
action find
entity GREM2
relation genetic association
type health problem
['Homo sapiens', 'genetic association', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:GREM2 property:genetic_association ?y }
[]
health problem
Q12214
SYSTEM
smallpox
Q12214
(Q15978631,P2293,c(Q2057971))
action filter_type
action find
entity Q18045649
relation P2293
type Q2057971
[ANSWER] has genetic association with that nucleic acid sequence
['Q15978631', 'P2293', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q18045649 property:P2293 ?y }
smallpox
Smallpox has genetic association with that nucleic acid sequence
smallpox
action filter_type
action find
entity GREM2
relation genetic association
type health problem
['Homo sapiens', 'genetic association', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:GREM2 property:genetic_association ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P828
Q2144359 Q3249551 Q2057971
USER
Which health problems are caused by exactly 1 environmental issues or processes ?
(c(Q2057971),P828,c(Q2144359)|c(Q3249551))
action equal
action union
action find_tuple_counts
relation P828
type Q2057971
type Q2144359
action find_tuple_counts
relation P828
type Q2057971
type Q3249551
value 1
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q2144359'}, {'concept': 'Q3249551'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?d WHERE { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2144359 ) ( ontology:Q3249551 ) } } GROUP BY ?d } . FILTER ( ?k = 1 ) }
action equal
action union
action find_tuple_counts
relation has cause
type health problem
type environmental issue
action find_tuple_counts
relation has cause
type health problem
type process
value 1
[{'concept': 'health problem'}, 'has cause', [{'concept': 'environmental issue'}, {'concept': 'process'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?d WHERE { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:environmental_issue ) ( ontology:process ) } } GROUP BY ?d } . FILTER ( ?k = 1 ) }
[]
environmental issue process health problem
Q47912 Q17071650
SYSTEM
lung cancer, Calcium channel blocker toxicity
Q47912 Q17071650
(c(Q2057971),P828,c(Q2144359)|c(Q3249551))
action equal
action union
action find_tuple_counts
relation P828
type Q2057971
type Q2144359
action find_tuple_counts
relation P828
type Q2057971
type Q3249551
value 1
[ANSWERS] are caused by exactly 1 environmental issues or processes
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q2144359'}, {'concept': 'Q3249551'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?d WHERE { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2144359 ) ( ontology:Q3249551 ) } } GROUP BY ?d } . FILTER ( ?k = 1 ) }
lung cancer Calcium channel blocker toxicity
Lung cancer and Calcium channel blocker toxicity are caused by exactly 1 environmental issues or processes
lung cancer Calcium channel blocker toxicity
action equal
action union
action find_tuple_counts
relation has cause
type health problem
type environmental issue
action find_tuple_counts
relation has cause
type health problem
type process
value 1
[{'concept': 'health problem'}, 'has cause', [{'concept': 'environmental issue'}, {'concept': 'process'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?d WHERE { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:environmental_issue ) ( ontology:process ) } } GROUP BY ?d } . FILTER ( ?k = 1 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1050
Q2057971 Q502895
USER
How many health problems have approximately the same number of people contracted as that health problem ?
(c(Q502895),P1050,c(Q2057971))
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
health problem common name
Comparative|Count over More/Less|Single entity type|Clarification
Q47912
SYSTEM
Did you mean lung cancer ?
(c(Q502895),P1050,c(Q2057971))
[ANSWER]
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
Did you mean lung cancer ?
lung cancer
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P1050,c(Q2057971))
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
[]
SYSTEM
208
Q6052272 Q372701 Q83319 Q1151507 Q18553829 Q794457 Q1198391 Q749409 Q4692280 Q68833 Q18554922 Q160649 Q500695 Q282142 Q3280669 Q16501 Q2425407 Q173022 Q2290446 Q35869 Q12199 Q7578960 Q36956 Q3025883 Q177254 Q658873 Q470427 Q18657 Q727096 Q16483 Q478389 Q2307256 Q41083 Q155098 Q727153 Q170990 Q222634 Q1143025 Q147778 Q938205 Q1209744 Q12174 Q623031 Q954625 Q857667 Q1282114 Q2035074 Q572169 Q1165179 Q202837 Q844935 Q131742 Q16499 Q212021 Q18556125 Q847057 Q178190 Q134649 Q213098 Q191779 Q1137767 Q207855 Q1016605 Q185034 Q12167 Q223591 Q1216998 Q18556035 Q180614 Q2562598 Q187255 Q1378921 Q1436063 Q208414 Q644318 Q190564 Q118418 Q622427 Q1138590 Q916398 Q1364270 Q168403 Q12152 Q1451877 Q48143 Q536269 Q244438 Q188874 Q944758 Q18555055 Q134003 Q549534 Q18556938 Q159701 Q653200 Q11088 Q156050 Q206901 Q939364 Q190805 Q199804 Q653078 Q202387 Q1331905 Q616087 Q4117241 Q1365309 Q8388 Q625164 Q152100 Q181257 Q180664 Q8277 Q38404 Q844717 Q180266 Q938983 Q568865 Q4677938 Q11072 Q504775 Q47912 Q2836 Q671776 Q131755 Q133696 Q124292 Q12156 Q925092 Q744790 Q42844 Q5445 Q10860654 Q132971 Q15283847 Q189580 Q18556385 Q181754 Q5282843 Q753904 Q189588 Q264118 Q18555369 Q220570 Q580290 Q3281322 Q182413 Q2500124 Q684924 Q12135 Q131749 Q1755568 Q161790 Q572111 Q3144986 Q2868696 Q3041498 Q418418 Q174857 Q340594 Q154874 Q281115 Q1112977 Q18555066 Q693519 Q181923 Q12202 Q12206 Q1161568 Q18555947 Q18555946 Q595010 Q133087 Q272436 Q18554893 Q128581 Q18553852 Q1607658 Q193894 Q39222 Q47715 Q12214 Q2406697 Q207133 Q18556115 Q124407 Q476921 Q12192 Q1209150 Q4839317 Q1362453 Q29496 Q467635 Q18554997 Q1066311 Q194101 Q210427 Q1410831 Q208562 Q188605 Q7162621 Q653318 Q186676 Q2606101 Q729735 Q81867 Q1141499 Q83030
(c(Q502895),P1050,c(Q2057971))
[ANSWER]
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
Mozart ear esophageal cancer typhoid fever dermatitis herpetiformis prostate carcinoma Locked-in syndrome intracranial aneurysm osteogenesis imperfecta natural killer cell leukemia bone fracture jaw cancer typhus retinoblastoma glioblastoma multiforme brain injury hypothyroidisms Acute tubular necrosis bronchitis idiopathic pulmonary fibrosis asthma acquired immunodeficiency syndrome Spondyloepiphyseal dysplasia congenita leprosy type 2 diabetes mellitus hyperopia Radiation burn refractive error multiple personality disorder physical disorder toxic diffuse goiter kyphosis neuritis syphilis leptospirosis hiatus hernia arthritis orofacial cleft oral cavity cancer liver cirrhosis neuroblastoma uterine cancer obesity liver cancer myelodysplastic syndrome pulmonary edema speech disorder Paget's disease of bone Seckel syndrome Kallmann syndrome cardiac arrest coronary artery disease hepatitis hyperthyroidism kleptomania adrenal carcinoma retinitis pigmentosa obsessive-compulsive disorder diphtheria progeria Gilles de la Tourette syndrome muscular dystrophy amblyopia Burkitt lymphoma sickle cell anemia malnutrition gastroesophageal reflux disease neoplasm cervical adenocarcinoma melanoma hemophilia B rheumatoid arthritis euthyroid sick syndrome autism spectrum disorder lymphoma vasculitis Huntington's disease antisocial personality disorder ptosis non-Hodgkin lymphoma lymphedema hypertrophic cardiomyopathy myopia myocardial infarction embryonal carcinoma meningitis phaeochromocytoma prosopagnosia colorectal cancer Tetraplegia colon adenocarcinoma inherited blood coagulation disease osteosarcoma embryonal testis carcinoma glaucoma flat feet problems celiac disease brucellosis amyotrophic lateral sclerosis congenital heart disease heart disease chronic obstructive pulmonary disease Whipple disease post-traumatic stress disorder dementia with Lewy bodies aortic valve insufficiency autoimmune polyendocrine syndrome type 2 glioma pedophilia retinal detachment nicotine addiction prostate cancer acute lymphocytic leukemia multiple sclerosis autism spina bifida scarlet fever osteomyelitis cherubism acute monocytic leukemia amnestic disorder urinary bladder cancer lung cancer aphasia mutism bipolar disorder color blindness cholangiocarcinoma malaria Wolff-Parkinson-White syndrome Treacher Collins syndrome major depressive disorder anemia Iron overload dyslexia knee injury acromegaly lung large cell carcinoma heart failure Distal muscular dystrophy rheumatic fever stomach cancer acute myeloid leukemia teratocarcinoma pulmonary embolism Spinal muscular atrophy peroxisomal disease substance dependence Urbach–Wiethe disease rheumatism mental disorder anorexia nervosa osteopetrosis Asperger syndrome anterograde amnesia Alcoholic hepatitis pain agnosia eye disease ankylosis scoliosis achondroplasia yellow fever Proteus syndrome syringomyelia relapsing-remitting multiple sclerosis essential tremor attention deficit hyperactivity disorder stroke diabetes mellitus Granulomatosis with polyangiits breast carcinoma breast adenocarcinoma hypertrichosis gout allergic rhinitis ocular melanoma breast cancer lymphoblastic leukemia hepatoblastoma sarcoidosis rabies Down syndrome smallpox Tetraamelie Klinefelter's syndrome lung adenocarcinoma type 1 diabetes mellitus kidney failure pneumonia cerebral infarction back injury fibrosarcoma leukemia multiple myeloma vulva squamous cell carcinoma complex regional pain syndrome dwarfism cerebral palsy fibrodysplasia ossificans progressiva Marfan syndrome pulmonary emphysema penetrating trauma silicosis stuttering Paranoid schizophrenia chronic myeloid leukemia albino Ehlers–Danlos syndrome dementia
208
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q18928351
P828
Q2057971 Q12136
USER
Which diseases are caused by more number of health problems than inkoo encephalitis ?
(c(Q12136),P828,c(Q2057971))
action greater
action find_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q18928351
relation P828
type Q12136
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?b ) WHERE { ?q property:P828 ?f . ?q rdf:type ontology:Q12136 . ?f rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q18928351 property:P828 ?m . ?m rdf:type ontology:Q12136 } } }
inkoo encephalitis
action greater
action find_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity inkoo encephalitis
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?b ) WHERE { ?q property:has_cause ?f . ?q rdf:type ontology:disease . ?f rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:inkoo_encephalitis property:has_cause ?m . ?m rdf:type ontology:disease } } }
[]
health problem disease
Q209369 Q895930 Q2723627
SYSTEM
Hodgkin's lymphoma, Nodding disease, Pott disease
Q3281904 Q26737764 Q11290178 Q18975496 Q3634866 Q26737768 Q26737757 Q3152925 Q5567304 Q18967433 Q3480107 Q2637106 Q3144951 Q209369 Q1640810 Q895930 Q4420129 Q2723627 Q6741354 Q2249526 Q7900393 Q1186697 Q26737770 Q2777805
(c(Q12136),P828,c(Q2057971))
action greater
action find_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q18928351
relation P828
type Q12136
[ANSWERS] are caused by more number of health problems than inkoo encephalitis
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?b ) WHERE { ?q property:P828 ?f . ?q rdf:type ontology:Q12136 . ?f rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q18928351 property:P828 ?m . ?m rdf:type ontology:Q12136 } } }
congenital physical abnormalitie paracentral scotoma Alcohol and health metabolic skin disease Lupus headache Bjerrum scotoma central scotoma chronic respiratory failure Glaukomflecken HIV encephalopathy bone pain Scintillating scotoma Benckiser's hemorrhage Hodgkin's lymphoma Hyper-IgD syndrome Nodding disease Mauriac syndrome Pott disease malarial nephropathy Cerebral hypoxia Uremic pericarditis demyelination ring scotoma Diabetes mellitus and pregnancy
Hodgkin's lymphoma, Nodding disease and Pott disease are caused by more number of health problems than inkoo encephalitis
Hodgkin's lymphoma Nodding disease Pott disease
action greater
action find_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity inkoo encephalitis
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?b ) WHERE { ?q property:has_cause ?f . ?q rdf:type ontology:disease . ?f rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:inkoo_encephalitis property:has_cause ?m . ?m rdf:type ontology:disease } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1542
Q12136 Q10675206
USER
How many diseases do approximately the same number of ingredients result in as that disease ?
(c(Q10675206),P1542,c(Q12136))
[{'concept': 'Q10675206'}, 'P1542', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q10675206 . ?y rdf:type ontology:Q12136 }
[{'concept': 'ingredient'}, 'cause of', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:ingredient . ?y rdf:type ontology:disease }
[]
disease ingredient
Comparative|Count over More/Less|Single entity type|Clarification
Q209369
SYSTEM
Did you mean Hodgkin's lymphoma ?
(c(Q10675206),P1542,c(Q12136))
[ANSWER]
[{'concept': 'Q10675206'}, 'P1542', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q10675206 . ?y rdf:type ontology:Q12136 }
Did you mean Hodgkin's lymphoma ?
Hodgkin's lymphoma
[{'concept': 'ingredient'}, 'cause of', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:ingredient . ?y rdf:type ontology:disease }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Pott disease. Could you tell me the answer for that?
(c(Q10675206),P1542,c(Q12136))
Q2723627
[{'concept': 'Q10675206'}, 'P1542', {'concept': 'Q12136'}]
[{'concept': 'ingredient'}, 'cause of', {'concept': 'disease'}]
[]
SYSTEM
65
Q895930 Q618365 Q167844 Q1186697 Q2723627 Q18975513 Q18975828 Q164818 Q272002 Q1824410 Q730249 Q3480107 Q181391 Q2915477 Q220989 Q854353 Q606216 Q19000581 Q19000458 Q18554891 Q5986402 Q2006636 Q3266880 Q2932525 Q157008 Q125367 Q7316336 Q2936210 Q205972 Q1129105 Q852163 Q19850514 Q3152925 Q1033316 Q189331 Q3498706 Q693058 Q7074450 Q110315 Q18975460 Q1869874 Q86 Q94796 Q737460 Q1001920 Q6452285 Q2031871 Q945238 Q3899830 Q12078 Q5861610 Q2632404 Q22350879 Q17123258 Q4927522 Q3144951 Q769220 Q1275863 Q775940 Q12133 Q882181 Q1736897 Q5712506 Q1814753 Q706825
(c(Q10675206),P1542,c(Q12136))
[ANSWER]
[{'concept': 'Q10675206'}, 'P1542', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q10675206 . ?y rdf:type ontology:Q12136 }
Nodding disease apple scab conjunctivitis demyelination Pott disease peste des petits ruminants infectious disease visna Q fever food poisoning cat flu arsenic poisoning bone pain alopecia Folate deficiency Nystagmus enteritis ageusia classical swine fever equine infectious anemia squamous cell carcinoma Ichthyoallyeinotoxism waterborne disease Skeletal fluorosis lancet liver fluke infection Rinderpest carbon monoxide poisoning Restrictive lung disease occupational cancer drunkenness diabetic nephropathy lower back pain Olive Quick Decline Syndrome chronic respiratory failure Ehrlichiosis cardiac dysrhythmia Steppage gait chest pain oat sensitivity lead poisoning infectious canine hepatitis insomnia headache Marchiafava-Bignami disease visual impairment Hallucinogen persisting perception disorder (hppd) ulcer Vibration white finger peripheral neuropathy Nasal septal perforation cancer Bwamba Fever African swine fever Spondweni fever fox mange Blood-borne disease Benckiser's hemorrhage Paresthesia seafood allergy Diplopia deafness corn grey leaf spot allergy to cats anti-Kell hemolytic disease of the newborn Phossy jaw foulbrood
65
[{'concept': 'ingredient'}, 'cause of', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:ingredient . ?y rdf:type ontology:disease }
[]