Simple Question (Direct)
Simple Question
Q3940545
P161
Q502895
USER
Who were casted in Romance ?
(Q3940545,P161,c(Q502895))
action filter_type
action find
entity Q3940545
relation P161
type Q502895
['Q3940545', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q3940545 property:P161 ?x . ?x rdf:type ontology:Q502895 }
Romance
action filter_type
action find
entity Romance
relation cast member
type common name
['Romance', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Romance property:cast_member ?x . ?x rdf:type ontology:common_name }
[]
common name
Q659712 Q977975 Q3762867
SYSTEM
Luca Barbareschi, Walter Chiari, Giancarlo Garbelli
Q659712 Q3762867 Q977975 Q3852485
(Q3940545,P161,c(Q502895))
action filter_type
action find
entity Q3940545
relation P161
type Q502895
[ANSWERS] were casted in Romance
['Q3940545', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q3940545 property:P161 ?x . ?x rdf:type ontology:Q502895 }
Luca Barbareschi Giancarlo Garbelli Walter Chiari Maurizia Paradiso
Luca Barbareschi, Walter Chiari and Giancarlo Garbelli were casted in Romance
Luca Barbareschi Walter Chiari Giancarlo Garbelli
action filter_type
action find
entity Romance
relation cast member
type common name
['Romance', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Romance property:cast_member ?x . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q977975
P509
Q2057971
USER
What lead to the death of that person ?
(Q977975,P509,c(Q2057971))
action filter_type
action find
entity Q977975
relation P509
type Q2057971
['Q977975', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q977975 property:P509 ?v . ?v rdf:type ontology:Q2057971 }
Walter Chiari
action filter_type
action find
entity Walter Chiari
relation cause of death
type health problem
['Walter Chiari', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Walter_Chiari property:cause_of_death ?v . ?v rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q977975
SYSTEM
Did you mean Walter Chiari ?
Q659712 Q977975 Q3762867
(Q659712,P509,c(Q2057971)) (Q977975,P509,c(Q2057971)) (Q3762867,P509,c(Q2057971))
[ANSWER]
['Q659712', 'P509', {'concept': 'Q2057971'}] ['Q977975', 'P509', {'concept': 'Q2057971'}] ['Q3762867', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q977975 property:P509 ?v . ?v rdf:type ontology:Q2057971 }
Luca Barbareschi Walter Chiari Giancarlo Garbelli
Did you mean Walter Chiari ?
Walter Chiari
['Luca Barbareschi', 'cause of death', {'concept': 'health problem'}] ['Walter Chiari', 'cause of death', {'concept': 'health problem'}] ['Giancarlo Garbelli', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Walter_Chiari property:cause_of_death ?v . ?v rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(Q977975,P509,c(Q2057971))
['Q977975', 'P509', {'concept': 'Q2057971'}]
['Walter Chiari', 'cause of death', {'concept': 'health problem'}]
[]
Q12152
SYSTEM
myocardial infarction
Q12152
(Q977975,P509,c(Q2057971))
action filter_type
action find
entity Q977975
relation P509
type Q2057971
[ANSWER] lead to the death of that person
['Q977975', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q977975 property:P509 ?v . ?v rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction lead to the death of that person
myocardial infarction
action filter_type
action find
entity Walter Chiari
relation cause of death
type health problem
['Walter Chiari', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Walter_Chiari property:cause_of_death ?v . ?v rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q659712
P162
Q838948
USER
Which work of art has been produced by Luca Barbareschi ?
(c(Q838948),P162,Q659712)
action filter_type
action find_reverse
entity Q659712
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q659712']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q659712 . ?m rdf:type ontology:Q838948 }
Luca Barbareschi
action filter_type
action find_reverse
entity Luca Barbareschi
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Luca Barbareschi']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Luca_Barbareschi . ?m rdf:type ontology:work_of_art }
[]
work of art
Q3940522
SYSTEM
Roman Polanski: A Film Memoir
Q3940522
(c(Q838948),P162,Q659712)
action filter_type
action find_reverse
entity Q659712
relation P162
type Q838948
[ANSWER] has been produced by Luca Barbareschi
[{'concept': 'Q838948'}, 'P162', 'Q659712']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q659712 . ?m rdf:type ontology:Q838948 }
Roman Polanski: A Film Memoir
Roman Polanski: A Film Memoir has been produced by Luca Barbareschi
Roman Polanski: A Film Memoir
action filter_type
action find_reverse
entity Luca Barbareschi
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Luca Barbareschi']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Luca_Barbareschi . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12152
P1995
Q1047113
USER
What is the medical speciality of myocardial infarction ?
(Q12152,P1995,c(Q1047113))
action filter_type
action find
entity Q12152
relation P1995
type Q1047113
['Q12152', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1047113 . resource:Q12152 property:P1995 ?s }
myocardial infarction
action filter_type
action find
entity myocardial infarction
relation medical specialty
type special field
['myocardial infarction', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:special_field . resource:myocardial_infarction property:medical_specialty ?s }
[]
special field
Q10379
SYSTEM
cardiology
Q10379
(Q12152,P1995,c(Q1047113))
action filter_type
action find
entity Q12152
relation P1995
type Q1047113
The medical speciality of myocardial infarction is medical [ANSWER]
['Q12152', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1047113 . resource:Q12152 property:P1995 ?s }
cardiology
The medical speciality of myocardial infarction is medical cardiology
cardiology
action filter_type
action find
entity myocardial infarction
relation medical specialty
type special field
['myocardial infarction', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:special_field . resource:myocardial_infarction property:medical_specialty ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3542027
Q1047113
USER
And how about Epithelioma?
(Q3542027,P1995,c(Q1047113))
action filter_type
action find
entity Q3542027
relation P1995
type Q1047113
['Q3542027', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1047113 . resource:Q3542027 property:P1995 ?a }
Epithelioma
action filter_type
action find
entity Epithelioma
relation medical specialty
type special field
['Epithelioma', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:special_field . resource:Epithelioma property:medical_specialty ?a }
[]
special field
Q171171 Q162555
SYSTEM
dermatology, oncology
Q171171 Q162555
(Q3542027,P1995,c(Q1047113))
action filter_type
action find
entity Q3542027
relation P1995
type Q1047113
[ANSWERS]
['Q3542027', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1047113 . resource:Q3542027 property:P1995 ?a }
dermatology oncology
dermatology oncology
action filter_type
action find
entity Epithelioma
relation medical specialty
type special field
['Epithelioma', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:special_field . resource:Epithelioma property:medical_specialty ?a }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4742183
P1995
Q2057971
USER
Do amelanotic melanoma have those special fields as the associated medical proficiency ?
(Q4742183,P1995,Q171171) (Q4742183,P1995,Q162555)
action is_in
entity prev_answer
action find
entity Q4742183
relation P1995
['Q4742183', 'P1995', 'Q171171'] ['Q4742183', 'P1995', 'Q162555']
ASK WHERE { resource:Q4742183 property:P1995 ?w . VALUES ( ?w ) { ( resource:Q171171 ) ( resource:Q162555 ) } }
amelanotic melanoma
action is_in
entity prev_answer
action find
entity amelanotic melanoma
relation medical specialty
['amelanotic melanoma', 'medical specialty', 'dermatology'] ['amelanotic melanoma', 'medical specialty', 'oncology']
ASK WHERE { resource:amelanotic_melanoma property:medical_specialty ?w . VALUES ( ?w ) { ( resource:dermatology ) ( resource:oncology ) } }
[]
health problem
SYSTEM
YES
(Q4742183,P1995,Q171171) (Q4742183,P1995,Q162555)
action is_in
entity prev_answer
action find
entity Q4742183
relation P1995
[ANSWER]
['Q4742183', 'P1995', 'Q171171'] ['Q4742183', 'P1995', 'Q162555']
ASK WHERE { resource:Q4742183 property:P1995 ?w . VALUES ( ?w ) { ( resource:Q171171 ) ( resource:Q162555 ) } }
Yes
action is_in
entity prev_answer
action find
entity amelanotic melanoma
relation medical specialty
['amelanotic melanoma', 'medical specialty', 'dermatology'] ['amelanotic melanoma', 'medical specialty', 'oncology']
ASK WHERE { resource:amelanotic_melanoma property:medical_specialty ?w . VALUES ( ?w ) { ( resource:dermatology ) ( resource:oncology ) } }
[]