Simple Question (Direct)
Simple Question
Q1452296
P509
Q2057971
USER
What lead to the death of Fred Fox ?
(Q1452296,P509,c(Q2057971))
action filter_type
action find
entity Q1452296
relation P509
type Q2057971
['Q1452296', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { resource:Q1452296 property:P509 ?p . ?p rdf:type ontology:Q2057971 }
Fred Fox
action filter_type
action find
entity Fred Fox
relation cause of death
type health problem
['Fred Fox', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { resource:Fred_Fox property:cause_of_death ?p . ?p rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q1452296,P509,c(Q2057971))
action filter_type
action find
entity Q1452296
relation P509
type Q2057971
In [ANSWER] lead to the death of Fred Fox
['Q1452296', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { resource:Q1452296 property:P509 ?p . ?p rdf:type ontology:Q2057971 }
myocardial infarction
In myocardial infarction lead to the death of Fred Fox
myocardial infarction
action filter_type
action find
entity Fred Fox
relation cause of death
type health problem
['Fred Fox', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { resource:Fred_Fox property:cause_of_death ?p . ?p rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1452296
P1196
Q1931388
USER
What manner did that person die ?
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q1452296
relation P1196
type Q1931388
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?j WHERE { resource:Q1452296 property:P1196 ?j . ?j rdf:type ontology:Q1931388 }
Fred Fox
action filter_type
action find
entity Fred Fox
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?j WHERE { resource:Fred_Fox property:manner_of_death ?j . ?j rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q1452296
relation P1196
type Q1931388
That person died in [ANSWER]
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?j WHERE { resource:Q1452296 property:P1196 ?j . ?j rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Fred Fox
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?j WHERE { resource:Fred_Fox property:manner_of_death ?j . ?j rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1452296
P106
Q12737077
USER
What does that person do for a living ?
(Q3739104,P106,c(Q12737077))
action filter_type
action find
entity Q1452296
relation P106
type Q12737077
['Q3739104', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1452296 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Fred Fox
action filter_type
action find
entity Fred Fox
relation occupation
type occupation
['natural causes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Fred_Fox property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q3739104,P106,c(Q12737077))
action filter_type
action find
entity Q1452296
relation P106
type Q12737077
That person does an [ANSWER] for a living
['Q3739104', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1452296 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
actor
That person does an actor for a living
actor
action filter_type
action find
entity Fred Fox
relation occupation
type occupation
['natural causes', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Fred_Fox property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1452296
P21
Q290
USER
Which sex does that person belong to ?
(Q33999,P21,c(Q290))
action filter_type
action find
entity Q1452296
relation P21
type Q290
['Q33999', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1452296 property:P21 ?z . ?z rdf:type ontology:Q290 }
Fred Fox
action filter_type
action find
entity Fred Fox
relation gender
type sex
['actor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Fred_Fox property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q33999,P21,c(Q290))
action filter_type
action find
entity Q1452296
relation P21
type Q290
That person belongs to [ANSWER]
['Q33999', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1452296 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Fred Fox
relation gender
type sex
['actor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Fred_Fox property:gender ?z . ?z rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3739104
P1196
Q15619164 Q5
USER
How many abstract beings or humen died as natural causes ?
(c(Q15619164),P1196,Q3739104) (c(Q5),P1196,Q3739104)
action count
action union
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q15619164
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q5
[{'concept': 'Q15619164'}, 'P1196', 'Q3739104'] [{'concept': 'Q5'}, 'P1196', 'Q3739104']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c property:P1196 resource:Q3739104 . ?c rdf:type ontology:Q5 } UNION { ?c property:P1196 resource:Q3739104 . ?c rdf:type ontology:Q15619164 } }
natural causes
action count
action union
action filter_type
action find_reverse
entity natural causes
relation manner of death
type abstract being
action filter_type
action find_reverse
entity natural causes
relation manner of death
type human
[{'concept': 'abstract being'}, 'manner of death', 'natural causes'] [{'concept': 'human'}, 'manner of death', 'natural causes']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c property:manner_of_death resource:natural_causes . ?c rdf:type ontology:human } UNION { ?c property:manner_of_death resource:natural_causes . ?c rdf:type ontology:abstract_being } }
[]
abstract being human
SYSTEM
2
Q105589 Q8704
(c(Q15619164),P1196,Q3739104) (c(Q5),P1196,Q3739104)
action count
action union
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q15619164
action filter_type
action find_reverse
entity Q3739104
relation P1196
type Q5
[ANSWER]
[{'concept': 'Q15619164'}, 'P1196', 'Q3739104'] [{'concept': 'Q5'}, 'P1196', 'Q3739104']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c property:P1196 resource:Q3739104 . ?c rdf:type ontology:Q5 } UNION { ?c property:P1196 resource:Q3739104 . ?c rdf:type ontology:Q15619164 } }
Paul Morphy Walt Disney
2
action count
action union
action filter_type
action find_reverse
entity natural causes
relation manner of death
type abstract being
action filter_type
action find_reverse
entity natural causes
relation manner of death
type human
[{'concept': 'abstract being'}, 'manner of death', 'natural causes'] [{'concept': 'human'}, 'manner of death', 'natural causes']
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { ?c property:manner_of_death resource:natural_causes . ?c rdf:type ontology:human } UNION { ?c property:manner_of_death resource:natural_causes . ?c rdf:type ontology:abstract_being } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1393463
P689
Q15989253 Q4936952 Q2057971
USER
Which health problems afflicts approximately the same number of parts or anatomical structures as hypopharynx cancer ?
(c(Q2057971),P689,c(Q15989253)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q15989253
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1393463
relation P689
type Q15989253
type Q4936952
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q15989253'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q4936952 ) ( ontology:Q15989253 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q1393463 property:P689 ?l . { { ?l rdf:type ontology:Q4936952 } UNION { ?l rdf:type ontology:Q15989253 } } } } . FILTER ( ?h = ?j ) }
hypopharynx cancer
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type part
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 part
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'part'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:anatomical_structure ) ( ontology:part ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:hypopharynx_cancer property:afflicts ?l . { { ?l rdf:type ontology:anatomical_structure } UNION { ?l rdf:type ontology:part } } } } . FILTER ( ?h = ?j ) }
[]
part anatomical structure health problem
Q181257 Q844935 Q12214
SYSTEM
prostate cancer, coronary artery disease, smallpox
Q18556210 Q5182155 Q1362721 Q18553706 Q154869 Q3508732 Q1066265 Q574406 Q18558209 Q1266890 Q175827 Q18554834 Q18555928 Q1585743 Q2508462 Q18556225 Q2879095 Q18554850 Q18553224 Q5182126 Q3055380 Q147778 Q2946952 Q857667 Q48143 Q844935 Q18558143 Q131742 Q16499 Q6853 Q2988775 Q18555020 Q18975470 Q18554359 Q18556397 Q18553766 Q18554536 Q18554357 Q697117 Q5156409 Q18557992 Q3392853 Q929737 Q18554999 Q7199538 Q403463 Q4684717 Q6673122 Q5518905 Q1779300 Q7136145 Q244438 Q7578540 Q616003 Q3281322 Q3043145 Q3552798 Q949302 Q190805 Q1642094 Q18554589 Q18555048 Q181257 Q3540864 Q18555042 Q1963588 Q2429620 Q2339038 Q18556075 Q18555923 Q504775 Q18557307 Q5526839 Q18556619 Q16831900 Q1030785 Q578257 Q7900883 Q18556675 Q1628473 Q6758201 Q18553502 Q5282519 Q18554363 Q1545572 Q18553584 Q2351083 Q6742919 Q501561 Q1585753 Q6072985 Q18554030 Q21128620 Q133087 Q18555940 Q21118423 Q11835644 Q189588 Q1393463 Q12214 Q17152566 Q165135 Q18558049 Q476921 Q18558125 Q18965518 Q2031424 Q18553736 Q4941552 Q5325633 Q18556445 Q18968025 Q18554658 Q7113244 Q3030636 Q3540887 Q2966706 Q7879711
(c(Q2057971),P689,c(Q15989253)|c(Q4936952))
action approx
action union
action find_tuple_counts
relation P689
type Q2057971
type Q15989253
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
action count
action filter_multi_types
action find
entity Q1393463
relation P689
type Q15989253
type Q4936952
[ANSWERS] afflict approximately the same number of parts or anatomical structures as hypopharynx cancer
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q15989253'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q4936952 ) ( ontology:Q15989253 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q1393463 property:P689 ?l . { { ?l rdf:type ontology:Q4936952 } UNION { ?l rdf:type ontology:Q15989253 } } } } . FILTER ( ?h = ?j ) }
gastrointestinal adenoma Craniotabes tuberous sclerosis 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 femoral neuropathy optic nerve disease integumentary system disease lower respiratory tract disease cranial nerve disease intestinal disease liver cirrhosis cervical osteoarthritis pulmonary edema meningitis 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 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 prosopagnosia splenic disease aortic aneurysm peroxisomal disease cytochrome P450 Oxidoreductase Deficiency uvulitis skin disease heart disease Hematidrosis 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 demodicosis Kohler's disease urinary system disease aortic disease corneal ulcer Marcus Gunn pupil pericardium disease calcium metabolism disease capillary disease splenic infarction C1 inhibitor deficiency disease of metabolism Male breast cancer pericarditis urethral stricture iron metabolism disease acute laryngopharyngitis spleen injury gout uterine disease auditory nerve damage thyroiditis stomach cancer hypopharynx cancer smallpox salivary gland disease goiter gastrointestinal lymphoma kidney failure intracranial hypertension artery disease 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 smallpox afflict approximately the same number of parts or anatomical structures as hypopharynx cancer
prostate cancer coronary artery disease smallpox
action approx
action union
action find_tuple_counts
relation afflicts
type health problem
type part
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 part
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'part'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:anatomical_structure ) ( ontology:part ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:hypopharynx_cancer property:afflicts ?l . { { ?l rdf:type ontology:anatomical_structure } UNION { ?l rdf:type ontology:part } } } } . FILTER ( ?h = ?j ) }
[]