Question: What is the character role of Billy Boyd as the cast member in The Lord of the Rings: The Fellowship of the Ring (the one that was nominated for Academy Award for Best Production Design)  ?
Choices:
Red Grant
Liz Lemon
Joe Gould
Peregrin Took
Alicia Florrick
Rita Bennett
Eric Lamonsoff
Sallah
Ward Abbott
Andy Sipowicz
Answer: Peregrin Took
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Lord of the Rings: The Fellowship of the Ring" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Production Design" . ?e_2 <pred:name> "Billy Boyd" . ?e_2 <residence> ?e_4 . ?e_4 <pred:name> "Glasgow" . ?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: Academy Award for Best Production Design
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Lord of the Rings: The Fellowship of the Ring
function: And
dependencies: 1
2
function: Find
inputs: Glasgow
function: Relate
dependencies: 4
inputs: residence
backward
function: Find
inputs: Billy Boyd
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role