Question: What is the role of John Ratzenberger in Toy Story (the one whose script is wrote by John Lasseter)?
Choices: Randy Wharmpess
Hamm
Phillip Jeffries
Rain Ocampo
Grandpa Goodman
Michael Chamberlain
Ben Sanderson
Jacob Black
Sue Ann Nivens
Donna Moss
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Toy Story" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "John Lasseter" . ?e_2 <pred:name> "John Ratzenberger" . ?e_1 <voice_actor> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <voice_actor> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: John Lasseter
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Toy Story
function: And
dependencies: 1
2
function: Find
inputs: John Ratzenberger
function: QueryRelationQualifier
dependencies: 3
4
inputs: voice actor
character role
Answer: Hamm