Simple Question (Direct)
Simple Question
Q7491400
P1196
Q1931388
USER
What situation did Shawn Lee die in ?
(Q7491400,P1196,c(Q1931388))
action filter_type
action find
entity Q7491400
relation P1196
type Q1931388
['Q7491400', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q7491400 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
Shawn Lee
action filter_type
action find
entity Shawn Lee
relation manner of death
type cause of death
['Shawn Lee', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Shawn_Lee property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q7491400,P1196,c(Q1931388))
action filter_type
action find
entity Q7491400
relation P1196
type Q1931388
Shawn Lee died of [ANSWER]
['Q7491400', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q7491400 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
natural causes
Shawn Lee died of natural causes
natural causes
action filter_type
action find
entity Shawn Lee
relation manner of death
type cause of death
['Shawn Lee', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Shawn_Lee property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7491400
P735
Q82799
USER
Which name is Shawn Lee known by ?
(Q7491400,P735,c(Q82799))
action filter_type
action find
entity Q7491400
relation P735
type Q82799
['Q7491400', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q7491400 property:P735 ?s . ?s rdf:type ontology:Q82799 }
Shawn Lee
action filter_type
action find
entity Shawn Lee
relation given name
type name
['Shawn Lee', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Shawn_Lee property:given_name ?s . ?s rdf:type ontology:name }
[]
name
Q19802965
SYSTEM
Shawn
Q19802965
(Q7491400,P735,c(Q82799))
action filter_type
action find
entity Q7491400
relation P735
type Q82799
[ANSWER] Lee is known as [ANSWER]
['Q7491400', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q7491400 property:P735 ?s . ?s rdf:type ontology:Q82799 }
Shawn
Shawn Lee is known as Shawn
Shawn
action filter_type
action find
entity Shawn Lee
relation given name
type name
['Shawn Lee', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Shawn_Lee property:given_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5681894
Q82799
USER
And what about Quim Bou?
(Q5681894,P735,c(Q82799))
action filter_type
action find
entity Q5681894
relation P735
type Q82799
['Q5681894', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q5681894 property:P735 ?h . ?h rdf:type ontology:Q82799 }
Quim Bou
action filter_type
action find
entity Quim Bou
relation given name
type name
['Quim Bou', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Quim_Bou property:given_name ?h . ?h rdf:type ontology:name }
[]
name
Q2123153
SYSTEM
Quim
Q2123153
(Q5681894,P735,c(Q82799))
action filter_type
action find
entity Q5681894
relation P735
type Q82799
[ANSWER]
['Q5681894', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q5681894 property:P735 ?h . ?h rdf:type ontology:Q82799 }
Quim
Quim
action filter_type
action find
entity Quim Bou
relation given name
type name
['Quim Bou', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Quim_Bou property:given_name ?h . ?h rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2123153 Q16708273
P735
Q502895
USER
Does Gazim Tukayev have that name as forename ?
(Q16708273,P735,Q2123153)
action is_in
entity Q16708273
action find
entity Q2123153
relation P735
['Q16708273', 'P735', 'Q2123153']
ASK WHERE { resource:Q2123153 property:P735 resource:Q16708273 }
Quim Gazim Tukayev
action is_in
entity Gazim Tukayev
action find
entity Quim
relation given name
['Gazim Tukayev', 'given name', 'Quim']
ASK WHERE { resource:Quim property:given_name resource:Gazim_Tukayev }
[]
common name
SYSTEM
NO
(Q16708273,P735,Q2123153)
action is_in
entity Q16708273
action find
entity Q2123153
relation P735
[ANSWER]
['Q16708273', 'P735', 'Q2123153']
ASK WHERE { resource:Q2123153 property:P735 resource:Q16708273 }
No
action is_in
entity Gazim Tukayev
action find
entity Quim
relation given name
['Gazim Tukayev', 'given name', 'Quim']
ASK WHERE { resource:Quim property:given_name resource:Gazim_Tukayev }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7491400
P509
Q2057971
USER
What caused the death of Shawn Lee ?
(Q7491400,P509,c(Q2057971))
action filter_type
action find
entity Q7491400
relation P509
type Q2057971
['Q7491400', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { resource:Q7491400 property:P509 ?l . ?l rdf:type ontology:Q2057971 }
Shawn Lee
action filter_type
action find
entity Shawn Lee
relation cause of death
type health problem
['Shawn Lee', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { resource:Shawn_Lee property:cause_of_death ?l . ?l rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q7491400,P509,c(Q2057971))
action filter_type
action find
entity Q7491400
relation P509
type Q2057971
[ANSWER] caused the death of Shawn Lee
['Q7491400', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { resource:Q7491400 property:P509 ?l . ?l rdf:type ontology:Q2057971 }
pneumonia
Pneumonia caused the death of Shawn Lee
pneumonia
action filter_type
action find
entity Shawn Lee
relation cause of death
type health problem
['Shawn Lee', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { resource:Shawn_Lee property:cause_of_death ?l . ?l rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P780
Q2057971 Q2057971 Q12136
USER
How many health problems are a symptom of more number of health problems or diseases than that health problem ?
(c(Q2057971)|c(Q12136),P780,c(Q2057971))
action count
action greater
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q12192
relation P780
type Q2057971
type Q12136
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?o WHERE { { ?d property:P780 ?o . ?o rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q12136 } UNION { ?d property:P780 ?o . ?o rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q2057971 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P780 resource:Q12192 . { { ?i rdf:type ontology:Q2057971 } UNION { ?i rdf:type ontology:Q12136 } } } } . FILTER ( ?q > ?x ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity pneumonia
relation symptoms
type health problem
type disease
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?o WHERE { { ?d property:symptoms ?o . ?o rdf:type ontology:health_problem . ?d rdf:type ontology:disease } UNION { ?d property:symptoms ?o . ?o rdf:type ontology:health_problem . ?d rdf:type ontology:health_problem } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:symptoms resource:pneumonia . { { ?i rdf:type ontology:health_problem } UNION { ?i rdf:type ontology:disease } } } } . FILTER ( ?q > ?x ) }
[]
health problem health problem disease
SYSTEM
78
Q334655 Q1076421 Q5572555 Q6279182 Q10874 Q166019 Q854573 Q1435822 Q1123139 Q1114480 Q16775468 Q156103 Q17142318 Q2088392 Q2074059 Q40878 Q1340669 Q21513416 Q2988775 Q938107 Q838139 Q219223 Q207855 Q1384176 Q852376 Q12167 Q378183 Q13452408 Q18553790 Q127724 Q3108583 Q5375429 Q794026 Q4597494 Q189956 Q5445 Q4676384 Q939364 Q229256 Q1097957 Q896643 Q18557427 Q5289085 Q2610084 Q1054718 Q2339038 Q361648 Q2836 Q189470 Q671776 Q1356194 Q369148 Q7562539 Q16831900 Q83030 Q2844600 Q339221 Q751641 Q9376235 Q1334541 Q16874615 Q178436 Q15401621 Q576349 Q322370 Q1499629 Q496812 Q595010 Q41861 Q1641062 Q18966290 Q79928 Q4118166 Q1269320 Q224513 Q2046811 Q557552 Q81867
(c(Q2057971)|c(Q12136),P780,c(Q2057971))
action count
action greater
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q12192
relation P780
type Q2057971
type Q12136
[ANSWER]
[[{'concept': 'Q2057971'}, {'concept': 'Q12136'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?o WHERE { { ?d property:P780 ?o . ?o rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q12136 } UNION { ?d property:P780 ?o . ?o rdf:type ontology:Q2057971 . ?d rdf:type ontology:Q2057971 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P780 resource:Q12192 . { { ?i rdf:type ontology:Q2057971 } UNION { ?i rdf:type ontology:Q12136 } } } } . FILTER ( ?q > ?x ) }
amenorrhea chorea glycerol kinase deficiency epileptic seizure blindness bleeding acute pancreatitis neutropenia Ketosis finger agnosia elephantiasis gastroenteritis pterygium migratory thrombophlebitis Oculomotor apraxia diarrhea nail clubbing hemorrhagic diarrhea heart conduction disease hypogonadism ventricular septal defect lactose intolerance amblyopia exostosis seizure malnutrition Craniosynostosis neuropathy dry eye syndrome cataract anterior segment mesenchymal dysgenesis Enchondromatosis Azoospermia intestinal atresia aphthous stomatitis anemia Acroosteolysis congenital heart disease dermatitis intermittent claudication brachydactyly pancreatic cholera dolichostenomelia sideroblastic anemia kidney disease Neurogenic bladder Double outlet right ventricle aphasia Fistula mutism Ectopia cordis neurilemmoma facial paralysis intracranial hypotension dementia muscular atrophy Gynecomastia recurrent hypersomnia endolymphatic hydrops pleural effusion Supravalvar aortic stenosis constipation Trousseau sign of malignancy brain disease ablepharon hydrarthrosis leukopenia hypertrichosis hypertension hyperphosphatemia delayed separation of umbilical cord acne Polyostotic fibrous dysplasia Dysplastic nevus Precocious puberty simultanagnosia ankyloglossia albino
78
action count
action greater
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity pneumonia
relation symptoms
type health problem
type disease
[[{'concept': 'health problem'}, {'concept': 'disease'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) ?o WHERE { { ?d property:symptoms ?o . ?o rdf:type ontology:health_problem . ?d rdf:type ontology:disease } UNION { ?d property:symptoms ?o . ?o rdf:type ontology:health_problem . ?d rdf:type ontology:health_problem } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:symptoms resource:pneumonia . { { ?i rdf:type ontology:health_problem } UNION { ?i rdf:type ontology:disease } } } } . FILTER ( ?q > ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12192
P1050
Q502895
USER
Which people are afflicted by that health problem ?
action filter_type
action find_reverse
entity Q12192
relation P1050
type Q502895
SELECT DISTINCT ?u WHERE { ?u property:P1050 resource:Q12192 . ?u rdf:type ontology:Q502895 }
pneumonia
action filter_type
action find_reverse
entity pneumonia
relation medical condition
type common name
SELECT DISTINCT ?u WHERE { ?u property:medical_condition resource:pneumonia . ?u rdf:type ontology:common_name }
[]
common name
Q332751 Q9582 Q11613
SYSTEM
Ellen Wilkinson, Gerald Ford, Harry S. Truman
Q332751 Q9582 Q11613
action filter_type
action find_reverse
entity Q12192
relation P1050
type Q502895
[ANSWERS] are afflicted by that health problem
SELECT DISTINCT ?u WHERE { ?u property:P1050 resource:Q12192 . ?u rdf:type ontology:Q502895 }
Ellen Wilkinson Gerald Ford Harry S. Truman
Ellen Wilkinson, Gerald Ford and Harry S. Truman are afflicted by that health problem
Ellen Wilkinson Gerald Ford Harry S. Truman
action filter_type
action find_reverse
entity pneumonia
relation medical condition
type common name
SELECT DISTINCT ?u WHERE { ?u property:medical_condition resource:pneumonia . ?u rdf:type ontology:common_name }
[]