Question: In The Haunting, starring Bruce Dern and Liam Neeson, what is Neeson's role?
Choices:
Ezra Kramer
Nick Carraway
Eddie Valiant
Gina
Doctor David Marrow
Treebeard
Angel Batista
Harry Morgan
Clyde Barrow
Bella Swan
Program:
function: Find
inputs: Bruce Dern
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Haunting
function: And
dependencies: 1
2
function: Find
inputs: Liam Neeson
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Haunting" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Bruce Dern" . ?e_2 <pred:name> "Liam Neeson" . ?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: Doctor David Marrow