Question: What is the character role of Tom Hanks in Toy Story (the one whose release region is Spain)?
Choices:
Mr. Beefy
Arthur Weasley
Cosmo Kramer
Frankie (Shark Tale)
Max Shreck
Commodus
Sheriff Woody
Al Capone
Adrian (Little Nicky)
Diego Rivera
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Toy Story
function: And
dependencies: 1
2
function: Find
inputs: Tom Hanks
function: QueryRelationQualifier
dependencies: 3
4
inputs: voice actor
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Toy Story" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Spain" . ?e_2 <pred:name> "Tom Hanks" . ?e_1 <voice_actor> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <voice_actor> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Sheriff Woody