Simple Question (Direct)
Simple Question
Q4497582
P509
Q2057971
USER
What caused the death of Bobby Joe Hill ?
(Q4497582,P509,c(Q2057971))
action filter_type
action find
entity Q4497582
relation P509
type Q2057971
['Q4497582', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q4497582 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
Bobby Joe Hill
action filter_type
action find
entity Bobby Joe Hill
relation cause of death
type health problem
['Bobby Joe Hill', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Bobby_Joe_Hill property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q4497582,P509,c(Q2057971))
action filter_type
action find
entity Q4497582
relation P509
type Q2057971
The [ANSWER] caused the death of Bobby Joe Hill
['Q4497582', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q4497582 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
myocardial infarction
The myocardial infarction caused the death of Bobby Joe Hill
myocardial infarction
action filter_type
action find
entity Bobby Joe Hill
relation cause of death
type health problem
['Bobby Joe Hill', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:Bobby_Joe_Hill property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4497582
P1196
Q1931388
USER
What situation did that person die in ?
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q4497582
relation P1196
type Q1931388
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q4497582 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
Bobby Joe Hill
action filter_type
action find
entity Bobby Joe Hill
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Bobby_Joe_Hill property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q4497582
relation P1196
type Q1931388
That person died in [ANSWER]
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q4497582 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Bobby Joe Hill
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Bobby_Joe_Hill property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q7422557 Q4497582
P1196
Q1931388
USER
And also Sarah Mae Flemming
AND((Q4497582,P1196,c(Q1931388)), (Q7422557,P1196,c(Q1931388)))
action filter_type
action intersection
action find
entity Q4497582
relation P1196
action find
entity Q7422557
relation P1196
type Q1931388
{'AND': [['Q4497582', 'P1196', {'concept': 'Q1931388'}], ['Q7422557', 'P1196', {'concept': 'Q1931388'}]]}
SELECT DISTINCT ?r WHERE { resource:Q4497582 property:P1196 ?r . resource:Q7422557 property:P1196 ?r . ?r rdf:type ontology:Q1931388 }
Sarah Mae Flemming Bobby Joe Hill
action filter_type
action intersection
action find
entity Bobby Joe Hill
relation manner of death
action find
entity Sarah Mae Flemming
relation manner of death
type cause of death
{'AND': [['Bobby Joe Hill', 'manner of death', {'concept': 'cause of death'}], ['Sarah Mae Flemming', 'manner of death', {'concept': 'cause of death'}]]}
SELECT DISTINCT ?r WHERE { resource:Bobby_Joe_Hill property:manner_of_death ?r . resource:Sarah_Mae_Flemming property:manner_of_death ?r . ?r rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
AND((Q4497582,P1196,c(Q1931388)), (Q7422557,P1196,c(Q1931388)))
action filter_type
action intersection
action find
entity Q4497582
relation P1196
action find
entity Q7422557
relation P1196
type Q1931388
[ANSWER]
{'AND': [['Q4497582', 'P1196', {'concept': 'Q1931388'}], ['Q7422557', 'P1196', {'concept': 'Q1931388'}]]}
SELECT DISTINCT ?r WHERE { resource:Q4497582 property:P1196 ?r . resource:Q7422557 property:P1196 ?r . ?r rdf:type ontology:Q1931388 }
natural causes
natural causes
action filter_type
action intersection
action find
entity Bobby Joe Hill
relation manner of death
action find
entity Sarah Mae Flemming
relation manner of death
type cause of death
{'AND': [['Bobby Joe Hill', 'manner of death', {'concept': 'cause of death'}], ['Sarah Mae Flemming', 'manner of death', {'concept': 'cause of death'}]]}
SELECT DISTINCT ?r WHERE { resource:Bobby_Joe_Hill property:manner_of_death ?r . resource:Sarah_Mae_Flemming property:manner_of_death ?r . ?r rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q974135
P828
Q796194 Q2057971
USER
Which medical procedures leads to greater number of health problems than chemotherapy ?
(c(Q2057971),P828,c(Q796194))
action greater
action find_reverse_tuple_counts
relation P828
type Q796194
type Q2057971
action count
action filter_type
action find
entity Q974135
relation P828
type Q796194
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q796194'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P828 ?c . ?c rdf:type ontology:Q796194 . ?o rdf:type ontology:Q2057971 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q974135 property:P828 ?q . ?q rdf:type ontology:Q796194 } } . FILTER ( ?k > ?l ) }
chemotherapy
action greater
action find_reverse_tuple_counts
relation has cause
type medical procedure
type health problem
action count
action filter_type
action find
entity chemotherapy
relation has cause
type medical procedure
[{'concept': 'health problem'}, 'has cause', {'concept': 'medical procedure'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:has_cause ?c . ?c rdf:type ontology:medical_procedure . ?o rdf:type ontology:health_problem } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:chemotherapy property:has_cause ?q . ?q rdf:type ontology:medical_procedure } } . FILTER ( ?k > ?l ) }
[]
medical procedure health problem
Q180507 Q183605
SYSTEM
radiation therapy, blood transfusion
Q180507 Q183605
(c(Q2057971),P828,c(Q796194))
action greater
action find_reverse_tuple_counts
relation P828
type Q796194
type Q2057971
action count
action filter_type
action find
entity Q974135
relation P828
type Q796194
[ANSWERS] lead to greater number of health problems than chemotherapy
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q796194'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P828 ?c . ?c rdf:type ontology:Q796194 . ?o rdf:type ontology:Q2057971 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q974135 property:P828 ?q . ?q rdf:type ontology:Q796194 } } . FILTER ( ?k > ?l ) }
radiation therapy blood transfusion
Radiation therapy and blood transfusion lead to greater number of health problems than chemotherapy
radiation therapy blood transfusion
action greater
action find_reverse_tuple_counts
relation has cause
type medical procedure
type health problem
action count
action filter_type
action find
entity chemotherapy
relation has cause
type medical procedure
[{'concept': 'health problem'}, 'has cause', {'concept': 'medical procedure'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:has_cause ?c . ?c rdf:type ontology:medical_procedure . ?o rdf:type ontology:health_problem } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:chemotherapy property:has_cause ?q . ?q rdf:type ontology:medical_procedure } } . FILTER ( ?k > ?l ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q180507
P2175
Q12136
USER
Which disease requires that medical procedure to be prescribed ?
(Q180507,P2175,c(Q12136))
action filter_type
action find
entity Q180507
relation P2175
type Q12136
['Q180507', 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { resource:Q180507 property:P2175 ?p . ?p rdf:type ontology:Q12136 }
radiation therapy
action filter_type
action find
entity radiation therapy
relation medical condition treated
type disease
['radiation therapy', 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { resource:radiation_therapy property:medical_condition_treated ?p . ?p rdf:type ontology:disease }
[]
disease
Clarification for simple ques.
Q183605
SYSTEM
Did you mean blood transfusion ?
Q180507 Q183605
(Q180507,P2175,c(Q12136)) (Q183605,P2175,c(Q12136))
[ANSWER]
['Q180507', 'P2175', {'concept': 'Q12136'}] ['Q183605', 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { resource:Q180507 property:P2175 ?p . ?p rdf:type ontology:Q12136 }
radiation therapy blood transfusion
Did you mean blood transfusion ?
blood transfusion
['radiation therapy', 'medical condition treated', {'concept': 'disease'}] ['blood transfusion', 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { resource:radiation_therapy property:medical_condition_treated ?p . ?p rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
USER
No, I meant radiation therapy. Could you tell me the answer for that?
(Q180507,P2175,c(Q12136))
Q180507
['Q180507', 'P2175', {'concept': 'Q12136'}]
['radiation therapy', 'medical condition treated', {'concept': 'disease'}]
[]
Q133212
SYSTEM
tumor
Q133212
(Q180507,P2175,c(Q12136))
action filter_type
action find
entity Q180507
relation P2175
type Q12136
The [ANSWER] requires that medical procedure to be prescribed
['Q180507', 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { resource:Q180507 property:P2175 ?p . ?p rdf:type ontology:Q12136 }
tumor
The tumor requires that medical procedure to be prescribed
tumor
action filter_type
action find
entity radiation therapy
relation medical condition treated
type disease
['radiation therapy', 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { resource:radiation_therapy property:medical_condition_treated ?p . ?p rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q133212
P2175
Q796194
USER
Which medical procedure is used for treatment of that disease ?
(c(Q796194),P2175,Q133212)
action filter_type
action find_reverse
entity Q133212
relation P2175
type Q796194
[{'concept': 'Q796194'}, 'P2175', 'Q133212']
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q133212 . ?z rdf:type ontology:Q796194 }
tumor
action filter_type
action find_reverse
entity tumor
relation medical condition treated
type medical procedure
[{'concept': 'medical procedure'}, 'medical condition treated', 'tumor']
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:tumor . ?z rdf:type ontology:medical_procedure }
[]
medical procedure
Q180507
SYSTEM
radiation therapy
Q180507
(c(Q796194),P2175,Q133212)
action filter_type
action find_reverse
entity Q133212
relation P2175
type Q796194
And [ANSWER] is used for treatment of that disease
[{'concept': 'Q796194'}, 'P2175', 'Q133212']
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q133212 . ?z rdf:type ontology:Q796194 }
radiation therapy
And radiation therapy is used for treatment of that disease
radiation therapy
action filter_type
action find_reverse
entity tumor
relation medical condition treated
type medical procedure
[{'concept': 'medical procedure'}, 'medical condition treated', 'tumor']
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:tumor . ?z rdf:type ontology:medical_procedure }
[]