Simple Question (Direct)
Simple Question
Q57910
P509
Q2057971
USER
What was the cause of death of Arthur Zimmermann ?
(Q57910,P509,c(Q2057971))
action filter_type
action find
entity Q57910
relation P509
type Q2057971
['Q57910', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { resource:Q57910 property:P509 ?e . ?e rdf:type ontology:Q2057971 }
Arthur Zimmermann
action filter_type
action find
entity Arthur Zimmermann
relation cause of death
type health problem
['Arthur Zimmermann', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { resource:Arthur_Zimmermann property:cause_of_death ?e . ?e rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q57910,P509,c(Q2057971))
action filter_type
action find
entity Q57910
relation P509
type Q2057971
The cause of death of Arthur Zimmermann was born [ANSWER]
['Q57910', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { resource:Q57910 property:P509 ?e . ?e rdf:type ontology:Q2057971 }
pneumonia
The cause of death of Arthur Zimmermann was born pneumonia
pneumonia
action filter_type
action find
entity Arthur Zimmermann
relation cause of death
type health problem
['Arthur Zimmermann', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { resource:Arthur_Zimmermann property:cause_of_death ?e . ?e rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57910
P1196
Q1931388
USER
What situation did Arthur Zimmermann die in ?
(Q57910,P1196,c(Q1931388))
action filter_type
action find
entity Q57910
relation P1196
type Q1931388
['Q57910', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q57910 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
Arthur Zimmermann
action filter_type
action find
entity Arthur Zimmermann
relation manner of death
type cause of death
['Arthur Zimmermann', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Arthur_Zimmermann property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q57910,P1196,c(Q1931388))
action filter_type
action find
entity Q57910
relation P1196
type Q1931388
Arthur Zimmermann died in [ANSWER]
['Q57910', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q57910 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
natural causes
Arthur Zimmermann died in natural causes
natural causes
action filter_type
action find
entity Arthur Zimmermann
relation manner of death
type cause of death
['Arthur Zimmermann', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Arthur_Zimmermann property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q147778
P1542
Q2057971 Q2057971 Q181394
USER
How many health problems do lesser number of health problems and nutrients result in than liver cirrhosis ?
(c(Q2057971)|c(Q181394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action count
action filter_multi_types
action find_reverse
entity Q147778
relation P1542
type Q2057971
type Q181394
[[{'concept': 'Q2057971'}, {'concept': 'Q181394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?e ) WHERE { { ?h property:P1542 ?r . ?r rdf:type ontology:Q2057971 . ?h rdf:type ontology:Q2057971 } UNION { ?h property:P1542 ?r . ?r rdf:type ontology:Q2057971 . ?h rdf:type ontology:Q181394 } } GROUP BY ?r } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P1542 resource:Q147778 . { VALUES ( ?k ) { ( ontology:Q2057971 ) ( ontology:Q181394 ) } . ?v rdf:type ?k } } } }
liver cirrhosis
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type health problem
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action count
action filter_multi_types
action find_reverse
entity liver cirrhosis
relation cause of
type health problem
type nutrient
[[{'concept': 'health problem'}, {'concept': 'nutrient'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?e ) WHERE { { ?h property:cause_of ?r . ?r rdf:type ontology:health_problem . ?h rdf:type ontology:health_problem } UNION { ?h property:cause_of ?r . ?r rdf:type ontology:health_problem . ?h rdf:type ontology:nutrient } } GROUP BY ?r } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:cause_of resource:liver_cirrhosis . { VALUES ( ?k ) { ( ontology:health_problem ) ( ontology:nutrient ) } . ?v rdf:type ?k } } } }
[]
health problem health problem nutrient
SYSTEM
239
Q2603200 Q949694 Q83319 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 Q614279 Q694552 Q1928978 Q835061 Q2700304 Q2845432 Q963944 Q18324719 Q160653 Q4413030 Q443929 Q2300099 Q3084532 Q738292 Q1856914 Q857667 Q846316 Q1282114 Q646664 Q3339235 Q783903 Q28693 Q4958833 Q2140729 Q393477 Q574905 Q12214 Q279330 Q2840 Q468433 Q12090 Q6159042 Q18553251 Q134649 Q18553273 Q18553252 Q2059411 Q719656 Q4690047 Q203133 Q7314317 Q823027 Q192102 Q5459411 Q12135 Q748442 Q18555101 Q319315 Q992139 Q3197774 Q327005 Q570197 Q208414 Q190564 Q576179 Q1531991 Q16242752 Q156103 Q2681162 Q154882 Q2608695 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 Q178194 Q5384031 Q1030785 Q173022 Q767485 Q1048101 Q202173 Q812671 Q2589418 Q1243869 Q9430213 Q3798547 Q1416773 Q188605 Q18975031 Q18554367 Q68833 Q153861 Q105688 Q769815 Q327298 Q639776 Q1878776 Q378681 Q1290616 Q431643 Q41083 Q178436 Q2906693 Q931323 Q4366062 Q21504985 Q2868696 Q18975539 Q890200 Q1750104 Q5196693 Q31798 Q5506384 Q744387 Q18554000 Q18555271 Q895297 Q18553191 Q18554485 Q18553197 Q18553216 Q922927 Q18553198 Q970203 Q12204 Q4845643 Q101896 Q103177 Q134859 Q32446 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 Q133780 Q1632552 Q6663796 Q1433212 Q129104 Q5274956 Q3902759 Q1553609
(c(Q2057971)|c(Q181394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q181394
action count
action filter_multi_types
action find_reverse
entity Q147778
relation P1542
type Q2057971
type Q181394
[ANSWER]
[[{'concept': 'Q2057971'}, {'concept': 'Q181394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?e ) WHERE { { ?h property:P1542 ?r . ?r rdf:type ontology:Q2057971 . ?h rdf:type ontology:Q2057971 } UNION { ?h property:P1542 ?r . ?r rdf:type ontology:Q2057971 . ?h rdf:type ontology:Q181394 } } GROUP BY ?r } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P1542 resource:Q147778 . { VALUES ( ?k ) { ( ontology:Q2057971 ) ( ontology:Q181394 ) } . ?v rdf:type ?k } } } }
viral pneumonia amebiasis typhoid fever 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 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 Japanese encephalitis 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 Japanese spotted fever wound botulism diphtheria aneruptive fever infant botulism Black piedra fascioliasis African tick-bite fever sleeping sickness 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 Huntington's disease egg allergy Parkinsonian syndrome allergic contact dermatitis gastroenteritis eye injury Legionnaires' disease movement disease 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 cystic fibrosis Epstein–Barr virus infection demodicosis bronchitis respiratory failure rickettsialpox hordeolum bacillary angiomatosis pasteurellosis Treponematosis borna disease Haverhill fever granuloma inguinale pulmonary emphysema basal cell carcinoma respiratory syncytial virus infectious disease 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 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 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 plague hyperostosis Lobomycosis myositis anthrax disease dientamoebiasis white piedra Canine parvovirus
239
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type health problem
action find_reverse_tuple_counts
relation cause of
type health problem
type nutrient
action count
action filter_multi_types
action find_reverse
entity liver cirrhosis
relation cause of
type health problem
type nutrient
[[{'concept': 'health problem'}, {'concept': 'nutrient'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?e ) WHERE { { ?h property:cause_of ?r . ?r rdf:type ontology:health_problem . ?h rdf:type ontology:health_problem } UNION { ?h property:cause_of ?r . ?r rdf:type ontology:health_problem . ?h rdf:type ontology:nutrient } } GROUP BY ?r } . FILTER ( ?e < ?l ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:cause_of resource:liver_cirrhosis . { VALUES ( ?k ) { ( ontology:health_problem ) ( ontology:nutrient ) } . ?v rdf:type ?k } } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q147778
P689
Q25570959
USER
What is afflicted by that health problem ?
action filter_type
action find
entity Q147778
relation P689
type Q25570959
SELECT DISTINCT ?z WHERE { resource:Q147778 property:P689 ?z . ?z rdf:type ontology:Q25570959 }
liver cirrhosis
action filter_type
action find
entity liver cirrhosis
relation afflicts
type animal structure
SELECT DISTINCT ?z WHERE { resource:liver_cirrhosis property:afflicts ?z . ?z rdf:type ontology:animal_structure }
[]
animal structure
Q9368
SYSTEM
liver
Q9368
action filter_type
action find
entity Q147778
relation P689
type Q25570959
The [ANSWER] is afflicted by that health problem
SELECT DISTINCT ?z WHERE { resource:Q147778 property:P689 ?z . ?z rdf:type ontology:Q25570959 }
liver
The liver is afflicted by that health problem
liver
action filter_type
action find
entity liver cirrhosis
relation afflicts
type animal structure
SELECT DISTINCT ?z WHERE { resource:liver_cirrhosis property:afflicts ?z . ?z rdf:type ontology:animal_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9368
P180
Q838948
USER
Which work of art expresses that animal structure ?
(c(Q838948),P180,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q9368']
SELECT DISTINCT ?s WHERE { ?s property:P180 resource:Q9368 . ?s rdf:type ontology:Q838948 }
liver
action filter_type
action find_reverse
entity liver
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'liver']
SELECT DISTINCT ?s WHERE { ?s property:depicts resource:liver . ?s rdf:type ontology:work_of_art }
[]
work of art
Q776429
SYSTEM
Liver of Piacenza
Q776429
(c(Q838948),P180,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P180
type Q838948
[ANSWER] expresses that animal structure
[{'concept': 'Q838948'}, 'P180', 'Q9368']
SELECT DISTINCT ?s WHERE { ?s property:P180 resource:Q9368 . ?s rdf:type ontology:Q838948 }
Liver of Piacenza
Liver of Piacenza expresses that animal structure
Liver of Piacenza
action filter_type
action find_reverse
entity liver
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'liver']
SELECT DISTINCT ?s WHERE { ?s property:depicts resource:liver . ?s rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9368
P361
Q107
USER
Which space is a component of liver ?
(c(Q107),P361,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P361
type Q107
[{'concept': 'Q107'}, 'P361', 'Q9368']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q9368 . ?m rdf:type ontology:Q107 }
liver
action filter_type
action find_reverse
entity liver
relation part of
type space
[{'concept': 'space'}, 'part of', 'liver']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:liver . ?m rdf:type ontology:space }
[]
space
Q1229284
SYSTEM
Perisinusoidal space
Q1229284
(c(Q107),P361,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P361
type Q107
[ANSWER] is a component of liver
[{'concept': 'Q107'}, 'P361', 'Q9368']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q9368 . ?m rdf:type ontology:Q107 }
Perisinusoidal space
Perisinusoidal space is a component of liver
Perisinusoidal space
action filter_type
action find_reverse
entity liver
relation part of
type space
[{'concept': 'space'}, 'part of', 'liver']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:liver . ?m rdf:type ontology:space }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9368
P176
Q181394
USER
What was produced by liver ?
(c(Q181394),P176,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P176
type Q181394
[{'concept': 'Q181394'}, 'P176', 'Q9368']
SELECT DISTINCT ?p WHERE { ?p property:P176 resource:Q9368 . ?p rdf:type ontology:Q181394 }
liver
action filter_type
action find_reverse
entity liver
relation manufacturer
type nutrient
[{'concept': 'nutrient'}, 'manufacturer', 'liver']
SELECT DISTINCT ?p WHERE { ?p property:manufacturer resource:liver . ?p rdf:type ontology:nutrient }
[]
nutrient
Q419983
SYSTEM
Hepcidin
Q419983
(c(Q181394),P176,Q9368)
action filter_type
action find_reverse
entity Q9368
relation P176
type Q181394
[ANSWER] was produced by liver
[{'concept': 'Q181394'}, 'P176', 'Q9368']
SELECT DISTINCT ?p WHERE { ?p property:P176 resource:Q9368 . ?p rdf:type ontology:Q181394 }
Hepcidin
Hepcidin was produced by liver
Hepcidin
action filter_type
action find_reverse
entity liver
relation manufacturer
type nutrient
[{'concept': 'nutrient'}, 'manufacturer', 'liver']
SELECT DISTINCT ?p WHERE { ?p property:manufacturer resource:liver . ?p rdf:type ontology:nutrient }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9368
P3189
Q9620
USER
Whose responsibility is the innervation of that animal structure ?
(Q419983,P3189,c(Q9620))
action filter_type
action find
entity Q9368
relation P3189
type Q9620
['Q419983', 'P3189', {'concept': 'Q9620'}]
SELECT DISTINCT ?o WHERE { resource:Q9368 property:P3189 ?o . ?o rdf:type ontology:Q9620 }
liver
action filter_type
action find
entity liver
relation innervated by
type nerve
['Hepcidin', 'innervated by', {'concept': 'nerve'}]
SELECT DISTINCT ?o WHERE { resource:liver property:innervated_by ?o . ?o rdf:type ontology:nerve }
[]
nerve
Q190140
SYSTEM
Vagus nerve
Q190140
(Q419983,P3189,c(Q9620))
action filter_type
action find
entity Q9368
relation P3189
type Q9620
[ANSWER] is the innervation of that animal structure
['Q419983', 'P3189', {'concept': 'Q9620'}]
SELECT DISTINCT ?o WHERE { resource:Q9368 property:P3189 ?o . ?o rdf:type ontology:Q9620 }
Vagus nerve
Vagus nerve is the innervation of that animal structure
Vagus nerve
action filter_type
action find
entity liver
relation innervated by
type nerve
['Hepcidin', 'innervated by', {'concept': 'nerve'}]
SELECT DISTINCT ?o WHERE { resource:liver property:innervated_by ?o . ?o rdf:type ontology:nerve }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12192
P1995
Q1047113
USER
Which special fields are the medical specialities of pneumonia ?
(Q12192,P1995,c(Q1047113))
action filter_type
action find
entity Q12192
relation P1995
type Q1047113
['Q12192', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1047113 . resource:Q12192 property:P1995 ?f }
pneumonia
action filter_type
action find
entity pneumonia
relation medical specialty
type special field
['pneumonia', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:special_field . resource:pneumonia property:medical_specialty ?f }
[]
special field
Q203337 Q788926
SYSTEM
pulmonology, Infectious disease
Q203337 Q788926
(Q12192,P1995,c(Q1047113))
action filter_type
action find
entity Q12192
relation P1995
type Q1047113
Ia [ANSWERS] are the medical specialities of pneumonia
['Q12192', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1047113 . resource:Q12192 property:P1995 ?f }
pulmonology Infectious disease
Ia pulmonology and Infectious disease are the medical specialities of pneumonia
pulmonology Infectious disease
action filter_type
action find
entity pneumonia
relation medical specialty
type special field
['pneumonia', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:special_field . resource:pneumonia property:medical_specialty ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12192
P1050
Q502895
USER
Who have the disease that health problem ?
(c(Q502895),P1050,Q203337) (c(Q502895),P1050,Q788926)
action filter_type
action find_reverse
entity Q12192
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q203337'] [{'concept': 'Q502895'}, 'P1050', 'Q788926']
SELECT DISTINCT ?k WHERE { ?k property:P1050 resource:Q12192 . ?k rdf:type ontology:Q502895 }
pneumonia
action filter_type
action find_reverse
entity pneumonia
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'pulmonology'] [{'concept': 'common name'}, 'medical condition', 'Infectious disease']
SELECT DISTINCT ?k WHERE { ?k property:medical_condition resource:pneumonia . ?k rdf:type ontology:common_name }
[]
common name
Q332751 Q9582 Q11613
SYSTEM
Ellen Wilkinson, Gerald Ford, Harry S. Truman
Q332751 Q9582 Q11613
(c(Q502895),P1050,Q203337) (c(Q502895),P1050,Q788926)
action filter_type
action find_reverse
entity Q12192
relation P1050
type Q502895
[ANSWERS] have the disease that health problem
[{'concept': 'Q502895'}, 'P1050', 'Q203337'] [{'concept': 'Q502895'}, 'P1050', 'Q788926']
SELECT DISTINCT ?k WHERE { ?k property:P1050 resource:Q12192 . ?k rdf:type ontology:Q502895 }
Ellen Wilkinson Gerald Ford Harry S. Truman
Ellen Wilkinson, Gerald Ford and Harry S. Truman have the disease that health problem
Ellen Wilkinson Gerald Ford Harry S. Truman
action filter_type
action find_reverse
entity pneumonia
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'pulmonology'] [{'concept': 'common name'}, 'medical condition', 'Infectious disease']
SELECT DISTINCT ?k WHERE { ?k property:medical_condition resource:pneumonia . ?k rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1129422
P1303
Q34379 Q502895
USER
Which musical instruments are played by lesser number of people than morin khuur ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1129422
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P1303 resource:Q1129422 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?t < ?w ) }
morin khuur
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity morin khuur
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:instrument resource:morin_khuur . ?r rdf:type ontology:common_name } } . FILTER ( ?t < ?w ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1129422
relation P1303
type Q502895
[ANSWERS] are played by lesser number of people than morin khuur
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:P1303 resource:Q1129422 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?t < ?w ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by lesser number of people than morin khuur
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity morin khuur
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?t ) WHERE { ?s rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { ?r property:instrument resource:morin_khuur . ?r rdf:type ontology:common_name } } . FILTER ( ?t < ?w ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P180
Q34379 Q838948 Q3305213
USER
Which musical instruments are expressed in approximately the same number of works of art or paintings as that musical instrument ?
(c(Q838948)|c(Q3305213),P180,c(Q34379))
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:P180 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:depicts ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
musical instrument work of art painting
Comparative|More/Less|Mult. entity type|Clarification
Q748455
SYSTEM
Did you mean cajón ?
(c(Q838948)|c(Q3305213),P180,c(Q34379))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:P180 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
Did you mean cajón ?
cajón
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( ?z ) ( ?x ) } . ?r property:depicts ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
Comparative Reasoning (All)
USER
No, I meant wind instrument. Could you tell me the answer for that?
(c(Q838948)|c(Q3305213),P180,c(Q34379))
Q173453
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
[]
Q5994 Q81982 Q218547
SYSTEM
piano, harpsichord, Sigismund Bell
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q11404 Q1798603
(c(Q838948)|c(Q3305213),P180,c(Q34379))
[ANSWERS] are expressed in approximately the same number of works of art or paintings as that musical instrument
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q19925980 }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano Crotales sistrum Handbell Church bell double bass drum string instrument
Piano, harpsichord and Sigismund Bell are expressed in approximately the same number of works of art or paintings as that musical instrument
piano harpsichord Sigismund Bell
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:painting }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q327657 Q203337
P1995
Q2057971
USER
Which health problems have pulmonology or rheumatology as the associated medical proficiency ?
OR((c(Q2057971),P1995,Q203337), (c(Q2057971),P1995,Q327657))
action filter_type
action union
action find_reverse
entity Q203337
relation P1995
action find_reverse
entity Q327657
relation P1995
type Q2057971
{'OR': [[{'concept': 'Q2057971'}, 'P1995', 'Q203337'], [{'concept': 'Q2057971'}, 'P1995', 'Q327657']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1995 resource:Q203337 } UNION { ?g property:P1995 resource:Q327657 } } . ?g rdf:type ontology:Q2057971 }
rheumatology pulmonology
action filter_type
action union
action find_reverse
entity pulmonology
relation medical specialty
action find_reverse
entity rheumatology
relation medical specialty
type health problem
{'OR': [[{'concept': 'health problem'}, 'medical specialty', 'pulmonology'], [{'concept': 'health problem'}, 'medical specialty', 'rheumatology']]}
SELECT DISTINCT ?g WHERE { { { ?g property:medical_specialty resource:pulmonology } UNION { ?g property:medical_specialty resource:rheumatology } } . ?g rdf:type ontology:health_problem }
[]
health problem
Q165328 Q32446 Q35890 Q418418 Q18553609 Q11606722 Q17164695 Q424227 Q265936 Q174857
SYSTEM
Some of them are osteoporosis, pulmonary fibrosis, extrinsic allergic alveolitis, ankylosis, autoimmune disease of musculoskeletal system, pseudosarcomatous fibromatosis, Lumbar spinal stenosis, bronchiolitis, Kawasaki disease, scoliosis
Q1034736 Q187255 Q1396859 Q4841462 Q2085267 Q2059275 Q644318 Q175180 Q7243138 Q1412657 Q1592913 Q173022 Q2290446 Q836356 Q35869 Q17164695 Q1485 Q1347065 Q6057394 Q684840 Q5340515 Q35890 Q2213687 Q3801522 Q2457358 Q538432 Q911427 Q62736 Q1848471 Q7920253 Q2035074 Q2039267 Q3495854 Q763356 Q645363 Q1632552 Q2840 Q52844 Q52848 Q52849 Q1187697 Q677449 Q2012642 Q1947272 Q615363 Q2529980 Q187656 Q3197774 Q1581845 Q1923955 Q170990 Q1063085 Q1505689 Q478389 Q154882 Q52851 Q574329 Q52854 Q11039483 Q1752891 Q432462 Q826759 Q1345792 Q8084905 Q1436558 Q32552 Q1153419 Q708176 Q1690779 Q199804 Q745162 Q624398 Q4090775 Q6533263 Q2603200 Q1132056 Q32778 Q511097 Q692536 Q684810 Q7631130 Q1018652 Q6318950 Q32540 Q1424509 Q938983 Q18604563 Q11773731 Q3508806 Q3776920 Q1870975 Q1480377 Q767485 Q1154055 Q578257 Q499574 Q5191403 Q860395 Q32446 Q3980374 Q424227 Q1641042 Q7577457 Q1456403 Q861224 Q980926 Q11606722 Q200781 Q555868 Q344873 Q1334541 Q2979344 Q1755457 Q4950468 Q804332 Q1404470 Q1426491 Q418418 Q174857 Q165328 Q7144437 Q1076086 Q1877550 Q36855 Q133087 Q18553609 Q1194557 Q742762 Q1161568 Q910455 Q3144913 Q5175170 Q653318 Q924421 Q517202 Q7259546 Q193894 Q540571 Q335555 Q265936 Q734512 Q1522871 Q32811 Q1425208 Q651223 Q127556 Q1327700 Q559082 Q12192 Q1622407 Q1660341 Q780629 Q2312030 Q707816 Q448698 Q2544887 Q4941552 Q1413860 Q4116448 Q946278 Q1642040 Q664174 Q3768153 Q1641153 Q1066265 Q1433212 Q15646785 Q684924 Q1532790 Q681160 Q1410831
OR((c(Q2057971),P1995,Q203337), (c(Q2057971),P1995,Q327657))
action filter_type
action union
action find_reverse
entity Q203337
relation P1995
action find_reverse
entity Q327657
relation P1995
type Q2057971
[ANSWERS] have pulmonology or rheumatology as the associated medical proficiency
{'OR': [[{'concept': 'Q2057971'}, 'P1995', 'Q203337'], [{'concept': 'Q2057971'}, 'P1995', 'Q327657']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1995 resource:Q203337 } UNION { ?g property:P1995 resource:Q327657 } } . ?g rdf:type ontology:Q2057971 }
Caplan's syndrome rheumatoid arthritis Farmer's lung Bagassosis pharyngitis pulmonary coin lesion vasculitis radiculopathy Primary hypertrophic osteoathropathy Petechia Cogan syndrome bronchitis idiopathic pulmonary fibrosis croup asthma Lumbar spinal stenosis systemic lupus erythematosus epiglottitis Intervertebral disc disorder Sneddon's syndrome systemic scleroderma extrinsic allergic alveolitis sacroiliitis Caffey disease epicondylitis synovitis Behcet's disease osteoarthritis/osteodystrophy Inclusion body myositis Ventilator-associated pneumonia Paget's disease of bone Aspirin-induced asthma palindromic rheumatism CREST syndrome bursitis hyperostosis influenza enthesopathy spondyloarthropathy ankylosing spondylitis adult-onset Still's disease aspiration pneumonia cryptogenic organizing pneumonia Baastrup's syndrome Torticollis bird fancier's lung relapsing polychondritis klebsiellosis mediastinitis pyomyositis arthritis neuropathic arthropathy tenosynovitis kyphosis Legionnaires' disease plantar fasciitis anthracosis Adhesive capsulitis of shoulder IgG4-related disease polymyalgia rheumatica Takayasu's arteritis status asthmaticus Goodpasture syndrome autoimmune neuromuscular disease adenoid hypertrophy Loeffler syndrome interstitial lung disease arthropathy primary ciliary dyskinesia chronic obstructive pulmonary disease polyarteritis nodosa Blount's disease Kummell's disease lethal midline granuloma viral pneumonia myofascial pain syndrome bronchiectasis psoriatic arthritis myopathy berylliosis cork-handlers' disease byssinosis Juvenile dermatomyositis eosinophilic pneumonia plantar fascial fibromatosis osteomyelitis Upshaw Schulman Syndrome degenerative disc disease eosinophilia-myalgia syndrome bacterial pneumonia fasciitis periostitis respiratory failure osteochondrosis Kohler's disease tendinitis crystal arthropathy osteomalacia pulmonary fibrosis pneumoconiosis due to talc bronchiolitis hypermobility syndrome spinal disease Legg–Calvé–Perthes syndrome juvenile idiopathic arthritis Polymyositis pseudosarcomatous fibromatosis pleural empyema Olecranon bursitis adult respiratory distress syndrome pleural effusion aspiration pneumonitis patellar tendinitis Boutonniere deformity Baker's cyst Felty's syndrome thrombotic thrombocytopenic purpura ankylosis scoliosis osteoporosis Patellofemoral pain syndrome chondromalacia patellae lung abscess swine influenza gout autoimmune disease of musculoskeletal system laryngitis diffuse idiopathic skeletal hyperostosis Granulomatosis with polyangiits tracheomalacia hemangiopericytoma Tietze's syndrome silicosis septic arthritis De Quervain disease Pulmonary toxicity sarcoidosis fibromyalgia Sjögren's syndrome Kawasaki disease bronchopneumonia Calcific tendinitis Churg-Strauss syndrome Hallux rigidus pneumoconiosis osteochondritis dissecans reactive arthritis chondrocalcinosis pneumonia mixed connective tissue disease impingement syndrome Panniculitis discitis temporal arteritis Pulmonary alveolar proteinosis atrophic rhinitis bone disease siderosis tracheal stenosis tracheitis hemarthrosis asbestosis pigmented villonodular synovitis secondary hypertrophic osteoarthropathy Osgood-Schlatter's disease myositis Calcaneal spur rheumatism Scheuermann's disease dermatomyositis fibrodysplasia ossificans progressiva
Osteoporosis, pulmonary fibrosis, extrinsic allergic alveolitis, ankylosis, autoimmune disease of musculoskeletal system, pseudosarcomatous fibromatosis, Lumbar spinal stenosis, bronchiolitis, Kawasaki disease and scoliosis have pulmonology or rheumatology as the associated medical proficiency
osteoporosis pulmonary fibrosis extrinsic allergic alveolitis ankylosis autoimmune disease of musculoskeletal system pseudosarcomatous fibromatosis Lumbar spinal stenosis bronchiolitis Kawasaki disease scoliosis
action filter_type
action union
action find_reverse
entity pulmonology
relation medical specialty
action find_reverse
entity rheumatology
relation medical specialty
type health problem
{'OR': [[{'concept': 'health problem'}, 'medical specialty', 'pulmonology'], [{'concept': 'health problem'}, 'medical specialty', 'rheumatology']]}
SELECT DISTINCT ?g WHERE { { { ?g property:medical_specialty resource:pulmonology } UNION { ?g property:medical_specialty resource:rheumatology } } . ?g rdf:type ontology:health_problem }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P828
Q7189713 Q2996394 Q2057971
USER
Which health problems do max number of physiological conditions or biological processes lead to ?
(c(Q2057971),P828,c(Q7189713)|c(Q2996394))
action argmax
action union
action find_tuple_counts
relation P828
type Q2057971
type Q7189713
action find_tuple_counts
relation P828
type Q2057971
type Q2996394
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q7189713'}, {'concept': 'Q2996394'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?f ) WHERE { { ?n property:P828 ?t . ?t rdf:type ontology:Q7189713 . ?n rdf:type ontology:Q2057971 } UNION { ?n rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q2996394 . ?n property:P828 ?t } } GROUP BY ?n } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?c ) WHERE { { ?o property:P828 ?e . ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2996394 } UNION { ?o property:P828 ?e . ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q7189713 } } GROUP BY ?o } . FILTER ( ?c = ?w ) }
action argmax
action union
action find_tuple_counts
relation has cause
type health problem
type physiological condition
action find_tuple_counts
relation has cause
type health problem
type biological process
[{'concept': 'health problem'}, 'has cause', [{'concept': 'physiological condition'}, {'concept': 'biological process'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?f ) WHERE { { ?n property:has_cause ?t . ?t rdf:type ontology:physiological_condition . ?n rdf:type ontology:health_problem } UNION { ?n rdf:type ontology:health_problem . ?t rdf:type ontology:biological_process . ?n property:has_cause ?t } } GROUP BY ?n } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?c ) WHERE { { ?o property:has_cause ?e . ?o rdf:type ontology:health_problem . ?e rdf:type ontology:biological_process } UNION { ?o property:has_cause ?e . ?o rdf:type ontology:health_problem . ?e rdf:type ontology:physiological_condition } } GROUP BY ?o } . FILTER ( ?c = ?w ) }
[]
physiological condition biological process health problem
Q190564 Q68833 Q1097957
SYSTEM
Huntington's disease, bone fracture, intermittent claudication
Q190564 Q1097957 Q21082526 Q200779 Q16918398 Q18553742 Q506616 Q68833
(c(Q2057971),P828,c(Q7189713)|c(Q2996394))
action argmax
action union
action find_tuple_counts
relation P828
type Q2057971
type Q7189713
action find_tuple_counts
relation P828
type Q2057971
type Q2996394
[ANSWERS] max number of physiological conditions or biological processes lead to
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q7189713'}, {'concept': 'Q2996394'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?f ) WHERE { { ?n property:P828 ?t . ?t rdf:type ontology:Q7189713 . ?n rdf:type ontology:Q2057971 } UNION { ?n rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q2996394 . ?n property:P828 ?t } } GROUP BY ?n } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?c ) WHERE { { ?o property:P828 ?e . ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2996394 } UNION { ?o property:P828 ?e . ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q7189713 } } GROUP BY ?o } . FILTER ( ?c = ?w ) }
Huntington's disease intermittent claudication chromosomal duplication syndrome genetic disease chromosomal deletion syndrome chromosomal disease drowning bone fracture
Huntington's disease, bone fracture and intermittent claudication max number of physiological conditions or biological processes lead to
Huntington's disease bone fracture intermittent claudication
action argmax
action union
action find_tuple_counts
relation has cause
type health problem
type physiological condition
action find_tuple_counts
relation has cause
type health problem
type biological process
[{'concept': 'health problem'}, 'has cause', [{'concept': 'physiological condition'}, {'concept': 'biological process'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?w ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?f ) WHERE { { ?n property:has_cause ?t . ?t rdf:type ontology:physiological_condition . ?n rdf:type ontology:health_problem } UNION { ?n rdf:type ontology:health_problem . ?t rdf:type ontology:biological_process . ?n property:has_cause ?t } } GROUP BY ?n } } . { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?c ) WHERE { { ?o property:has_cause ?e . ?o rdf:type ontology:health_problem . ?e rdf:type ontology:biological_process } UNION { ?o property:has_cause ?e . ?o rdf:type ontology:health_problem . ?e rdf:type ontology:physiological_condition } } GROUP BY ?o } . FILTER ( ?c = ?w ) }
[]