Question: What is the character role of Jeff Daniels in  Dumb and Dumber (the one whose production company is Warner Bros.) has Jeff Daniels (the one that is a cast member of The Purple Rose of Cairo)?
Choices: Ted Clubberlang
Pascal
Billy Beane
Peter Venkman
Dwight McCarthy
Daisy Buchanan
Judge Dredd
Ramone
Harry Dunne
Daniel
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Dumb and Dumber" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Warner Bros." . ?e_2 <pred:name> "Jeff Daniels" . ?e_4 <cast_member> ?e_2 . ?e_4 <pred:name> "The Purple Rose of Cairo" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Dumb and Dumber
function: And
dependencies: 1
2
function: Find
inputs: The Purple Rose of Cairo
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Jeff Daniels
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role
Answer: Harry Dunne