Question: Which person is the spouse of Paul Simon (the one that has the occupation of record producer)?
Choices: Carrie Fisher
Yoko Ono
Max Fleischer
Bruce Campbell
Kim Kardashian
Paul Lieberstein
George Fenton
Sylvester Stallone
Jada Pinkett Smith
Richard Gere
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <spouse> ?e_1 . ?e_1 <pred:name> "Paul Simon" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "record producer" .   }
Program:
function: Find
inputs: record producer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Paul Simon
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: spouse
backward
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5
Answer: Carrie Fisher