Simple Question (Direct)
Simple Question
Q14950663
P1196
Q1931388
USER
What situation did Buster Brannon die in ?
(Q14950663,P1196,c(Q1931388))
action filter_type
action find
entity Q14950663
relation P1196
type Q1931388
['Q14950663', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1931388 . resource:Q14950663 property:P1196 ?q }
Buster Brannon
action filter_type
action find
entity Buster Brannon
relation manner of death
type cause of death
['Buster Brannon', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:cause_of_death . resource:Buster_Brannon property:manner_of_death ?q }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q14950663,P1196,c(Q1931388))
action filter_type
action find
entity Q14950663
relation P1196
type Q1931388
Buster Brannon died of [ANSWER]
['Q14950663', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1931388 . resource:Q14950663 property:P1196 ?q }
natural causes
Buster Brannon died of natural causes
natural causes
action filter_type
action find
entity Buster Brannon
relation manner of death
type cause of death
['Buster Brannon', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:cause_of_death . resource:Buster_Brannon property:manner_of_death ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14950663
P509
Q2057971
USER
What lead to the death of that person ?
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q14950663
relation P509
type Q2057971
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q14950663 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
Buster Brannon
action filter_type
action find
entity Buster Brannon
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:Buster_Brannon property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q14950663
relation P509
type Q2057971
[ANSWER] lead to the death of that person
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { resource:Q14950663 property:P509 ?b . ?b rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction lead to the death of that person
myocardial infarction
action filter_type
action find
entity Buster Brannon
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { resource:Buster_Brannon property:cause_of_death ?b . ?b rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14950663
P21
Q290
USER
What is the sex of that person ?
(Q12152,P21,c(Q290))
action filter_type
action find
entity Q14950663
relation P21
type Q290
['Q12152', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q14950663 property:P21 ?h . ?h rdf:type ontology:Q290 }
Buster Brannon
action filter_type
action find
entity Buster Brannon
relation gender
type sex
['myocardial infarction', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Buster_Brannon property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12152,P21,c(Q290))
action filter_type
action find
entity Q14950663
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q12152', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q14950663 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Buster Brannon
relation gender
type sex
['myocardial infarction', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Buster_Brannon property:gender ?h . ?h rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18554306
P828
Q796194 Q10675206 Q2057971
USER
How many health problems are caused by greater number of medical procedures or ingredients than endocrine exophthalmos ?
(c(Q2057971),P828,c(Q796194)|c(Q10675206))
action count
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q796194
action find_tuple_counts
relation P828
type Q2057971
type Q10675206
action count
action filter_multi_types
action find
entity Q18554306
relation P828
type Q796194
type Q10675206
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q796194'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?t WHERE { VALUES ( ?h ) { ( ontology:Q796194 ) ( ontology:Q10675206 ) } . ?v rdf:type ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { { ?a rdf:type ontology:Q796194 } UNION { ?a rdf:type ontology:Q10675206 } } . resource:Q18554306 property:P828 ?a } } . FILTER ( ?n > ?b ) }
endocrine exophthalmos
action count
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type medical procedure
action find_tuple_counts
relation has cause
type health problem
type ingredient
action count
action filter_multi_types
action find
entity endocrine exophthalmos
relation has cause
type medical procedure
type ingredient
[{'concept': 'health problem'}, 'has cause', [{'concept': 'medical procedure'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?t WHERE { VALUES ( ?h ) { ( ontology:medical_procedure ) ( ontology:ingredient ) } . ?v rdf:type ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { { ?a rdf:type ontology:medical_procedure } UNION { ?a rdf:type ontology:ingredient } } . resource:endocrine_exophthalmos property:has_cause ?a } } . FILTER ( ?n > ?b ) }
[]
medical procedure ingredient health problem
SYSTEM
4
Q7157933 Q3281393 Q7834208 Q970203
(c(Q2057971),P828,c(Q796194)|c(Q10675206))
action count
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q796194
action find_tuple_counts
relation P828
type Q2057971
type Q10675206
action count
action filter_multi_types
action find
entity Q18554306
relation P828
type Q796194
type Q10675206
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q796194'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?t WHERE { VALUES ( ?h ) { ( ontology:Q796194 ) ( ontology:Q10675206 ) } . ?v rdf:type ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { { ?a rdf:type ontology:Q796194 } UNION { ?a rdf:type ontology:Q10675206 } } . resource:Q18554306 property:P828 ?a } } . FILTER ( ?n > ?b ) }
peanut allergy complication of radiotherapy transfusion hemosiderosis milk allergy
4
action count
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type medical procedure
action find_tuple_counts
relation has cause
type health problem
type ingredient
action count
action filter_multi_types
action find
entity endocrine exophthalmos
relation has cause
type medical procedure
type ingredient
[{'concept': 'health problem'}, 'has cause', [{'concept': 'medical procedure'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) ?t WHERE { VALUES ( ?h ) { ( ontology:medical_procedure ) ( ontology:ingredient ) } . ?v rdf:type ?h } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { { ?a rdf:type ontology:medical_procedure } UNION { ?a rdf:type ontology:ingredient } } . resource:endocrine_exophthalmos property:has_cause ?a } } . FILTER ( ?n > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q154865
P828
Q796194 Q10675206 Q2057971
USER
And also tell me about botulism?
(c(Q2057971),P828,c(Q796194)|c(Q10675206))
action count
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q796194
action find_tuple_counts
relation P828
type Q2057971
type Q10675206
action count
action filter_multi_types
action find
entity Q154865
relation P828
type Q796194
type Q10675206
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q796194'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q154865 property:P828 ?k . { { ?k rdf:type ontology:Q10675206 } UNION { ?k rdf:type ontology:Q796194 } } } } . FILTER ( ?f > ?g ) . { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q10675206 ) ( ontology:Q796194 ) } } GROUP BY ?z } }
botulism
action count
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type medical procedure
action find_tuple_counts
relation has cause
type health problem
type ingredient
action count
action filter_multi_types
action find
entity botulism
relation has cause
type medical procedure
type ingredient
[{'concept': 'health problem'}, 'has cause', [{'concept': 'medical procedure'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:botulism property:has_cause ?k . { { ?k rdf:type ontology:ingredient } UNION { ?k rdf:type ontology:medical_procedure } } } } . FILTER ( ?f > ?g ) . { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:ingredient ) ( ontology:medical_procedure ) } } GROUP BY ?z } }
[]
medical procedure ingredient health problem
SYSTEM
4
Q7157933 Q3281393 Q7834208 Q970203
(c(Q2057971),P828,c(Q796194)|c(Q10675206))
action count
action greater
action union
action find_tuple_counts
relation P828
type Q2057971
type Q796194
action find_tuple_counts
relation P828
type Q2057971
type Q10675206
action count
action filter_multi_types
action find
entity Q154865
relation P828
type Q796194
type Q10675206
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q796194'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q154865 property:P828 ?k . { { ?k rdf:type ontology:Q10675206 } UNION { ?k rdf:type ontology:Q796194 } } } } . FILTER ( ?f > ?g ) . { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q10675206 ) ( ontology:Q796194 ) } } GROUP BY ?z } }
peanut allergy complication of radiotherapy transfusion hemosiderosis milk allergy
4
action count
action greater
action union
action find_tuple_counts
relation has cause
type health problem
type medical procedure
action find_tuple_counts
relation has cause
type health problem
type ingredient
action count
action filter_multi_types
action find
entity botulism
relation has cause
type medical procedure
type ingredient
[{'concept': 'health problem'}, 'has cause', [{'concept': 'medical procedure'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:botulism property:has_cause ?k . { { ?k rdf:type ontology:ingredient } UNION { ?k rdf:type ontology:medical_procedure } } } } . FILTER ( ?f > ?g ) . { SELECT DISTINCT ?z ( COUNT ( ?w ) AS ?f ) WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:ingredient ) ( ontology:medical_procedure ) } } GROUP BY ?z } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q193078
P828
Q7189713 Q2057971
USER
Which physiological conditions causes less number of health problems than trauma ?
(c(Q2057971),P828,c(Q7189713))
action less
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find_reverse
entity Q193078
relation P828
type Q2057971
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:P828 ?c . ?c rdf:type ontology:Q7189713 . ?d rdf:type ontology:Q2057971 } GROUP BY ?c } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P828 resource:Q193078 . ?f rdf:type ontology:Q2057971 } } }
trauma
action less
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find_reverse
entity trauma
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:has_cause ?c . ?c rdf:type ontology:physiological_condition . ?d rdf:type ontology:health_problem } GROUP BY ?c } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:has_cause resource:trauma . ?f rdf:type ontology:health_problem } } }
[]
physiological condition health problem
Q2849606 Q649122 Q339062
SYSTEM
vasospasm, Jugular venous pressure, decomposition
Q2849606 Q649122 Q339062
(c(Q2057971),P828,c(Q7189713))
action less
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find_reverse
entity Q193078
relation P828
type Q2057971
[ANSWERS] cause less number of health problems than trauma
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:P828 ?c . ?c rdf:type ontology:Q7189713 . ?d rdf:type ontology:Q2057971 } GROUP BY ?c } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:P828 resource:Q193078 . ?f rdf:type ontology:Q2057971 } } }
vasospasm Jugular venous pressure decomposition
Vasospasm, Jugular venous pressure and decomposition cause less number of health problems than trauma
vasospasm Jugular venous pressure decomposition
action less
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find_reverse
entity trauma
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?y ) WHERE { ?d property:has_cause ?c . ?c rdf:type ontology:physiological_condition . ?d rdf:type ontology:health_problem } GROUP BY ?c } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { ?f property:has_cause resource:trauma . ?f rdf:type ontology:health_problem } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1478321
P828
Q7189713 Q2057971
USER
And what about Spinal stenosis?
(c(Q2057971),P828,c(Q7189713))
action less
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find_reverse
entity Q1478321
relation P828
type Q2057971
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P828 ?m . ?m rdf:type ontology:Q7189713 . ?w rdf:type ontology:Q2057971 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P828 resource:Q1478321 . ?y rdf:type ontology:Q2057971 } } . FILTER ( ?e < ?q ) }
Spinal stenosis
action less
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find_reverse
entity Spinal stenosis
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:has_cause ?m . ?m rdf:type ontology:physiological_condition . ?w rdf:type ontology:health_problem } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:has_cause resource:Spinal_stenosis . ?y rdf:type ontology:health_problem } } . FILTER ( ?e < ?q ) }
[]
physiological condition health problem
Q2849606 Q649122 Q339062
SYSTEM
vasospasm, Jugular venous pressure, decomposition
Q2849606 Q649122 Q339062
(c(Q2057971),P828,c(Q7189713))
action less
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
action count
action filter_type
action find_reverse
entity Q1478321
relation P828
type Q2057971
[ANSWERS]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P828 ?m . ?m rdf:type ontology:Q7189713 . ?w rdf:type ontology:Q2057971 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P828 resource:Q1478321 . ?y rdf:type ontology:Q2057971 } } . FILTER ( ?e < ?q ) }
vasospasm Jugular venous pressure decomposition
vasospasm Jugular venous pressure decomposition
action less
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
action count
action filter_type
action find_reverse
entity Spinal stenosis
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:has_cause ?m . ?m rdf:type ontology:physiological_condition . ?w rdf:type ontology:health_problem } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:has_cause resource:Spinal_stenosis . ?y rdf:type ontology:health_problem } } . FILTER ( ?e < ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P780
Q1441305 Q2057971 Q2057971
USER
Which health problems have min number of medical signs and health problems as one of their symptoms ?
(c(Q2057971),P780,c(Q1441305)|c(Q2057971))
action argmin
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?c ) { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:Q1441305 ) ( ontology:Q2057971 ) } . ?s rdf:type ?p } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?l ) AS ?f ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1441305 ) ( ontology:Q2057971 ) } } GROUP BY ?h } . FILTER ( ?f = ?c ) }
action argmin
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type health problem
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?c ) { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:medical_sign ) ( ontology:health_problem ) } . ?s rdf:type ?p } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?l ) AS ?f ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:medical_sign ) ( ontology:health_problem ) } } GROUP BY ?h } . FILTER ( ?f = ?c ) }
[]
medical sign health problem health problem
Q12152 Q191779 Q127724
SYSTEM
myocardial infarction, Gilles de la Tourette syndrome, cataract
Q4813631 Q19000456 Q7080278 Q2070695 Q3843800 Q5432941 Q191779 Q18553762 Q39222 Q127724 Q205214 Q12152 Q12252367 Q1432717 Q18556319 Q3298999 Q124604 Q799615 Q18557231 Q2845978 Q281928 Q4676384 Q506433 Q959457 Q1117652 Q1077139 Q4865826 Q5032577 Q17089792 Q18555385 Q2106232 Q14509067 Q18557404
(c(Q2057971),P780,c(Q1441305)|c(Q2057971))
action argmin
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
[ANSWERS] have min number of medical signs and health problems as one of their symptoms
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q2057971'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?c ) { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:Q1441305 ) ( ontology:Q2057971 ) } . ?s rdf:type ?p } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?l ) AS ?f ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1441305 ) ( ontology:Q2057971 ) } } GROUP BY ?h } . FILTER ( ?f = ?c ) }
dyskinetic cerebral palsy syphilitic alopecia Oguchi disease macrocytic anemia chronic congestive splenomegaly hyperlipoproteinemia type IV Gilles de la Tourette syndrome migraine with aura rabies cataract Guillain–Barré syndrome myocardial infarction atherosclerosis Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia portal hypertension osteitis fibrosa hypersplenism stereotypic movement disorder social phobia Acroosteolysis Trimethylaminuria inappropriate ADH syndrome Thygeson's superficial punctate keratopathy tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma xanthomatosis Postanesthetic shivering exanthem peroneal nerve paralysis
Myocardial infarction, Gilles de la Tourette syndrome and cataract have min number of medical signs and health problems as one of their symptoms
myocardial infarction Gilles de la Tourette syndrome cataract
action argmin
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type health problem
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'health problem'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?c ) { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { VALUES ( ?p ) { ( ontology:medical_sign ) ( ontology:health_problem ) } . ?s rdf:type ?p } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?l ) AS ?f ) WHERE { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:medical_sign ) ( ontology:health_problem ) } } GROUP BY ?h } . FILTER ( ?f = ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q191779
P138
Q502895
USER
Which person is namesake of Gilles de la Tourette syndrome ?
(Q191779,P138,c(Q502895))
action filter_type
action find
entity Q191779
relation P138
type Q502895
['Q191779', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q191779 property:P138 ?i . ?i rdf:type ontology:Q502895 }
Gilles de la Tourette syndrome
action filter_type
action find
entity Gilles de la Tourette syndrome
relation named after
type common name
['Gilles de la Tourette syndrome', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Gilles_de_la_Tourette_syndrome property:named_after ?i . ?i rdf:type ontology:common_name }
[]
common name
Q437732
SYSTEM
Georges Gilles de la Tourette
Q437732
(Q191779,P138,c(Q502895))
action filter_type
action find
entity Q191779
relation P138
type Q502895
[ANSWER] is namesake of Gilles de la Tourette syndrome
['Q191779', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q191779 property:P138 ?i . ?i rdf:type ontology:Q502895 }
Georges Gilles de la Tourette
Georges Gilles de la Tourette is namesake of Gilles de la Tourette syndrome
Georges Gilles de la Tourette
action filter_type
action find
entity Gilles de la Tourette syndrome
relation named after
type common name
['Gilles de la Tourette syndrome', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Gilles_de_la_Tourette_syndrome property:named_after ?i . ?i rdf:type ontology:common_name }
[]