Simple Question (Direct)
Simple Question
Q882190
P509
Q2057971
USER
What lead to the death of Charles N. Haskell ?
(Q882190,P509,c(Q2057971))
action filter_type
action find
entity Q882190
relation P509
type Q2057971
['Q882190', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q882190 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
Charles N. Haskell
action filter_type
action find
entity Charles N. Haskell
relation cause of death
type health problem
['Charles N. Haskell', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Charles_N._Haskell property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q882190,P509,c(Q2057971))
action filter_type
action find
entity Q882190
relation P509
type Q2057971
Ia [ANSWER] lead to the death of Charles N. Haskell
['Q882190', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q882190 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
pneumonia
Ia pneumonia lead to the death of Charles N. Haskell
pneumonia
action filter_type
action find
entity Charles N. Haskell
relation cause of death
type health problem
['Charles N. Haskell', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Charles_N._Haskell property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1542
Q1441305 Q3839081 Q2057971
USER
How many health problems have their outcome as atleast 1 medical signs or disasters ?
(c(Q2057971),P1542,c(Q1441305)|c(Q3839081))
action count
action atleast
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
value 1
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q1441305'}, {'concept': 'Q3839081'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { FILTER ( ?m >= 1 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?d WHERE { { ?d property:P1542 ?x . ?d rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3839081 } UNION { ?d property:P1542 ?x . ?d rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q1441305 } } GROUP BY ?d } }
action count
action atleast
action union
action find_tuple_counts
relation cause of
type health problem
type medical sign
action find_tuple_counts
relation cause of
type health problem
type disaster
value 1
[{'concept': 'health problem'}, 'cause of', [{'concept': 'medical sign'}, {'concept': 'disaster'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { FILTER ( ?m >= 1 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?d WHERE { { ?d property:cause_of ?x . ?d rdf:type ontology:health_problem . ?x rdf:type ontology:disaster } UNION { ?d property:cause_of ?x . ?d rdf:type ontology:health_problem . ?x rdf:type ontology:medical_sign } } GROUP BY ?d } }
[]
medical sign disaster health problem
SYSTEM
10
Q12090 Q12125 Q42982 Q243257 Q121041 Q12195 Q943897 Q133823 Q79793 Q2840
(c(Q2057971),P1542,c(Q1441305)|c(Q3839081))
action count
action atleast
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
value 1
[ANSWER]
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q1441305'}, {'concept': 'Q3839081'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { FILTER ( ?m >= 1 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?d WHERE { { ?d property:P1542 ?x . ?d rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3839081 } UNION { ?d property:P1542 ?x . ?d rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q1441305 } } GROUP BY ?d } }
Cholera common cold type I hypersensitivity chikungunya appendicitis poliomyelitis gastroparesis migraine measles influenza
10
action count
action atleast
action union
action find_tuple_counts
relation cause of
type health problem
type medical sign
action find_tuple_counts
relation cause of
type health problem
type disaster
value 1
[{'concept': 'health problem'}, 'cause of', [{'concept': 'medical sign'}, {'concept': 'disaster'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { FILTER ( ?m >= 1 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) ?d WHERE { { ?d property:cause_of ?x . ?d rdf:type ontology:health_problem . ?x rdf:type ontology:disaster } UNION { ?d property:cause_of ?x . ?d rdf:type ontology:health_problem . ?x rdf:type ontology:medical_sign } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q407972 Q12192
P769 P2176
Q8386
USER
Which drugs are used for treating pneumonia and shows a significant interaction with chlorpromazine ?
AND((Q12192,P2176,c(Q8386)), (Q407972,P769,c(Q8386)))
action filter_type
action intersection
action find
entity Q12192
relation P2176
action find
entity Q407972
relation P769
type Q8386
{'AND': [['Q12192', 'P2176', {'concept': 'Q8386'}], ['Q407972', 'P769', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q8386 . resource:Q12192 property:P2176 ?n . resource:Q407972 property:P769 ?n }
chlorpromazine pneumonia
action filter_type
action intersection
action find
entity pneumonia
relation drug used for treatment
action find
entity chlorpromazine
relation significant drug interaction
type drug
{'AND': [['pneumonia', 'drug used for treatment', {'concept': 'drug'}], ['chlorpromazine', 'significant drug interaction', {'concept': 'drug'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:drug . resource:pneumonia property:drug_used_for_treatment ?n . resource:chlorpromazine property:significant_drug_interaction ?n }
[]
drug
Q976559
SYSTEM
Sparfloxacin
Q976559
AND((Q12192,P2176,c(Q8386)), (Q407972,P769,c(Q8386)))
action filter_type
action intersection
action find
entity Q12192
relation P2176
action find
entity Q407972
relation P769
type Q8386
[ANSWER] is used for treating pneumonia and shows a significant interaction with chlorpromazine
{'AND': [['Q12192', 'P2176', {'concept': 'Q8386'}], ['Q407972', 'P769', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q8386 . resource:Q12192 property:P2176 ?n . resource:Q407972 property:P769 ?n }
Sparfloxacin
Sparfloxacin is used for treating pneumonia and shows a significant interaction with chlorpromazine
Sparfloxacin
action filter_type
action intersection
action find
entity pneumonia
relation drug used for treatment
action find
entity chlorpromazine
relation significant drug interaction
type drug
{'AND': [['pneumonia', 'drug used for treatment', {'concept': 'drug'}], ['chlorpromazine', 'significant drug interaction', {'concept': 'drug'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:drug . resource:pneumonia property:drug_used_for_treatment ?n . resource:chlorpromazine property:significant_drug_interaction ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q882190
P1196
Q1931388
USER
What situation did Charles N. Haskell die in ?
(Q882190,P1196,c(Q1931388))
action filter_type
action find
entity Q882190
relation P1196
type Q1931388
['Q882190', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?i WHERE { resource:Q882190 property:P1196 ?i . ?i rdf:type ontology:Q1931388 }
Charles N. Haskell
action filter_type
action find
entity Charles N. Haskell
relation manner of death
type cause of death
['Charles N. Haskell', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?i WHERE { resource:Charles_N._Haskell property:manner_of_death ?i . ?i rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q882190,P1196,c(Q1931388))
action filter_type
action find
entity Q882190
relation P1196
type Q1931388
Charles N. Haskell died of [ANSWER]
['Q882190', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?i WHERE { resource:Q882190 property:P1196 ?i . ?i rdf:type ontology:Q1931388 }
natural causes
Charles N. Haskell died of natural causes
natural causes
action filter_type
action find
entity Charles N. Haskell
relation manner of death
type cause of death
['Charles N. Haskell', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?i WHERE { resource:Charles_N._Haskell property:manner_of_death ?i . ?i rdf:type ontology:cause_of_death }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q882190
P102
Q7210356
USER
How many political organizations are Charles N. Haskell a member of ?
(Q882190,P102,c(Q7210356))
action count
action filter_type
action find
entity Q882190
relation P102
type Q7210356
['Q882190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q882190 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Charles N. Haskell
action count
action filter_type
action find
entity Charles N. Haskell
relation member of political party
type political organization
['Charles N. Haskell', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Charles_N._Haskell property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
SYSTEM
1
Q29552
(Q882190,P102,c(Q7210356))
action count
action filter_type
action find
entity Q882190
relation P102
type Q7210356
[ANSWER]
['Q882190', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q882190 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Democratic Party
1
action count
action filter_type
action find
entity Charles N. Haskell
relation member of political party
type political organization
['Charles N. Haskell', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Charles_N._Haskell property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q882190
P19
Q56061
USER
Which administrative territory was Charles N. Haskell born in ?
(Q882190,P19,c(Q56061))
action filter_type
action find
entity Q882190
relation P19
type Q56061
['Q882190', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q882190 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Charles N. Haskell
action filter_type
action find
entity Charles N. Haskell
relation place of birth
type administrative territorial entity
['Charles N. Haskell', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Charles_N._Haskell property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1026003
SYSTEM
Leipsic
Q1026003
(Q882190,P19,c(Q56061))
action filter_type
action find
entity Q882190
relation P19
type Q56061
[ANSWER] was Charles N. Haskell born in
['Q882190', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q882190 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Leipsic
Leipsic was Charles N. Haskell born in
Leipsic
action filter_type
action find
entity Charles N. Haskell
relation place of birth
type administrative territorial entity
['Charles N. Haskell', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Charles_N._Haskell property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7492390 Q882190
P19
Q56061
USER
Or Sheena Shahabadi?
OR((Q882190,P19,c(Q56061)), (Q7492390,P19,c(Q56061)))
action filter_type
action union
action find
entity Q882190
relation P19
action find
entity Q7492390
relation P19
type Q56061
{'OR': [['Q882190', 'P19', {'concept': 'Q56061'}], ['Q7492390', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q882190 property:P19 ?h } UNION { resource:Q7492390 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Sheena Shahabadi Charles N. Haskell
action filter_type
action union
action find
entity Charles N. Haskell
relation place of birth
action find
entity Sheena Shahabadi
relation place of birth
type administrative territorial entity
{'OR': [['Charles N. Haskell', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sheena Shahabadi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Charles_N._Haskell property:place_of_birth ?h } UNION { resource:Sheena_Shahabadi property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1026003 Q1156
SYSTEM
Leipsic, Mumbai
Q1026003 Q1156
OR((Q882190,P19,c(Q56061)), (Q7492390,P19,c(Q56061)))
action filter_type
action union
action find
entity Q882190
relation P19
action find
entity Q7492390
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q882190', 'P19', {'concept': 'Q56061'}], ['Q7492390', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q882190 property:P19 ?h } UNION { resource:Q7492390 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Leipsic Mumbai
Leipsic Mumbai
action filter_type
action union
action find
entity Charles N. Haskell
relation place of birth
action find
entity Sheena Shahabadi
relation place of birth
type administrative territorial entity
{'OR': [['Charles N. Haskell', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sheena Shahabadi', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Charles_N._Haskell property:place_of_birth ?h } UNION { resource:Sheena_Shahabadi property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1156
P190
Q56061
USER
Which administrative territories are sister towns of Mumbai ?
(Q1156,P190,c(Q56061))
action filter_type
action find
entity Q1156
relation P190
type Q56061
['Q1156', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1156 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Mumbai
action filter_type
action find
entity Mumbai
relation sister city
type administrative territorial entity
['Mumbai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mumbai property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q84 Q1022
SYSTEM
Los Angeles, London, Stuttgart
Q47034 Q65 Q126148 Q84 Q1022
(Q1156,P190,c(Q56061))
action filter_type
action find
entity Q1156
relation P190
type Q56061
[ANSWERS] are sister towns of Mumbai
['Q1156', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1156 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Espoo Los Angeles Tangier London Stuttgart
Los Angeles, London and Stuttgart are sister towns of Mumbai
Los Angeles London Stuttgart
action filter_type
action find
entity Mumbai
relation sister city
type administrative territorial entity
['Mumbai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Mumbai property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q995429
Q56061
USER
And also tell me about Brzeg Dolny?
(Q995429,P190,c(Q56061))
action filter_type
action find
entity Q995429
relation P190
type Q56061
['Q995429', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q995429 property:P190 ?p . ?p rdf:type ontology:Q56061 }
Brzeg Dolny
action filter_type
action find
entity Brzeg Dolny
relation sister city
type administrative territorial entity
['Brzeg Dolny', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Brzeg_Dolny property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5655
SYSTEM
Chernyakhovsk
Q5655
(Q995429,P190,c(Q56061))
action filter_type
action find
entity Q995429
relation P190
type Q56061
[ANSWER]
['Q995429', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q995429 property:P190 ?p . ?p rdf:type ontology:Q56061 }
Chernyakhovsk
Chernyakhovsk
action filter_type
action find
entity Brzeg Dolny
relation sister city
type administrative territorial entity
['Brzeg Dolny', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Brzeg_Dolny property:sister_city ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5655
P20
Q502895
USER
Which people expired at that administrative territory ?
(c(Q502895),P20,Q5655)
action filter_type
action find_reverse
entity Q5655
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q5655']
SELECT DISTINCT ?e WHERE { ?e property:P20 resource:Q5655 . ?e rdf:type ontology:Q502895 }
Chernyakhovsk
action filter_type
action find_reverse
entity Chernyakhovsk
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Chernyakhovsk']
SELECT DISTINCT ?e WHERE { ?e property:place_of_death resource:Chernyakhovsk . ?e rdf:type ontology:common_name }
[]
common name
Q157632 Q111063 Q1357624
SYSTEM
Michael Andreas Barclay de Tolly, Theodor Nordmann, Ernst Brandes
Q157632 Q111063 Q1357624 Q15433254 Q4723133 Q980638
(c(Q502895),P20,Q5655)
action filter_type
action find_reverse
entity Q5655
relation P20
type Q502895
[ANSWERS] expired at that administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q5655']
SELECT DISTINCT ?e WHERE { ?e property:P20 resource:Q5655 . ?e rdf:type ontology:Q502895 }
Michael Andreas Barclay de Tolly Theodor Nordmann Ernst Brandes Johann Behrendt Alfred Matern Frieda Jung
Michael Andreas Barclay de Tolly, Theodor Nordmann and Ernst Brandes expired at that administrative territory
Michael Andreas Barclay de Tolly Theodor Nordmann Ernst Brandes
action filter_type
action find_reverse
entity Chernyakhovsk
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Chernyakhovsk']
SELECT DISTINCT ?e WHERE { ?e property:place_of_death resource:Chernyakhovsk . ?e rdf:type ontology:common_name }
[]