Question: How is Million Dollar Baby (with Ronald Reagan in the cast) connected to Ronald Reagan?
Choices:
takes place in fictional universe
owner of
office held by head of state
symptoms
designated as terrorist by
language used
start point
famous people
nominated for
cast member
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Million Dollar Baby" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ronald Reagan" . ?e_2 <pred:name> "Ronald Reagan" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ronald Reagan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Million Dollar Baby
function: And
dependencies: 1
2
function: Find
inputs: Ronald Reagan
function: QueryRelation
dependencies: 3
4