Question: What does Battlestar Galactica (which has Dean Stockwell as a cast member) have to do with Lucy Lawless?
Choices: mountain range
narrator
manufacturer
seed team
famous people
child astronomical body
cast member
military casualty classification
medical treatment
participant
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Dean Stockwell" . ?e_2 <pred:name> "Lucy Lawless" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dean Stockwell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 1
2
function: Find
inputs: Lucy Lawless
function: QueryRelation
dependencies: 3
4
Answer: cast member