Simple Question (Direct)
Simple Question
Q4958616
P58
Q502895
USER
Who wrote the script for Brazil ?
(Q4958616,P58,c(Q502895))
action filter_type
action find
entity Q4958616
relation P58
type Q502895
['Q4958616', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4958616 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation screenwriter
type common name
['Brazil', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Brazil property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
common name
Q18326637
SYSTEM
Richard English
Q18326637
(Q4958616,P58,c(Q502895))
action filter_type
action find
entity Q4958616
relation P58
type Q502895
[ANSWER] wrote the script for Brazil
['Q4958616', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4958616 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Richard English
Richard English wrote the script for Brazil
Richard English
action filter_type
action find
entity Brazil
relation screenwriter
type common name
['Brazil', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Brazil property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4958616
P161
Q502895
USER
Who were casted in Brazil ?
(Q4958616,P161,c(Q502895))
action filter_type
action find
entity Q4958616
relation P161
type Q502895
['Q4958616', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q4958616 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation cast member
type common name
['Brazil', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Brazil property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
common name
Q367129 Q1292160 Q242462
SYSTEM
Roy Rogers, Edward Everett Horton, Virginia Bruce
Q2550245 Q2839380 Q283123 Q1292160 Q367129 Q7346945 Q242462 Q1439141
(Q4958616,P161,c(Q502895))
action filter_type
action find
entity Q4958616
relation P161
type Q502895
[ANSWERS] were casted in Brazil
['Q4958616', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q4958616 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Aurora Miranda Tito Guízar Frank Puglia Edward Everett Horton Roy Rogers Robert Livingston Virginia Bruce Fortunio Bonanova
Roy Rogers, Edward Everett Horton and Virginia Bruce were casted in Brazil
Roy Rogers Edward Everett Horton Virginia Bruce
action filter_type
action find
entity Brazil
relation cast member
type common name
['Brazil', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Brazil property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q357392
Q502895
USER
And how about A Fistful of Death?
(Q357392,P161,c(Q502895))
action filter_type
action find
entity Q357392
relation P161
type Q502895
['Q357392', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q357392 property:P161 ?l . ?l rdf:type ontology:Q502895 }
A Fistful of Death
action filter_type
action find
entity A Fistful of Death
relation cast member
type common name
['A Fistful of Death', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:A_Fistful_of_Death property:cast_member ?l . ?l rdf:type ontology:common_name }
[]
common name
Q55419 Q716602 Q1312821
SYSTEM
Klaus Kinski, Gordon Mitchell, Renzo Arbore
Q955019 Q1522370 Q3726621 Q1781260 Q55419 Q1686269 Q716602 Q1312821
(Q357392,P161,c(Q502895))
action filter_type
action find
entity Q357392
relation P161
type Q502895
[ANSWERS]
['Q357392', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q357392 property:P161 ?l . ?l rdf:type ontology:Q502895 }
Jack Betts Giancarlo Prete Enzo Pulcrano Mike Monty Klaus Kinski Jeff Cameron Gordon Mitchell Renzo Arbore
Klaus Kinski Gordon Mitchell Renzo Arbore
action filter_type
action find
entity A Fistful of Death
relation cast member
type common name
['A Fistful of Death', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:A_Fistful_of_Death property:cast_member ?l . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q653198
P161
Q838948
USER
Do those people star in A Barrel Full of Dollars ?
(Q653198,P161,Q55419) (Q653198,P161,Q716602) (Q653198,P161,Q1312821)
action is_in
entity prev_answer
action find
entity Q653198
relation P161
['Q653198', 'P161', 'Q55419'] ['Q653198', 'P161', 'Q716602'] ['Q653198', 'P161', 'Q1312821']
ASK WHERE { VALUES ( ?w ) { ( resource:Q955019 ) ( resource:Q1522370 ) ( resource:Q3726621 ) } . resource:Q653198 property:P161 ?w }
A Barrel Full of Dollars
action is_in
entity prev_answer
action find
entity A Barrel Full of Dollars
relation cast member
['A Barrel Full of Dollars', 'cast member', 'Klaus Kinski'] ['A Barrel Full of Dollars', 'cast member', 'Gordon Mitchell'] ['A Barrel Full of Dollars', 'cast member', 'Renzo Arbore']
ASK WHERE { VALUES ( ?w ) { ( resource:Jack_Betts ) ( resource:Giancarlo_Prete ) ( resource:Enzo_Pulcrano ) } . resource:A_Barrel_Full_of_Dollars property:cast_member ?w }
[]
work of art
SYSTEM
YES
(Q653198,P161,Q55419) (Q653198,P161,Q716602) (Q653198,P161,Q1312821)
action is_in
entity prev_answer
action find
entity Q653198
relation P161
[ANSWER]
['Q653198', 'P161', 'Q55419'] ['Q653198', 'P161', 'Q716602'] ['Q653198', 'P161', 'Q1312821']
ASK WHERE { VALUES ( ?w ) { ( resource:Q955019 ) ( resource:Q1522370 ) ( resource:Q3726621 ) } . resource:Q653198 property:P161 ?w }
Yes
action is_in
entity prev_answer
action find
entity A Barrel Full of Dollars
relation cast member
['A Barrel Full of Dollars', 'cast member', 'Klaus Kinski'] ['A Barrel Full of Dollars', 'cast member', 'Gordon Mitchell'] ['A Barrel Full of Dollars', 'cast member', 'Renzo Arbore']
ASK WHERE { VALUES ( ?w ) { ( resource:Jack_Betts ) ( resource:Giancarlo_Prete ) ( resource:Enzo_Pulcrano ) } . resource:A_Barrel_Full_of_Dollars property:cast_member ?w }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18326637 Q65
P20
Q56061
USER
Did the expiration of Richard English occur Los Angeles ?
(Q18326637,P20,Q65)
action is_in
entity Q65
action find
entity Q18326637
relation P20
['Q18326637', 'P20', 'Q65']
ASK WHERE { resource:Q18326637 property:P20 resource:Q65 }
Richard English Los Angeles
action is_in
entity Los Angeles
action find
entity Richard English
relation place of death
['Richard English', 'place of death', 'Los Angeles']
ASK WHERE { resource:Richard_English property:place_of_death resource:Los_Angeles }
[]
administrative territorial entity
SYSTEM
YES
(Q18326637,P20,Q65)
action is_in
entity Q65
action find
entity Q18326637
relation P20
[ANSWER]
['Q18326637', 'P20', 'Q65']
ASK WHERE { resource:Q18326637 property:P20 resource:Q65 }
Yes
action is_in
entity Los Angeles
action find
entity Richard English
relation place of death
['Richard English', 'place of death', 'Los Angeles']
ASK WHERE { resource:Richard_English property:place_of_death resource:Los_Angeles }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7599107 Q1292160
P19
Q56061
USER
Which administrative territories are the birthplace of Edward Everett Horton or Stanisław Albinowski ?
OR((Q1292160,P19,c(Q56061)), (Q7599107,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1292160
relation P19
action find
entity Q7599107
relation P19
type Q56061
{'OR': [['Q1292160', 'P19', {'concept': 'Q56061'}], ['Q7599107', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1292160 property:P19 ?m } UNION { resource:Q7599107 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
Stanisław Albinowski Edward Everett Horton
action filter_type
action union
action find
entity Edward Everett Horton
relation place of birth
action find
entity Stanisław Albinowski
relation place of birth
type administrative territorial entity
{'OR': [['Edward Everett Horton', 'place of birth', {'concept': 'administrative territorial entity'}], ['Stanisław Albinowski', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Edward_Everett_Horton property:place_of_birth ?m } UNION { resource:Stanisław_Albinowski property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q18419 Q36036
SYSTEM
New York City, Brooklyn, Lviv
Q60 Q18419 Q36036
OR((Q1292160,P19,c(Q56061)), (Q7599107,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1292160
relation P19
action find
entity Q7599107
relation P19
type Q56061
[ANSWERS] are the birthplace of Edward Everett Horton or Stanisław Albinowski
{'OR': [['Q1292160', 'P19', {'concept': 'Q56061'}], ['Q7599107', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1292160 property:P19 ?m } UNION { resource:Q7599107 property:P19 ?m } } . ?m rdf:type ontology:Q56061 }
New York City Brooklyn Lviv
New York City, Brooklyn and Lviv are the birthplace of Edward Everett Horton or Stanisław Albinowski
New York City Brooklyn Lviv
action filter_type
action union
action find
entity Edward Everett Horton
relation place of birth
action find
entity Stanisław Albinowski
relation place of birth
type administrative territorial entity
{'OR': [['Edward Everett Horton', 'place of birth', {'concept': 'administrative territorial entity'}], ['Stanisław Albinowski', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Edward_Everett_Horton property:place_of_birth ?m } UNION { resource:Stanisław_Albinowski property:place_of_birth ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q60 Q18419 Q36036
P17
Q15617994
USER
Which administrative territories do New York City, Brooklyn and Lviv belong to ?
(Q60,P17,c(Q15617994)) (Q18419,P17,c(Q15617994)) (Q36036,P17,c(Q15617994))
action union
action filter_type
action find
entity Q60
relation P17
type Q15617994
action filter_type
action find
entity Q18419
relation P17
type Q15617994
action filter_type
action find
entity Q36036
relation P17
type Q15617994
['Q60', 'P17', {'concept': 'Q15617994'}] ['Q18419', 'P17', {'concept': 'Q15617994'}] ['Q36036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?e ) { ( resource:Q60 ) ( resource:Q18419 ) } . ?e property:P17 ?y }
New York City Brooklyn Lviv
action union
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brooklyn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Lviv
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lviv', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?e ) { ( resource:New_York_City ) ( resource:Brooklyn ) } . ?e property:country ?y }
[]
designation for an administrative territorial entity
Q30 Q30 Q36
SYSTEM
United States of America for 1st, 2nd, Poland for 3rd
Q30 Q30 Q212 Q153136 Q36 Q239502
(Q60,P17,c(Q15617994)) (Q18419,P17,c(Q15617994)) (Q36036,P17,c(Q15617994))
action union
action filter_type
action find
entity Q60
relation P17
type Q15617994
action filter_type
action find
entity Q18419
relation P17
type Q15617994
action filter_type
action find
entity Q36036
relation P17
type Q15617994
[ANSWERS]
['Q60', 'P17', {'concept': 'Q15617994'}] ['Q18419', 'P17', {'concept': 'Q15617994'}] ['Q36036', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?e ) { ( resource:Q60 ) ( resource:Q18419 ) } . ?e property:P17 ?y }
United States of America United States of America Ukraine Habsburg Empire Poland Kingdom of Galicia–Volhynia
United States of America, United States of America and Poland New York City, Brooklyn and Lviv belong to
United States of America United States of America Poland
action union
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Brooklyn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Lviv
relation country
type designation for an administrative territorial entity
['New York City', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lviv', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?e ) { ( resource:New_York_City ) ( resource:Brooklyn ) } . ?e property:country ?y }
[]