Simple Question (Direct)
Simple Question
Q4286025
P108
Q33506
USER
Which museum does Dmitry Machinsky work for ?
(Q4286025,P108,c(Q33506))
action filter_type
action find
entity Q4286025
relation P108
type Q33506
['Q4286025', 'P108', {'concept': 'Q33506'}]
SELECT DISTINCT ?a WHERE { resource:Q4286025 property:P108 ?a . ?a rdf:type ontology:Q33506 }
Dmitry Machinsky
action filter_type
action find
entity Dmitry Machinsky
relation employer
type museum
['Dmitry Machinsky', 'employer', {'concept': 'museum'}]
SELECT DISTINCT ?a WHERE { resource:Dmitry_Machinsky property:employer ?a . ?a rdf:type ontology:museum }
[]
museum
Q132783
SYSTEM
Hermitage Museum
Q132783
(Q4286025,P108,c(Q33506))
action filter_type
action find
entity Q4286025
relation P108
type Q33506
Dmitry Machinsky works in [ANSWER]
['Q4286025', 'P108', {'concept': 'Q33506'}]
SELECT DISTINCT ?a WHERE { resource:Q4286025 property:P108 ?a . ?a rdf:type ontology:Q33506 }
Hermitage Museum
Dmitry Machinsky works in Hermitage Museum
Hermitage Museum
action filter_type
action find
entity Dmitry Machinsky
relation employer
type museum
['Dmitry Machinsky', 'employer', {'concept': 'museum'}]
SELECT DISTINCT ?a WHERE { resource:Dmitry_Machinsky property:employer ?a . ?a rdf:type ontology:museum }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q132783
P276
Q41176
USER
Which building is the place where that museum is located ?
(Q132783,P276,c(Q41176))
action filter_type
action find
entity Q132783
relation P276
type Q41176
['Q132783', 'P276', {'concept': 'Q41176'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q41176 . resource:Q132783 property:P276 ?y }
Hermitage Museum
action filter_type
action find
entity Hermitage Museum
relation location
type building
['Hermitage Museum', 'location', {'concept': 'building'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:building . resource:Hermitage_Museum property:location ?y }
[]
building
Q182147
SYSTEM
Winter Palace
Q182147
(Q132783,P276,c(Q41176))
action filter_type
action find
entity Q132783
relation P276
type Q41176
[ANSWER] is the place where that museum is located
['Q132783', 'P276', {'concept': 'Q41176'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q41176 . resource:Q132783 property:P276 ?y }
Winter Palace
Winter Palace is the place where that museum is located
Winter Palace
action filter_type
action find
entity Hermitage Museum
relation location
type building
['Hermitage Museum', 'location', {'concept': 'building'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:building . resource:Hermitage_Museum property:location ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q132783
P195
Q3305213
USER
Which paintings belong to Hermitage Museum ?
(c(Q3305213),P195,Q132783)
action filter_type
action find_reverse
entity Q132783
relation P195
type Q3305213
[{'concept': 'Q3305213'}, 'P195', 'Q132783']
SELECT DISTINCT ?b WHERE { ?b property:P195 resource:Q132783 . ?b rdf:type ontology:Q3305213 }
Hermitage Museum
action filter_type
action find_reverse
entity Hermitage Museum
relation collection
type painting
[{'concept': 'painting'}, 'collection', 'Hermitage Museum']
SELECT DISTINCT ?b WHERE { ?b property:collection resource:Hermitage_Museum . ?b rdf:type ontology:painting }
[]
painting
Q19961445 Q19960825 Q19961573
SYSTEM
The Northern Part of the Romanov Gallery, The Gallery of the History of Ancient Painting, The Southern Part of the Romanov Gallery
Q21716759 Q16038414 Q19960834 Q19960835 Q19960833 Q19960830 Q19960851 Q19960839 Q19961445 Q19961443 Q19960837 Q19961449 Q19960823 Q21716781 Q21725265 Q19960825 Q19960827 Q19960821 Q19960849 Q19960847 Q19960846 Q19960844 Q19960843 Q19960842 Q19960841 Q19960828 Q19961572 Q19961573 Q19960840 Q16543389 Q19832639
(c(Q3305213),P195,Q132783)
action filter_type
action find_reverse
entity Q132783
relation P195
type Q3305213
[ANSWERS] belong to Hermitage Museum
[{'concept': 'Q3305213'}, 'P195', 'Q132783']
SELECT DISTINCT ?b WHERE { ?b property:P195 resource:Q132783 . ?b rdf:type ontology:Q3305213 }
Icon: Epiphany Boats on the Beach of Saintes-Maries The Room of Spanish Art The Room of the Flemish School The Room of Italian Art The Room of Flemish School Interiors of the New Hermitage The Room of the German School The Northern Part of the Romanov Gallery Military Gallery The Room of the German School The Gallery of St. Petersburg's Views The Empress's Cabinet Holy Martyr. The Western Wall, North Side, the Fourth Figure from the Entrance Detail of Vegetable Ornament The Gallery of the History of Ancient Painting The Room of Cameos The Room of Russian Painting The Upper Landing of the Main Staircase The Upper Landing of the Staircase The Study of Italian Art The Study of Italian Art The Study of Italian Art The Study of Italian Art The Study of Flemish School The Room of Dutch and Flemish Art The Bedroom of Crown Prince Nikolai Alexandrovich The Southern Part of the Romanov Gallery The Room of the Russian School Composition VI Landscape with a Stream
The Northern Part of the Romanov Gallery, The Gallery of the History of Ancient Painting and The Southern Part of the Romanov Gallery belong to Hermitage Museum
The Northern Part of the Romanov Gallery The Gallery of the History of Ancient Painting The Southern Part of the Romanov Gallery
action filter_type
action find_reverse
entity Hermitage Museum
relation collection
type painting
[{'concept': 'painting'}, 'collection', 'Hermitage Museum']
SELECT DISTINCT ?b WHERE { ?b property:collection resource:Hermitage_Museum . ?b rdf:type ontology:painting }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q19961445 Q19960825 Q19961573
P170
Q502895
USER
Which people are credited with creation of those paintings ?
(Q19961445,P170,c(Q502895)) (Q19960825,P170,c(Q502895)) (Q19961573,P170,c(Q502895))
action filter_type
action find
entity prev_answer
relation P170
type Q502895
['Q19961445', 'P170', {'concept': 'Q502895'}] ['Q19960825', 'P170', {'concept': 'Q502895'}] ['Q19961573', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?b property:P170 ?a . VALUES ( ?b ) { ( resource:Q21716759 ) ( resource:Q16038414 ) ( resource:Q19960834 ) } }
The Northern Part of the Romanov Gallery The Gallery of the History of Ancient Painting The Southern Part of the Romanov Gallery
action filter_type
action find
entity prev_answer
relation creator
type common name
['The Northern Part of the Romanov Gallery', 'creator', {'concept': 'common name'}] ['The Gallery of the History of Ancient Painting', 'creator', {'concept': 'common name'}] ['The Southern Part of the Romanov Gallery', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?b property:creator ?a . VALUES ( ?b ) { ( resource:Icon:_Epiphany ) ( resource:Boats_on_the_Beach_of_Saintes-Maries ) ( resource:The_Room_of_Spanish_Art ) } }
[]
common name
Q7767 Q7767 Q7767
SYSTEM
Eduard Hau
Q7767 Q7767 Q7767
(Q19961445,P170,c(Q502895)) (Q19960825,P170,c(Q502895)) (Q19961573,P170,c(Q502895))
action filter_type
action find
entity prev_answer
relation P170
type Q502895
[ANSWER], [ANSWER] and [ANSWER] are credited with creation of those paintings
['Q19961445', 'P170', {'concept': 'Q502895'}] ['Q19960825', 'P170', {'concept': 'Q502895'}] ['Q19961573', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?b property:P170 ?a . VALUES ( ?b ) { ( resource:Q21716759 ) ( resource:Q16038414 ) ( resource:Q19960834 ) } }
Eduard Hau Eduard Hau Eduard Hau
Eduard Hau, Eduard Hau and Eduard Hau are credited with creation of those paintings
Eduard Hau Eduard Hau Eduard Hau
action filter_type
action find
entity prev_answer
relation creator
type common name
['The Northern Part of the Romanov Gallery', 'creator', {'concept': 'common name'}] ['The Gallery of the History of Ancient Painting', 'creator', {'concept': 'common name'}] ['The Southern Part of the Romanov Gallery', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?b property:creator ?a . VALUES ( ?b ) { ( resource:Icon:_Epiphany ) ( resource:Boats_on_the_Beach_of_Saintes-Maries ) ( resource:The_Room_of_Spanish_Art ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q132783
P112
Q502895
USER
Who founded Hermitage Museum ?
(Q132783,P112,c(Q502895))
action filter_type
action find
entity Q132783
relation P112
type Q502895
['Q132783', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q132783 property:P112 ?c . ?c rdf:type ontology:Q502895 }
Hermitage Museum
action filter_type
action find
entity Hermitage Museum
relation founder
type common name
['Hermitage Museum', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Hermitage_Museum property:founder ?c . ?c rdf:type ontology:common_name }
[]
common name
Q36450
SYSTEM
Catherine II of Russia
Q36450
(Q132783,P112,c(Q502895))
action filter_type
action find
entity Q132783
relation P112
type Q502895
[ANSWER] founded Hermitage Museum
['Q132783', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q132783 property:P112 ?c . ?c rdf:type ontology:Q502895 }
Catherine II of Russia
Catherine II of Russia founded Hermitage Museum
Catherine II of Russia
action filter_type
action find
entity Hermitage Museum
relation founder
type common name
['Hermitage Museum', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Hermitage_Museum property:founder ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1249448
Q502895
USER
And how about Croatian Social Liberal Party?
(Q1249448,P112,c(Q502895))
action filter_type
action find
entity Q1249448
relation P112
type Q502895
['Q1249448', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1249448 property:P112 ?e . ?e rdf:type ontology:Q502895 }
Croatian Social Liberal Party
action filter_type
action find
entity Croatian Social Liberal Party
relation founder
type common name
['Croatian Social Liberal Party', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Croatian_Social_Liberal_Party property:founder ?e . ?e rdf:type ontology:common_name }
[]
common name
Q7539431
SYSTEM
Slavko Goldstein
Q7539431
(Q1249448,P112,c(Q502895))
action filter_type
action find
entity Q1249448
relation P112
type Q502895
[ANSWER]
['Q1249448', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1249448 property:P112 ?e . ?e rdf:type ontology:Q502895 }
Slavko Goldstein
Slavko Goldstein
action filter_type
action find
entity Croatian Social Liberal Party
relation founder
type common name
['Croatian Social Liberal Party', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Croatian_Social_Liberal_Party property:founder ?e . ?e rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20890700 Q19961573
P195
Q33506
USER
Which museums are The Southern Part of the Romanov Gallery or Portrait of James Ward preserved in ?
OR((Q19961573,P195,c(Q33506)), (Q20890700,P195,c(Q33506)))
action filter_type
action union
action find
entity Q19961573
relation P195
action find
entity Q20890700
relation P195
type Q33506
{'OR': [['Q19961573', 'P195', {'concept': 'Q33506'}], ['Q20890700', 'P195', {'concept': 'Q33506'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?r ) { ( resource:Q20890700 ) ( resource:Q19961573 ) } . ?r property:P195 ?f } . ?f rdf:type ontology:Q33506 }
Portrait of James Ward The Southern Part of the Romanov Gallery
action filter_type
action union
action find
entity The Southern Part of the Romanov Gallery
relation collection
action find
entity Portrait of James Ward
relation collection
type museum
{'OR': [['The Southern Part of the Romanov Gallery', 'collection', {'concept': 'museum'}], ['Portrait of James Ward', 'collection', {'concept': 'museum'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?r ) { ( resource:Portrait_of_James_Ward ) ( resource:The_Southern_Part_of_the_Romanov_Gallery ) } . ?r property:collection ?f } . ?f rdf:type ontology:museum }
[]
museum
Q132783 Q1700481
SYSTEM
Hermitage Museum, Minneapolis Institute of Art
Q132783 Q1700481
OR((Q19961573,P195,c(Q33506)), (Q20890700,P195,c(Q33506)))
action filter_type
action union
action find
entity Q19961573
relation P195
action find
entity Q20890700
relation P195
type Q33506
The Southern Part of the Romanov Gallery or Portrait of James Ward are preserved in [ANSWERS]
{'OR': [['Q19961573', 'P195', {'concept': 'Q33506'}], ['Q20890700', 'P195', {'concept': 'Q33506'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?r ) { ( resource:Q20890700 ) ( resource:Q19961573 ) } . ?r property:P195 ?f } . ?f rdf:type ontology:Q33506 }
Hermitage Museum Minneapolis Institute of Art
The Southern Part of the Romanov Gallery or Portrait of James Ward are preserved in Hermitage Museum and Minneapolis Institute of Art
Hermitage Museum Minneapolis Institute of Art
action filter_type
action union
action find
entity The Southern Part of the Romanov Gallery
relation collection
action find
entity Portrait of James Ward
relation collection
type museum
{'OR': [['The Southern Part of the Romanov Gallery', 'collection', {'concept': 'museum'}], ['Portrait of James Ward', 'collection', {'concept': 'museum'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?r ) { ( resource:Portrait_of_James_Ward ) ( resource:The_Southern_Part_of_the_Romanov_Gallery ) } . ?r property:collection ?f } . ?f rdf:type ontology:museum }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36450
P25
Q502895
USER
Who are the offspring of Catherine II of Russia ?
(c(Q502895),P25,Q36450)
action filter_type
action find_reverse
entity Q36450
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q36450']
SELECT DISTINCT ?q WHERE { ?q property:P25 resource:Q36450 . ?q rdf:type ontology:Q502895 }
Catherine II of Russia
action filter_type
action find_reverse
entity Catherine II of Russia
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Catherine II of Russia']
SELECT DISTINCT ?q WHERE { ?q property:mother resource:Catherine_II_of_Russia . ?q rdf:type ontology:common_name }
[]
common name
Q3609589 Q4269209 Q15189
SYSTEM
Alexey Bobrinsky, Anna Petrovna, Paul I of Russia
Q3609589 Q4269209 Q15189
(c(Q502895),P25,Q36450)
action filter_type
action find_reverse
entity Q36450
relation P25
type Q502895
The offspring of Catherine II of Russia are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q36450']
SELECT DISTINCT ?q WHERE { ?q property:P25 resource:Q36450 . ?q rdf:type ontology:Q502895 }
Alexey Bobrinsky Anna Petrovna Paul I of Russia
The offspring of Catherine II of Russia are Prince Alexey Bobrinsky, Anna Petrovna and Paul I of Russia
Alexey Bobrinsky Anna Petrovna Paul I of Russia
action filter_type
action find_reverse
entity Catherine II of Russia
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Catherine II of Russia']
SELECT DISTINCT ?q WHERE { ?q property:mother resource:Catherine_II_of_Russia . ?q rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4269209
P22
Q502895
USER
Which people were the father of that one ?
(Q4269209,P22,c(Q502895))
action filter_type
action find
entity Q4269209
relation P22
type Q502895
['Q4269209', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q4269209 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Anna Petrovna
action filter_type
action find
entity Anna Petrovna
relation father
type common name
['Anna Petrovna', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Anna_Petrovna property:father ?c . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q15189
SYSTEM
Did you mean Paul I of Russia ?
Q3609589 Q4269209 Q15189
(Q3609589,P22,c(Q502895)) (Q4269209,P22,c(Q502895)) (Q15189,P22,c(Q502895))
[ANSWER]
['Q3609589', 'P22', {'concept': 'Q502895'}] ['Q4269209', 'P22', {'concept': 'Q502895'}] ['Q15189', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q4269209 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Alexey Bobrinsky Anna Petrovna Paul I of Russia
Did you mean Paul I of Russia ?
Paul I of Russia
['Alexey Bobrinsky', 'father', {'concept': 'common name'}] ['Anna Petrovna', 'father', {'concept': 'common name'}] ['Paul I of Russia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Anna_Petrovna property:father ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Anna Petrovna. Could you tell me the answer for that?
(Q4269209,P22,c(Q502895))
Q4269209
['Q4269209', 'P22', {'concept': 'Q502895'}]
['Anna Petrovna', 'father', {'concept': 'common name'}]
[]
Q151789 Q54019
SYSTEM
Peter III of Russia, Stanisław August Poniatowski
Q151789 Q54019
(Q4269209,P22,c(Q502895))
action filter_type
action find
entity Q4269209
relation P22
type Q502895
[ANSWERS] were the father of that one
['Q4269209', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q4269209 property:P22 ?c . ?c rdf:type ontology:Q502895 }
Peter III of Russia Stanisław August Poniatowski
Peter III of Russia and Stanisław August Poniatowski were the father of that one
Peter III of Russia Stanisław August Poniatowski
action filter_type
action find
entity Anna Petrovna
relation father
type common name
['Anna Petrovna', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Anna_Petrovna property:father ?c . ?c rdf:type ontology:common_name }
[]