Simple Question (Direct)
Simple Question
Q3502230
P20
Q532
USER
Where did Burt Glinn die ?
(Q3502230,P20,c(Q532))
action filter_type
action find
entity Q3502230
relation P20
type Q532
['Q3502230', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?g WHERE { resource:Q3502230 property:P20 ?g . ?g rdf:type ontology:Q532 }
Burt Glinn
action filter_type
action find
entity Burt Glinn
relation place of death
type village
['Burt Glinn', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?g WHERE { resource:Burt_Glinn property:place_of_death ?g . ?g rdf:type ontology:village }
[]
village
Q3826291
SYSTEM
Southampton (village), New York
Q3826291
(Q3502230,P20,c(Q532))
action filter_type
action find
entity Q3502230
relation P20
type Q532
Burt Glinn died in [ANSWER]
['Q3502230', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?g WHERE { resource:Q3502230 property:P20 ?g . ?g rdf:type ontology:Q532 }
Southampton (village), New York
Burt Glinn died in Southampton (village), New York
Southampton (village), New York
action filter_type
action find
entity Burt Glinn
relation place of death
type village
['Burt Glinn', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?g WHERE { resource:Burt_Glinn property:place_of_death ?g . ?g rdf:type ontology:village }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3502230
P509
Q2057971
USER
What caused the death of Burt Glinn ?
(Q3502230,P509,c(Q2057971))
action filter_type
action find
entity Q3502230
relation P509
type Q2057971
['Q3502230', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q3502230 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
Burt Glinn
action filter_type
action find
entity Burt Glinn
relation cause of death
type health problem
['Burt Glinn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Burt_Glinn property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q3502230,P509,c(Q2057971))
action filter_type
action find
entity Q3502230
relation P509
type Q2057971
[ANSWER] caused the death of Burt Glinn
['Q3502230', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q3502230 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
pneumonia
Pneumonia caused the death of Burt Glinn
pneumonia
action filter_type
action find
entity Burt Glinn
relation cause of death
type health problem
['Burt Glinn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Burt_Glinn property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26701835
Q2057971
USER
And also tell me about Rodolfo Illanes?
(Q26701835,P509,c(Q2057971))
action filter_type
action find
entity Q26701835
relation P509
type Q2057971
['Q26701835', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q26701835 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
Rodolfo Illanes
action filter_type
action find
entity Rodolfo Illanes
relation cause of death
type health problem
['Rodolfo Illanes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:Rodolfo_Illanes property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
health problem
Q12202
SYSTEM
stroke
Q12202
(Q26701835,P509,c(Q2057971))
action filter_type
action find
entity Q26701835
relation P509
type Q2057971
[ANSWER]
['Q26701835', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { resource:Q26701835 property:P509 ?q . ?q rdf:type ontology:Q2057971 }
stroke
stroke
action filter_type
action find
entity Rodolfo Illanes
relation cause of death
type health problem
['Rodolfo Illanes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { resource:Rodolfo_Illanes property:cause_of_death ?q . ?q rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12202 Q413994
P2176
Q8386
USER
Is Timolol used for treating that health problem ?
(Q12202,P2176,Q413994)
action is_in
entity Q413994
action find
entity Q12202
relation P2176
['Q12202', 'P2176', 'Q413994']
ASK WHERE { resource:Q12202 property:P2176 resource:Q413994 }
stroke Timolol
action is_in
entity Timolol
action find
entity stroke
relation drug used for treatment
['stroke', 'drug used for treatment', 'Timolol']
ASK WHERE { resource:stroke property:drug_used_for_treatment resource:Timolol }
[]
drug
SYSTEM
NO
(Q12202,P2176,Q413994)
action is_in
entity Q413994
action find
entity Q12202
relation P2176
[ANSWER]
['Q12202', 'P2176', 'Q413994']
ASK WHERE { resource:Q12202 property:P2176 resource:Q413994 }
No
action is_in
entity Timolol
action find
entity stroke
relation drug used for treatment
['stroke', 'drug used for treatment', 'Timolol']
ASK WHERE { resource:stroke property:drug_used_for_treatment resource:Timolol }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q42982
P1542
Q2057971 Q181394 Q2424752
USER
Which health problems are the effects of lesser number of nutrients or products than type I hypersensitivity ?
(c(Q181394)|c(Q2424752),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q42982
relation P1542
type Q181394
type Q2424752
[[{'concept': 'Q181394'}, {'concept': 'Q2424752'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?h WHERE { { ?h rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q181394 . ?z property:P1542 ?h } UNION { ?z rdf:type ontology:Q2424752 . ?h rdf:type ontology:Q2057971 . ?z property:P1542 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P1542 resource:Q42982 . { { ?o rdf:type ontology:Q181394 } UNION { ?o rdf:type ontology:Q2424752 } } } } . FILTER ( ?y < ?g ) }
type I hypersensitivity
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action find_reverse_tuple_counts
relation cause of
type health problem
type product
action count
action filter_multi_types
action find_reverse
entity type I hypersensitivity
relation cause of
type nutrient
type product
[[{'concept': 'nutrient'}, {'concept': 'product'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?h WHERE { { ?h rdf:type ontology:health_problem . ?z rdf:type ontology:nutrient . ?z property:cause_of ?h } UNION { ?z rdf:type ontology:product . ?h rdf:type ontology:health_problem . ?z property:cause_of ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:cause_of resource:type_I_hypersensitivity . { { ?o rdf:type ontology:nutrient } UNION { ?o rdf:type ontology:product } } } } . FILTER ( ?y < ?g ) }
[]
health problem nutrient product
Q35869 Q12214 Q12152
SYSTEM
asthma, smallpox, myocardial infarction
Q2603200 Q949694 Q83319 Q3108587 Q2068896 Q229256 Q18554029 Q154865 Q2346396 Q188638 Q10874 Q864868 Q13452408 Q7157933 Q154869 Q3513968 Q1476027 Q2373361 Q1194496 Q5334259 Q548213 Q2447562 Q3776920 Q18555098 Q35869 Q3073142 Q243257 Q5062120 Q5062122 Q703961 Q614279 Q694552 Q1928978 Q835061 Q2700304 Q2845432 Q963944 Q18324719 Q160653 Q4413030 Q443929 Q2300099 Q3084532 Q147778 Q738292 Q928697 Q623031 Q1856914 Q857667 Q846316 Q1282114 Q646664 Q3339235 Q783903 Q28693 Q4958833 Q2140729 Q393477 Q574905 Q12214 Q279330 Q2840 Q468433 Q12090 Q3089469 Q6159042 Q18553251 Q134649 Q18553273 Q18553252 Q2059411 Q719656 Q4690047 Q203133 Q551085 Q7314317 Q823027 Q192102 Q5459411 Q12135 Q748442 Q18555101 Q319315 Q992139 Q3197774 Q327005 Q570197 Q208414 Q631361 Q17120992 Q190564 Q576179 Q1531991 Q16242752 Q156103 Q2681162 Q154882 Q2608695 Q17083186 Q127724 Q852376 Q200779 Q18556080 Q353172 Q941770 Q201989 Q2397106 Q682798 Q1427959 Q3367106 Q193216 Q18558169 Q5090486 Q5445 Q12156 Q47790 Q159701 Q481392 Q190805 Q422268 Q7235947 Q18123741 Q804521 Q176741 Q2425407 Q496812 Q692536 Q3049302 Q18553274 Q18553742 Q2076966 Q979168 Q1128440 Q2879095 Q18554767 Q326643 Q5380626 Q727028 Q18553170 Q167264 Q160649 Q30953 Q4116663 Q1502312 Q18924547 Q6853 Q1054718 Q8071861 Q705906 Q11072 Q504775 Q1233526 Q47912 Q178194 Q5384031 Q3011658 Q1030785 Q173022 Q767485 Q1048101 Q202173 Q812671 Q2589418 Q1243869 Q9430213 Q3798547 Q12152 Q1416773 Q188605 Q18975031 Q18554367 Q219223 Q68833 Q153861 Q105688 Q769815 Q327298 Q639776 Q1878776 Q378681 Q1290616 Q431643 Q41083 Q178436 Q2906693 Q931323 Q4366062 Q21504985 Q2868696 Q18975539 Q890200 Q1750104 Q5196693 Q53829 Q31798 Q5506384 Q744387 Q18554000 Q18555271 Q895297 Q18553191 Q18554485 Q18553197 Q18553216 Q922927 Q18553198 Q970203 Q12204 Q4845643 Q101896 Q103177 Q134859 Q32446 Q1347256 Q272436 Q12125 Q6587253 Q2741820 Q18554606 Q794086 Q585285 Q681970 Q567660 Q18556970 Q12199 Q316180 Q153356 Q1066011 Q651223 Q476921 Q12192 Q1347065 Q1432397 Q76973 Q29496 Q506616 Q7053975 Q36956 Q202758 Q21109885 Q11627066 Q18554418 Q18554419 Q18975606 Q18971555 Q18554659 Q576349 Q326638 Q154874 Q18553284 Q199615 Q133780 Q1632552 Q6663796 Q1433212 Q129104 Q5274956 Q1367782 Q1570013 Q3902759 Q1553609
(c(Q181394)|c(Q2424752),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q42982
relation P1542
type Q181394
type Q2424752
[ANSWERS] are the effects of lesser number of nutrients or products than type I hypersensitivity
[[{'concept': 'Q181394'}, {'concept': 'Q2424752'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?h WHERE { { ?h rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q181394 . ?z property:P1542 ?h } UNION { ?z rdf:type ontology:Q2424752 . ?h rdf:type ontology:Q2057971 . ?z property:P1542 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P1542 resource:Q42982 . { { ?o rdf:type ontology:Q181394 } UNION { ?o rdf:type ontology:Q2424752 } } } } . FILTER ( ?y < ?g ) }
viral pneumonia amebiasis typhoid fever pigmentary glaucoma drug allergy dermatitis pseudomembranous conjunctivitis botulism iritis mood disorder blindness bone marrow suppression neuropathy peanut allergy hepatitis C corneal opacity lymphangitis nut allergy scrub typhus parasitic ectoparasitic infectious disease neural tube defect balantidiasis bacterial pneumonia sensory peripheral neuropathy asthma Pontiac fever chikungunya central nervous system depression central nervous system disease prion disease louping ill lymphogranuloma venereum viral infectious disease mastitis Bolivian hemorrhagic fever ehrlichiosis melioidosis Chapare hemorrhagic fever listeriosis wheat allergy dirofilariasis gastrointestinal system disease endemic typhus liver cirrhosis Japanese encephalitis sensorineural hearing loss liver cancer nocardiosis pulmonary edema aplastic anemia speech disorder rickettsiosis nervous system disease contact dermatitis miscarriage Brazilian hemorrhagic fever fasciolopsiasis trench fever Clostridium difficile colitis smallpox bronchial disease influenza anosmia Cholera sequelae Japanese spotted fever wound botulism diphtheria aneruptive fever infant botulism Black piedra fascioliasis African tick-bite fever sleeping sickness myelitis reproductive system disease disseminated intravascular coagulation skin cancer Flinders Island spotted fever mental disorder methemoglobinemia tooth erosion Colorado tick fever human granulocytic anaplasmosis klebsiellosis glanders proteinuria lymphoma diabetic retinopathy Hyperglycerolemia Huntington's disease egg allergy Parkinsonian syndrome allergic contact dermatitis gastroenteritis eye injury Legionnaires' disease movement disease obstructive sleep apnea cataract seizure genetic disease cranial nerve palsy parasitic protozoa infectious disease proctitis Lyme disease tauopathy bejel dental fluorosis parvovirus infectious disease trachoma Venezuelan equine encephalitis toxic pneumonitis anemia malaria tetanus glaucoma theileriasis heart disease actinomycosis Powassan encephalitis infectious disease bacterial vaginosis mumps Acute tubular necrosis leukopenia myopathy human monocytic ehrlichiosis sennetsu fever chromosomal disease cytomegalia brain edema toxic shock syndrome optic nerve disease Brucella melitensis brucellosis hepatitis E Entomophthoramycosis bacterial infectious disease Astrakhan spotted fever Marburg hemorrhagic fever typhus dengue fever musculoskeletal system disease polyneuropathy Rocio virus encephalitis hepatitis B kidney disease Zika fever paratyphoid fever amnestic disorder urinary bladder cancer osteosclerosis lung cancer cystic fibrosis Epstein–Barr virus infection dacryocystocele demodicosis bronchitis respiratory failure rickettsialpox hordeolum bacillary angiomatosis pasteurellosis Treponematosis borna disease Haverhill fever myocardial infarction granuloma inguinale pulmonary emphysema basal cell carcinoma respiratory syncytial virus infectious disease lactose intolerance bone fracture tularemia hypoxia food allergy shigellosis cat-scratch disease lymphocytic choriomeningitis peripheral artery disease epidemic typhus microcephaly syphilis constipation baritosis nephropathia epidemica Pneumococcal infection lewisite shock pain agnosia toxic encephalopathy Coagulopathy Carrion's disease Cutaneous diphtheria infection Thyroid nodule chancroid fruit allergy Rocky Mountain spotted fever Brucella suis brucellosis acute kidney failure boutonneuse fever Indian tick typhus diphtheritic peritonitis Israeli tick typhus intestinal botulism primary amebic meningoencephalitis Far Eastern spotted fever milk allergy tuberculosis rhinosporidiosis gonorrhea severe acute respiratory syndrome pertussis pulmonary fibrosis excessive tearing allergic rhinitis common cold Queensland tick typhus Omsk hemorrhagic fever inclusion conjunctivitis hypokalemia thrombocytopenia contagious pustular dermatitis St. Louis encephalitis optic atrophy acquired immunodeficiency syndrome Pseudorabies chlamydia cowpox pneumoconiosis kidney failure pneumonia epiglottitis Kyasanur forest disease yaws leukemia drowning Siberian tick typhus leprosy hypoglycemia chronic respiratory disease West Nile fever louse-borne relapsing fever tick-borne relapsing fever Fusobacterium infectious disease obstructive lung disease Brucella canis brucellosis brain disease Rift Valley fever yellow fever O'nyong'nyong fever encephalitis plague hyperostosis Lobomycosis myositis anthrax disease dientamoebiasis Gluten related disorders thrombophilia white piedra Canine parvovirus
Asthma, smallpox and myocardial infarction are the effects of lesser number of nutrients or products than type I hypersensitivity
asthma smallpox myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action find_reverse_tuple_counts
relation cause of
type health problem
type product
action count
action filter_multi_types
action find_reverse
entity type I hypersensitivity
relation cause of
type nutrient
type product
[[{'concept': 'nutrient'}, {'concept': 'product'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?h WHERE { { ?h rdf:type ontology:health_problem . ?z rdf:type ontology:nutrient . ?z property:cause_of ?h } UNION { ?z rdf:type ontology:product . ?h rdf:type ontology:health_problem . ?z property:cause_of ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:cause_of resource:type_I_hypersensitivity . { { ?o rdf:type ontology:nutrient } UNION { ?o rdf:type ontology:product } } } } . FILTER ( ?y < ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q576179
P1542
Q2057971 Q181394 Q2424752
USER
And what about egg allergy?
(c(Q181394)|c(Q2424752),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q576179
relation P1542
type Q181394
type Q2424752
[[{'concept': 'Q181394'}, {'concept': 'Q2424752'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?l WHERE { { ?t property:P1542 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q181394 } UNION { ?t property:P1542 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q2424752 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q181394 ) ( ontology:Q2424752 ) } } . ?e property:P1542 resource:Q576179 } } . FILTER ( ?i < ?y ) }
egg allergy
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action find_reverse_tuple_counts
relation cause of
type health problem
type product
action count
action filter_multi_types
action find_reverse
entity egg allergy
relation cause of
type nutrient
type product
[[{'concept': 'nutrient'}, {'concept': 'product'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?l WHERE { { ?t property:cause_of ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:nutrient } UNION { ?t property:cause_of ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:product } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:nutrient ) ( ontology:product ) } } . ?e property:cause_of resource:egg_allergy } } . FILTER ( ?i < ?y ) }
[]
health problem nutrient product
Q35869 Q12214 Q12152
SYSTEM
asthma, smallpox, myocardial infarction
Q2603200 Q949694 Q83319 Q3108587 Q2068896 Q229256 Q18554029 Q154865 Q2346396 Q188638 Q10874 Q864868 Q13452408 Q7157933 Q154869 Q3513968 Q1476027 Q1194496 Q5334259 Q548213 Q2447562 Q3776920 Q18555098 Q35869 Q3073142 Q243257 Q5062120 Q5062122 Q614279 Q694552 Q1928978 Q835061 Q2700304 Q2845432 Q963944 Q18324719 Q160653 Q4413030 Q443929 Q2300099 Q3084532 Q147778 Q738292 Q928697 Q623031 Q1856914 Q857667 Q846316 Q1282114 Q646664 Q3339235 Q783903 Q28693 Q4958833 Q2140729 Q393477 Q574905 Q12214 Q279330 Q2840 Q468433 Q12090 Q3089469 Q6159042 Q18553251 Q134649 Q18553273 Q18553252 Q2059411 Q719656 Q4690047 Q203133 Q551085 Q7314317 Q823027 Q192102 Q5459411 Q12135 Q748442 Q18555101 Q319315 Q992139 Q3197774 Q327005 Q570197 Q208414 Q631361 Q17120992 Q190564 Q1531991 Q16242752 Q156103 Q2681162 Q154882 Q2608695 Q17083186 Q127724 Q852376 Q200779 Q18556080 Q353172 Q941770 Q201989 Q682798 Q1427959 Q3367106 Q193216 Q18558169 Q5090486 Q5445 Q12156 Q47790 Q159701 Q481392 Q190805 Q422268 Q7235947 Q18123741 Q804521 Q176741 Q2425407 Q496812 Q692536 Q3049302 Q18553274 Q18553742 Q2076966 Q979168 Q1128440 Q2879095 Q18554767 Q326643 Q5380626 Q727028 Q18553170 Q167264 Q160649 Q30953 Q4116663 Q1502312 Q18924547 Q6853 Q1054718 Q8071861 Q705906 Q11072 Q504775 Q1233526 Q47912 Q178194 Q5384031 Q3011658 Q1030785 Q173022 Q767485 Q1048101 Q202173 Q812671 Q2589418 Q1243869 Q9430213 Q3798547 Q12152 Q1416773 Q188605 Q18975031 Q18554367 Q219223 Q68833 Q153861 Q105688 Q769815 Q327298 Q639776 Q1878776 Q378681 Q1290616 Q431643 Q41083 Q178436 Q2906693 Q931323 Q4366062 Q21504985 Q2868696 Q18975539 Q890200 Q1750104 Q5196693 Q53829 Q31798 Q5506384 Q744387 Q18554000 Q18555271 Q895297 Q18553191 Q18554485 Q18553197 Q18553216 Q922927 Q18553198 Q970203 Q12204 Q4845643 Q101896 Q103177 Q134859 Q32446 Q1347256 Q272436 Q12125 Q6587253 Q2741820 Q18554606 Q794086 Q585285 Q681970 Q567660 Q18556970 Q12199 Q316180 Q153356 Q1066011 Q651223 Q476921 Q12192 Q1347065 Q1432397 Q76973 Q29496 Q506616 Q7053975 Q36956 Q202758 Q21109885 Q11627066 Q18554418 Q18554419 Q18975606 Q18971555 Q18554659 Q576349 Q326638 Q154874 Q18553284 Q199615 Q133780 Q1632552 Q6663796 Q1433212 Q129104 Q5274956 Q1570013 Q3902759 Q1553609
(c(Q181394)|c(Q2424752),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2424752
action count
action filter_multi_types
action find_reverse
entity Q576179
relation P1542
type Q181394
type Q2424752
[ANSWERS]
[[{'concept': 'Q181394'}, {'concept': 'Q2424752'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?l WHERE { { ?t property:P1542 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q181394 } UNION { ?t property:P1542 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q2424752 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q181394 ) ( ontology:Q2424752 ) } } . ?e property:P1542 resource:Q576179 } } . FILTER ( ?i < ?y ) }
viral pneumonia amebiasis typhoid fever pigmentary glaucoma drug allergy dermatitis pseudomembranous conjunctivitis botulism iritis mood disorder blindness bone marrow suppression neuropathy peanut allergy hepatitis C corneal opacity lymphangitis scrub typhus parasitic ectoparasitic infectious disease neural tube defect balantidiasis bacterial pneumonia sensory peripheral neuropathy asthma Pontiac fever chikungunya central nervous system depression central nervous system disease louping ill lymphogranuloma venereum viral infectious disease mastitis Bolivian hemorrhagic fever ehrlichiosis melioidosis Chapare hemorrhagic fever listeriosis wheat allergy dirofilariasis gastrointestinal system disease endemic typhus liver cirrhosis Japanese encephalitis sensorineural hearing loss liver cancer nocardiosis pulmonary edema aplastic anemia speech disorder rickettsiosis nervous system disease contact dermatitis miscarriage Brazilian hemorrhagic fever fasciolopsiasis trench fever Clostridium difficile colitis smallpox bronchial disease influenza anosmia Cholera sequelae Japanese spotted fever wound botulism diphtheria aneruptive fever infant botulism Black piedra fascioliasis African tick-bite fever sleeping sickness myelitis reproductive system disease disseminated intravascular coagulation skin cancer Flinders Island spotted fever mental disorder methemoglobinemia tooth erosion Colorado tick fever human granulocytic anaplasmosis klebsiellosis glanders proteinuria lymphoma diabetic retinopathy Hyperglycerolemia Huntington's disease Parkinsonian syndrome allergic contact dermatitis gastroenteritis eye injury Legionnaires' disease movement disease obstructive sleep apnea cataract seizure genetic disease cranial nerve palsy parasitic protozoa infectious disease proctitis Lyme disease bejel dental fluorosis parvovirus infectious disease trachoma Venezuelan equine encephalitis toxic pneumonitis anemia malaria tetanus glaucoma theileriasis heart disease actinomycosis Powassan encephalitis infectious disease bacterial vaginosis mumps Acute tubular necrosis leukopenia myopathy human monocytic ehrlichiosis sennetsu fever chromosomal disease cytomegalia brain edema toxic shock syndrome optic nerve disease Brucella melitensis brucellosis hepatitis E Entomophthoramycosis bacterial infectious disease Astrakhan spotted fever Marburg hemorrhagic fever typhus dengue fever musculoskeletal system disease polyneuropathy Rocio virus encephalitis hepatitis B kidney disease Zika fever paratyphoid fever amnestic disorder urinary bladder cancer osteosclerosis lung cancer cystic fibrosis Epstein–Barr virus infection dacryocystocele demodicosis bronchitis respiratory failure rickettsialpox hordeolum bacillary angiomatosis pasteurellosis Treponematosis borna disease Haverhill fever myocardial infarction granuloma inguinale pulmonary emphysema basal cell carcinoma respiratory syncytial virus infectious disease lactose intolerance bone fracture tularemia hypoxia food allergy shigellosis cat-scratch disease lymphocytic choriomeningitis peripheral artery disease epidemic typhus microcephaly syphilis constipation baritosis nephropathia epidemica Pneumococcal infection lewisite shock pain agnosia toxic encephalopathy Coagulopathy Carrion's disease Cutaneous diphtheria infection Thyroid nodule chancroid fruit allergy Rocky Mountain spotted fever Brucella suis brucellosis acute kidney failure boutonneuse fever Indian tick typhus diphtheritic peritonitis Israeli tick typhus intestinal botulism primary amebic meningoencephalitis Far Eastern spotted fever milk allergy tuberculosis rhinosporidiosis gonorrhea severe acute respiratory syndrome pertussis pulmonary fibrosis excessive tearing allergic rhinitis common cold Queensland tick typhus Omsk hemorrhagic fever inclusion conjunctivitis hypokalemia thrombocytopenia contagious pustular dermatitis St. Louis encephalitis optic atrophy acquired immunodeficiency syndrome Pseudorabies chlamydia cowpox pneumoconiosis kidney failure pneumonia epiglottitis Kyasanur forest disease yaws leukemia drowning Siberian tick typhus leprosy hypoglycemia chronic respiratory disease West Nile fever louse-borne relapsing fever tick-borne relapsing fever Fusobacterium infectious disease obstructive lung disease Brucella canis brucellosis brain disease Rift Valley fever yellow fever O'nyong'nyong fever encephalitis plague hyperostosis Lobomycosis myositis anthrax disease dientamoebiasis thrombophilia white piedra Canine parvovirus
asthma smallpox myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action find_reverse_tuple_counts
relation cause of
type health problem
type product
action count
action filter_multi_types
action find_reverse
entity egg allergy
relation cause of
type nutrient
type product
[[{'concept': 'nutrient'}, {'concept': 'product'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?l WHERE { { ?t property:cause_of ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:nutrient } UNION { ?t property:cause_of ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:product } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:nutrient ) ( ontology:product ) } } . ?e property:cause_of resource:egg_allergy } } . FILTER ( ?i < ?y ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P780
Q2057971 Q12136 Q2057971
USER
How many health problems are symptoms of greater number of diseases or health problems than that health problem ?
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?a property:P780 ?y . VALUES ( ?a ) { ( ?z ) ( ?y ) } } . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q2057971 }
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?a property:symptoms ?y . VALUES ( ?a ) { ( ?z ) ( ?y ) } } . ?z rdf:type ontology:disease . ?y rdf:type ontology:health_problem }
[]
health problem disease health problem
Comparative|Count over More/Less|Mult. entity type|Clarification
Q12214
SYSTEM
Did you mean smallpox ?
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?a property:P780 ?y . VALUES ( ?a ) { ( ?z ) ( ?y ) } } . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q2057971 }
Did you mean smallpox ?
smallpox
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?a property:symptoms ?y . VALUES ( ?a ) { ( ?z ) ( ?y ) } } . ?z rdf:type ontology:disease . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant asthma. Could you tell me the answer for that?
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
Q35869
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
[]
SYSTEM
78
Q334655 Q1076421 Q5572555 Q6279182 Q10874 Q166019 Q854573 Q1435822 Q1123139 Q1114480 Q16775468 Q156103 Q17142318 Q2088392 Q2074059 Q40878 Q1340669 Q21513416 Q2988775 Q938107 Q838139 Q219223 Q207855 Q1384176 Q852376 Q12167 Q378183 Q13452408 Q18553790 Q127724 Q3108583 Q5375429 Q794026 Q4597494 Q189956 Q5445 Q4676384 Q939364 Q229256 Q1097957 Q896643 Q18557427 Q5289085 Q2610084 Q1054718 Q2339038 Q361648 Q2836 Q189470 Q671776 Q1356194 Q369148 Q7562539 Q16831900 Q83030 Q2844600 Q339221 Q751641 Q9376235 Q1334541 Q16874615 Q178436 Q15401621 Q576349 Q322370 Q1499629 Q496812 Q595010 Q41861 Q1641062 Q18966290 Q79928 Q4118166 Q1269320 Q224513 Q2046811 Q557552 Q81867
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P780 ?y } UNION { ?y property:P780 ?y } } . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q2057971 }
amenorrhea chorea glycerol kinase deficiency epileptic seizure blindness bleeding acute pancreatitis neutropenia Ketosis finger agnosia elephantiasis gastroenteritis pterygium migratory thrombophlebitis Oculomotor apraxia diarrhea nail clubbing hemorrhagic diarrhea heart conduction disease hypogonadism ventricular septal defect lactose intolerance amblyopia exostosis seizure malnutrition Craniosynostosis neuropathy dry eye syndrome cataract anterior segment mesenchymal dysgenesis Enchondromatosis Azoospermia intestinal atresia aphthous stomatitis anemia Acroosteolysis congenital heart disease dermatitis intermittent claudication brachydactyly pancreatic cholera dolichostenomelia sideroblastic anemia kidney disease Neurogenic bladder Double outlet right ventricle aphasia Fistula mutism Ectopia cordis neurilemmoma facial paralysis intracranial hypotension dementia muscular atrophy Gynecomastia recurrent hypersomnia endolymphatic hydrops pleural effusion Supravalvar aortic stenosis constipation Trousseau sign of malignancy brain disease ablepharon hydrarthrosis leukopenia hypertrichosis hypertension hyperphosphatemia delayed separation of umbilical cord acne Polyostotic fibrous dysplasia Dysplastic nevus Precocious puberty simultanagnosia ankyloglossia albino
78
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:symptoms ?y } UNION { ?y property:symptoms ?y } } . ?z rdf:type ontology:disease . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q18928346
P828
Q2057971 Q12136
USER
Which diseases are the result of having approximately the same number of health problems as Jamestown Canyon encephalitis ?
(c(Q12136),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q18928346
relation P828
type Q12136
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?c ) WHERE { ?q property:P828 ?e . ?q rdf:type ontology:Q12136 . ?e rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q18928346 property:P828 ?i . ?i rdf:type ontology:Q12136 } } }
Jamestown Canyon encephalitis
action approx
action find_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity Jamestown Canyon encephalitis
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?c ) WHERE { ?q property:has_cause ?e . ?q rdf:type ontology:disease . ?e rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Jamestown_Canyon_encephalitis property:has_cause ?i . ?i rdf:type ontology:disease } } }
[]
health problem disease
Q110315 Q18975220 Q125367
SYSTEM
lead poisoning, Escherichia coli infectious disease, carbon monoxide poisoning
Q22236199 Q18928556 Q23900716 Q19850514 Q18928417 Q18928416 Q18928558 Q2572879 Q18975849 Q164818 Q2072680 Q7193348 Q18975495 Q3073143 Q272002 Q18966558 Q125367 Q18966502 Q18967083 Q922971 Q18928402 Q26989045 Q18967319 Q18928525 Q18966466 Q18966421 Q26805194 Q18922523 Q1818335 Q3498706 Q18924573 Q1275863 Q18928436 Q2270671 Q5593571 Q18928532 Q18966395 Q11862744 Q18975828 Q1824410 Q706825 Q5986402 Q18924544 Q18966405 Q1001920 Q1736897 Q18928624 Q23772742 Q6895745 Q18928587 Q2632404 Q6500058 Q3410750 Q19000697 Q5861610 Q5458307 Q137597 Q2394735 Q2932525 Q19000393 Q19000458 Q19000493 Q18967413 Q7933588 Q18928599 Q7430242 Q15964334 Q2006636 Q4835994 Q110315 Q3319277 Q94796 Q2031871 Q4059313 Q7421081 Q18975874 Q18967211 Q19000403 Q19000401 Q17123258 Q2389289 Q205972 Q10591185 Q7258523 Q18932779 Q18928560 Q18928346 Q16654806 Q157008 Q5348632 Q2936210 Q1033316 Q1455531 Q574005 Q7074450 Q3961638 Q3232749 Q882181 Q18968009 Q2859732 Q18928351 Q9352582 Q1807401 Q22350879 Q18975220 Q277254 Q444662 Q18928370 Q19000581
(c(Q12136),P828,c(Q2057971))
action approx
action find_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q18928346
relation P828
type Q12136
[ANSWERS] are the result of having approximately the same number of health problems as Jamestown Canyon encephalitis
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?c ) WHERE { ?q property:P828 ?e . ?q rdf:type ontology:Q12136 . ?e rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q18928346 property:P828 ?i . ?i rdf:type ontology:Q12136 } } }
Alcohol-induced respiratory reactions Capnocytophaga canimorsus infectious disease occupational cardiovascular disease Olive Quick Decline Syndrome pulmonary capillariasis hepatic capillariasis Chryseobacterium indologenes infectious disease Paracetamol toxicity bovine anaplasmosis Q fever Nematode infection Pigeon pox Oxyurida infectious disease Mayaro virus disease food poisoning echovirus infectious disease carbon monoxide poisoning Spirurida infectious disease Wuchereria bancrofti filariasis Acanthamoeba keratitis Hepeviridae infectious disease neurotoxic disorder infectious myositis Burkholderia cepacia infectious disease Fissure of nipple associated with childbirth coxsackievirus infectious disease Sclerosing encapsulating peritonitis Streptomyces somaliensis infectious disease nosemosis Steppage gait hepatic Torque teno virus infectious disease seafood allergy Brugia timori filariasis Intestinal capillariasis Gram-negative folliculitis Gardnerella vaginalis vaginosis menopausal and postmenopausal disorder Tachycardia-induced cardiomyopathy visna cat flu foulbrood Ichthyoallyeinotoxism Mansonella streptocerca infectious disease Haemophilus influenzae infectious disease Hallucinogen persisting perception disorder (hppd) allergy to cats primary streptococcal infectious disease Bacteroides Infections Mold health issues Bacteroides fragilis peritonitis African swine fever laurel wilt Pulicosis simian acquired immunodeficiency syndrome Bwamba Fever Flea-borne spotted fever Ankylostomiasis anaplasmosis lancet liver fluke infection feline acquired immunodeficiency syndrome equine infectious anemia bovine ephemeral fever RNA virus infectious disease Trichodysplasia spinulosa Bordetella pertussis whooping cough scarabiasis paratyphoid  A waterborne disease BMPR2 lead poisoning Snow mold Marchiafava-Bignami disease Vibration white finger Acanthocheilonemiasis Sappinia amoebic encephalitis Henipavirus infectious disease Enoplea infectious disease Enterovirus infectious disease border disease fox mange occupational injury drunkenness Mycoplasma pneumonia Puerperal disorder Chlamydophila pneumoniae infectious disease Myroides odoratus necrotizing fasciitis Jamestown Canyon encephalitis Middle East respiratory syndrome Rinderpest Ehrlichiosis ewingii infection occupational cancer Ehrlichiosis endemic goiter Contagious bovine pleuropneumonia oat sensitivity nicotine withdrawal garlic allergy corn grey leaf spot Vibrio infectious disease arbovirosis inkoo encephalitis Fiddler's neck sodoku Spondweni fever Escherichia coli infectious disease Adams–Stokes syndrome Dipylidium caninum infectious disease Nipah virus encephalitis classical swine fever
Lead poisoning, Escherichia coli infectious disease and carbon monoxide poisoning are the result of having approximately the same number of health problems as Jamestown Canyon encephalitis
lead poisoning Escherichia coli infectious disease carbon monoxide poisoning
action approx
action find_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity Jamestown Canyon encephalitis
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?c ) WHERE { ?q property:has_cause ?e . ?q rdf:type ontology:disease . ?e rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Jamestown_Canyon_encephalitis property:has_cause ?i . ?i rdf:type ontology:disease } } }
[]