Question: What is the character role of Tom Hollander in John Adams (the one that has Laura Linney as a cast member)?
Choices: protagonist
Tyrone C. Love
John Smith
Mock Turtle
Fez
Eugene O'Neill
General Pushkin
George III of Great Britain
Sailor Ripley
Robert Goren
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Laura Linney" . ?e_2 <pred:name> "Tom Hollander" . ?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: Laura Linney
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: Tom Hollander
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: George III of Great Britain