Question: What is the OS grid reference for the town that is the birthplace of Michael Winterbottom whose occupation is film director?
Choices:
SE145165
SD685277
SK382711
TQ325767
SN415205
SY5785299047
SJ505955
TQ267814
SU637523
TQ510887
Answer: SD685277
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Michael Winterbottom" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "film director" .  ?e <OS_grid_reference> ?pv .  }
Program:
function: Find
inputs: film director
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michael Winterbottom
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: QueryAttr
dependencies: 5
inputs: OS grid reference