Simple Question (Direct)
Simple Question
Q5334901
P509
Q2057971
USER
How did Ed Hall die ?
(Q5334901,P509,c(Q2057971))
action filter_type
action find
entity Q5334901
relation P509
type Q2057971
['Q5334901', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q5334901 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
Ed Hall
action filter_type
action find
entity Ed Hall
relation cause of death
type health problem
['Ed Hall', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Ed_Hall property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q5334901,P509,c(Q2057971))
action filter_type
action find
entity Q5334901
relation P509
type Q2057971
Ed Hall died of [ANSWER]
['Q5334901', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q5334901 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
myocardial infarction
Ed Hall died of myocardial infarction
myocardial infarction
action filter_type
action find
entity Ed Hall
relation cause of death
type health problem
['Ed Hall', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Ed_Hall property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5334901
P1196
Q1931388
USER
What situation did Ed Hall die in ?
(Q5334901,P1196,c(Q1931388))
action filter_type
action find
entity Q5334901
relation P1196
type Q1931388
['Q5334901', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?y WHERE { resource:Q5334901 property:P1196 ?y . ?y rdf:type ontology:Q1931388 }
Ed Hall
action filter_type
action find
entity Ed Hall
relation manner of death
type cause of death
['Ed Hall', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?y WHERE { resource:Ed_Hall property:manner_of_death ?y . ?y rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q5334901,P1196,c(Q1931388))
action filter_type
action find
entity Q5334901
relation P1196
type Q1931388
Ed Hall died of [ANSWER]
['Q5334901', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?y WHERE { resource:Q5334901 property:P1196 ?y . ?y rdf:type ontology:Q1931388 }
natural causes
Ed Hall died of natural causes
natural causes
action filter_type
action find
entity Ed Hall
relation manner of death
type cause of death
['Ed Hall', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?y WHERE { resource:Ed_Hall property:manner_of_death ?y . ?y rdf:type ontology:cause_of_death }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2607333
Q1931388
USER
And how about Mikhail Nikolayevich Muravyov?
(Q2607333,P1196,c(Q1931388))
action filter_type
action find
entity Q2607333
relation P1196
type Q1931388
['Q2607333', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1931388 . resource:Q2607333 property:P1196 ?d }
Mikhail Nikolayevich Muravyov
action filter_type
action find
entity Mikhail Nikolayevich Muravyov
relation manner of death
type cause of death
['Mikhail Nikolayevich Muravyov', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:cause_of_death . resource:Mikhail_Nikolayevich_Muravyov property:manner_of_death ?d }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q2607333,P1196,c(Q1931388))
action filter_type
action find
entity Q2607333
relation P1196
type Q1931388
[ANSWER]
['Q2607333', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1931388 . resource:Q2607333 property:P1196 ?d }
natural causes
natural causes
action filter_type
action find
entity Mikhail Nikolayevich Muravyov
relation manner of death
type cause of death
['Mikhail Nikolayevich Muravyov', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:cause_of_death . resource:Mikhail_Nikolayevich_Muravyov property:manner_of_death ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q1441305
USER
How many medical signs are the result of having atleast 1 health problem ?
(c(Q1441305),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?y ) WHERE { ?w property:P828 ?h . ?w rdf:type ontology:Q1441305 . ?h rdf:type ontology:Q2057971 } GROUP BY ?w } . FILTER ( ?y >= 1 ) }
action count
action atleast
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?y ) WHERE { ?w property:has_cause ?h . ?w rdf:type ontology:medical_sign . ?h rdf:type ontology:health_problem } GROUP BY ?w } . FILTER ( ?y >= 1 ) }
[]
health problem medical sign
SYSTEM
8
Q1938763 Q1115038 Q189643 Q1404110 Q1566762 Q5893790 Q21402569 Q127076
(c(Q1441305),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?y ) WHERE { ?w property:P828 ?h . ?w rdf:type ontology:Q1441305 . ?h rdf:type ontology:Q2057971 } GROUP BY ?w } . FILTER ( ?y >= 1 ) }
fecal vomiting runny nose delusion greyout steeple sign Honeycombing rice water diarrhea vomiting
8
action count
action atleast
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?h ) AS ?y ) WHERE { ?w property:has_cause ?h . ?w rdf:type ontology:medical_sign . ?h rdf:type ontology:health_problem } GROUP BY ?w } . FILTER ( ?y >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22932754
P17
Q15617994
USER
Which administrative territory is Nyakatonzi Primary School situated in ?
(Q22932754,P17,c(Q15617994))
action filter_type
action find
entity Q22932754
relation P17
type Q15617994
['Q22932754', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q22932754 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Nyakatonzi Primary School
action filter_type
action find
entity Nyakatonzi Primary School
relation country
type designation for an administrative territorial entity
['Nyakatonzi Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Nyakatonzi_Primary_School property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036
SYSTEM
Uganda
Q1036
(Q22932754,P17,c(Q15617994))
action filter_type
action find
entity Q22932754
relation P17
type Q15617994
Nyakatonzi Primary School is situated in [ANSWER]
['Q22932754', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q22932754 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Uganda
Nyakatonzi Primary School is situated in Uganda
Uganda
action filter_type
action find
entity Nyakatonzi Primary School
relation country
type designation for an administrative territorial entity
['Nyakatonzi Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Nyakatonzi_Primary_School property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1036 Q958 Q40958
P47
Q15617994
USER
Does that administrative territory shares border with South Sudan and Broni ?
(Q1036,P47,Q958) (Q1036,P47,Q40958)
action is_in
entity Q1036
action intersection
action find_reverse
entity Q958
relation P47
action find_reverse
entity Q40958
relation P47
['Q1036', 'P47', 'Q958'] ['Q1036', 'P47', 'Q40958']
ASK WHERE { resource:Q1036 property:P47 resource:Q958 . resource:Q1036 property:P47 resource:Q40958 }
Uganda South Sudan Broni
action is_in
entity Uganda
action intersection
action find_reverse
entity South Sudan
relation shares border with
action find_reverse
entity Broni
relation shares border with
['Uganda', 'shares border with', 'South Sudan'] ['Uganda', 'shares border with', 'Broni']
ASK WHERE { resource:Uganda property:shares_border_with resource:South_Sudan . resource:Uganda property:shares_border_with resource:Broni }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1036,P47,Q958) (Q1036,P47,Q40958)
action is_in
entity Q1036
action intersection
action find_reverse
entity Q958
relation P47
action find_reverse
entity Q40958
relation P47
[ANSWER]
['Q1036', 'P47', 'Q958'] ['Q1036', 'P47', 'Q40958']
ASK WHERE { resource:Q1036 property:P47 resource:Q958 . resource:Q1036 property:P47 resource:Q40958 }
YES and NO respectively
action is_in
entity Uganda
action intersection
action find_reverse
entity South Sudan
relation shares border with
action find_reverse
entity Broni
relation shares border with
['Uganda', 'shares border with', 'South Sudan'] ['Uganda', 'shares border with', 'Broni']
ASK WHERE { resource:Uganda property:shares_border_with resource:South_Sudan . resource:Uganda property:shares_border_with resource:Broni }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12152 Q190012
P2176
Q8386
USER
Is adenosine prescribed for myocardial infarction ?
(Q12152,P2176,Q190012)
action is_in
entity Q190012
action find
entity Q12152
relation P2176
['Q12152', 'P2176', 'Q190012']
ASK WHERE { resource:Q12152 property:P2176 resource:Q190012 }
myocardial infarction adenosine
action is_in
entity adenosine
action find
entity myocardial infarction
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'adenosine']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:adenosine }
[]
drug
SYSTEM
YES
(Q12152,P2176,Q190012)
action is_in
entity Q190012
action find
entity Q12152
relation P2176
[ANSWER]
['Q12152', 'P2176', 'Q190012']
ASK WHERE { resource:Q12152 property:P2176 resource:Q190012 }
Yes
action is_in
entity adenosine
action find
entity myocardial infarction
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'adenosine']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:adenosine }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1036
P159
Q43229
USER
Which organization has its head office location at Uganda ?
(c(Q43229),P159,Q1036)
action filter_type
action find_reverse
entity Q1036
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q1036']
SELECT DISTINCT ?s WHERE { ?s property:P159 resource:Q1036 . ?s rdf:type ontology:Q43229 }
Uganda
action filter_type
action find_reverse
entity Uganda
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Uganda']
SELECT DISTINCT ?s WHERE { ?s property:headquarters_location resource:Uganda . ?s rdf:type ontology:organization }
[]
organization
Q4836227
SYSTEM
BOSCO-Uganda
Q4836227
(c(Q43229),P159,Q1036)
action filter_type
action find_reverse
entity Q1036
relation P159
type Q43229
[ANSWER] has its head office location at Uganda
[{'concept': 'Q43229'}, 'P159', 'Q1036']
SELECT DISTINCT ?s WHERE { ?s property:P159 resource:Q1036 . ?s rdf:type ontology:Q43229 }
BOSCO-Uganda
BOSCO-Uganda has its head office location at Uganda
BOSCO-Uganda
action filter_type
action find_reverse
entity Uganda
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Uganda']
SELECT DISTINCT ?s WHERE { ?s property:headquarters_location resource:Uganda . ?s rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036
P740
Q2088357
USER
Which musical ensemble originated at that administrative territory ?
(c(Q2088357),P740,Q4836227)
action filter_type
action find_reverse
entity Q1036
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q4836227']
SELECT DISTINCT ?i WHERE { ?i property:P740 resource:Q1036 . ?i rdf:type ontology:Q2088357 }
Uganda
action filter_type
action find_reverse
entity Uganda
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'BOSCO-Uganda']
SELECT DISTINCT ?i WHERE { ?i property:location_of_formation resource:Uganda . ?i rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q5583436
SYSTEM
Goodlyfe Crew
Q5583436
(c(Q2088357),P740,Q4836227)
action filter_type
action find_reverse
entity Q1036
relation P740
type Q2088357
[ANSWER] originated at that administrative territory
[{'concept': 'Q2088357'}, 'P740', 'Q4836227']
SELECT DISTINCT ?i WHERE { ?i property:P740 resource:Q1036 . ?i rdf:type ontology:Q2088357 }
Goodlyfe Crew
Goodlyfe Crew originated at that administrative territory
Goodlyfe Crew
action filter_type
action find_reverse
entity Uganda
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'BOSCO-Uganda']
SELECT DISTINCT ?i WHERE { ?i property:location_of_formation resource:Uganda . ?i rdf:type ontology:musical_ensemble }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036
P610
Q14524493
USER
Which is the highest peak of that administrative territory ?
(Q5583436,P610,c(Q14524493))
action filter_type
action find
entity Q1036
relation P610
type Q14524493
['Q5583436', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?f WHERE { resource:Q1036 property:P610 ?f . ?f rdf:type ontology:Q14524493 }
Uganda
action filter_type
action find
entity Uganda
relation highest point
type terrain
['Goodlyfe Crew', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?f WHERE { resource:Uganda property:highest_point ?f . ?f rdf:type ontology:terrain }
[]
terrain
Q221666
SYSTEM
Mount Stanley
Q221666
(Q5583436,P610,c(Q14524493))
action filter_type
action find
entity Q1036
relation P610
type Q14524493
The highest peak of that administrative territory is [ANSWER]
['Q5583436', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?f WHERE { resource:Q1036 property:P610 ?f . ?f rdf:type ontology:Q14524493 }
Mount Stanley
The highest peak of that administrative territory is Mount Stanley
Mount Stanley
action filter_type
action find
entity Uganda
relation highest point
type terrain
['Goodlyfe Crew', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?f WHERE { resource:Uganda property:highest_point ?f . ?f rdf:type ontology:terrain }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q221666 Q1036
P17
Q15617994
USER
Is that terrain present in Uganda ?
(Q221666,P17,Q1036)
action is_in
entity Q1036
action find
entity Q221666
relation P17
['Q221666', 'P17', 'Q1036']
ASK WHERE { resource:Q221666 property:P17 resource:Q1036 }
Mount Stanley Uganda
action is_in
entity Uganda
action find
entity Mount Stanley
relation country
['Mount Stanley', 'country', 'Uganda']
ASK WHERE { resource:Mount_Stanley property:country resource:Uganda }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q221666,P17,Q1036)
action is_in
entity Q1036
action find
entity Q221666
relation P17
[ANSWER]
['Q221666', 'P17', 'Q1036']
ASK WHERE { resource:Q221666 property:P17 resource:Q1036 }
Yes
action is_in
entity Uganda
action find
entity Mount Stanley
relation country
['Mount Stanley', 'country', 'Uganda']
ASK WHERE { resource:Mount_Stanley property:country resource:Uganda }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4836227 Q1036
P159
Q15617994
USER
Is Uganda the HQ of BOSCO-Uganda ?
(Q4836227,P159,Q1036)
action is_in
entity Q1036
action find
entity Q4836227
relation P159
['Q4836227', 'P159', 'Q1036']
ASK WHERE { resource:Q4836227 property:P159 resource:Q1036 }
BOSCO-Uganda Uganda
action is_in
entity Uganda
action find
entity BOSCO-Uganda
relation headquarters location
['BOSCO-Uganda', 'headquarters location', 'Uganda']
ASK WHERE { resource:BOSCO-Uganda property:headquarters_location resource:Uganda }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q4836227,P159,Q1036)
action is_in
entity Q1036
action find
entity Q4836227
relation P159
[ANSWER]
['Q4836227', 'P159', 'Q1036']
ASK WHERE { resource:Q4836227 property:P159 resource:Q1036 }
Yes
action is_in
entity Uganda
action find
entity BOSCO-Uganda
relation headquarters location
['BOSCO-Uganda', 'headquarters location', 'Uganda']
ASK WHERE { resource:BOSCO-Uganda property:headquarters_location resource:Uganda }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12152 Q422229 Q412515
P2176
Q8386
USER
Is myocardial infarction cured by diltiazem and bisoprolol ?
(Q12152,P2176,Q422229) (Q12152,P2176,Q412515)
action is_in
entity Q12152
action intersection
action find_reverse
entity Q422229
relation P2176
action find_reverse
entity Q412515
relation P2176
['Q12152', 'P2176', 'Q422229'] ['Q12152', 'P2176', 'Q412515']
ASK WHERE { resource:Q12152 property:P2176 resource:Q422229 . resource:Q12152 property:P2176 resource:Q412515 }
myocardial infarction diltiazem bisoprolol
action is_in
entity myocardial infarction
action intersection
action find_reverse
entity diltiazem
relation drug used for treatment
action find_reverse
entity bisoprolol
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'diltiazem'] ['myocardial infarction', 'drug used for treatment', 'bisoprolol']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:diltiazem . resource:myocardial_infarction property:drug_used_for_treatment resource:bisoprolol }
[]
drug
SYSTEM
YES
(Q12152,P2176,Q422229) (Q12152,P2176,Q412515)
action is_in
entity Q12152
action intersection
action find_reverse
entity Q422229
relation P2176
action find_reverse
entity Q412515
relation P2176
[ANSWER]
['Q12152', 'P2176', 'Q422229'] ['Q12152', 'P2176', 'Q412515']
ASK WHERE { resource:Q12152 property:P2176 resource:Q422229 . resource:Q12152 property:P2176 resource:Q412515 }
Yes
action is_in
entity myocardial infarction
action intersection
action find_reverse
entity diltiazem
relation drug used for treatment
action find_reverse
entity bisoprolol
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'diltiazem'] ['myocardial infarction', 'drug used for treatment', 'bisoprolol']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:diltiazem . resource:myocardial_infarction property:drug_used_for_treatment resource:bisoprolol }
[]