Simple Question (Direct)
Simple Question
Q2601541
P344
Q502895
USER
Who is the director of photography for Behind the Rising Sun ?
(Q2601541,P344,c(Q502895))
action filter_type
action find
entity Q2601541
relation P344
type Q502895
['Q2601541', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q2601541 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Behind the Rising Sun
action filter_type
action find
entity Behind the Rising Sun
relation director of photography
type common name
['Behind the Rising Sun', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Behind_the_Rising_Sun property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1312577
SYSTEM
Russell Metty
Q1312577
(Q2601541,P344,c(Q502895))
action filter_type
action find
entity Q2601541
relation P344
type Q502895
The director of photography for Behind the Rising Sun is John [ANSWER]
['Q2601541', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q2601541 property:P344 ?t . ?t rdf:type ontology:Q502895 }
Russell Metty
The director of photography for Behind the Rising Sun is John Russell Metty
Russell Metty
action filter_type
action find
entity Behind the Rising Sun
relation director of photography
type common name
['Behind the Rising Sun', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Behind_the_Rising_Sun property:director_of_photography ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2601541
P921
Q198
USER
Which war was the main subject of Behind the Rising Sun 's work ?
(Q2601541,P921,c(Q198))
action filter_type
action find
entity Q2601541
relation P921
type Q198
['Q2601541', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q2601541 property:P921 ?a . ?a rdf:type ontology:Q198 }
Behind the Rising Sun
action filter_type
action find
entity Behind the Rising Sun
relation main subject
type war
['Behind the Rising Sun', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Behind_the_Rising_Sun property:main_subject ?a . ?a rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q2601541,P921,c(Q198))
action filter_type
action find
entity Q2601541
relation P921
type Q198
[ANSWER] was the main subject of Behind the Rising Sun 's work
['Q2601541', 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q2601541 property:P921 ?a . ?a rdf:type ontology:Q198 }
World War II
World War II was the main subject of Behind the Rising Sun 's work
World War II
action filter_type
action find
entity Behind the Rising Sun
relation main subject
type war
['Behind the Rising Sun', 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Behind_the_Rising_Sun property:main_subject ?a . ?a rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2601541
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q362,P136,c(Q1792379))
action filter_type
action find
entity Q2601541
relation P136
type Q1792379
['Q362', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1792379 . resource:Q2601541 property:P136 ?r }
Behind the Rising Sun
action filter_type
action find
entity Behind the Rising Sun
relation genre
type art genre
['World War II', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:art_genre . resource:Behind_the_Rising_Sun property:genre ?r }
[]
art genre
Q130232
SYSTEM
drama film
Q130232
(Q362,P136,c(Q1792379))
action filter_type
action find
entity Q2601541
relation P136
type Q1792379
The [ANSWER] can be considered as category for that work of art
['Q362', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1792379 . resource:Q2601541 property:P136 ?r }
drama film
The drama film can be considered as category for that work of art
drama film
action filter_type
action find
entity Behind the Rising Sun
relation genre
type art genre
['World War II', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:art_genre . resource:Behind_the_Rising_Sun property:genre ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2601541
P58
Q502895
USER
Who wrote the script for that work of art ?
(Q130232,P58,c(Q502895))
action filter_type
action find
entity Q2601541
relation P58
type Q502895
['Q130232', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2601541 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Behind the Rising Sun
action filter_type
action find
entity Behind the Rising Sun
relation screenwriter
type common name
['drama film', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Behind_the_Rising_Sun property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
common name
Q3053022
SYSTEM
Emmet Lavery
Q3053022
(Q130232,P58,c(Q502895))
action filter_type
action find
entity Q2601541
relation P58
type Q502895
[ANSWER] wrote the script for that work of art
['Q130232', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2601541 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Emmet Lavery
Emmet Lavery wrote the script for that work of art
Emmet Lavery
action filter_type
action find
entity Behind the Rising Sun
relation screenwriter
type common name
['drama film', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Behind_the_Rising_Sun property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3053022 Q370660 Q30
P27
Q15617994
USER
Is that person a native of Enspel and United States of America ?
(Q3053022,P27,Q370660) (Q3053022,P27,Q30)
action is_in
entity Q3053022
action intersection
action find_reverse
entity Q370660
relation P27
action find_reverse
entity Q30
relation P27
['Q3053022', 'P27', 'Q370660'] ['Q3053022', 'P27', 'Q30']
ASK WHERE { resource:Q3053022 property:P27 resource:Q30 . resource:Q3053022 property:P27 resource:Q370660 }
Emmet Lavery Enspel United States of America
action is_in
entity Emmet Lavery
action intersection
action find_reverse
entity Enspel
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Emmet Lavery', 'country of citizenship', 'Enspel'] ['Emmet Lavery', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Emmet_Lavery property:country_of_citizenship resource:United_States_of_America . resource:Emmet_Lavery property:country_of_citizenship resource:Enspel }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q3053022,P27,Q370660) (Q3053022,P27,Q30)
action is_in
entity Q3053022
action intersection
action find_reverse
entity Q370660
relation P27
action find_reverse
entity Q30
relation P27
[ANSWER]
['Q3053022', 'P27', 'Q370660'] ['Q3053022', 'P27', 'Q30']
ASK WHERE { resource:Q3053022 property:P27 resource:Q30 . resource:Q3053022 property:P27 resource:Q370660 }
NO and YES respectively
action is_in
entity Emmet Lavery
action intersection
action find_reverse
entity Enspel
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Emmet Lavery', 'country of citizenship', 'Enspel'] ['Emmet Lavery', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Emmet_Lavery property:country_of_citizenship resource:United_States_of_America . resource:Emmet_Lavery property:country_of_citizenship resource:Enspel }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3053022
P21
Q290
USER
What is the sex of Emmet Lavery ?
(Q3053022,P21,c(Q290))
action filter_type
action find
entity Q3053022
relation P21
type Q290
['Q3053022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q3053022 property:P21 ?j . ?j rdf:type ontology:Q290 }
Emmet Lavery
action filter_type
action find
entity Emmet Lavery
relation gender
type sex
['Emmet Lavery', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Emmet_Lavery property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3053022,P21,c(Q290))
action filter_type
action find
entity Q3053022
relation P21
type Q290
The sex of Emmet Lavery is the [ANSWER]
['Q3053022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q3053022 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of Emmet Lavery is the male
male
action filter_type
action find
entity Emmet Lavery
relation gender
type sex
['Emmet Lavery', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Emmet_Lavery property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20101694
Q290
USER
And how about Ronak Husni?
(Q20101694,P21,c(Q290))
action filter_type
action find
entity Q20101694
relation P21
type Q290
['Q20101694', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q20101694 property:P21 ?q . ?q rdf:type ontology:Q290 }
Ronak Husni
action filter_type
action find
entity Ronak Husni
relation gender
type sex
['Ronak Husni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Ronak_Husni property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20101694,P21,c(Q290))
action filter_type
action find
entity Q20101694
relation P21
type Q290
[ANSWER]
['Q20101694', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q20101694 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Ronak Husni
relation gender
type sex
['Ronak Husni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Ronak_Husni property:gender ?q . ?q rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3823672 Q2601541
P161
Q502895
USER
Which people were casted in Behind the Rising Sun or The First Woman Who Passes ?
OR((Q2601541,P161,c(Q502895)), (Q3823672,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2601541
relation P161
action find
entity Q3823672
relation P161
type Q502895
{'OR': [['Q2601541', 'P161', {'concept': 'Q502895'}], ['Q3823672', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q2601541 property:P161 ?r } UNION { resource:Q3823672 property:P161 ?r } } . ?r rdf:type ontology:Q502895 }
The First Woman Who Passes Behind the Rising Sun
action filter_type
action union
action find
entity Behind the Rising Sun
relation cast member
action find
entity The First Woman Who Passes
relation cast member
type common name
{'OR': [['Behind the Rising Sun', 'cast member', {'concept': 'common name'}], ['The First Woman Who Passes', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Behind_the_Rising_Sun property:cast_member ?r } UNION { resource:The_First_Woman_Who_Passes property:cast_member ?r } } . ?r rdf:type ontology:common_name }
[]
common name
Q1230751 Q1553389 Q16268346 Q352701 Q3629656 Q106940 Q642876 Q3881755 Q2067198 Q2896707
SYSTEM
Some of them are Don Douglas, Guglielmo Barnabò, Eugenio Duse, Richard Loo, Augusto Marcacci, Alida Valli, J. Carrol Naish, Olinto Cristina, Margo, Benson Fong
Q3877258 Q106940 Q3604390 Q2067198 Q3881755 Q3530819 Q3629656 Q2896707 Q350680 Q3856680 Q3706755 Q1859510 Q3932703 Q263215 Q1321739 Q352701 Q642876 Q1553389 Q16268346 Q1230751 Q3659534 Q3771223 Q599673 Q129386
OR((Q2601541,P161,c(Q502895)), (Q3823672,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2601541
relation P161
action find
entity Q3823672
relation P161
type Q502895
[ANSWERS] were casted in Behind the Rising Sun or The First Woman Who Passes
{'OR': [['Q2601541', 'P161', {'concept': 'Q502895'}], ['Q3823672', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q2601541 property:P161 ?r } UNION { resource:Q3823672 property:P161 ?r } } . ?r rdf:type ontology:Q502895 }
Ninì Gordini Cervi Alida Valli Achille Majeroni Margo Olinto Cristina Tom Neal Augusto Marcacci Benson Fong Robert Ryan Michele Malaspina Diana Lante Mike Mazurki Renato Malavasi Gloria Holden Philip Ahn Richard Loo J. Carrol Naish Guglielmo Barnabò Eugenio Duse Don Douglas Carlo Lombardi Giuseppe Pierozzi Giuseppe Rinaldi Abner Biberman
Don Douglas, Guglielmo Barnabò, Eugenio Duse, Richard Loo, Augusto Marcacci, Alida Valli, J. Carrol Naish, Olinto Cristina, Margo and Benson Fong were casted in Behind the Rising Sun or The First Woman Who Passes
Don Douglas Guglielmo Barnabò Eugenio Duse Richard Loo Augusto Marcacci Alida Valli J. Carrol Naish Olinto Cristina Margo Benson Fong
action filter_type
action union
action find
entity Behind the Rising Sun
relation cast member
action find
entity The First Woman Who Passes
relation cast member
type common name
{'OR': [['Behind the Rising Sun', 'cast member', {'concept': 'common name'}], ['The First Woman Who Passes', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Behind_the_Rising_Sun property:cast_member ?r } UNION { resource:The_First_Woman_Who_Passes property:cast_member ?r } } . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2067198
P25
Q502895
USER
Which person has that one as a parent ?
(c(Q502895),P25,Q2067198)
action filter_type
action find_reverse
entity Q2067198
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q2067198']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P25 resource:Q2067198 }
Margo
action filter_type
action find_reverse
entity Margo
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Margo']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:mother resource:Margo }
[]
common name
Clarification for simple ques.
Q642876
SYSTEM
Did you mean J. Carrol Naish ?
Q1230751 Q1553389 Q16268346 Q352701 Q3629656 Q106940 Q642876 Q3881755 Q2067198 Q2896707
(c(Q502895),P25,Q1230751) (c(Q502895),P25,Q1553389) (c(Q502895),P25,Q16268346) (c(Q502895),P25,Q352701) (c(Q502895),P25,Q3629656) (c(Q502895),P25,Q106940) (c(Q502895),P25,Q642876) (c(Q502895),P25,Q3881755) (c(Q502895),P25,Q2067198) (c(Q502895),P25,Q2896707)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q1230751'] [{'concept': 'Q502895'}, 'P25', 'Q1553389'] [{'concept': 'Q502895'}, 'P25', 'Q16268346'] [{'concept': 'Q502895'}, 'P25', 'Q352701'] [{'concept': 'Q502895'}, 'P25', 'Q3629656'] [{'concept': 'Q502895'}, 'P25', 'Q106940'] [{'concept': 'Q502895'}, 'P25', 'Q642876'] [{'concept': 'Q502895'}, 'P25', 'Q3881755'] [{'concept': 'Q502895'}, 'P25', 'Q2067198'] [{'concept': 'Q502895'}, 'P25', 'Q2896707']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P25 resource:Q2067198 }
Don Douglas Guglielmo Barnabò Eugenio Duse Richard Loo Augusto Marcacci Alida Valli J. Carrol Naish Olinto Cristina Margo Benson Fong
Did you mean J. Carrol Naish ?
J. Carrol Naish
[{'concept': 'common name'}, 'mother', 'Don Douglas'] [{'concept': 'common name'}, 'mother', 'Guglielmo Barnabò'] [{'concept': 'common name'}, 'mother', 'Eugenio Duse'] [{'concept': 'common name'}, 'mother', 'Richard Loo'] [{'concept': 'common name'}, 'mother', 'Augusto Marcacci'] [{'concept': 'common name'}, 'mother', 'Alida Valli'] [{'concept': 'common name'}, 'mother', 'J. Carrol Naish'] [{'concept': 'common name'}, 'mother', 'Olinto Cristina'] [{'concept': 'common name'}, 'mother', 'Margo'] [{'concept': 'common name'}, 'mother', 'Benson Fong']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:mother resource:Margo }
[]
Simple Question (Coreferenced)
USER
No, I meant Margo. Could you tell me the answer for that?
(c(Q502895),P25,Q2067198)
Q2067198
[{'concept': 'Q502895'}, 'P25', 'Q2067198']
[{'concept': 'common name'}, 'mother', 'Margo']
[]
Q949337
SYSTEM
Edward Albert
Q949337
(c(Q502895),P25,Q2067198)
action filter_type
action find_reverse
entity Q2067198
relation P25
type Q502895
[ANSWER] has that one as a parent
[{'concept': 'Q502895'}, 'P25', 'Q2067198']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P25 resource:Q2067198 }
Edward Albert
Edward Albert has that one as a parent
Edward Albert
action filter_type
action find_reverse
entity Margo
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Margo']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:mother resource:Margo }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q384270 Q3629656
P27
Q15617994
USER
Which administrative territories are Augusto Marcacci or Patriarch Gregory VII of Constantinople a civilian of ?
OR((Q3629656,P27,c(Q15617994)), (Q384270,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3629656
relation P27
action find
entity Q384270
relation P27
type Q15617994
{'OR': [['Q3629656', 'P27', {'concept': 'Q15617994'}], ['Q384270', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { ?k property:P27 ?u . VALUES ( ?k ) { ( resource:Q3629656 ) ( resource:Q384270 ) } } . ?u rdf:type ontology:Q15617994 }
Patriarch Gregory VII of Constantinople Augusto Marcacci
action filter_type
action union
action find
entity Augusto Marcacci
relation country of citizenship
action find
entity Patriarch Gregory VII of Constantinople
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Augusto Marcacci', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Patriarch Gregory VII of Constantinople', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?k property:country_of_citizenship ?u . VALUES ( ?k ) { ( resource:Augusto_Marcacci ) ( resource:Patriarch_Gregory_VII_of_Constantinople ) } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q41
SYSTEM
Italy, Greece
Q38 Q41
OR((Q3629656,P27,c(Q15617994)), (Q384270,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3629656
relation P27
action find
entity Q384270
relation P27
type Q15617994
[ANSWERS] are Augusto Marcacci or Patriarch Gregory VII of Constantinople a civilian of
{'OR': [['Q3629656', 'P27', {'concept': 'Q15617994'}], ['Q384270', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { ?k property:P27 ?u . VALUES ( ?k ) { ( resource:Q3629656 ) ( resource:Q384270 ) } } . ?u rdf:type ontology:Q15617994 }
Italy Greece
Italy and Greece are Augusto Marcacci or Patriarch Gregory VII of Constantinople a civilian of
Italy Greece
action filter_type
action union
action find
entity Augusto Marcacci
relation country of citizenship
action find
entity Patriarch Gregory VII of Constantinople
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Augusto Marcacci', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Patriarch Gregory VII of Constantinople', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { ?k property:country_of_citizenship ?u . VALUES ( ?k ) { ( resource:Augusto_Marcacci ) ( resource:Patriarch_Gregory_VII_of_Constantinople ) } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]