Simple Question (Direct)
Simple Question
Q20203239
P21
Q290
USER
What is the sex of Petra Ehlert ?
(Q20203239,P21,c(Q290))
action filter_type
action find
entity Q20203239
relation P21
type Q290
['Q20203239', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q20203239 property:P21 ?x . ?x rdf:type ontology:Q290 }
Petra Ehlert
action filter_type
action find
entity Petra Ehlert
relation gender
type sex
['Petra Ehlert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Petra_Ehlert property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q20203239,P21,c(Q290))
action filter_type
action find
entity Q20203239
relation P21
type Q290
The sex of Petra Ehlert is the [ANSWER]
['Q20203239', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q20203239 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
The sex of Petra Ehlert is the female
female
action filter_type
action find
entity Petra Ehlert
relation gender
type sex
['Petra Ehlert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Petra_Ehlert property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20203239
P161
Q838948
USER
Which work of art has that person as actor ?
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q20203239
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?q WHERE { ?q property:P161 resource:Q20203239 . ?q rdf:type ontology:Q838948 }
Petra Ehlert
action filter_type
action find_reverse
entity Petra Ehlert
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?q WHERE { ?q property:cast_member resource:Petra_Ehlert . ?q rdf:type ontology:work_of_art }
[]
work of art
Q653764
SYSTEM
The Legend of Rita
Q653764
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q20203239
relation P161
type Q838948
The [ANSWER] has that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?q WHERE { ?q property:P161 resource:Q20203239 . ?q rdf:type ontology:Q838948 }
The Legend of Rita
The The Legend of Rita has that person as actor
The Legend of Rita
action filter_type
action find_reverse
entity Petra Ehlert
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?q WHERE { ?q property:cast_member resource:Petra_Ehlert . ?q rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20203239 Q302057
P161
Q838948
USER
How many works of art do Petra Ehlert or John Doe star in ?
(c(Q838948),P161,Q20203239) (c(Q838948),P161,Q302057)
action count
action union
action filter_type
action find_reverse
entity Q20203239
relation P161
type Q838948
action filter_type
action find_reverse
entity Q302057
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q20203239'] [{'concept': 'Q838948'}, 'P161', 'Q302057']
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Q20203239 ) ( resource:Q302057 ) } . ?r property:P161 ?z }
Petra Ehlert John Doe
action count
action union
action filter_type
action find_reverse
entity Petra Ehlert
relation cast member
type work of art
action filter_type
action find_reverse
entity John Doe
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Petra Ehlert'] [{'concept': 'work of art'}, 'cast member', 'John Doe']
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Petra_Ehlert ) ( resource:John_Doe ) } . ?r property:cast_member ?z }
[]
work of art
SYSTEM
5
Q1508993 Q653764 Q532461 Q1509291 Q1134762
(c(Q838948),P161,Q20203239) (c(Q838948),P161,Q302057)
action count
action union
action filter_type
action find_reverse
entity Q20203239
relation P161
type Q838948
action filter_type
action find_reverse
entity Q302057
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q20203239'] [{'concept': 'Q838948'}, 'P161', 'Q302057']
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Q20203239 ) ( resource:Q302057 ) } . ?r property:P161 ?z }
The Last Time I Committed Suicide The Legend of Rita The Rage: Carrie 2 Georgia Vanishing Point
5
action count
action union
action filter_type
action find_reverse
entity Petra Ehlert
relation cast member
type work of art
action filter_type
action find_reverse
entity John Doe
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Petra Ehlert'] [{'concept': 'work of art'}, 'cast member', 'John Doe']
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Petra_Ehlert ) ( resource:John_Doe ) } . ?r property:cast_member ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8877 Q302057
P161
Q838948
USER
Which works of art do John Doe or Steven Spielberg star in ?
OR((c(Q838948),P161,Q302057), (c(Q838948),P161,Q8877))
action filter_type
action union
action find_reverse
entity Q302057
relation P161
action find_reverse
entity Q8877
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q302057'], [{'concept': 'Q838948'}, 'P161', 'Q8877']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q8877 } UNION { ?o property:P161 resource:Q302057 } } . ?o rdf:type ontology:Q838948 }
Steven Spielberg John Doe
action filter_type
action union
action find_reverse
entity John Doe
relation cast member
action find_reverse
entity Steven Spielberg
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'John Doe'], [{'concept': 'work of art'}, 'cast member', 'Steven Spielberg']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:Steven_Spielberg } UNION { ?o property:cast_member resource:John_Doe } } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q18148361 Q3795562 Q1164753 Q110278 Q1509291 Q1998730 Q498910 Q1508993 Q7728531 Q2288599
SYSTEM
Some of them are Drew: The Man Behind the Poster, Waking Sleeping Beauty, Paul, Vanilla Sky, Georgia, A Century of Cinema, Austin Powers in Goldmember, The Last Time I Committed Suicide, The Cutting Edge: The Magic of Movie Editing, Room 666
Q1508993 Q1134762 Q1509291 Q3795562 Q1998730 Q179215 Q200873 Q110278 Q241958 Q1164753 Q498910 Q765677 Q2288599 Q18148361 Q7728531 Q109767 Q532461
OR((c(Q838948),P161,Q302057), (c(Q838948),P161,Q8877))
action filter_type
action union
action find_reverse
entity Q302057
relation P161
action find_reverse
entity Q8877
relation P161
type Q838948
John Doe or Steven Spielberg star in [ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q302057'], [{'concept': 'Q838948'}, 'P161', 'Q8877']]}
SELECT DISTINCT ?o WHERE { { { ?o property:P161 resource:Q8877 } UNION { ?o property:P161 resource:Q302057 } } . ?o rdf:type ontology:Q838948 }
The Last Time I Committed Suicide Vanishing Point Georgia Waking Sleeping Beauty A Century of Cinema Indiana Jones and the Temple of Doom The Lost World: Jurassic Park Vanilla Sky Gremlins Paul Austin Powers in Goldmember Stanley Kubrick: A Life in Pictures Room 666 Drew: The Man Behind the Poster The Cutting Edge: The Magic of Movie Editing The Blues Brothers The Rage: Carrie 2
John Doe or Steven Spielberg star in Drew: The Man Behind the Poster, Waking Sleeping Beauty, Paul, Vanilla Sky, Georgia, A Century of Cinema, Austin Powers in Goldmember, The Last Time I Committed Suicide, The Cutting Edge: The Magic of Movie Editing and Room 666
Drew: The Man Behind the Poster Waking Sleeping Beauty Paul Vanilla Sky Georgia A Century of Cinema Austin Powers in Goldmember The Last Time I Committed Suicide The Cutting Edge: The Magic of Movie Editing Room 666
action filter_type
action union
action find_reverse
entity John Doe
relation cast member
action find_reverse
entity Steven Spielberg
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'John Doe'], [{'concept': 'work of art'}, 'cast member', 'Steven Spielberg']]}
SELECT DISTINCT ?o WHERE { { { ?o property:cast_member resource:Steven_Spielberg } UNION { ?o property:cast_member resource:John_Doe } } . ?o rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q657008 Q653764
P57
Q502895
USER
Which people directed The Legend of Rita or The Stuff ?
OR((Q653764,P57,c(Q502895)), (Q657008,P57,c(Q502895)))
action filter_type
action union
action find
entity Q653764
relation P57
action find
entity Q657008
relation P57
type Q502895
{'OR': [['Q653764', 'P57', {'concept': 'Q502895'}], ['Q657008', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q653764 property:P57 ?n } UNION { resource:Q657008 property:P57 ?n } } . ?n rdf:type ontology:Q502895 }
The Stuff The Legend of Rita
action filter_type
action union
action find
entity The Legend of Rita
relation director
action find
entity The Stuff
relation director
type common name
{'OR': [['The Legend of Rita', 'director', {'concept': 'common name'}], ['The Stuff', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Legend_of_Rita property:director ?n } UNION { resource:The_Stuff property:director ?n } } . ?n rdf:type ontology:common_name }
[]
common name
Q1337925 Q57316
SYSTEM
Larry Cohen, Volker Schlöndorff
Q1337925 Q57316
OR((Q653764,P57,c(Q502895)), (Q657008,P57,c(Q502895)))
action filter_type
action union
action find
entity Q653764
relation P57
action find
entity Q657008
relation P57
type Q502895
[ANSWERS] directed The Legend of Rita or The Stuff
{'OR': [['Q653764', 'P57', {'concept': 'Q502895'}], ['Q657008', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q653764 property:P57 ?n } UNION { resource:Q657008 property:P57 ?n } } . ?n rdf:type ontology:Q502895 }
Larry Cohen Volker Schlöndorff
Larry Cohen and Volker Schlöndorff directed The Legend of Rita or The Stuff
Larry Cohen Volker Schlöndorff
action filter_type
action union
action find
entity The Legend of Rita
relation director
action find
entity The Stuff
relation director
type common name
{'OR': [['The Legend of Rita', 'director', {'concept': 'common name'}], ['The Stuff', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_Legend_of_Rita property:director ?n } UNION { resource:The_Stuff property:director ?n } } . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q657008
P495
Q15617994
USER
What is the origin of The Stuff?
(Q1337925,P495,c(Q15617994)) (Q57316,P495,c(Q15617994))
action filter_type
action find
entity Q657008
relation P495
type Q15617994
['Q1337925', 'P495', {'concept': 'Q15617994'}] ['Q57316', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q657008 property:P495 ?d }
The Stuff
action filter_type
action find
entity The Stuff
relation country of origin
type designation for an administrative territorial entity
['Larry Cohen', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Volker Schlöndorff', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Stuff property:country_of_origin ?d }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1337925,P495,c(Q15617994)) (Q57316,P495,c(Q15617994))
action filter_type
action find
entity Q657008
relation P495
type Q15617994
The origin of The Stuff is the [ANSWER]
['Q1337925', 'P495', {'concept': 'Q15617994'}] ['Q57316', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q657008 property:P495 ?d }
United States of America
The origin of The Stuff is the United States of America
United States of America
action filter_type
action find
entity The Stuff
relation country of origin
type designation for an administrative territorial entity
['Larry Cohen', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Volker Schlöndorff', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Stuff property:country_of_origin ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q110278
P58
Q502895
USER
Who wrote the screenplay for Vanilla Sky ?
(Q110278,P58,c(Q502895))
action filter_type
action find
entity Q110278
relation P58
type Q502895
['Q110278', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q110278 property:P58 ?g . ?g rdf:type ontology:Q502895 }
Vanilla Sky
action filter_type
action find
entity Vanilla Sky
relation screenwriter
type common name
['Vanilla Sky', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Vanilla_Sky property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
common name
Q274070 Q318287 Q519902
SYSTEM
Alejandro Amenábar, Cameron Crowe, Mateo Gil
Q274070 Q318287 Q519902
(Q110278,P58,c(Q502895))
action filter_type
action find
entity Q110278
relation P58
type Q502895
[ANSWERS] wrote the screenplay for Vanilla Sky
['Q110278', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q110278 property:P58 ?g . ?g rdf:type ontology:Q502895 }
Alejandro Amenábar Cameron Crowe Mateo Gil
Alejandro Amenábar, Cameron Crowe and Mateo Gil wrote the screenplay for Vanilla Sky
Alejandro Amenábar Cameron Crowe Mateo Gil
action filter_type
action find
entity Vanilla Sky
relation screenwriter
type common name
['Vanilla Sky', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Vanilla_Sky property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q274070 Q318287 Q519902
P58
Q838948
USER
Which works of art are those people a screwriter of ?
(c(Q838948),P58,Q274070) (c(Q838948),P58,Q318287) (c(Q838948),P58,Q519902)
action filter_type
action find_reverse
entity prev_answer
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q274070'] [{'concept': 'Q838948'}, 'P58', 'Q318287'] [{'concept': 'Q838948'}, 'P58', 'Q519902']
SELECT DISTINCT ?g WHERE { VALUES ( ?f ) { ( resource:Q274070 ) ( resource:Q318287 ) ( resource:Q519902 ) } . ?g rdf:type ontology:Q838948 . ?g property:P58 ?f }
Alejandro Amenábar Cameron Crowe Mateo Gil
action filter_type
action find_reverse
entity prev_answer
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Alejandro Amenábar'] [{'concept': 'work of art'}, 'screenwriter', 'Cameron Crowe'] [{'concept': 'work of art'}, 'screenwriter', 'Mateo Gil']
SELECT DISTINCT ?g WHERE { VALUES ( ?f ) { ( resource:Alejandro_Amenábar ) ( resource:Cameron_Crowe ) ( resource:Mateo_Gil ) } . ?g rdf:type ontology:work_of_art . ?g property:screenwriter ?f }
[]
work of art
Q110278 Q110278 Q110278
SYSTEM
Vanilla Sky
Q1136400 Q110278 Q332515 Q16672410 Q1636502 Q395411 Q593615 Q15078029 Q113052 Q956681 Q3990025 Q110278 Q329131 Q282041 Q726294 Q2019481 Q1302846 Q963713 Q3523166 Q21009572 Q753624 Q1136400 Q110278 Q395411 Q593615 Q617203
(c(Q838948),P58,Q274070) (c(Q838948),P58,Q318287) (c(Q838948),P58,Q519902)
action filter_type
action find_reverse
entity prev_answer
relation P58
type Q838948
[ANSWER], [ANSWER] and [ANSWER] are those people a screwriter of
[{'concept': 'Q838948'}, 'P58', 'Q274070'] [{'concept': 'Q838948'}, 'P58', 'Q318287'] [{'concept': 'Q838948'}, 'P58', 'Q519902']
SELECT DISTINCT ?g WHERE { VALUES ( ?f ) { ( resource:Q274070 ) ( resource:Q318287 ) ( resource:Q519902 ) } . ?g rdf:type ontology:Q838948 . ?g property:P58 ?f }
Open Your Eyes Vanilla Sky The Others Regression Tesis Agora The Sea Inside Aloha Elizabethtown We Bought a Zoo The Wild Life Vanilla Sky Jerry Maguire Singles Almost Famous Pearl Jam Twenty Fast Times at Ridgemont High Say Anything... The Union Project Lazarus Nobody Knows Anybody Open Your Eyes Vanilla Sky Agora The Sea Inside The Method
Vanilla Sky, Vanilla Sky and Vanilla Sky are those people a screwriter of
Vanilla Sky Vanilla Sky Vanilla Sky
action filter_type
action find_reverse
entity prev_answer
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Alejandro Amenábar'] [{'concept': 'work of art'}, 'screenwriter', 'Cameron Crowe'] [{'concept': 'work of art'}, 'screenwriter', 'Mateo Gil']
SELECT DISTINCT ?g WHERE { VALUES ( ?f ) { ( resource:Alejandro_Amenábar ) ( resource:Cameron_Crowe ) ( resource:Mateo_Gil ) } . ?g rdf:type ontology:work_of_art . ?g property:screenwriter ?f }
[]