Question: What is the character role of Anne Hathaway (the one that is the citizen of United States of America) in The Dark Knight Rises?
Choices:
Stan Litwak
Leonidas I
Clumsy Smurf
Sephiroth
Saul Goodman
Mr. Smee
Arthur Miller
Adrian Pennino
Catwoman
Barney Ross
Answer: Catwoman
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Dark Knight Rises" . ?e_2 <pred:name> "Anne Hathaway" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" . ?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 Dark Knight Rises
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: Anne Hathaway
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: cast member
character role