Simple Question (Direct)
Simple Question
Q4730945
P69
Q3914
USER
Which school is the alma mater of Allan Rosenfield ?
(Q4730945,P69,c(Q3914))
action filter_type
action find
entity Q4730945
relation P69
type Q3914
['Q4730945', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?u WHERE { resource:Q4730945 property:P69 ?u . ?u rdf:type ontology:Q3914 }
Allan Rosenfield
action filter_type
action find
entity Allan Rosenfield
relation educated at
type school
['Allan Rosenfield', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?u WHERE { resource:Allan_Rosenfield property:educated_at ?u . ?u rdf:type ontology:school }
[]
school
Q2154182
SYSTEM
Columbia University College of Physicians and Surgeons
Q2154182
(Q4730945,P69,c(Q3914))
action filter_type
action find
entity Q4730945
relation P69
type Q3914
[ANSWER] is the alma mater of Allan Rosenfield
['Q4730945', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?u WHERE { resource:Q4730945 property:P69 ?u . ?u rdf:type ontology:Q3914 }
Columbia University College of Physicians and Surgeons
Columbia University College of Physicians and Surgeons is the alma mater of Allan Rosenfield
Columbia University College of Physicians and Surgeons
action filter_type
action find
entity Allan Rosenfield
relation educated at
type school
['Allan Rosenfield', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?u WHERE { resource:Allan_Rosenfield property:educated_at ?u . ?u rdf:type ontology:school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4730945
P108
Q163740
USER
Which nonprofit organization is the employer of Allan Rosenfield ?
(Q4730945,P108,c(Q163740))
action filter_type
action find
entity Q4730945
relation P108
type Q163740
['Q4730945', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q163740 . resource:Q4730945 property:P108 ?a }
Allan Rosenfield
action filter_type
action find
entity Allan Rosenfield
relation employer
type nonprofit organization
['Allan Rosenfield', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:nonprofit_organization . resource:Allan_Rosenfield property:employer ?a }
[]
nonprofit organization
Q49088
SYSTEM
Columbia University
Q49088
(Q4730945,P108,c(Q163740))
action filter_type
action find
entity Q4730945
relation P108
type Q163740
As [ANSWER] is the employer of Allan Rosenfield
['Q4730945', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q163740 . resource:Q4730945 property:P108 ?a }
Columbia University
As Columbia University is the employer of Allan Rosenfield
Columbia University
action filter_type
action find
entity Allan Rosenfield
relation employer
type nonprofit organization
['Allan Rosenfield', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:nonprofit_organization . resource:Allan_Rosenfield property:employer ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4730945
P509
Q2057971
USER
What lead to the death of that person ?
(Q49088,P509,c(Q2057971))
action filter_type
action find
entity Q4730945
relation P509
type Q2057971
['Q49088', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q4730945 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
Allan Rosenfield
action filter_type
action find
entity Allan Rosenfield
relation cause of death
type health problem
['Columbia University', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Allan_Rosenfield property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q206901
SYSTEM
amyotrophic lateral sclerosis
Q206901
(Q49088,P509,c(Q2057971))
action filter_type
action find
entity Q4730945
relation P509
type Q2057971
[ANSWER] lead to the death of that person
['Q49088', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q4730945 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
amyotrophic lateral sclerosis
Amyotrophic lateral sclerosis lead to the death of that person
amyotrophic lateral sclerosis
action filter_type
action find
entity Allan Rosenfield
relation cause of death
type health problem
['Columbia University', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Allan_Rosenfield property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q49088
P159
Q56061
USER
How many administrative territories are the head office for Columbia University located ?
(Q49088,P159,c(Q56061))
action count
action filter_type
action find
entity Q49088
relation P159
type Q56061
['Q49088', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q49088 property:P159 ?w }
Columbia University
action count
action filter_type
action find
entity Columbia University
relation headquarters location
type administrative territorial entity
['Columbia University', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Columbia_University property:headquarters_location ?w }
[]
administrative territorial entity
SYSTEM
1
Q60
(Q49088,P159,c(Q56061))
action count
action filter_type
action find
entity Q49088
relation P159
type Q56061
[ANSWER]
['Q49088', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w rdf:type ontology:Q56061 . resource:Q49088 property:P159 ?w }
New York City
1
action count
action filter_type
action find
entity Columbia University
relation headquarters location
type administrative territorial entity
['Columbia University', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Columbia_University property:headquarters_location ?w }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q81134
Q56061
USER
And how about Excalibur Almaz?
(Q81134,P159,c(Q56061))
action count
action filter_type
action find
entity Q81134
relation P159
type Q56061
['Q81134', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q81134 property:P159 ?t . ?t rdf:type ontology:Q56061 }
Excalibur Almaz
action count
action filter_type
action find
entity Excalibur Almaz
relation headquarters location
type administrative territorial entity
['Excalibur Almaz', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Excalibur_Almaz property:headquarters_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q81134,P159,c(Q56061))
action count
action filter_type
action find
entity Q81134
relation P159
type Q56061
[ANSWER]
['Q81134', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q81134 property:P159 ?t . ?t rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Excalibur Almaz
relation headquarters location
type administrative territorial entity
['Excalibur Almaz', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Excalibur_Almaz property:headquarters_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q190564
P1542
Q2057971 Q12136 Q2996394
USER
How many health problems are caused by less number of diseases and biological processes than Huntington's disease ?
(c(Q12136)|c(Q2996394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action count
action filter_multi_types
action find_reverse
entity Q190564
relation P1542
type Q12136
type Q2996394
[[{'concept': 'Q12136'}, {'concept': 'Q2996394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?o WHERE { { ?i property:P1542 ?o . ?o rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q12136 } UNION { ?i property:P1542 ?o . ?o rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q2996394 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P1542 resource:Q190564 . { { ?g rdf:type ontology:Q12136 } UNION { ?g rdf:type ontology:Q2996394 } } } } . FILTER ( ?a < ?z ) }
Huntington's disease
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action count
action filter_multi_types
action find_reverse
entity Huntington's disease
relation cause of
type disease
type biological process
[[{'concept': 'disease'}, {'concept': 'biological process'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?o WHERE { { ?i property:cause_of ?o . ?o rdf:type ontology:health_problem . ?i rdf:type ontology:disease } UNION { ?i property:cause_of ?o . ?o rdf:type ontology:health_problem . ?i rdf:type ontology:biological_process } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:cause_of resource:Huntington's_disease . { { ?g rdf:type ontology:disease } UNION { ?g rdf:type ontology:biological_process } } } } . FILTER ( ?a < ?z ) }
[]
health problem disease biological process
SYSTEM
248
Q2603200 Q949694 Q83319 Q3108587 Q2068896 Q18554029 Q154865 Q2346396 Q188638 Q10874 Q864868 Q7157933 Q154869 Q3513968 Q1476027 Q2373361 Q1194496 Q5334259 Q548213 Q2447562 Q3776920 Q18555098 Q35869 Q3073142 Q243257 Q5062120 Q5062122 Q703961 Q614279 Q694552 Q1928978 Q2700304 Q2845432 Q963944 Q18324719 Q160653 Q4413030 Q443929 Q2300099 Q3084532 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 Q631361 Q17120992 Q576179 Q1531991 Q16242752 Q156103 Q2681162 Q154882 Q2608695 Q17083186 Q42982 Q852376 Q18556080 Q353172 Q941770 Q201989 Q2397106 Q682798 Q1427959 Q3367106 Q193216 Q18558169 Q5090486 Q12156 Q47790 Q159701 Q481392 Q190805 Q422268 Q7235947 Q18123741 Q804521 Q176741 Q2425407 Q496812 Q692536 Q3049302 Q18553274 Q2076966 Q979168 Q1128440 Q2879095 Q18554767 Q326643 Q5380626 Q727028 Q18553170 Q167264 Q160649 Q30953 Q4116663 Q1502312 Q18924547 Q6853 Q1054718 Q8071861 Q705906 Q11072 Q504775 Q1233526 Q5384031 Q3011658 Q1030785 Q173022 Q767485 Q1048101 Q202173 Q812671 Q2589418 Q1243869 Q9430213 Q3798547 Q12152 Q1416773 Q188605 Q18975031 Q18554367 Q219223 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 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(Q12136)|c(Q2996394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action count
action filter_multi_types
action find_reverse
entity Q190564
relation P1542
type Q12136
type Q2996394
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q2996394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?o WHERE { { ?i property:P1542 ?o . ?o rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q12136 } UNION { ?i property:P1542 ?o . ?o rdf:type ontology:Q2057971 . ?i rdf:type ontology:Q2996394 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P1542 resource:Q190564 . { { ?g rdf:type ontology:Q12136 } UNION { ?g rdf:type ontology:Q2996394 } } } } . FILTER ( ?a < ?z ) }
viral pneumonia amebiasis typhoid fever pigmentary glaucoma drug allergy pseudomembranous conjunctivitis botulism iritis mood disorder blindness bone marrow suppression 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 Bolivian hemorrhagic fever ehrlichiosis melioidosis Chapare hemorrhagic fever listeriosis wheat allergy dirofilariasis gastrointestinal system disease endemic typhus 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 diabetic retinopathy Hyperglycerolemia egg allergy Parkinsonian syndrome allergic contact dermatitis gastroenteritis eye injury Legionnaires' disease movement disease obstructive sleep apnea type I hypersensitivity seizure cranial nerve palsy parasitic protozoa infectious disease proctitis Lyme disease tauopathy bejel dental fluorosis parvovirus infectious disease trachoma Venezuelan equine encephalitis toxic pneumonitis malaria tetanus glaucoma theileriasis heart disease actinomycosis Powassan encephalitis infectious disease bacterial vaginosis mumps Acute tubular necrosis leukopenia myopathy human monocytic ehrlichiosis sennetsu fever 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 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 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 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
248
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action count
action filter_multi_types
action find_reverse
entity Huntington's disease
relation cause of
type disease
type biological process
[[{'concept': 'disease'}, {'concept': 'biological process'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?o WHERE { { ?i property:cause_of ?o . ?o rdf:type ontology:health_problem . ?i rdf:type ontology:disease } UNION { ?i property:cause_of ?o . ?o rdf:type ontology:health_problem . ?i rdf:type ontology:biological_process } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:cause_of resource:Huntington's_disease . { { ?g rdf:type ontology:disease } UNION { ?g rdf:type ontology:biological_process } } } } . FILTER ( ?a < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q13452408
P1542
Q2057971 Q12136 Q2996394
USER
And also tell me about neuropathy?
(c(Q12136)|c(Q2996394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action count
action filter_multi_types
action find_reverse
entity Q13452408
relation P1542
type Q12136
type Q2996394
[[{'concept': 'Q12136'}, {'concept': 'Q2996394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?v WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q12136 ) ( ontology:Q2996394 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1542 resource:Q13452408 . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q2996394 ) } } } } . FILTER ( ?q < ?c ) }
neuropathy
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action count
action filter_multi_types
action find_reverse
entity neuropathy
relation cause of
type disease
type biological process
[[{'concept': 'disease'}, {'concept': 'biological process'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?v WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:disease ) ( ontology:biological_process ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:cause_of resource:neuropathy . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:biological_process ) } } } } . FILTER ( ?q < ?c ) }
[]
health problem disease biological process
SYSTEM
248
Q2603200 Q949694 Q83319 Q3108587 Q2068896 Q18554029 Q154865 Q2346396 Q188638 Q10874 Q864868 Q7157933 Q154869 Q3513968 Q1476027 Q2373361 Q1194496 Q5334259 Q548213 Q2447562 Q3776920 Q18555098 Q35869 Q3073142 Q243257 Q5062120 Q5062122 Q703961 Q614279 Q694552 Q1928978 Q2700304 Q2845432 Q963944 Q18324719 Q160653 Q4413030 Q443929 Q2300099 Q3084532 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 Q631361 Q17120992 Q576179 Q1531991 Q16242752 Q156103 Q2681162 Q154882 Q2608695 Q17083186 Q42982 Q852376 Q18556080 Q353172 Q941770 Q201989 Q2397106 Q682798 Q1427959 Q3367106 Q193216 Q18558169 Q5090486 Q12156 Q47790 Q159701 Q481392 Q190805 Q422268 Q7235947 Q18123741 Q804521 Q176741 Q2425407 Q496812 Q692536 Q3049302 Q18553274 Q2076966 Q979168 Q1128440 Q2879095 Q18554767 Q326643 Q5380626 Q727028 Q18553170 Q167264 Q160649 Q30953 Q4116663 Q1502312 Q18924547 Q6853 Q1054718 Q8071861 Q705906 Q11072 Q504775 Q1233526 Q5384031 Q3011658 Q1030785 Q173022 Q767485 Q1048101 Q202173 Q812671 Q2589418 Q1243869 Q9430213 Q3798547 Q12152 Q1416773 Q188605 Q18975031 Q18554367 Q219223 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 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(Q12136)|c(Q2996394),P1542,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action count
action filter_multi_types
action find_reverse
entity Q13452408
relation P1542
type Q12136
type Q2996394
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q2996394'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?v WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q12136 ) ( ontology:Q2996394 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1542 resource:Q13452408 . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q2996394 ) } } } } . FILTER ( ?q < ?c ) }
viral pneumonia amebiasis typhoid fever pigmentary glaucoma drug allergy pseudomembranous conjunctivitis botulism iritis mood disorder blindness bone marrow suppression 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 Bolivian hemorrhagic fever ehrlichiosis melioidosis Chapare hemorrhagic fever listeriosis wheat allergy dirofilariasis gastrointestinal system disease endemic typhus 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 diabetic retinopathy Hyperglycerolemia egg allergy Parkinsonian syndrome allergic contact dermatitis gastroenteritis eye injury Legionnaires' disease movement disease obstructive sleep apnea type I hypersensitivity seizure cranial nerve palsy parasitic protozoa infectious disease proctitis Lyme disease tauopathy bejel dental fluorosis parvovirus infectious disease trachoma Venezuelan equine encephalitis toxic pneumonitis malaria tetanus glaucoma theileriasis heart disease actinomycosis Powassan encephalitis infectious disease bacterial vaginosis mumps Acute tubular necrosis leukopenia myopathy human monocytic ehrlichiosis sennetsu fever 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 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 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 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
248
action count
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action count
action filter_multi_types
action find_reverse
entity neuropathy
relation cause of
type disease
type biological process
[[{'concept': 'disease'}, {'concept': 'biological process'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?v WHERE { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:disease ) ( ontology:biological_process ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:cause_of resource:neuropathy . { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:biological_process ) } } } } . FILTER ( ?q < ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4910091 Q4730945
P69
Q163740
USER
Which nonprofit organizations are the alma mater of Allan Rosenfield or Bill McColl ?
OR((Q4730945,P69,c(Q163740)), (Q4910091,P69,c(Q163740)))
action filter_type
action union
action find
entity Q4730945
relation P69
action find
entity Q4910091
relation P69
type Q163740
{'OR': [['Q4730945', 'P69', {'concept': 'Q163740'}], ['Q4910091', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?b ) { ( resource:Q4730945 ) ( resource:Q4910091 ) } . ?b property:P69 ?e } . ?e rdf:type ontology:Q163740 }
Bill McColl Allan Rosenfield
action filter_type
action union
action find
entity Allan Rosenfield
relation educated at
action find
entity Bill McColl
relation educated at
type nonprofit organization
{'OR': [['Allan Rosenfield', 'educated at', {'concept': 'nonprofit organization'}], ['Bill McColl', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?b ) { ( resource:Allan_Rosenfield ) ( resource:Bill_McColl ) } . ?b property:educated_at ?e } . ?e rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q41506 Q13371
SYSTEM
Stanford University, Harvard University
Q41506 Q13371
OR((Q4730945,P69,c(Q163740)), (Q4910091,P69,c(Q163740)))
action filter_type
action union
action find
entity Q4730945
relation P69
action find
entity Q4910091
relation P69
type Q163740
[ANSWERS] are the alma mater of Allan Rosenfield or Bill McColl
{'OR': [['Q4730945', 'P69', {'concept': 'Q163740'}], ['Q4910091', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?b ) { ( resource:Q4730945 ) ( resource:Q4910091 ) } . ?b property:P69 ?e } . ?e rdf:type ontology:Q163740 }
Stanford University Harvard University
Stanford University and Harvard University are the alma mater of Allan Rosenfield or Bill McColl
Stanford University Harvard University
action filter_type
action union
action find
entity Allan Rosenfield
relation educated at
action find
entity Bill McColl
relation educated at
type nonprofit organization
{'OR': [['Allan Rosenfield', 'educated at', {'concept': 'nonprofit organization'}], ['Bill McColl', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?b ) { ( resource:Allan_Rosenfield ) ( resource:Bill_McColl ) } . ?b property:educated_at ?e } . ?e rdf:type ontology:nonprofit_organization }
[]