Simple Question (Direct)
Simple Question
Q2426190
P102
Q7210356
USER
Which party does Thomas Morris belong to ?
(Q2426190,P102,c(Q7210356))
action filter_type
action find
entity Q2426190
relation P102
type Q7210356
['Q2426190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q2426190 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Thomas Morris
action filter_type
action find
entity Thomas Morris
relation member of political party
type political organization
['Thomas Morris', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Thomas_Morris property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q2426190,P102,c(Q7210356))
action filter_type
action find
entity Q2426190
relation P102
type Q7210356
Thomas Morris belongs to [ANSWER]
['Q2426190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?r WHERE { resource:Q2426190 property:P102 ?r . ?r rdf:type ontology:Q7210356 }
Republican Party
Thomas Morris belongs to Republican Party
Republican Party
action filter_type
action find
entity Thomas Morris
relation member of political party
type political organization
['Thomas Morris', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?r WHERE { resource:Thomas_Morris property:member_of_political_party ?r . ?r rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2426190
P509
Q2057971
USER
What caused the death of Thomas Morris ?
(Q2426190,P509,c(Q2057971))
action filter_type
action find
entity Q2426190
relation P509
type Q2057971
['Q2426190', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q2426190 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
Thomas Morris
action filter_type
action find
entity Thomas Morris
relation cause of death
type health problem
['Thomas Morris', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Morris property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q2426190,P509,c(Q2057971))
action filter_type
action find
entity Q2426190
relation P509
type Q2057971
The [ANSWER] caused the death of Thomas Morris
['Q2426190', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q2426190 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
myocardial infarction
The myocardial infarction caused the death of Thomas Morris
myocardial infarction
action filter_type
action find
entity Thomas Morris
relation cause of death
type health problem
['Thomas Morris', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Morris property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q164004
Q2057971
USER
And what about Alexander Borodin?
(Q164004,P509,c(Q2057971))
action filter_type
action find
entity Q164004
relation P509
type Q2057971
['Q164004', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?a WHERE { resource:Q164004 property:P509 ?a . ?a rdf:type ontology:Q2057971 }
Alexander Borodin
action filter_type
action find
entity Alexander Borodin
relation cause of death
type health problem
['Alexander Borodin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?a WHERE { resource:Alexander_Borodin property:cause_of_death ?a . ?a rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q164004,P509,c(Q2057971))
action filter_type
action find
entity Q164004
relation P509
type Q2057971
[ANSWER]
['Q164004', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?a WHERE { resource:Q164004 property:P509 ?a . ?a rdf:type ontology:Q2057971 }
myocardial infarction
myocardial infarction
action filter_type
action find
entity Alexander Borodin
relation cause of death
type health problem
['Alexander Borodin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?a WHERE { resource:Alexander_Borodin property:cause_of_death ?a . ?a rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12152 Q18037015
P2293
Q863908
USER
Does PLCL2 have genetic relation with that health problem ?
(Q12152,P2293,Q18037015)
action is_in
entity Q18037015
action find
entity Q12152
relation P2293
['Q12152', 'P2293', 'Q18037015']
ASK WHERE { resource:Q12152 property:P2293 resource:Q18037015 }
myocardial infarction PLCL2
action is_in
entity PLCL2
action find
entity myocardial infarction
relation genetic association
['myocardial infarction', 'genetic association', 'PLCL2']
ASK WHERE { resource:myocardial_infarction property:genetic_association resource:PLCL2 }
[]
nucleic acid sequence
SYSTEM
YES
(Q12152,P2293,Q18037015)
action is_in
entity Q18037015
action find
entity Q12152
relation P2293
[ANSWER]
['Q12152', 'P2293', 'Q18037015']
ASK WHERE { resource:Q12152 property:P2293 resource:Q18037015 }
Yes
action is_in
entity PLCL2
action find
entity myocardial infarction
relation genetic association
['myocardial infarction', 'genetic association', 'PLCL2']
ASK WHERE { resource:myocardial_infarction property:genetic_association resource:PLCL2 }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1369020
P921
Q2057971 Q838948 Q386724
USER
How many health problems were the main subjects of approximately the same number of works of art and works 's work as von Economo's disease ?
(c(Q838948)|c(Q386724),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q1369020
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?p WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P921 resource:Q1369020 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q386724 } } } } . FILTER ( ?k = ?x ) }
von Economo's disease
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action find_reverse_tuple_counts
relation main subject
type health problem
type work
action count
action filter_multi_types
action find_reverse
entity von Economo's disease
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?p WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:main_subject resource:von_Economo's_disease . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:work } } } } . FILTER ( ?k = ?x ) }
[]
health problem work of art work
SYSTEM
97
Q19001421 Q868137 Q748309 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 Q180913 Q1369020 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q41571 Q3025883 Q181257 Q8277 Q30953 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(Q838948)|c(Q386724),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q1369020
relation P921
type Q838948
type Q386724
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?p WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P921 resource:Q1369020 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q386724 } } } } . FILTER ( ?k = ?x ) }
Flavivirus infectious disease coccidioidomycosis Problem gambling 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 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 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
97
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action find_reverse_tuple_counts
relation main subject
type health problem
type work
action count
action filter_multi_types
action find_reverse
entity von Economo's disease
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?p WHERE { ?m rdf:type ?r . VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:main_subject resource:von_Economo's_disease . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:work } } } } . FILTER ( ?k = ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q131755
P921
Q2057971 Q838948 Q386724
USER
And also tell me about bipolar disorder?
(c(Q838948)|c(Q386724),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131755
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:P921 ?r . ?r rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q838948 } UNION { ?g property:P921 ?r . ?r rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q386724 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q386724 } } . ?h property:P921 resource:Q131755 } } . FILTER ( ?p = ?w ) }
bipolar disorder
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action find_reverse_tuple_counts
relation main subject
type health problem
type work
action count
action filter_multi_types
action find_reverse
entity bipolar disorder
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:main_subject ?r . ?r rdf:type ontology:health_problem . ?g rdf:type ontology:work_of_art } UNION { ?g property:main_subject ?r . ?r rdf:type ontology:health_problem . ?g rdf:type ontology:work } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:work } } . ?h property:main_subject resource:bipolar_disorder } } . FILTER ( ?p = ?w ) }
[]
health problem work of art work
SYSTEM
97
Q19001421 Q868137 Q748309 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 Q180913 Q1369020 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q41571 Q3025883 Q181257 Q8277 Q30953 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(Q838948)|c(Q386724),P921,c(Q2057971))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q838948
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131755
relation P921
type Q838948
type Q386724
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:P921 ?r . ?r rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q838948 } UNION { ?g property:P921 ?r . ?r rdf:type ontology:Q2057971 . ?g rdf:type ontology:Q386724 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q386724 } } . ?h property:P921 resource:Q131755 } } . FILTER ( ?p = ?w ) }
Flavivirus infectious disease coccidioidomycosis Problem gambling 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 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 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
97
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type work of art
action find_reverse_tuple_counts
relation main subject
type health problem
type work
action count
action filter_multi_types
action find_reverse
entity bipolar disorder
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?r WHERE { { ?g property:main_subject ?r . ?r rdf:type ontology:health_problem . ?g rdf:type ontology:work_of_art } UNION { ?g property:main_subject ?r . ?r rdf:type ontology:health_problem . ?g rdf:type ontology:work } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:work } } . ?h property:main_subject resource:bipolar_disorder } } . FILTER ( ?p = ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P828
Q2057971 Q2057971 Q3839081
USER
How many health problems are the underlying cause of exactly 2 health problems and disasters ?
(c(Q2057971)|c(Q3839081),P828,c(Q2057971))
action count
action equal
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
value 2
[[{'concept': 'Q2057971'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:Q2057971 ) ( ontology:Q3839081 ) } . ?g rdf:type ?j } GROUP BY ?t } . FILTER ( ?r = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type health problem
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
value 2
[[{'concept': 'health problem'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:health_problem ) ( ontology:disaster ) } . ?g rdf:type ?j } GROUP BY ?t } . FILTER ( ?r = 2 ) }
[]
health problem health problem disaster
SYSTEM
6
Q18642366 Q147778 Q155857 Q5384031 Q12206 Q12195
(c(Q2057971)|c(Q3839081),P828,c(Q2057971))
action count
action equal
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
value 2
[ANSWER]
[[{'concept': 'Q2057971'}, {'concept': 'Q3839081'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:Q2057971 ) ( ontology:Q3839081 ) } . ?g rdf:type ?j } GROUP BY ?t } . FILTER ( ?r = 2 ) }
intoxication liver cirrhosis rubella Epstein–Barr virus infection diabetes mellitus poliomyelitis
6
action count
action equal
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type health problem
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
value 2
[[{'concept': 'health problem'}, {'concept': 'disaster'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?j ) { ( ontology:health_problem ) ( ontology:disaster ) } . ?g rdf:type ?j } GROUP BY ?t } . FILTER ( ?r = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1542
Q12136 Q2057971 Q2057971
USER
How many health problems are the cause of around 4 diseases or health problems ?
(c(Q2057971),P1542,c(Q12136)|c(Q2057971))
action count
action approx
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_tuple_counts
relation P1542
type Q2057971
type Q2057971
value 4
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?t ) { ( ontology:Q2057971 ) ( ontology:Q12136 ) } . ?k rdf:type ?t } GROUP BY ?h } . FILTER ( ?x = 4 ) }
action count
action approx
action union
action find_tuple_counts
relation cause of
type health problem
type disease
action find_tuple_counts
relation cause of
type health problem
type health problem
value 4
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?t ) { ( ontology:health_problem ) ( ontology:disease ) } . ?k rdf:type ?t } GROUP BY ?h } . FILTER ( ?x = 4 ) }
[]
disease health problem health problem
SYSTEM
1
Q12206
(c(Q2057971),P1542,c(Q12136)|c(Q2057971))
action count
action approx
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q12136
action find_tuple_counts
relation P1542
type Q2057971
type Q2057971
value 4
[ANSWER]
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q12136'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?t ) { ( ontology:Q2057971 ) ( ontology:Q12136 ) } . ?k rdf:type ?t } GROUP BY ?h } . FILTER ( ?x = 4 ) }
diabetes mellitus
1
action count
action approx
action union
action find_tuple_counts
relation cause of
type health problem
type disease
action find_tuple_counts
relation cause of
type health problem
type health problem
value 4
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disease'}, {'concept': 'health problem'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?h WHERE { VALUES ( ?t ) { ( ontology:health_problem ) ( ontology:disease ) } . ?k rdf:type ?t } GROUP BY ?h } . FILTER ( ?x = 4 ) }
[]