Question: What does Star Trek (which was nominated for a BAFTA Award for Best Sound) have to do with Simon Pegg?
Choices: domain of saint or deity
religious order
next lower rank
doctoral student
spouse
nutrient
cast member
edition or translation of
official language
opposite of
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Star Trek" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Sound" . ?e_2 <pred:name> "Simon Pegg" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: BAFTA Award for Best Sound
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Find
inputs: Simon Pegg
function: QueryRelation
dependencies: 3
4
Answer: cast member