Question: In what city in the United Kingdom is the University of Lancaster located?
Choices:
Cork
Worcester
Cardiff
Trieste
Southampton
London
Lancaster
Kingston
Gloucester
Glasgow
Answer: Lancaster
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "University of Lancaster" .  ?e <country> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  }
Program:
function: Find
inputs: University of Lancaster
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: United Kingdom
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6