Question: How is Little Women starring Christian Bale related to Samantha Mathis?
Choices:
registered with
has parts of the class
legislative body
cast member
part of the series
honorific prefix
ethnic group
record label
office held by head of state
soundtrack album
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Little Women" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Christian Bale" . ?e_2 <pred:name> "Samantha Mathis" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Christian Bale
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Little Women
function: And
dependencies: 1
2
function: Find
inputs: Samantha Mathis
function: QueryRelation
dependencies: 3
4