Question: Which city does JM Coetzee work in?
Choices:
London
Venice
Trieste
Cape Town
Adelaide
Madrid
Srinagar
Lower Hutt
Pisa
Kingston
Program:
function: Find
inputs: J. M. Coetzee
function: Relate
dependencies: 0
inputs: work location
forward
function: FilterConcept
dependencies: 1
inputs: city
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <work_location> ?e . ?e_1 <pred:name> "J. M. Coetzee" .   }
Answer: Adelaide