Question: Which person lives in London (the one that is the birthplace of Paul Haggis)?
Choices: Franz Schubert
David Gilmour
Estelle Harris
Vladimir Lenin
Jude Law
John Ford
Stanley Tucci
Peter Capaldi
Rose Byrne
Lindsay Lohan
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <residence> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Paul Haggis" .   }
Program:
function: Find
inputs: Paul Haggis
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: residence
backward
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5
Answer: David Gilmour