Question: What is the character role of Amy Adams the one that was nominated for Academy Award for Best Supporting Actress) in The Muppets?
Choices: Paige Matthews
Mary
Harry Pierpont
Prince Charming
Father John Fielding
Vincent Vega
Dr. John Watson
Dr. Frank N. Furter
Robin Hood
Sweeney Todd
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Muppets" . ?e_2 <pred:name> "Amy Adams" . ?e_2 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Supporting Actress" . ?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: The Muppets
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Amy Adams
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role
Answer: Mary