Question: What metropolitan borough contains the city that is the headquarters location of Everton F.C.?
Choices:
Liverpool
St Helens
Bradford
Rochdale
Birmingham
Manchester
Wakefield
Rotherham
Lancashire
Leeds
Program:
function: Find
inputs: Everton F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 3
inputs: metropolitan borough
function: What
dependencies: 4
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:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Everton F.C." .   }
Answer: Liverpool