Question: What is the role of Billy Boyd (the one that wins Broadcast Film Critics Association Award for Best Cast) The Lord of the Rings: The Fellowship of the Ring (the one that was nominated for BAFTA Award for Best Editing) ?
Choices:
Serena van der Woodsen
Sid
Rubeus Hagrid
Peregrin Took
Peter Pan
Severus Snape
Mitch McDeere
Harry Pierpont
Casey Kelso
Władysław Szpilman
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> "BAFTA Award for Best Editing" . ?e_2 <pred:name> "Billy Boyd" . ?e_4 <winner> ?e_2 . ?e_4 <pred:name> "Broadcast Film Critics Association Award for Best Cast" . ?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: BAFTA Award for Best Editing
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: Broadcast Film Critics Association Award for Best Cast
function: Relate
dependencies: 4
inputs: winner
forward
function: Find
inputs: Billy Boyd
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role