Question: What is the character role of John Noble (the one that uses the language English) in The Lord of the Rings: The Return of the King (the one that received Academy Award for Best Makeup and Hairstyling)?
Choices:
Frank Abagnale
Denethor II
Miss Goodthighs
Gollum
Angel
Hamilton Jordan
Rose DeWitt Bukater
Dan Rayburn
Alex Kelly
Big Nose
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 Return of the King
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: languages spoken, written or signed
backward
function: Find
inputs: John Noble
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Lord of the Rings: The Return of the King" . ?e_1 <award_received> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Makeup and Hairstyling" . ?e_2 <pred:name> "John Noble" . ?e_2 <languages_spoken,_written_or_signed> ?e_4 . ?e_4 <pred:name> "English" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Denethor II