Simple Question (Direct)
Simple Question
Q858216
P58
Q502895
USER
Which person wrote the script for La Cérémonie ?
(Q858216,P58,c(Q502895))
action filter_type
action find
entity Q858216
relation P58
type Q502895
['Q858216', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q858216 property:P58 ?g . ?g rdf:type ontology:Q502895 }
La Cérémonie
action filter_type
action find
entity La Cérémonie
relation screenwriter
type common name
['La Cérémonie', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:La_Cérémonie property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
common name
Q55375
SYSTEM
Claude Chabrol
Q55375
(Q858216,P58,c(Q502895))
action filter_type
action find
entity Q858216
relation P58
type Q502895
[ANSWER] wrote the script for La Cérémonie
['Q858216', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q858216 property:P58 ?g . ?g rdf:type ontology:Q502895 }
Claude Chabrol
Claude Chabrol wrote the script for La Cérémonie
Claude Chabrol
action filter_type
action find
entity La Cérémonie
relation screenwriter
type common name
['La Cérémonie', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:La_Cérémonie property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55375
P108
Q1002697
USER
Which periodical literature does that person work for ?
(Q55375,P108,c(Q1002697))
action filter_type
action find
entity Q55375
relation P108
type Q1002697
['Q55375', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?z WHERE { resource:Q55375 property:P108 ?z . ?z rdf:type ontology:Q1002697 }
Claude Chabrol
action filter_type
action find
entity Claude Chabrol
relation employer
type periodical literature
['Claude Chabrol', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?z WHERE { resource:Claude_Chabrol property:employer ?z . ?z rdf:type ontology:periodical_literature }
[]
periodical literature
Q909176
SYSTEM
Cahiers du cinéma
Q909176
(Q55375,P108,c(Q1002697))
action filter_type
action find
entity Q55375
relation P108
type Q1002697
That person works in [ANSWER]
['Q55375', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?z WHERE { resource:Q55375 property:P108 ?z . ?z rdf:type ontology:Q1002697 }
Cahiers du cinéma
That person works in Cahiers du cinéma
Cahiers du cinéma
action filter_type
action find
entity Claude Chabrol
relation employer
type periodical literature
['Claude Chabrol', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?z WHERE { resource:Claude_Chabrol property:employer ?z . ?z rdf:type ontology:periodical_literature }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q909176 Q142 Q6933042
P495
Q15617994
USER
Does that periodical literature have France and Muhlenberg School District as its place of origin ?
(Q909176,P495,Q142) (Q909176,P495,Q6933042)
action is_in
entity Q909176
action intersection
action find_reverse
entity Q142
relation P495
action find_reverse
entity Q6933042
relation P495
['Q909176', 'P495', 'Q142'] ['Q909176', 'P495', 'Q6933042']
ASK WHERE { resource:Q909176 property:P495 resource:Q142 . resource:Q909176 property:P495 resource:Q6933042 }
Cahiers du cinéma France Muhlenberg School District
action is_in
entity Cahiers du cinéma
action intersection
action find_reverse
entity France
relation country of origin
action find_reverse
entity Muhlenberg School District
relation country of origin
['Cahiers du cinéma', 'country of origin', 'France'] ['Cahiers du cinéma', 'country of origin', 'Muhlenberg School District']
ASK WHERE { resource:Cahiers_du_cinéma property:country_of_origin resource:France . resource:Cahiers_du_cinéma property:country_of_origin resource:Muhlenberg_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q909176,P495,Q142) (Q909176,P495,Q6933042)
action is_in
entity Q909176
action intersection
action find_reverse
entity Q142
relation P495
action find_reverse
entity Q6933042
relation P495
[ANSWER]
['Q909176', 'P495', 'Q142'] ['Q909176', 'P495', 'Q6933042']
ASK WHERE { resource:Q909176 property:P495 resource:Q142 . resource:Q909176 property:P495 resource:Q6933042 }
YES and NO respectively
action is_in
entity Cahiers du cinéma
action intersection
action find_reverse
entity France
relation country of origin
action find_reverse
entity Muhlenberg School District
relation country of origin
['Cahiers du cinéma', 'country of origin', 'France'] ['Cahiers du cinéma', 'country of origin', 'Muhlenberg School District']
ASK WHERE { resource:Cahiers_du_cinéma property:country_of_origin resource:France . resource:Cahiers_du_cinéma property:country_of_origin resource:Muhlenberg_School_District }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18420380 Q55375
P20
Q56061
USER
Which administrative territories are the places of death of Claude Chabrol or Salvatore Palazzotto ?
OR((Q55375,P20,c(Q56061)), (Q18420380,P20,c(Q56061)))
action filter_type
action union
action find
entity Q55375
relation P20
action find
entity Q18420380
relation P20
type Q56061
{'OR': [['Q55375', 'P20', {'concept': 'Q56061'}], ['Q18420380', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { ?z property:P20 ?u . VALUES ( ?z ) { ( resource:Q55375 ) ( resource:Q18420380 ) } } }
Salvatore Palazzotto Claude Chabrol
action filter_type
action union
action find
entity Claude Chabrol
relation place of death
action find
entity Salvatore Palazzotto
relation place of death
type administrative territorial entity
{'OR': [['Claude Chabrol', 'place of death', {'concept': 'administrative territorial entity'}], ['Salvatore Palazzotto', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { ?z property:place_of_death ?u . VALUES ( ?z ) { ( resource:Claude_Chabrol ) ( resource:Salvatore_Palazzotto ) } } }
[]
administrative territorial entity
Q90 Q2656
SYSTEM
Paris, Palermo
Q90 Q2656
OR((Q55375,P20,c(Q56061)), (Q18420380,P20,c(Q56061)))
action filter_type
action union
action find
entity Q55375
relation P20
action find
entity Q18420380
relation P20
type Q56061
[ANSWERS] are the places of death of Claude Chabrol or Salvatore Palazzotto
{'OR': [['Q55375', 'P20', {'concept': 'Q56061'}], ['Q18420380', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { ?z property:P20 ?u . VALUES ( ?z ) { ( resource:Q55375 ) ( resource:Q18420380 ) } } }
Paris Palermo
Paris and Palermo are the places of death of Claude Chabrol or Salvatore Palazzotto
Paris Palermo
action filter_type
action union
action find
entity Claude Chabrol
relation place of death
action find
entity Salvatore Palazzotto
relation place of death
type administrative territorial entity
{'OR': [['Claude Chabrol', 'place of death', {'concept': 'administrative territorial entity'}], ['Salvatore Palazzotto', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { ?z property:place_of_death ?u . VALUES ( ?z ) { ( resource:Claude_Chabrol ) ( resource:Salvatore_Palazzotto ) } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q90 Q2656
P1376
Q7275
USER
Which states have those administrative territories as their county seat ?
(Q90,P1376,c(Q7275)) (Q2656,P1376,c(Q7275))
action filter_type
action find
entity prev_answer
relation P1376
type Q7275
['Q90', 'P1376', {'concept': 'Q7275'}] ['Q2656', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?r ) { ( resource:Q90 ) ( resource:Q2656 ) } . ?r property:P1376 ?w . ?w rdf:type ontology:Q7275 }
Paris Palermo
action filter_type
action find
entity prev_answer
relation capital of
type state
['Paris', 'capital of', {'concept': 'state'}] ['Palermo', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?r ) { ( resource:Paris ) ( resource:Palermo ) } . ?r property:capital_of ?w . ?w rdf:type ontology:state }
[]
state
Q188586 Q207162 Q70972
SYSTEM
Kingdom of Sicily, Bourbon Restoration, Kingdom of France
Q207162 Q70972 Q71092 Q106577 Q188586
(Q90,P1376,c(Q7275)) (Q2656,P1376,c(Q7275))
action filter_type
action find
entity prev_answer
relation P1376
type Q7275
[ANSWERS] have those administrative territories as their county seat
['Q90', 'P1376', {'concept': 'Q7275'}] ['Q2656', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?r ) { ( resource:Q90 ) ( resource:Q2656 ) } . ?r property:P1376 ?w . ?w rdf:type ontology:Q7275 }
Bourbon Restoration Kingdom of France Second French Empire Neustria Kingdom of Sicily
Kingdom of Sicily, Bourbon Restoration and Kingdom of France have those administrative territories as their county seat
Kingdom of Sicily Bourbon Restoration Kingdom of France
action filter_type
action find
entity prev_answer
relation capital of
type state
['Paris', 'capital of', {'concept': 'state'}] ['Palermo', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { VALUES ( ?r ) { ( resource:Paris ) ( resource:Palermo ) } . ?r property:capital_of ?w . ?w rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q188586 Q207162 Q70972
P36
Q56061
USER
Which administrative territories are associated to Kingdom of Sicily, Bourbon Restoration and Kingdom of France as the capital ?
(Q188586,P36,c(Q56061)) (Q207162,P36,c(Q56061)) (Q70972,P36,c(Q56061))
action union
action filter_type
action find
entity Q188586
relation P36
type Q56061
action filter_type
action find
entity Q207162
relation P36
type Q56061
action filter_type
action find
entity Q70972
relation P36
type Q56061
['Q188586', 'P36', {'concept': 'Q56061'}] ['Q207162', 'P36', {'concept': 'Q56061'}] ['Q70972', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { resource:Q188586 property:P36 ?f . ?f rdf:type ontology:Q56061 } UNION { resource:Q207162 property:P36 ?f . ?f rdf:type ontology:Q56061 } }
Kingdom of Sicily Bourbon Restoration Kingdom of France
action union
action filter_type
action find
entity Kingdom of Sicily
relation capital
type administrative territorial entity
action filter_type
action find
entity Bourbon Restoration
relation capital
type administrative territorial entity
action filter_type
action find
entity Kingdom of France
relation capital
type administrative territorial entity
['Kingdom of Sicily', 'capital', {'concept': 'administrative territorial entity'}] ['Bourbon Restoration', 'capital', {'concept': 'administrative territorial entity'}] ['Kingdom of France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { resource:Kingdom_of_Sicily property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity } UNION { resource:Bourbon_Restoration property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q90 Q90 Q2634
SYSTEM
Paris for 1st, 2nd, Naples for 3rd
Q1903 Q2656 Q2634 Q90 Q90
(Q188586,P36,c(Q56061)) (Q207162,P36,c(Q56061)) (Q70972,P36,c(Q56061))
action union
action filter_type
action find
entity Q188586
relation P36
type Q56061
action filter_type
action find
entity Q207162
relation P36
type Q56061
action filter_type
action find
entity Q70972
relation P36
type Q56061
[ANSWERS]
['Q188586', 'P36', {'concept': 'Q56061'}] ['Q207162', 'P36', {'concept': 'Q56061'}] ['Q70972', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { resource:Q188586 property:P36 ?f . ?f rdf:type ontology:Q56061 } UNION { resource:Q207162 property:P36 ?f . ?f rdf:type ontology:Q56061 } }
Catania Palermo Naples Paris Paris
Paris, Paris and Naples are associated to Kingdom of Sicily, Bourbon Restoration and Kingdom of France as the capital
Paris Paris Naples
action union
action filter_type
action find
entity Kingdom of Sicily
relation capital
type administrative territorial entity
action filter_type
action find
entity Bourbon Restoration
relation capital
type administrative territorial entity
action filter_type
action find
entity Kingdom of France
relation capital
type administrative territorial entity
['Kingdom of Sicily', 'capital', {'concept': 'administrative territorial entity'}] ['Bourbon Restoration', 'capital', {'concept': 'administrative territorial entity'}] ['Kingdom of France', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { resource:Kingdom_of_Sicily property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity } UNION { resource:Bourbon_Restoration property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P276
Q3305213
USER
Which painting is located at Paris ?
(c(Q3305213),P276,Q90)
action filter_type
action find_reverse
entity Q90
relation P276
type Q3305213
[{'concept': 'Q3305213'}, 'P276', 'Q90']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q90 . ?k rdf:type ontology:Q3305213 }
Paris
action filter_type
action find_reverse
entity Paris
relation location
type painting
[{'concept': 'painting'}, 'location', 'Paris']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Paris . ?k rdf:type ontology:painting }
[]
painting
Q21598236
SYSTEM
The Presentation in the Temple
Q21598236
(c(Q3305213),P276,Q90)
action filter_type
action find_reverse
entity Q90
relation P276
type Q3305213
[ANSWER] is located at Paris
[{'concept': 'Q3305213'}, 'P276', 'Q90']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q90 . ?k rdf:type ontology:Q3305213 }
The Presentation in the Temple
The Presentation in the Temple is located at Paris
The Presentation in the Temple
action filter_type
action find_reverse
entity Paris
relation location
type painting
[{'concept': 'painting'}, 'location', 'Paris']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Paris . ?k rdf:type ontology:painting }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21598236
P361
Q3305213
USER
What is that one a portion of ?
(Q21598236,P361,c(Q3305213))
action filter_type
action find
entity Q21598236
relation P361
type Q3305213
['Q21598236', 'P361', {'concept': 'Q3305213'}]
SELECT DISTINCT ?u WHERE { resource:Q21598236 property:P361 ?u . ?u rdf:type ontology:Q3305213 }
The Presentation in the Temple
action filter_type
action find
entity The Presentation in the Temple
relation part of
type painting
['The Presentation in the Temple', 'part of', {'concept': 'painting'}]
SELECT DISTINCT ?u WHERE { resource:The_Presentation_in_the_Temple property:part_of ?u . ?u rdf:type ontology:painting }
[]
painting
Q21600401
SYSTEM
Arras Altarpiece
Q21600401
(Q21598236,P361,c(Q3305213))
action filter_type
action find
entity Q21598236
relation P361
type Q3305213
That one a portion of is the [ANSWER]
['Q21598236', 'P361', {'concept': 'Q3305213'}]
SELECT DISTINCT ?u WHERE { resource:Q21598236 property:P361 ?u . ?u rdf:type ontology:Q3305213 }
Arras Altarpiece
That one a portion of is the Arras Altarpiece
Arras Altarpiece
action filter_type
action find
entity The Presentation in the Temple
relation part of
type painting
['The Presentation in the Temple', 'part of', {'concept': 'painting'}]
SELECT DISTINCT ?u WHERE { resource:The_Presentation_in_the_Temple property:part_of ?u . ?u rdf:type ontology:painting }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21600401 Q1919632
P136
Q1792379
USER
Is melodrama the genre for Arras Altarpiece ?
(Q21600401,P136,Q1919632)
action is_in
entity Q1919632
action find
entity Q21600401
relation P136
['Q21600401', 'P136', 'Q1919632']
ASK WHERE { resource:Q21600401 property:P136 resource:Q1919632 }
Arras Altarpiece melodrama
action is_in
entity melodrama
action find
entity Arras Altarpiece
relation genre
['Arras Altarpiece', 'genre', 'melodrama']
ASK WHERE { resource:Arras_Altarpiece property:genre resource:melodrama }
[]
art genre
SYSTEM
NO
(Q21600401,P136,Q1919632)
action is_in
entity Q1919632
action find
entity Q21600401
relation P136
[ANSWER]
['Q21600401', 'P136', 'Q1919632']
ASK WHERE { resource:Q21600401 property:P136 resource:Q1919632 }
No
action is_in
entity melodrama
action find
entity Arras Altarpiece
relation genre
['Arras Altarpiece', 'genre', 'melodrama']
ASK WHERE { resource:Arras_Altarpiece property:genre resource:melodrama }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21598236 Q90
P276
Q56061
USER
Is Paris The Presentation in the Temple located ?
(Q21598236,P276,Q90)
action is_in
entity Q90
action find
entity Q21598236
relation P276
['Q21598236', 'P276', 'Q90']
ASK WHERE { resource:Q21598236 property:P276 resource:Q90 }
The Presentation in the Temple Paris
action is_in
entity Paris
action find
entity The Presentation in the Temple
relation location
['The Presentation in the Temple', 'location', 'Paris']
ASK WHERE { resource:The_Presentation_in_the_Temple property:location resource:Paris }
[]
administrative territorial entity
SYSTEM
YES
(Q21598236,P276,Q90)
action is_in
entity Q90
action find
entity Q21598236
relation P276
[ANSWER]
['Q21598236', 'P276', 'Q90']
ASK WHERE { resource:Q21598236 property:P276 resource:Q90 }
Yes
action is_in
entity Paris
action find
entity The Presentation in the Temple
relation location
['The Presentation in the Temple', 'location', 'Paris']
ASK WHERE { resource:The_Presentation_in_the_Temple property:location resource:Paris }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2656 Q6771977
P47
Q15617994
USER
Does Marlow, Herefordshire share border with Palermo ?
(Q2656,P47,Q6771977)
action is_in
entity Q6771977
action find
entity Q2656
relation P47
['Q2656', 'P47', 'Q6771977']
ASK WHERE { resource:Q2656 property:P47 resource:Q6771977 }
Palermo Marlow, Herefordshire
action is_in
entity Marlow, Herefordshire
action find
entity Palermo
relation shares border with
['Palermo', 'shares border with', 'Marlow, Herefordshire']
ASK WHERE { resource:Palermo property:shares_border_with resource:Marlow,_Herefordshire }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2656,P47,Q6771977)
action is_in
entity Q6771977
action find
entity Q2656
relation P47
[ANSWER]
['Q2656', 'P47', 'Q6771977']
ASK WHERE { resource:Q2656 property:P47 resource:Q6771977 }
No
action is_in
entity Marlow, Herefordshire
action find
entity Palermo
relation shares border with
['Palermo', 'shares border with', 'Marlow, Herefordshire']
ASK WHERE { resource:Palermo property:shares_border_with resource:Marlow,_Herefordshire }
[]