Simple Question (Direct)
Simple Question
Q93890
P1196
Q1931388
USER
What situation did Kajetan Mühlmann die in ?
(Q93890,P1196,c(Q1931388))
action filter_type
action find
entity Q93890
relation P1196
type Q1931388
['Q93890', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { resource:Q93890 property:P1196 ?v . ?v rdf:type ontology:Q1931388 }
Kajetan Mühlmann
action filter_type
action find
entity Kajetan Mühlmann
relation manner of death
type cause of death
['Kajetan Mühlmann', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { resource:Kajetan_Mühlmann property:manner_of_death ?v . ?v rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q93890,P1196,c(Q1931388))
action filter_type
action find
entity Q93890
relation P1196
type Q1931388
Kajetan Mühlmann died of [ANSWER]
['Q93890', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { resource:Q93890 property:P1196 ?v . ?v rdf:type ontology:Q1931388 }
natural causes
Kajetan Mühlmann died of natural causes
natural causes
action filter_type
action find
entity Kajetan Mühlmann
relation manner of death
type cause of death
['Kajetan Mühlmann', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { resource:Kajetan_Mühlmann property:manner_of_death ?v . ?v rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q93890
P509
Q2057971
USER
What caused the death of Kajetan Mühlmann ?
(Q93890,P509,c(Q2057971))
action filter_type
action find
entity Q93890
relation P509
type Q2057971
['Q93890', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q93890 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
Kajetan Mühlmann
action filter_type
action find
entity Kajetan Mühlmann
relation cause of death
type health problem
['Kajetan Mühlmann', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Kajetan_Mühlmann property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q189588
SYSTEM
stomach cancer
Q189588
(Q93890,P509,c(Q2057971))
action filter_type
action find
entity Q93890
relation P509
type Q2057971
[ANSWER] caused the death of Kajetan Mühlmann
['Q93890', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q93890 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
stomach cancer
Stomach cancer caused the death of Kajetan Mühlmann
stomach cancer
action filter_type
action find
entity Kajetan Mühlmann
relation cause of death
type health problem
['Kajetan Mühlmann', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Kajetan_Mühlmann property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1586470
Q2057971
USER
And also tell me about Harry Cohn?
(Q1586470,P509,c(Q2057971))
action filter_type
action find
entity Q1586470
relation P509
type Q2057971
['Q1586470', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2057971 . resource:Q1586470 property:P509 ?e }
Harry Cohn
action filter_type
action find
entity Harry Cohn
relation cause of death
type health problem
['Harry Cohn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:health_problem . resource:Harry_Cohn property:cause_of_death ?e }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q1586470,P509,c(Q2057971))
action filter_type
action find
entity Q1586470
relation P509
type Q2057971
[ANSWER]
['Q1586470', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2057971 . resource:Q1586470 property:P509 ?e }
myocardial infarction
myocardial infarction
action filter_type
action find
entity Harry Cohn
relation cause of death
type health problem
['Harry Cohn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:health_problem . resource:Harry_Cohn property:cause_of_death ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1050
Q2057971 Q502895
USER
Which health problems have more number of people contracted than that health problem ?
(c(Q502895),P1050,c(Q2057971))
action greater
action find_reverse_tuple_counts
relation P1050
type Q2057971
type Q502895
action count
action filter_type
action find
entity Q12152
relation P1050
type Q2057971
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1050 ?b . ?b rdf:type ontology:Q2057971 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?q > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q12152 property:P1050 ?h . ?h rdf:type ontology:Q2057971 } } }
action greater
action find_reverse_tuple_counts
relation medical condition
type health problem
type common name
action count
action filter_type
action find
entity myocardial infarction
relation medical condition
type health problem
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:medical_condition ?b . ?b rdf:type ontology:health_problem . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?q > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:myocardial_infarction property:medical_condition ?h . ?h rdf:type ontology:health_problem } } }
[]
health problem common name
Q128581 Q11081 Q131755
SYSTEM
breast cancer, Alzheimer's disease, bipolar disorder
Q749409 Q35869 Q178190 Q10874 Q12195 Q244438 Q134003 Q11081 Q11085 Q41571 Q1049655 Q38404 Q844717 Q131755 Q132971 Q161790 Q12204 Q12202 Q12206 Q501829 Q595010 Q128581 Q47715 Q124407 Q194101 Q210427 Q2840
(c(Q502895),P1050,c(Q2057971))
action greater
action find_reverse_tuple_counts
relation P1050
type Q2057971
type Q502895
action count
action filter_type
action find
entity Q12152
relation P1050
type Q2057971
[ANSWERS] have more number of people contracted than that health problem
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1050 ?b . ?b rdf:type ontology:Q2057971 . ?u rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?q > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q12152 property:P1050 ?h . ?h rdf:type ontology:Q2057971 } } }
osteogenesis imperfecta asthma obsessive-compulsive disorder blindness poliomyelitis prosopagnosia inherited blood coagulation disease Alzheimer's disease Parkinson's disease epilepsy paraplegia autism spina bifida bipolar disorder dyslexia Asperger syndrome tuberculosis stroke diabetes mellitus gigantism hypertrichosis breast cancer Down syndrome type 1 diabetes mellitus dwarfism cerebral palsy influenza
Breast cancer, Alzheimer's disease and bipolar disorder have more number of people contracted than that health problem
breast cancer Alzheimer's disease bipolar disorder
action greater
action find_reverse_tuple_counts
relation medical condition
type health problem
type common name
action count
action filter_type
action find
entity myocardial infarction
relation medical condition
type health problem
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:medical_condition ?b . ?b rdf:type ontology:health_problem . ?u rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?q > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:myocardial_infarction property:medical_condition ?h . ?h rdf:type ontology:health_problem } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4856119 Q93890
P27 P17
Q1048835
USER
Which political territories are the native countriesof Kajetan Mühlmann or do Bank of Hamilton belong to ?
OR((Q93890,P27,c(Q1048835)), (Q4856119,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q93890
relation P27
action find
entity Q4856119
relation P17
type Q1048835
{'OR': [['Q93890', 'P27', {'concept': 'Q1048835'}], ['Q4856119', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q93890 property:P27 ?c } UNION { resource:Q4856119 property:P17 ?c } } . ?c rdf:type ontology:Q1048835 }
Bank of Hamilton Kajetan Mühlmann
action filter_type
action union
action find
entity Kajetan Mühlmann
relation country of citizenship
action find
entity Bank of Hamilton
relation country
type political territorial entity
{'OR': [['Kajetan Mühlmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Bank of Hamilton', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kajetan_Mühlmann property:country_of_citizenship ?c } UNION { resource:Bank_of_Hamilton property:country ?c } } . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q40
SYSTEM
Canada, Austria
Q16 Q40
OR((Q93890,P27,c(Q1048835)), (Q4856119,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q93890
relation P27
action find
entity Q4856119
relation P17
type Q1048835
[ANSWERS] are the native countriesof Kajetan Mühlmann or do Bank of Hamilton belong to
{'OR': [['Q93890', 'P27', {'concept': 'Q1048835'}], ['Q4856119', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q93890 property:P27 ?c } UNION { resource:Q4856119 property:P17 ?c } } . ?c rdf:type ontology:Q1048835 }
Canada Austria
Canada and Austria are the native countriesof Kajetan Mühlmann or do Bank of Hamilton belong to
Canada Austria
action filter_type
action union
action find
entity Kajetan Mühlmann
relation country of citizenship
action find
entity Bank of Hamilton
relation country
type political territorial entity
{'OR': [['Kajetan Mühlmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Bank of Hamilton', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kajetan_Mühlmann property:country_of_citizenship ?c } UNION { resource:Bank_of_Hamilton property:country ?c } } . ?c rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4856119
P159
Q56061
USER
Which administrative territory is the head office of that organization ?
(Q16,P159,c(Q56061)) (Q40,P159,c(Q56061))
action filter_type
action find
entity Q4856119
relation P159
type Q56061
['Q16', 'P159', {'concept': 'Q56061'}] ['Q40', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q4856119 property:P159 ?y . ?y rdf:type ontology:Q56061 }
Bank of Hamilton
action filter_type
action find
entity Bank of Hamilton
relation headquarters location
type administrative territorial entity
['Canada', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Austria', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Bank_of_Hamilton property:headquarters_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q133116
SYSTEM
Hamilton
Q133116
(Q16,P159,c(Q56061)) (Q40,P159,c(Q56061))
action filter_type
action find
entity Q4856119
relation P159
type Q56061
[ANSWER] is the head office of that organization
['Q16', 'P159', {'concept': 'Q56061'}] ['Q40', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q4856119 property:P159 ?y . ?y rdf:type ontology:Q56061 }
Hamilton
Hamilton is the head office of that organization
Hamilton
action filter_type
action find
entity Bank of Hamilton
relation headquarters location
type administrative territorial entity
['Canada', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Austria', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Bank_of_Hamilton property:headquarters_location ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2304164 Q40
P206
Q355304
USER
Which watercourses are situated in the neighbourhood of Austria or Curtius Museum ?
OR((Q40,P206,c(Q355304)), (Q2304164,P206,c(Q355304)))
action filter_type
action union
action find
entity Q40
relation P206
action find
entity Q2304164
relation P206
type Q355304
{'OR': [['Q40', 'P206', {'concept': 'Q355304'}], ['Q2304164', 'P206', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q2304164 property:P206 ?a } UNION { resource:Q40 property:P206 ?a } } . ?a rdf:type ontology:Q355304 }
Curtius Museum Austria
action filter_type
action union
action find
entity Austria
relation located next to body of water
action find
entity Curtius Museum
relation located next to body of water
type watercourse
{'OR': [['Austria', 'located next to body of water', {'concept': 'watercourse'}], ['Curtius Museum', 'located next to body of water', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Curtius_Museum property:located_next_to_body_of_water ?a } UNION { resource:Austria property:located_next_to_body_of_water ?a } } . ?a rdf:type ontology:watercourse }
[]
watercourse
Q41986 Q14369 Q584 Q152661 Q660208 Q1653 Q179251
SYSTEM
Meuse, Inn, Rhine, Salzach, Thaya, Danube, Morava
Q41986 Q14369 Q584 Q152661 Q660208 Q1653 Q179251
OR((Q40,P206,c(Q355304)), (Q2304164,P206,c(Q355304)))
action filter_type
action union
action find
entity Q40
relation P206
action find
entity Q2304164
relation P206
type Q355304
[ANSWERS] are situated in the neighbourhood of Austria or Curtius Museum
{'OR': [['Q40', 'P206', {'concept': 'Q355304'}], ['Q2304164', 'P206', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q2304164 property:P206 ?a } UNION { resource:Q40 property:P206 ?a } } . ?a rdf:type ontology:Q355304 }
Meuse Inn Rhine Salzach Thaya Danube Morava
Meuse, Inn, Rhine, Salzach, Thaya, Danube and Morava are situated in the neighbourhood of Austria or Curtius Museum
Meuse Inn Rhine Salzach Thaya Danube Morava
action filter_type
action union
action find
entity Austria
relation located next to body of water
action find
entity Curtius Museum
relation located next to body of water
type watercourse
{'OR': [['Austria', 'located next to body of water', {'concept': 'watercourse'}], ['Curtius Museum', 'located next to body of water', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Curtius_Museum property:located_next_to_body_of_water ?a } UNION { resource:Austria property:located_next_to_body_of_water ?a } } . ?a rdf:type ontology:watercourse }
[]