Simple Question (Direct)
Simple Question
Q3170821
P21
Q290
USER
What is the sex of Jean Boissonnat ?
(Q3170821,P21,c(Q290))
action filter_type
action find
entity Q3170821
relation P21
type Q290
['Q3170821', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3170821 property:P21 ?h . ?h rdf:type ontology:Q290 }
Jean Boissonnat
action filter_type
action find
entity Jean Boissonnat
relation gender
type sex
['Jean Boissonnat', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Jean_Boissonnat property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3170821,P21,c(Q290))
action filter_type
action find
entity Q3170821
relation P21
type Q290
The sex of Jean Boissonnat is the [ANSWER]
['Q3170821', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q3170821 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Jean Boissonnat is the male
male
action filter_type
action find
entity Jean Boissonnat
relation gender
type sex
['Jean Boissonnat', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Jean_Boissonnat property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3170821
P1196
Q1931388
USER
What manner did Jean Boissonnat die ?
(Q3170821,P1196,c(Q1931388))
action filter_type
action find
entity Q3170821
relation P1196
type Q1931388
['Q3170821', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q3170821 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Jean Boissonnat
action filter_type
action find
entity Jean Boissonnat
relation manner of death
type cause of death
['Jean Boissonnat', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Jean_Boissonnat property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q3170821,P1196,c(Q1931388))
action filter_type
action find
entity Q3170821
relation P1196
type Q1931388
Jean Boissonnat died of [ANSWER]
['Q3170821', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q3170821 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
natural causes
Jean Boissonnat died of natural causes
natural causes
action filter_type
action find
entity Jean Boissonnat
relation manner of death
type cause of death
['Jean Boissonnat', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Jean_Boissonnat property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3170821
P509
Q2057971
USER
What caused the death of that person ?
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q3170821
relation P509
type Q2057971
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { resource:Q3170821 property:P509 ?s . ?s rdf:type ontology:Q2057971 }
Jean Boissonnat
action filter_type
action find
entity Jean Boissonnat
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { resource:Jean_Boissonnat property:cause_of_death ?s . ?s rdf:type ontology:health_problem }
[]
health problem
Q12202
SYSTEM
stroke
Q12202
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q3170821
relation P509
type Q2057971
The [ANSWER] caused the death of that person
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { resource:Q3170821 property:P509 ?s . ?s rdf:type ontology:Q2057971 }
stroke
The stroke caused the death of that person
stroke
action filter_type
action find
entity Jean Boissonnat
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { resource:Jean_Boissonnat property:cause_of_death ?s . ?s rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1393463
P689
Q82799 Q4936952 Q2057971
USER
Which health problems afflicts approximately the same number of names and anatomical structures as hypopharynx cancer ?
(c(Q2057971),P689,c(Q82799)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1393463
relation P689
type Q82799
type Q4936952
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?u WHERE { { ?u property:P689 ?o . ?u rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q4936952 } UNION { ?o rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2057971 . ?u property:P689 ?o } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q1393463 property:P689 ?k . { { ?k rdf:type ontology:Q82799 } UNION { ?k rdf:type ontology:Q4936952 } } } } . FILTER ( ?b = ?y ) }
hypopharynx cancer
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
action count
action filter_multi_types
action find
entity hypopharynx cancer
relation afflicts
type name
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?u WHERE { { ?u property:afflicts ?o . ?u rdf:type ontology:health_problem . ?o rdf:type ontology:anatomical_structure } UNION { ?o rdf:type ontology:name . ?u rdf:type ontology:health_problem . ?u property:afflicts ?o } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:hypopharynx_cancer property:afflicts ?k . { { ?k rdf:type ontology:name } UNION { ?k rdf:type ontology:anatomical_structure } } } } . FILTER ( ?b = ?y ) }
[]
name anatomical structure health problem
Q181257 Q844935 Q154869
SYSTEM
prostate cancer, coronary artery disease, hepatitis C
Q18556210 Q6996973 Q18211751 Q5182155 Q18553706 Q154869 Q3508732 Q1066265 Q574406 Q18558209 Q1266890 Q175827 Q18554834 Q18555928 Q1585743 Q2508462 Q5062122 Q18556225 Q2879095 Q18554850 Q18553224 Q16918477 Q5182126 Q944777 Q3055380 Q147778 Q2946952 Q857667 Q3339235 Q844935 Q18558143 Q131742 Q16499 Q6853 Q2988775 Q18555020 Q18975470 Q18554359 Q18556397 Q18553766 Q7314317 Q18554536 Q18554357 Q697117 Q5156409 Q18557992 Q3392853 Q929737 Q18554999 Q7199538 Q403463 Q4684717 Q6673122 Q5518905 Q1779300 Q7136145 Q7578540 Q616003 Q18555344 Q2661443 Q3281322 Q3043145 Q3552798 Q949302 Q190805 Q1642094 Q359892 Q18554589 Q18555048 Q181257 Q3540864 Q18555042 Q1963588 Q2429620 Q2339038 Q18556075 Q18555923 Q504775 Q18557307 Q5526839 Q18556619 Q16831900 Q578257 Q7900883 Q18556675 Q6758201 Q18553502 Q5282519 Q18554363 Q1542466 Q1545572 Q18553584 Q2351083 Q6742919 Q501561 Q1585753 Q18554947 Q6072985 Q18554030 Q21128620 Q18555940 Q21118423 Q11835644 Q189588 Q1393463 Q17152566 Q165135 Q18558049 Q476921 Q18558125 Q18965518 Q1807522 Q2031424 Q18553736 Q4941552 Q5325633 Q18556445 Q18968025 Q18554658 Q7113244 Q3030636 Q3540887 Q2966706 Q7879711
(c(Q2057971),P689,c(Q82799)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1393463
relation P689
type Q82799
type Q4936952
[ANSWERS] afflict approximately the same number of names and anatomical structures as hypopharynx cancer
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?u WHERE { { ?u property:P689 ?o . ?u rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q4936952 } UNION { ?o rdf:type ontology:Q82799 . ?u rdf:type ontology:Q2057971 . ?u property:P689 ?o } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q1393463 property:P689 ?k . { { ?k rdf:type ontology:Q82799 } UNION { ?k rdf:type ontology:Q4936952 } } } } . FILTER ( ?b = ?y ) }
gastrointestinal adenoma nervous system disease vulvar disease Craniotabes gamma-amino butyric acid metabolism disorder hepatitis C pyelo-ureteral junction syndrome Osgood-Schlatter's disease Bartholin's duct cyst upper respiratory tract disease vascular disease stomach disease penile disease subclavian artery aneurysm urea cycle disorder mouth disease central nervous system disease femoral neuropathy optic nerve disease integumentary system disease lower respiratory tract disease nervous system cancer cranial nerve disease endometrial cancer intestinal disease liver cirrhosis cervical osteoarthritis pulmonary edema nervous system disease coronary artery disease leukocyte disease hepatitis hyperthyroidism hepatitis B heart conduction disease nasal cavity disease disease of biological process binocular vision disease biliary tract cancer eye accommodation disease reproductive system disease paranasal sinus disease vestibulocochlear nerve disease Spinal disc herniation complement deficiency vein disease lung disease liver disease B cell deficiency pituitary gland disease Aicardi syndrome adrenal gland disease thyroid gland disease gallbladder disease connective tissue disease parathyroid gland disease splenic disease aortic aneurysm tracheal disease endocrine system disease peroxisomal disease cytochrome P450 Oxidoreductase Deficiency uvulitis skin disease heart disease Hematidrosis salpingitis hepatic infarction gonadal disease prostate cancer Balance disorder factor XII deficiency hematopoietic system disease blood platelet disease Neurogenic bladder external ear disease carotid artery disease urinary bladder cancer muscle tissue disease gastrointestinal system cancer middle ear disease intracranial hypotension Kohler's disease urinary system disease aortic disease Marcus Gunn pupil pericardium disease calcium metabolism disease capillary disease vulvitis splenic infarction C1 inhibitor deficiency disease of metabolism Male breast cancer pericarditis urethral stricture fallopian tube disease iron metabolism disease acute laryngopharyngitis spleen injury uterine disease auditory nerve damage thyroiditis stomach cancer hypopharynx cancer salivary gland disease goiter gastrointestinal lymphoma kidney failure intracranial hypertension artery disease vaginal cancer oropharynx cancer bone remodeling disease bone disease auditory system disease prostate disease pleural disease splenic artery aneurysm ovarian disease carotid artery dissection Sensory processing disorder Chromhidrosis ulnar neuropathy
Prostate cancer, coronary artery disease and hepatitis C afflict approximately the same number of names and anatomical structures as hypopharynx cancer
prostate cancer coronary artery disease hepatitis C
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
action count
action filter_multi_types
action find
entity hypopharynx cancer
relation afflicts
type name
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) ?u WHERE { { ?u property:afflicts ?o . ?u rdf:type ontology:health_problem . ?o rdf:type ontology:anatomical_structure } UNION { ?o rdf:type ontology:name . ?u rdf:type ontology:health_problem . ?u property:afflicts ?o } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:hypopharynx_cancer property:afflicts ?k . { { ?k rdf:type ontology:name } UNION { ?k rdf:type ontology:anatomical_structure } } } } . FILTER ( ?b = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1628473
P689
Q82799 Q4936952 Q2057971
USER
And also tell me about corneal ulcer?
(c(Q2057971),P689,c(Q82799)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1628473
relation P689
type Q82799
type Q4936952
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q82799 ) ( ontology:Q4936952 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q1628473 property:P689 ?t . { VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q4936952 ) } . ?t rdf:type ?n } } } . FILTER ( ?p = ?b ) }
corneal ulcer
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
action count
action filter_multi_types
action find
entity corneal ulcer
relation afflicts
type name
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:name ) ( ontology:anatomical_structure ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:corneal_ulcer property:afflicts ?t . { VALUES ( ?n ) { ( ontology:name ) ( ontology:anatomical_structure ) } . ?t rdf:type ?n } } } . FILTER ( ?p = ?b ) }
[]
name anatomical structure health problem
Q12214 Q133087 Q48143
SYSTEM
smallpox, gout, meningitis
Q1362721 Q6742925 Q48143 Q18557753 Q244438 Q4959796 Q8084905 Q708176 Q18556093 Q3286546 Q4116663 Q1030785 Q1628473 Q18555209 Q2912193 Q3843811 Q133087 Q1194557 Q18554893 Q18553644 Q12214 Q18554220 Q6708237 Q16678483 Q5442760 Q18553634
(c(Q2057971),P689,c(Q82799)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1628473
relation P689
type Q82799
type Q4936952
[ANSWERS]
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q82799 ) ( ontology:Q4936952 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q1628473 property:P689 ?t . { VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q4936952 ) } . ?t rdf:type ?n } } } . FILTER ( ?p = ?b ) }
tuberous sclerosis male reproductive system disease meningitis laryngeal disease prosopagnosia breast disease autoimmune neuromuscular disease arthropathy male reproductive organ cancer respiratory disease musculoskeletal system disease demodicosis corneal ulcer nose disease esophageal disease immune system disease gout laryngitis ocular melanoma immune system cancer smallpox female reproductive organ cancer lymphatic system disease vestibular disease female reproductive system disease lymphatic system cancer
smallpox gout meningitis
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
action count
action filter_multi_types
action find
entity corneal ulcer
relation afflicts
type name
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?p ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:name ) ( ontology:anatomical_structure ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:corneal_ulcer property:afflicts ?t . { VALUES ( ?n ) { ( ontology:name ) ( ontology:anatomical_structure ) } . ?t rdf:type ?n } } } . FILTER ( ?p = ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q506616
P1542
Q2057971 Q3839081 Q223557
USER
Which health problems are the effects of lesser number of disasters or physical objects than drowning ?
(c(Q3839081)|c(Q223557),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action count
action filter_multi_types
action find_reverse
entity Q506616
relation P1542
type Q3839081
type Q223557
[[{'concept': 'Q3839081'}, {'concept': 'Q223557'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?n ) WHERE { { ?o rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q223557 . ?x property:P1542 ?o } UNION { ?x property:P1542 ?o . ?x rdf:type ontology:Q3839081 . ?o rdf:type ontology:Q2057971 } } GROUP BY ?o } . FILTER ( ?n < ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P1542 resource:Q506616 . { { ?p rdf:type ontology:Q223557 } UNION { ?p rdf:type ontology:Q3839081 } } } } }
drowning
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disaster
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action count
action filter_multi_types
action find_reverse
entity drowning
relation cause of
type disaster
type physical object
[[{'concept': 'disaster'}, {'concept': 'physical object'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?n ) WHERE { { ?o rdf:type ontology:health_problem . ?x rdf:type ontology:physical_object . ?x property:cause_of ?o } UNION { ?x property:cause_of ?o . ?x rdf:type ontology:disaster . ?o rdf:type ontology:health_problem } } GROUP BY ?o } . FILTER ( ?n < ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:cause_of resource:drowning . { { ?p rdf:type ontology:physical_object } UNION { ?p rdf:type ontology:disaster } } } } }
[]
health problem disaster physical object
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 Q42982 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 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(Q3839081)|c(Q223557),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action count
action filter_multi_types
action find_reverse
entity Q506616
relation P1542
type Q3839081
type Q223557
[ANSWERS] are the effects of lesser number of disasters or physical objects than drowning
[[{'concept': 'Q3839081'}, {'concept': 'Q223557'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?n ) WHERE { { ?o rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q223557 . ?x property:P1542 ?o } UNION { ?x property:P1542 ?o . ?x rdf:type ontology:Q3839081 . ?o rdf:type ontology:Q2057971 } } GROUP BY ?o } . FILTER ( ?n < ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P1542 resource:Q506616 . { { ?p rdf:type ontology:Q223557 } UNION { ?p rdf:type ontology:Q3839081 } } } } }
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 type I hypersensitivity 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 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
Asthma, smallpox and myocardial infarction are the effects of lesser number of disasters or physical objects than drowning
asthma smallpox myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disaster
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action count
action filter_multi_types
action find_reverse
entity drowning
relation cause of
type disaster
type physical object
[[{'concept': 'disaster'}, {'concept': 'physical object'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?n ) WHERE { { ?o rdf:type ontology:health_problem . ?x rdf:type ontology:physical_object . ?x property:cause_of ?o } UNION { ?x property:cause_of ?o . ?x rdf:type ontology:disaster . ?o rdf:type ontology:health_problem } } GROUP BY ?o } . FILTER ( ?n < ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:cause_of resource:drowning . { { ?p rdf:type ontology:physical_object } UNION { ?p rdf:type ontology:disaster } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5506384
P1542
Q2057971 Q3839081 Q223557
USER
And how about fruit allergy?
(c(Q3839081)|c(Q223557),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action count
action filter_multi_types
action find_reverse
entity Q5506384
relation P1542
type Q3839081
type Q223557
[[{'concept': 'Q3839081'}, {'concept': 'Q223557'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?b WHERE { VALUES ( ?n ) { ( ontology:Q3839081 ) ( ontology:Q223557 ) } . ?f rdf:type ?n } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1542 resource:Q5506384 . { { ?v rdf:type ontology:Q3839081 } UNION { ?v rdf:type ontology:Q223557 } } } } . FILTER ( ?m < ?q ) }
fruit allergy
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disaster
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action count
action filter_multi_types
action find_reverse
entity fruit allergy
relation cause of
type disaster
type physical object
[[{'concept': 'disaster'}, {'concept': 'physical object'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?b WHERE { VALUES ( ?n ) { ( ontology:disaster ) ( ontology:physical_object ) } . ?f rdf:type ?n } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:cause_of resource:fruit_allergy . { { ?v rdf:type ontology:disaster } UNION { ?v rdf:type ontology:physical_object } } } } . FILTER ( ?m < ?q ) }
[]
health problem disaster physical object
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 Q42982 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 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(Q3839081)|c(Q223557),P1542,c(Q2057971))
action less
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action count
action filter_multi_types
action find_reverse
entity Q5506384
relation P1542
type Q3839081
type Q223557
[ANSWERS]
[[{'concept': 'Q3839081'}, {'concept': 'Q223557'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?b WHERE { VALUES ( ?n ) { ( ontology:Q3839081 ) ( ontology:Q223557 ) } . ?f rdf:type ?n } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1542 resource:Q5506384 . { { ?v rdf:type ontology:Q3839081 } UNION { ?v rdf:type ontology:Q223557 } } } } . FILTER ( ?m < ?q ) }
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 type I hypersensitivity 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 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
asthma smallpox myocardial infarction
action less
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type disaster
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action count
action filter_multi_types
action find_reverse
entity fruit allergy
relation cause of
type disaster
type physical object
[[{'concept': 'disaster'}, {'concept': 'physical object'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?b WHERE { VALUES ( ?n ) { ( ontology:disaster ) ( ontology:physical_object ) } . ?f rdf:type ?n } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:cause_of resource:fruit_allergy . { { ?v rdf:type ontology:disaster } UNION { ?v rdf:type ontology:physical_object } } } } . FILTER ( ?m < ?q ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35869 Q12214 Q12152
P1050
Q502895
USER
Who suffer from asthma, smallpox and myocardial infarction ?
(c(Q502895),P1050,Q35869) (c(Q502895),P1050,Q12214) (c(Q502895),P1050,Q12152)
action union
action filter_type
action find_reverse
entity Q35869
relation P1050
type Q502895
action filter_type
action find_reverse
entity Q12214
relation P1050
type Q502895
action filter_type
action find_reverse
entity Q12152
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q35869'] [{'concept': 'Q502895'}, 'P1050', 'Q12214'] [{'concept': 'Q502895'}, 'P1050', 'Q12152']
SELECT DISTINCT ?p WHERE { VALUES ( ?n ) { ( resource:Q35869 ) ( resource:Q12214 ) } . ?p property:P1050 ?n }
asthma smallpox myocardial infarction
action union
action filter_type
action find_reverse
entity asthma
relation medical condition
type common name
action filter_type
action find_reverse
entity smallpox
relation medical condition
type common name
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'asthma'] [{'concept': 'common name'}, 'medical condition', 'smallpox'] [{'concept': 'common name'}, 'medical condition', 'myocardial infarction']
SELECT DISTINCT ?p WHERE { VALUES ( ?n ) { ( resource:asthma ) ( resource:smallpox ) } . ?p property:medical_condition ?n }
[]
common name
Q9916 Q9916 Q5809
SYSTEM
Che Guevara for 3rd, Dwight D. Eisenhower for 1st, 2nd
Q3179938 Q332751 Q1923049 Q5809 Q22994708 Q4180706 Q13049771 Q2661222 Q9916 Q9916 Q5337444
(c(Q502895),P1050,Q35869) (c(Q502895),P1050,Q12214) (c(Q502895),P1050,Q12152)
action union
action filter_type
action find_reverse
entity Q35869
relation P1050
type Q502895
action filter_type
action find_reverse
entity Q12214
relation P1050
type Q502895
action filter_type
action find_reverse
entity Q12152
relation P1050
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1050', 'Q35869'] [{'concept': 'Q502895'}, 'P1050', 'Q12214'] [{'concept': 'Q502895'}, 'P1050', 'Q12152']
SELECT DISTINCT ?p WHERE { VALUES ( ?n ) { ( resource:Q35869 ) ( resource:Q12214 ) } . ?p property:P1050 ?n }
Jodi Forrest Ellen Wilkinson Theo van Baaren Che Guevara Pendred Noyce Varvara Zhitova Varvara Petrovna Turgeneva Antoine Ó Raifteiri Dwight D. Eisenhower Dwight D. Eisenhower Edgar Rosenberg
Dwight D. Eisenhower, Dwight D. Eisenhower and Che Guevara suffer from asthma, smallpox and myocardial infarction
Dwight D. Eisenhower Dwight D. Eisenhower Che Guevara
action union
action filter_type
action find_reverse
entity asthma
relation medical condition
type common name
action filter_type
action find_reverse
entity smallpox
relation medical condition
type common name
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'asthma'] [{'concept': 'common name'}, 'medical condition', 'smallpox'] [{'concept': 'common name'}, 'medical condition', 'myocardial infarction']
SELECT DISTINCT ?p WHERE { VALUES ( ?n ) { ( resource:asthma ) ( resource:smallpox ) } . ?p property:medical_condition ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9916
P991
Q40231
USER
Which elections were Dwight D. Eisenhower elected from ?
(c(Q40231),P991,Q9916)
action filter_type
action find_reverse
entity Q9916
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q9916']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q40231 . ?k property:P991 resource:Q9916 }
Dwight D. Eisenhower
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Dwight D. Eisenhower']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:election . ?k property:successful_candidate resource:Dwight_D._Eisenhower }
[]
election
Q7314676 Q17100868 Q17100871
SYSTEM
Republican Party presidential primaries, 1956, United States presidential election in New York, 1952, United States presidential election in New York, 1956
Q17100868 Q7314676 Q17100871 Q17100680 Q7314675 Q17016425 Q17100514 Q7892900 Q7892901 Q17100685 Q17100509 Q17016372
(c(Q40231),P991,Q9916)
action filter_type
action find_reverse
entity Q9916
relation P991
type Q40231
[ANSWERS]
[{'concept': 'Q40231'}, 'P991', 'Q9916']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q40231 . ?k property:P991 resource:Q9916 }
United States presidential election in New York, 1952 Republican Party presidential primaries, 1956 United States presidential election in New York, 1956 United States presidential election in New Jersey, 1952 Republican Party presidential primaries, 1952 United States presidential election in Vermont, 1956 United States presidential election in Massachusetts, 1956 United States presidential election in Montana, 1952 United States presidential election in Montana, 1956 United States presidential election in New Jersey, 1956 United States presidential election in Massachusetts, 1952 United States presidential election in Vermont, 1952
Dwight D. Eisenhower were elected in Republican Party presidential primaries, 1956, United States presidential election in New York, 1952 and United States presidential election in New York, 1956
Republican Party presidential primaries, 1956 United States presidential election in New York, 1952 United States presidential election in New York, 1956
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Dwight D. Eisenhower']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:election . ?k property:successful_candidate resource:Dwight_D._Eisenhower }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9916
P6
Q15617994
USER
Which administrative territory is that person the head of the goverment of ?
(c(Q15617994),P6,Q7314676) (c(Q15617994),P6,Q17100868) (c(Q15617994),P6,Q17100871)
action filter_type
action find_reverse
entity Q9916
relation P6
type Q15617994
[{'concept': 'Q15617994'}, 'P6', 'Q7314676'] [{'concept': 'Q15617994'}, 'P6', 'Q17100868'] [{'concept': 'Q15617994'}, 'P6', 'Q17100871']
SELECT DISTINCT ?b WHERE { ?b property:P6 resource:Q9916 . ?b rdf:type ontology:Q15617994 }
Dwight D. Eisenhower
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Republican Party presidential primaries, 1956'] [{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'United States presidential election in New York, 1952'] [{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'United States presidential election in New York, 1956']
SELECT DISTINCT ?b WHERE { ?b property:head_of_government resource:Dwight_D._Eisenhower . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(c(Q15617994),P6,Q7314676) (c(Q15617994),P6,Q17100868) (c(Q15617994),P6,Q17100871)
action filter_type
action find_reverse
entity Q9916
relation P6
type Q15617994
The [ANSWER] is that person the head of the goverment of
[{'concept': 'Q15617994'}, 'P6', 'Q7314676'] [{'concept': 'Q15617994'}, 'P6', 'Q17100868'] [{'concept': 'Q15617994'}, 'P6', 'Q17100871']
SELECT DISTINCT ?b WHERE { ?b property:P6 resource:Q9916 . ?b rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person the head of the goverment of
United States of America
action filter_type
action find_reverse
entity Dwight D. Eisenhower
relation head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'Republican Party presidential primaries, 1956'] [{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'United States presidential election in New York, 1952'] [{'concept': 'designation for an administrative territorial entity'}, 'head of government', 'United States presidential election in New York, 1956']
SELECT DISTINCT ?b WHERE { ?b property:head_of_government resource:Dwight_D._Eisenhower . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q154869
P921
Q2057971 Q2342494 Q838948
USER
How many health problems were discussed in around the same number of collectables or works of art as hepatitis C ?
(c(Q2342494)|c(Q838948),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q154869
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) ?m WHERE { { ?v property:P921 ?m . ?m rdf:type ontology:Q2057971 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P921 ?m . ?m rdf:type ontology:Q2057971 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } . ?d property:P921 resource:Q154869 } } . FILTER ( ?w = ?q ) }
hepatitis C
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action count
action filter_multi_types
action find_reverse
entity hepatitis C
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) ?m WHERE { { ?v property:main_subject ?m . ?m rdf:type ontology:health_problem . ?v rdf:type ontology:work_of_art } UNION { ?v property:main_subject ?m . ?m rdf:type ontology:health_problem . ?v rdf:type ontology:collectable } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:work_of_art ) } } . ?d property:main_subject resource:hepatitis_C } } . FILTER ( ?w = ?q ) }
[]
health problem collectable work of art
SYSTEM
100
Q19001421 Q868137 Q748309 Q637816 Q706845 Q10874 Q154869 Q131755 Q638729 Q3041498 Q18657 Q727096 Q1928978 Q495146 Q35890 Q170990 Q222634 Q1077505 Q2300099 Q154666 Q243257 Q2346415 Q12174 Q929833 Q3339235 Q572695 Q1995526 Q268667 Q213098 Q191779 Q1137767 Q551085 Q12135 Q185034 Q652744 Q187255 Q26882978 Q180913 Q1369020 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q41571 Q3025883 Q181257 Q8277 Q30953 Q4116663 Q8071861 Q47912 Q448768 Q1030785 Q183548 Q42844 Q11081 Q132971 Q83030 Q11085 Q40878 Q431643 Q79793 Q159701 Q161790 Q1414765 Q389735 Q1112977 Q18555066 Q12202 Q12206 Q103177 Q134859 Q595010 Q128581 Q18556308 Q219102 Q1992236 Q331283 Q12195 Q326071 Q18123741 Q1358589 Q506616 Q1526645 Q11627066 Q154878 Q133823 Q33525 Q326638 Q154874 Q280027 Q8282 Q3184856 Q190965 Q1476525 Q81867 Q2046113
(c(Q2342494)|c(Q838948),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q154869
relation P921
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) ?m WHERE { { ?v property:P921 ?m . ?m rdf:type ontology:Q2057971 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P921 ?m . ?m rdf:type ontology:Q2057971 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } . ?d property:P921 resource:Q154869 } } . FILTER ( ?w = ?q ) }
Flavivirus infectious disease coccidioidomycosis Problem gambling occupational disease Lassa fever blindness hepatitis C bipolar disorder autoimmune thrombocytopenic purpura eye disease multiple personality disorder physical disorder viral infectious disease trichinosis extrinsic allergic alveolitis arthritis orofacial cleft Crimean–Congo hemorrhagic fever gastrointestinal system disease variant Creutzfeldt-Jakob disease chikungunya meningoencephalitis obesity rare disease nervous system disease Eisenmenger's syndrome traumatic brain injury atopic dermatitis progeria Gilles de la Tourette syndrome muscular dystrophy myelitis mental disorder sickle cell anemia hand, foot and mouth disease rheumatoid arthritis occupational traumatic injury bulimia nervosa von Economo's disease Guillain–Barré syndrome drug dependence subacute sclerosing panencephalitis myocardial infarction malaria disease of metabolism post-traumatic stress disorder epilepsy type 2 diabetes mellitus prostate cancer multiple sclerosis dengue fever musculoskeletal system disease Zika fever lung cancer alveolar hydatid disease demodicosis voyeurism major depressive disorder Alzheimer's disease dyslexia dementia Parkinson's disease diarrhea microcephaly measles glaucoma Asperger syndrome Munchausen by proxy cardiovascular disease syringomyelia relapsing-remitting multiple sclerosis stroke diabetes mellitus severe acute respiratory syndrome pertussis hypertrichosis breast cancer occupational dermatitis Cushing's syndrome enterobiasis leishmaniasis poliomyelitis giardiasis infectious disease HIV/AIDS in Africa drowning Surra West Nile fever toxoplasmosis migraine carcinoma Rift Valley fever yellow fever uveitis Addison's disease substance abuse transsexualism lipid metabolism disorder albino visceral leishmaniasis
100
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action count
action filter_multi_types
action find_reverse
entity hepatitis C
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) ?m WHERE { { ?v property:main_subject ?m . ?m rdf:type ontology:health_problem . ?v rdf:type ontology:work_of_art } UNION { ?v property:main_subject ?m . ?m rdf:type ontology:health_problem . ?v rdf:type ontology:collectable } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:work_of_art ) } } . ?d property:main_subject resource:hepatitis_C } } . FILTER ( ?w = ?q ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1928978
P921
Q2057971 Q2342494 Q838948
USER
And what about viral infectious disease?
(c(Q2342494)|c(Q838948),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1928978
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?c rdf:type ?b } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P921 resource:Q1928978 . { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?l = ?h ) }
viral infectious disease
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action count
action filter_multi_types
action find_reverse
entity viral infectious disease
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?c rdf:type ?b } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:main_subject resource:viral_infectious_disease . { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?l = ?h ) }
[]
health problem collectable work of art
SYSTEM
100
Q19001421 Q868137 Q748309 Q637816 Q706845 Q10874 Q154869 Q131755 Q638729 Q3041498 Q18657 Q727096 Q1928978 Q495146 Q35890 Q170990 Q222634 Q1077505 Q2300099 Q154666 Q243257 Q2346415 Q12174 Q929833 Q3339235 Q572695 Q1995526 Q268667 Q213098 Q191779 Q1137767 Q551085 Q12135 Q185034 Q652744 Q187255 Q26882978 Q180913 Q1369020 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q41571 Q3025883 Q181257 Q8277 Q30953 Q4116663 Q8071861 Q47912 Q448768 Q1030785 Q183548 Q42844 Q11081 Q132971 Q83030 Q11085 Q40878 Q431643 Q79793 Q159701 Q161790 Q1414765 Q389735 Q1112977 Q18555066 Q12202 Q12206 Q103177 Q134859 Q595010 Q128581 Q18556308 Q219102 Q1992236 Q331283 Q12195 Q326071 Q18123741 Q1358589 Q506616 Q1526645 Q11627066 Q154878 Q133823 Q33525 Q326638 Q154874 Q280027 Q8282 Q3184856 Q190965 Q1476525 Q81867 Q2046113
(c(Q2342494)|c(Q838948),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1928978
relation P921
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?c rdf:type ?b } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P921 resource:Q1928978 . { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?l = ?h ) }
Flavivirus infectious disease coccidioidomycosis Problem gambling occupational disease Lassa fever blindness hepatitis C bipolar disorder autoimmune thrombocytopenic purpura eye disease multiple personality disorder physical disorder viral infectious disease trichinosis extrinsic allergic alveolitis arthritis orofacial cleft Crimean–Congo hemorrhagic fever gastrointestinal system disease variant Creutzfeldt-Jakob disease chikungunya meningoencephalitis obesity rare disease nervous system disease Eisenmenger's syndrome traumatic brain injury atopic dermatitis progeria Gilles de la Tourette syndrome muscular dystrophy myelitis mental disorder sickle cell anemia hand, foot and mouth disease rheumatoid arthritis occupational traumatic injury bulimia nervosa von Economo's disease Guillain–Barré syndrome drug dependence subacute sclerosing panencephalitis myocardial infarction malaria disease of metabolism post-traumatic stress disorder epilepsy type 2 diabetes mellitus prostate cancer multiple sclerosis dengue fever musculoskeletal system disease Zika fever lung cancer alveolar hydatid disease demodicosis voyeurism major depressive disorder Alzheimer's disease dyslexia dementia Parkinson's disease diarrhea microcephaly measles glaucoma Asperger syndrome Munchausen by proxy cardiovascular disease syringomyelia relapsing-remitting multiple sclerosis stroke diabetes mellitus severe acute respiratory syndrome pertussis hypertrichosis breast cancer occupational dermatitis Cushing's syndrome enterobiasis leishmaniasis poliomyelitis giardiasis infectious disease HIV/AIDS in Africa drowning Surra West Nile fever toxoplasmosis migraine carcinoma Rift Valley fever yellow fever uveitis Addison's disease substance abuse transsexualism lipid metabolism disorder albino visceral leishmaniasis
100
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action count
action filter_multi_types
action find_reverse
entity viral infectious disease
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?c rdf:type ?b } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:main_subject resource:viral_infectious_disease . { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?l = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9916
P119
Q1546583
USER
Where is the place of burial for Dwight D. Eisenhower located ?
(Q9916,P119,c(Q1546583))
action filter_type
action find
entity Q9916
relation P119
type Q1546583
['Q9916', 'P119', {'concept': 'Q1546583'}]
SELECT DISTINCT ?i WHERE { resource:Q9916 property:P119 ?i . ?i rdf:type ontology:Q1546583 }
Dwight D. Eisenhower
action filter_type
action find
entity Dwight D. Eisenhower
relation place of burial
type presidential library
['Dwight D. Eisenhower', 'place of burial', {'concept': 'presidential library'}]
SELECT DISTINCT ?i WHERE { resource:Dwight_D._Eisenhower property:place_of_burial ?i . ?i rdf:type ontology:presidential_library }
[]
presidential library
Q3270206
SYSTEM
Eisenhower Presidential Center
Q3270206
(Q9916,P119,c(Q1546583))
action filter_type
action find
entity Q9916
relation P119
type Q1546583
The place of burial for Dwight D. is [ANSWER]
['Q9916', 'P119', {'concept': 'Q1546583'}]
SELECT DISTINCT ?i WHERE { resource:Q9916 property:P119 ?i . ?i rdf:type ontology:Q1546583 }
Eisenhower Presidential Center
The place of burial for Dwight D. is Eisenhower Presidential Center
Eisenhower Presidential Center
action filter_type
action find
entity Dwight D. Eisenhower
relation place of burial
type presidential library
['Dwight D. Eisenhower', 'place of burial', {'concept': 'presidential library'}]
SELECT DISTINCT ?i WHERE { resource:Dwight_D._Eisenhower property:place_of_burial ?i . ?i rdf:type ontology:presidential_library }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with approximately 78 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?v = 78 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 78 ) }
[]
designation for an administrative territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[ANSWER] have tactful political relations with approximately 78 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { ?q property:P530 ?g . ?q rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?v = 78 ) }
Australia
Australia have tactful political relations with approximately 78 administrative territories
Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { ?q property:diplomatic_relation ?g . ?q rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 78 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P780
Q12136 Q2057971 Q2057971
USER
How many health problems are indicated by the existence of around 5 diseases or health problems ?
(c(Q2057971),P780,c(Q12136)|c(Q2057971))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
value 5
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?p WHERE { { ?f rdf:type ontology:Q12136 . ?p rdf:type ontology:Q2057971 . ?p property:P780 ?f } UNION { ?p property:P780 ?f . ?f rdf:type ontology:Q2057971 . ?p rdf:type ontology:Q2057971 } } GROUP BY ?p } . FILTER ( ?e = 5 ) }
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type health problem
value 5
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?p WHERE { { ?f rdf:type ontology:disease . ?p rdf:type ontology:health_problem . ?p property:symptoms ?f } UNION { ?p property:symptoms ?f . ?f rdf:type ontology:health_problem . ?p rdf:type ontology:health_problem } } GROUP BY ?p } . FILTER ( ?e = 5 ) }
[]
disease health problem health problem
SYSTEM
1
Q131755
(c(Q2057971),P780,c(Q12136)|c(Q2057971))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
value 5
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?p WHERE { { ?f rdf:type ontology:Q12136 . ?p rdf:type ontology:Q2057971 . ?p property:P780 ?f } UNION { ?p property:P780 ?f . ?f rdf:type ontology:Q2057971 . ?p rdf:type ontology:Q2057971 } } GROUP BY ?p } . FILTER ( ?e = 5 ) }
bipolar disorder
1
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type health problem
value 5
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?p WHERE { { ?f rdf:type ontology:disease . ?p rdf:type ontology:health_problem . ?p property:symptoms ?f } UNION { ?p property:symptoms ?f . ?f rdf:type ontology:health_problem . ?p rdf:type ontology:health_problem } } GROUP BY ?p } . FILTER ( ?e = 5 ) }
[]