Question: Trainspotting, with Ewan McGregor as a cast member, has what connection to Robert Carlyle?
Choices:
named after
operating area
office held by head of state
season starts
country of citizenship
mascot
production designer
cast member
official religion
designed to carry
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Trainspotting" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ewan McGregor" . ?e_2 <pred:name> "Robert Carlyle" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ewan McGregor
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Trainspotting
function: And
dependencies: 1
2
function: Find
inputs: Robert Carlyle
function: QueryRelation
dependencies: 3
4