Simple Question (Direct)
Simple Question
Q310845
P106
Q12737077
USER
What do Akio Morita do for a living ?
(Q310845,P106,c(Q12737077))
action filter_type
action find
entity Q310845
relation P106
type Q12737077
['Q310845', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q310845 property:P106 ?t }
Akio Morita
action filter_type
action find
entity Akio Morita
relation occupation
type occupation
['Akio Morita', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Akio_Morita property:occupation ?t }
[]
occupation
Q81096 Q43845
SYSTEM
engineer, businessperson
Q81096 Q43845
(Q310845,P106,c(Q12737077))
action filter_type
action find
entity Q310845
relation P106
type Q12737077
Akio Morita do for a living an [ANSWERS]
['Q310845', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q310845 property:P106 ?t }
engineer businessperson
Akio Morita do for a living an engineer and businessperson
engineer businessperson
action filter_type
action find
entity Akio Morita
relation occupation
type occupation
['Akio Morita', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Akio_Morita property:occupation ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q310845
P112
Q43229
USER
Which organization was founded by Akio Morita ?
(c(Q43229),P112,Q310845)
action filter_type
action find_reverse
entity Q310845
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q310845']
SELECT DISTINCT ?w WHERE { ?w property:P112 resource:Q310845 . ?w rdf:type ontology:Q43229 }
Akio Morita
action filter_type
action find_reverse
entity Akio Morita
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Akio Morita']
SELECT DISTINCT ?w WHERE { ?w property:founder resource:Akio_Morita . ?w rdf:type ontology:organization }
[]
organization
Q41187
SYSTEM
Sony
Q41187
(c(Q43229),P112,Q310845)
action filter_type
action find_reverse
entity Q310845
relation P112
type Q43229
[ANSWER] was founded by Akio Morita
[{'concept': 'Q43229'}, 'P112', 'Q310845']
SELECT DISTINCT ?w WHERE { ?w property:P112 resource:Q310845 . ?w rdf:type ontology:Q43229 }
Sony
Sony was founded by Akio Morita
Sony
action filter_type
action find_reverse
entity Akio Morita
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Akio Morita']
SELECT DISTINCT ?w WHERE { ?w property:founder resource:Akio_Morita . ?w rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q310845
P509
Q2057971
USER
Which health problem was the cause of death of that person ?
(Q41187,P509,c(Q2057971))
action filter_type
action find
entity Q310845
relation P509
type Q2057971
['Q41187', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q310845 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
Akio Morita
action filter_type
action find
entity Akio Morita
relation cause of death
type health problem
['Sony', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Akio_Morita property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q41187,P509,c(Q2057971))
action filter_type
action find
entity Q310845
relation P509
type Q2057971
The [ANSWER] was the cause of death of that person
['Q41187', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?o WHERE { resource:Q310845 property:P509 ?o . ?o rdf:type ontology:Q2057971 }
pneumonia
The pneumonia was the cause of death of that person
pneumonia
action filter_type
action find
entity Akio Morita
relation cause of death
type health problem
['Sony', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?o WHERE { resource:Akio_Morita property:cause_of_death ?o . ?o rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12192 Q420394 Q976559
P2176
Q8386
USER
Does pneumonia require sucralfate and Sparfloxacin to be prescribed ?
(Q12192,P2176,Q420394) (Q12192,P2176,Q976559)
action is_in
entity Q12192
action intersection
action find_reverse
entity Q420394
relation P2176
action find_reverse
entity Q976559
relation P2176
['Q12192', 'P2176', 'Q420394'] ['Q12192', 'P2176', 'Q976559']
ASK WHERE { resource:Q12192 property:P2176 resource:Q420394 . resource:Q12192 property:P2176 resource:Q976559 }
pneumonia sucralfate Sparfloxacin
action is_in
entity pneumonia
action intersection
action find_reverse
entity sucralfate
relation drug used for treatment
action find_reverse
entity Sparfloxacin
relation drug used for treatment
['pneumonia', 'drug used for treatment', 'sucralfate'] ['pneumonia', 'drug used for treatment', 'Sparfloxacin']
ASK WHERE { resource:pneumonia property:drug_used_for_treatment resource:sucralfate . resource:pneumonia property:drug_used_for_treatment resource:Sparfloxacin }
[]
drug
SYSTEM
YES
(Q12192,P2176,Q420394) (Q12192,P2176,Q976559)
action is_in
entity Q12192
action intersection
action find_reverse
entity Q420394
relation P2176
action find_reverse
entity Q976559
relation P2176
[ANSWER]
['Q12192', 'P2176', 'Q420394'] ['Q12192', 'P2176', 'Q976559']
ASK WHERE { resource:Q12192 property:P2176 resource:Q420394 . resource:Q12192 property:P2176 resource:Q976559 }
Yes
action is_in
entity pneumonia
action intersection
action find_reverse
entity sucralfate
relation drug used for treatment
action find_reverse
entity Sparfloxacin
relation drug used for treatment
['pneumonia', 'drug used for treatment', 'sucralfate'] ['pneumonia', 'drug used for treatment', 'Sparfloxacin']
ASK WHERE { resource:pneumonia property:drug_used_for_treatment resource:sucralfate . resource:pneumonia property:drug_used_for_treatment resource:Sparfloxacin }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q378681
P780
Q2057971 Q1441305 Q2057971
USER
How many health problems does presence of more number of health problems or medical signs indicate than peripheral artery disease ?
(c(Q2057971),P780,c(Q2057971)|c(Q1441305))
action count
action greater
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q378681
relation P780
type Q2057971
type Q1441305
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q378681 property:P780 ?c . { { ?c rdf:type ontology:Q2057971 } UNION { ?c rdf:type ontology:Q1441305 } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?g WHERE { VALUES ( ?h ) { ( ontology:Q2057971 ) ( ontology:Q1441305 ) } . ?d rdf:type ?h } GROUP BY ?g } }
peripheral artery disease
action count
action greater
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity peripheral artery disease
relation symptoms
type health problem
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:peripheral_artery_disease property:symptoms ?c . { { ?c rdf:type ontology:health_problem } UNION { ?c rdf:type ontology:medical_sign } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?g WHERE { VALUES ( ?h ) { ( ontology:health_problem ) ( ontology:medical_sign ) } . ?d rdf:type ?h } GROUP BY ?g } }
[]
health problem medical sign health problem
SYSTEM
27
Q2583514 Q131755 Q7688951 Q48143 Q719656 Q3508705 Q1198391 Q190564 Q156103 Q10529545 Q209733 Q8071861 Q207133 Q1077603 Q174651 Q4421929 Q326648 Q30953 Q212961 Q47912 Q264118 Q221668 Q1981276 Q133087 Q335555 Q180664 Q2840
(c(Q2057971),P780,c(Q2057971)|c(Q1441305))
action count
action greater
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q378681
relation P780
type Q2057971
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:Q378681 property:P780 ?c . { { ?c rdf:type ontology:Q2057971 } UNION { ?c rdf:type ontology:Q1441305 } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?g WHERE { VALUES ( ?h ) { ( ontology:Q2057971 ) ( ontology:Q1441305 ) } . ?d rdf:type ?h } GROUP BY ?g } }
Argentine hemorrhagic fever bipolar disorder Taussig–Bing syndrome meningitis fascioliasis Timothy syndrome intracranial aneurysm Huntington's disease gastroenteritis hyperandrogenism chronic fatigue syndrome Zika fever Klinefelter's syndrome malignant mesothelioma Bálint's syndrome Hippocampal sclerosis Salmonellosis dengue fever pancreatic cancer lung cancer acute myeloid leukemia acute cystitis neuroendocrine tumor gout Sjögren's syndrome acute lymphocytic leukemia influenza
27
action count
action greater
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity peripheral artery disease
relation symptoms
type health problem
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { resource:peripheral_artery_disease property:symptoms ?c . { { ?c rdf:type ontology:health_problem } UNION { ?c rdf:type ontology:medical_sign } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?g WHERE { VALUES ( ?h ) { ( ontology:health_problem ) ( ontology:medical_sign ) } . ?d rdf:type ?h } GROUP BY ?g } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q145790
P780
Q2057971 Q1441305 Q2057971
USER
And also tell me about iridocyclitis?
(c(Q2057971),P780,c(Q2057971)|c(Q1441305))
action count
action greater
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q145790
relation P780
type Q2057971
type Q1441305
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?z ) WHERE { { ?g rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2057971 . ?g property:P780 ?e } UNION { ?g property:P780 ?e . ?g rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q1441305 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q145790 property:P780 ?h . { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2057971 ) ( ontology:Q1441305 ) } } } } . FILTER ( ?z > ?y ) }
iridocyclitis
action count
action greater
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity iridocyclitis
relation symptoms
type health problem
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?z ) WHERE { { ?g rdf:type ontology:health_problem . ?e rdf:type ontology:health_problem . ?g property:symptoms ?e } UNION { ?g property:symptoms ?e . ?g rdf:type ontology:health_problem . ?e rdf:type ontology:medical_sign } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:iridocyclitis property:symptoms ?h . { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:health_problem ) ( ontology:medical_sign ) } } } } . FILTER ( ?z > ?y ) }
[]
health problem medical sign health problem
SYSTEM
27
Q2583514 Q131755 Q7688951 Q48143 Q719656 Q3508705 Q1198391 Q190564 Q156103 Q10529545 Q209733 Q8071861 Q207133 Q1077603 Q174651 Q4421929 Q326648 Q30953 Q212961 Q47912 Q264118 Q221668 Q1981276 Q133087 Q335555 Q180664 Q2840
(c(Q2057971),P780,c(Q2057971)|c(Q1441305))
action count
action greater
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q145790
relation P780
type Q2057971
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?z ) WHERE { { ?g rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q2057971 . ?g property:P780 ?e } UNION { ?g property:P780 ?e . ?g rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q1441305 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q145790 property:P780 ?h . { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2057971 ) ( ontology:Q1441305 ) } } } } . FILTER ( ?z > ?y ) }
Argentine hemorrhagic fever bipolar disorder Taussig–Bing syndrome meningitis fascioliasis Timothy syndrome intracranial aneurysm Huntington's disease gastroenteritis hyperandrogenism chronic fatigue syndrome Zika fever Klinefelter's syndrome malignant mesothelioma Bálint's syndrome Hippocampal sclerosis Salmonellosis dengue fever pancreatic cancer lung cancer acute myeloid leukemia acute cystitis neuroendocrine tumor gout Sjögren's syndrome acute lymphocytic leukemia influenza
27
action count
action greater
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity iridocyclitis
relation symptoms
type health problem
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?z ) WHERE { { ?g rdf:type ontology:health_problem . ?e rdf:type ontology:health_problem . ?g property:symptoms ?e } UNION { ?g property:symptoms ?e . ?g rdf:type ontology:health_problem . ?e rdf:type ontology:medical_sign } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:iridocyclitis property:symptoms ?h . { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:health_problem ) ( ontology:medical_sign ) } } } } . FILTER ( ?z > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q858145
P828
Q2057971 Q3839081
USER
How many disasters do around the same number of health problems cause as Space Shuttle Challenger disaster ?
(c(Q3839081),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q858145
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?h ) WHERE { ?q property:P828 ?c . ?c rdf:type ontology:Q2057971 . ?q rdf:type ontology:Q3839081 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q858145 property:P828 ?d . ?d rdf:type ontology:Q3839081 } } . FILTER ( ?h = ?r ) }
Space Shuttle Challenger disaster
action count
action approx
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Space Shuttle Challenger disaster
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?h ) WHERE { ?q property:has_cause ?c . ?c rdf:type ontology:health_problem . ?q rdf:type ontology:disaster } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Space_Shuttle_Challenger_disaster property:has_cause ?d . ?d rdf:type ontology:disaster } } . FILTER ( ?h = ?r ) }
[]
health problem disaster
SYSTEM
20
Q783597 Q671297 Q1582992 Q18147604 Q5150534 Q4919790 Q3960716 Q251039 Q171178 Q858734 Q7672526 Q977367 Q223288 Q2475745 Q11890853 Q11971365 Q8068 Q381183 Q5587844 Q858145
(c(Q3839081),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q858145
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?h ) WHERE { ?q property:P828 ?c . ?c rdf:type ontology:Q2057971 . ?q rdf:type ontology:Q3839081 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q858145 property:P828 ?d . ?d rdf:type ontology:Q3839081 } } . FILTER ( ?h = ?r ) }
American Airlines Flight 1420 1983 West Bank fainting epidemic Tanganyika laughter epidemic Aero Flight 217 Comandante Ferraz Antarctic Base fire Thai Airways International Flight 311 Silvertown explosion US Airways Flight 1549 Fukushima nuclear accident Superga air disaster TWA Flight 841 chemical accident Tenerife airport disaster Siberia Airlines Flight 1812 1978 Finnish Air Force DC-3 crash Førdesveten plane crash flood Aero Flight 311 Gothenburg discothèque fire Space Shuttle Challenger disaster
20
action count
action approx
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Space Shuttle Challenger disaster
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?h ) WHERE { ?q property:has_cause ?c . ?c rdf:type ontology:health_problem . ?q rdf:type ontology:disaster } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Space_Shuttle_Challenger_disaster property:has_cause ?d . ?d rdf:type ontology:disaster } } . FILTER ( ?h = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q4919790
P828
Q2057971 Q3839081
USER
And how about Thai Airways International Flight 311?
(c(Q3839081),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q4919790
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?p ) WHERE { ?x property:P828 ?s . ?x rdf:type ontology:Q3839081 . ?s rdf:type ontology:Q2057971 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:Q3839081 . resource:Q4919790 property:P828 ?a } } . FILTER ( ?p = ?y ) }
Thai Airways International Flight 311
action count
action approx
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Thai Airways International Flight 311
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?p ) WHERE { ?x property:has_cause ?s . ?x rdf:type ontology:disaster . ?s rdf:type ontology:health_problem } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:disaster . resource:Thai_Airways_International_Flight_311 property:has_cause ?a } } . FILTER ( ?p = ?y ) }
[]
health problem disaster
SYSTEM
20
Q783597 Q671297 Q1582992 Q18147604 Q5150534 Q4919790 Q3960716 Q251039 Q171178 Q858734 Q7672526 Q977367 Q223288 Q2475745 Q11890853 Q11971365 Q8068 Q381183 Q5587844 Q858145
(c(Q3839081),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q4919790
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?p ) WHERE { ?x property:P828 ?s . ?x rdf:type ontology:Q3839081 . ?s rdf:type ontology:Q2057971 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:Q3839081 . resource:Q4919790 property:P828 ?a } } . FILTER ( ?p = ?y ) }
American Airlines Flight 1420 1983 West Bank fainting epidemic Tanganyika laughter epidemic Aero Flight 217 Comandante Ferraz Antarctic Base fire Thai Airways International Flight 311 Silvertown explosion US Airways Flight 1549 Fukushima nuclear accident Superga air disaster TWA Flight 841 chemical accident Tenerife airport disaster Siberia Airlines Flight 1812 1978 Finnish Air Force DC-3 crash Førdesveten plane crash flood Aero Flight 311 Gothenburg discothèque fire Space Shuttle Challenger disaster
20
action count
action approx
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Thai Airways International Flight 311
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?p ) WHERE { ?x property:has_cause ?s . ?x rdf:type ontology:disaster . ?s rdf:type ontology:health_problem } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { ?a rdf:type ontology:disaster . resource:Thai_Airways_International_Flight_311 property:has_cause ?a } } . FILTER ( ?p = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q41187 Q2292116
P1454
Q2712963
USER
How many abstract nouns represent the legal form of Sony or SkiWelt ?
(Q41187,P1454,c(Q2712963)) (Q2292116,P1454,c(Q2712963))
action count
action union
action filter_type
action find
entity Q41187
relation P1454
type Q2712963
action filter_type
action find
entity Q2292116
relation P1454
type Q2712963
['Q41187', 'P1454', {'concept': 'Q2712963'}] ['Q2292116', 'P1454', {'concept': 'Q2712963'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { resource:Q41187 property:P1454 ?h . ?h rdf:type ontology:Q2712963 } UNION { ?h rdf:type ontology:Q2712963 . resource:Q2292116 property:P1454 ?h } }
Sony SkiWelt
action count
action union
action filter_type
action find
entity Sony
relation legal form
type abstract noun
action filter_type
action find
entity SkiWelt
relation legal form
type abstract noun
['Sony', 'legal form', {'concept': 'abstract noun'}] ['SkiWelt', 'legal form', {'concept': 'abstract noun'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { resource:Sony property:legal_form ?h . ?h rdf:type ontology:abstract_noun } UNION { ?h rdf:type ontology:abstract_noun . resource:SkiWelt property:legal_form ?h } }
[]
abstract noun
SYSTEM
2
Q134161 Q1480166
(Q41187,P1454,c(Q2712963)) (Q2292116,P1454,c(Q2712963))
action count
action union
action filter_type
action find
entity Q41187
relation P1454
type Q2712963
action filter_type
action find
entity Q2292116
relation P1454
type Q2712963
[ANSWER]
['Q41187', 'P1454', {'concept': 'Q2712963'}] ['Q2292116', 'P1454', {'concept': 'Q2712963'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { resource:Q41187 property:P1454 ?h . ?h rdf:type ontology:Q2712963 } UNION { ?h rdf:type ontology:Q2712963 . resource:Q2292116 property:P1454 ?h } }
joint-stock company kabushiki gaisha
2
action count
action union
action filter_type
action find
entity Sony
relation legal form
type abstract noun
action filter_type
action find
entity SkiWelt
relation legal form
type abstract noun
['Sony', 'legal form', {'concept': 'abstract noun'}] ['SkiWelt', 'legal form', {'concept': 'abstract noun'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { resource:Sony property:legal_form ?h . ?h rdf:type ontology:abstract_noun } UNION { ?h rdf:type ontology:abstract_noun . resource:SkiWelt property:legal_form ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3505252
P828
Q3249551 Q2057971
USER
Which processes causes lesser number of health problems than drug overdose ?
(c(Q2057971),P828,c(Q3249551))
action less
action find_reverse_tuple_counts
relation P828
type Q3249551
type Q2057971
action count
action filter_type
action find_reverse
entity Q3505252
relation P828
type Q2057971
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q3249551'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P828 ?q . ?q rdf:type ontology:Q3249551 . ?p rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P828 resource:Q3505252 . ?l rdf:type ontology:Q2057971 } } }
drug overdose
action less
action find_reverse_tuple_counts
relation has cause
type process
type health problem
action count
action filter_type
action find_reverse
entity drug overdose
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'process'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:has_cause ?q . ?q rdf:type ontology:process . ?p rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:has_cause resource:drug_overdose . ?l rdf:type ontology:health_problem } } }
[]
process health problem
Q419978 Q42918 Q3196
SYSTEM
accretion, mutation, fire
Q419978 Q42918 Q3196
(c(Q2057971),P828,c(Q3249551))
action less
action find_reverse_tuple_counts
relation P828
type Q3249551
type Q2057971
action count
action filter_type
action find_reverse
entity Q3505252
relation P828
type Q2057971
[ANSWERS] cause lesser number of health problems than drug overdose
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q3249551'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P828 ?q . ?q rdf:type ontology:Q3249551 . ?p rdf:type ontology:Q2057971 } GROUP BY ?q } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P828 resource:Q3505252 . ?l rdf:type ontology:Q2057971 } } }
accretion mutation fire
Accretion, mutation and fire cause lesser number of health problems than drug overdose
accretion mutation fire
action less
action find_reverse_tuple_counts
relation has cause
type process
type health problem
action count
action filter_type
action find_reverse
entity drug overdose
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'process'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:has_cause ?q . ?q rdf:type ontology:process . ?p rdf:type ontology:health_problem } GROUP BY ?q } . FILTER ( ?y < ?i ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:has_cause resource:drug_overdose . ?l rdf:type ontology:health_problem } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42918
P1542
Q1150070
USER
What is the effect of that process ?
(Q42918,P1542,c(Q1150070))
action filter_type
action find
entity Q42918
relation P1542
type Q1150070
['Q42918', 'P1542', {'concept': 'Q1150070'}]
SELECT DISTINCT ?u WHERE { resource:Q42918 property:P1542 ?u . ?u rdf:type ontology:Q1150070 }
mutation
action filter_type
action find
entity mutation
relation cause of
type change
['mutation', 'cause of', {'concept': 'change'}]
SELECT DISTINCT ?u WHERE { resource:mutation property:cause_of ?u . ?u rdf:type ontology:change }
[]
change
Clarification for simple ques.
Q3196
SYSTEM
Did you mean fire ?
Q419978 Q42918 Q3196
(Q419978,P1542,c(Q1150070)) (Q42918,P1542,c(Q1150070)) (Q3196,P1542,c(Q1150070))
[ANSWER]
['Q419978', 'P1542', {'concept': 'Q1150070'}] ['Q42918', 'P1542', {'concept': 'Q1150070'}] ['Q3196', 'P1542', {'concept': 'Q1150070'}]
SELECT DISTINCT ?u WHERE { resource:Q42918 property:P1542 ?u . ?u rdf:type ontology:Q1150070 }
accretion mutation fire
Did you mean fire ?
fire
['accretion', 'cause of', {'concept': 'change'}] ['mutation', 'cause of', {'concept': 'change'}] ['fire', 'cause of', {'concept': 'change'}]
SELECT DISTINCT ?u WHERE { resource:mutation property:cause_of ?u . ?u rdf:type ontology:change }
[]
Simple Question (Coreferenced)
USER
No, I meant mutation. Could you tell me the answer for that?
(Q42918,P1542,c(Q1150070))
Q42918
['Q42918', 'P1542', {'concept': 'Q1150070'}]
['mutation', 'cause of', {'concept': 'change'}]
[]
Q1063
SYSTEM
evolution
Q1063
(Q42918,P1542,c(Q1150070))
action filter_type
action find
entity Q42918
relation P1542
type Q1150070
The effect of that process is that [ANSWER]
['Q42918', 'P1542', {'concept': 'Q1150070'}]
SELECT DISTINCT ?u WHERE { resource:Q42918 property:P1542 ?u . ?u rdf:type ontology:Q1150070 }
evolution
The effect of that process is that evolution
evolution
action filter_type
action find
entity mutation
relation cause of
type change
['mutation', 'cause of', {'concept': 'change'}]
SELECT DISTINCT ?u WHERE { resource:mutation property:cause_of ?u . ?u rdf:type ontology:change }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12078 Q145790
P2176
Q8386
USER
Which drugs are used as an antidote for iridocyclitis or cancer ?
OR((Q145790,P2176,c(Q8386)), (Q12078,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q145790
relation P2176
action find
entity Q12078
relation P2176
type Q8386
{'OR': [['Q145790', 'P2176', {'concept': 'Q8386'}], ['Q12078', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:P2176 ?l . VALUES ( ?u ) { ( resource:Q145790 ) ( resource:Q12078 ) } } . ?l rdf:type ontology:Q8386 }
cancer iridocyclitis
action filter_type
action union
action find
entity iridocyclitis
relation drug used for treatment
action find
entity cancer
relation drug used for treatment
type drug
{'OR': [['iridocyclitis', 'drug used for treatment', {'concept': 'drug'}], ['cancer', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:drug_used_for_treatment ?l . VALUES ( ?u ) { ( resource:iridocyclitis ) ( resource:cancer ) } } . ?l rdf:type ontology:drug }
[]
drug
Q186969 Q4689286 Q417555 Q4882925 Q5134875 Q422252 Q417824 Q1592932 Q7699074 Q420164
SYSTEM
Some of them are ibuprofen, Aflibercept, teniposide, Belinostat, clofarabine, dexamethasone, gefitinib, Pegfilgrastim, temsirolimus, Alemtuzumab
Q5186964 Q419319 Q15366934 Q11711607 Q419940 Q418702 Q417296 Q412534 Q4689286 Q420164 Q5134875 Q3891664 Q408801 Q3611854 Q139347 Q20801757 Q4882925 Q29310 Q216935 Q186969 Q1592932 Q4567614 Q417222 Q420207 Q422232 Q190012 Q894611 Q412616 Q412323 Q5303688 Q415869 Q422252 Q421052 Q4391540 Q7083106 Q5984881 Q417775 Q424972 Q407541 Q3151081 Q241150 Q905901 Q1181878 Q1996756 Q425470 Q11426176 Q418819 Q238512 Q7699074 Q905835 Q21011233 Q4830631 Q384295 Q413299 Q417555 Q337188 Q420296 Q7739 Q422222 Q32089 Q422112 Q2178381 Q419394 Q2459042 Q412486 Q417824 Q412963 Q963093 Q421862 Q423111 Q13896859 Q6808975 Q5383794 Q1235195 Q410352 Q240642 Q423417 Q2070286 Q423762 Q423989
OR((Q145790,P2176,c(Q8386)), (Q12078,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q145790
relation P2176
action find
entity Q12078
relation P2176
type Q8386
[ANSWERS] are used as an antidote for iridocyclitis or cancer
{'OR': [['Q145790', 'P2176', {'concept': 'Q8386'}], ['Q12078', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:P2176 ?l . VALUES ( ?u ) { ( resource:Q145790 ) ( resource:Q12078 ) } } . ?l rdf:type ontology:Q8386 }
crizotinib Bortezomib carfilzomib Ixabepilone dasatinib Basiliximab febuxostat carvedilol Aflibercept Alemtuzumab clofarabine regorafenib celecoxib alitretinoin Cholecalciferol Secretin Belinostat tropicamide lidocaine ibuprofen Pegfilgrastim mycophenolate mofetil methylprednisolone capecitabine methotrexate adenosine bosutinib Trastuzumab Rituximab doxercalciferol carmustine dexamethasone Everolimus Interferon Alfa-2b, Recombinant olaparib ibrutinib Panitumumab prednisone fentanyl Filgrastim aminoglutethimide vorinostat decitabine enzalutamide pentostatin prednisolone exemestane 5-fluorouracil temsirolimus plerixafor ceritinib axitinib gemfibrozil Bevacizumab teniposide scopolamine Cetuximab Arsenic trioxide Digoxin Sirolimus methylphenidate Darbepoetin alfa sevoflurane Ipilimumab allopurinol gefitinib cabazitaxel sulindac ribavirin vemurafenib Pembrolizumab megestrol acetate Epoetin alfa Romiplostim gabapentin valproic acid Imiquimod vismodegib Paclitaxel diethylstilbestrol
Ibuprofen, Aflibercept, teniposide, Belinostat, clofarabine, dexamethasone, gefitinib, Pegfilgrastim, temsirolimus and Alemtuzumab are used as an antidote for iridocyclitis or cancer
ibuprofen Aflibercept teniposide Belinostat clofarabine dexamethasone gefitinib Pegfilgrastim temsirolimus Alemtuzumab
action filter_type
action union
action find
entity iridocyclitis
relation drug used for treatment
action find
entity cancer
relation drug used for treatment
type drug
{'OR': [['iridocyclitis', 'drug used for treatment', {'concept': 'drug'}], ['cancer', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:drug_used_for_treatment ?l . VALUES ( ?u ) { ( resource:iridocyclitis ) ( resource:cancer ) } } . ?l rdf:type ontology:drug }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q12133
P2175
Q12136 Q8386
USER
How many diseases are treated with approximately the same number of drugs as deafness ?
(c(Q8386),P2175,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
action count
action filter_type
action find
entity Q12133
relation P2175
type Q12136
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P2175 ?g . ?u rdf:type ontology:Q8386 . ?g rdf:type ontology:Q12136 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q12136 . resource:Q12133 property:P2175 ?o } } . FILTER ( ?v = ?i ) }
deafness
action count
action approx
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
action count
action filter_type
action find
entity deafness
relation medical condition treated
type disease
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:medical_condition_treated ?g . ?u rdf:type ontology:drug . ?g rdf:type ontology:disease } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:disease . resource:deafness property:medical_condition_treated ?o } } . FILTER ( ?v = ?i ) }
[]
disease drug
SYSTEM
39
Q1467339 Q2200381 Q167844 Q1444550 Q7514772 Q18555060 Q1935832 Q917620 Q988594 Q1415275 Q1956718 Q815753 Q854353 Q18554891 Q1148337 Q627368 Q1363738 Q4138762 Q852163 Q2915477 Q133212 Q127664 Q110315 Q3726949 Q86 Q4117658 Q2067267 Q18554341 Q189331 Q304497 Q23772742 Q12133 Q6029216 Q1068134 Q4118092 Q7616509 Q1996053 Q3072083 Q1283303
(c(Q8386),P2175,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
action count
action filter_type
action find
entity Q12133
relation P2175
type Q12136
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:P2175 ?g . ?u rdf:type ontology:Q8386 . ?g rdf:type ontology:Q12136 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q12136 . resource:Q12133 property:P2175 ?o } } . FILTER ( ?v = ?i ) }
hypertriglyceridemia Neurogenic shock conjunctivitis ischaemic heart disease Silent stroke arteriosclerotic cardiovascular disease neurofibromatosis type II Onychomycosis eczema Spinal cord injury Becker myotonia filariasis enteritis squamous cell carcinoma hepatocellular carcinoma Blastomycosis Erythema nodosum Hypovitaminosis D lower back pain Folate deficiency tumor Febrile seizure lead poisoning episcleritis headache inflammatory myopathy Niemann–Pick disease, type C hepatic coma cardiac dysrhythmia Hemiplegia Bacteroides Infections deafness infectious bone disease Morning sickness Macroglobulinemia neurofibromatosis type I chronic pancreatitis memory disorder Tricuspid atresia
39
action count
action approx
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
action count
action filter_type
action find
entity deafness
relation medical condition treated
type disease
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?v ) WHERE { ?u property:medical_condition_treated ?g . ?u rdf:type ontology:drug . ?g rdf:type ontology:disease } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:disease . resource:deafness property:medical_condition_treated ?o } } . FILTER ( ?v = ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3072083
P2175
Q12136 Q8386
USER
And also tell me about memory disorder?
(c(Q8386),P2175,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
action count
action filter_type
action find
entity Q3072083
relation P2175
type Q12136
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:P2175 ?m . ?m rdf:type ontology:Q12136 . ?e rdf:type ontology:Q8386 } GROUP BY ?m } . FILTER ( ?k = ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:Q12136 . resource:Q3072083 property:P2175 ?c } } }
memory disorder
action count
action approx
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
action count
action filter_type
action find
entity memory disorder
relation medical condition treated
type disease
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:medical_condition_treated ?m . ?m rdf:type ontology:disease . ?e rdf:type ontology:drug } GROUP BY ?m } . FILTER ( ?k = ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:disease . resource:memory_disorder property:medical_condition_treated ?c } } }
[]
disease drug
SYSTEM
39
Q1467339 Q2200381 Q167844 Q1444550 Q7514772 Q18555060 Q1935832 Q917620 Q988594 Q1415275 Q1956718 Q815753 Q854353 Q18554891 Q1148337 Q627368 Q1363738 Q4138762 Q852163 Q2915477 Q133212 Q127664 Q110315 Q3726949 Q86 Q4117658 Q2067267 Q18554341 Q189331 Q304497 Q23772742 Q12133 Q6029216 Q1068134 Q4118092 Q7616509 Q1996053 Q3072083 Q1283303
(c(Q8386),P2175,c(Q12136))
action count
action approx
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
action count
action filter_type
action find
entity Q3072083
relation P2175
type Q12136
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:P2175 ?m . ?m rdf:type ontology:Q12136 . ?e rdf:type ontology:Q8386 } GROUP BY ?m } . FILTER ( ?k = ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:Q12136 . resource:Q3072083 property:P2175 ?c } } }
hypertriglyceridemia Neurogenic shock conjunctivitis ischaemic heart disease Silent stroke arteriosclerotic cardiovascular disease neurofibromatosis type II Onychomycosis eczema Spinal cord injury Becker myotonia filariasis enteritis squamous cell carcinoma hepatocellular carcinoma Blastomycosis Erythema nodosum Hypovitaminosis D lower back pain Folate deficiency tumor Febrile seizure lead poisoning episcleritis headache inflammatory myopathy Niemann–Pick disease, type C hepatic coma cardiac dysrhythmia Hemiplegia Bacteroides Infections deafness infectious bone disease Morning sickness Macroglobulinemia neurofibromatosis type I chronic pancreatitis memory disorder Tricuspid atresia
39
action count
action approx
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
action count
action filter_type
action find
entity memory disorder
relation medical condition treated
type disease
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:medical_condition_treated ?m . ?m rdf:type ontology:disease . ?e rdf:type ontology:drug } GROUP BY ?m } . FILTER ( ?k = ?a ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { ?c rdf:type ontology:disease . resource:memory_disorder property:medical_condition_treated ?c } } }
[]