Question: What metropolitan borough contains Manchester (whose WOEID is 28218) and is located in Lancashire, having a start date of 1889-04-01?
Choices:
Newcastle upon Tyne
Birmingham
Leeds
Manchester
Solihull
Bury
Walsall
Wakefield
Rochdale
Stockport
Answer: Manchester
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> "Manchester" . ?e_1 <WOEID> ?pv . ?pv <pred:value> "28218" .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Lancashire" . [ <pred:fact_h> ?e ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:date> "1889-04-01"^^xsd:date .  }
Program:
function: Find
inputs: Manchester
function: FilterStr
dependencies: 0
inputs: WOEID
28218
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Find
inputs: Lancashire
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: QFilterDate
dependencies: 5
inputs: start time
1889-04-01
=
function: FilterConcept
dependencies: 6
inputs: metropolitan borough
function: And
dependencies: 3
7
function: What
dependencies: 8