Question: What is cast member Cate Blanchett's character role in The Lord of the Rings: The Fellowship of the Ring (which received an Academy Award for Best Makeup and Hairstyling)?
Choices: Valerie Veran
Chief Wiggum
Principal Skinner
Jonathan Kent
Thomson and Thompson
Marmaduke
Franz-Otto Dietrich
Josephine Earp
Galadriel
Elliot Carver
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Lord of the Rings: The Fellowship of the Ring" . ?e_1 <award_received> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Makeup and Hairstyling" . ?e_2 <pred:name> "Cate Blanchett" . ?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 Makeup and Hairstyling
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: The Lord of the Rings: The Fellowship of the Ring
function: And
dependencies: 1
2
function: Find
inputs: Cate Blanchett
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Galadriel