Question: What is the character role of Craig Ferguson (the one that has the occupation of screenwriter) in Winnie the Pooh (the one whose release region is Bulgaria)?
Choices:
Yossarian
Twoflower
Owl
Mr. Smithers
Billy Clanton
Rude
Nightcrawler
Jenna Maroney
Al Capone
Bob Zmuda
Answer: Owl
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Winnie the Pooh" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Bulgaria" . ?e_2 <pred:name> "Craig Ferguson" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "screenwriter" . ?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: Bulgaria
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Winnie the Pooh
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Craig Ferguson
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: voice actor
character role