Question: What is the metropolitan borough that contains Rotherham whose OS grid reference is SK4392?
Choices:
Stockport
Wakefield
Bury
Sheffield
Newcastle upon Tyne
Solihull
Rotherham
Leeds
Walsall
Rochdale
Answer: Rotherham
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Rotherham" . ?e_1 <OS_grid_reference> ?pv . ?pv <pred:value> "SK4392" .   }
Program:
function: Find
inputs: Rotherham
function: FilterStr
dependencies: 0
inputs: OS grid reference
SK4392
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: What
dependencies: 3