Question: Liverpool, the one that has the earliest written record from 1190, is located in Lancashire, tell me the end time.
Choices:
1987-03-08
1987-01-01
1967-07-14
2017-11-28
1992-08-09
1999
1974-04-01
1999-03-01
1990-11-20
1963-01-01
Program:
function: Find
inputs: Liverpool
function: FilterYear
dependencies: 0
inputs: time of earliest written record
1190
=
function: Find
inputs: Lancashire
function: QueryRelationQualifier
dependencies: 1
2
inputs: located in the administrative territorial entity
end time
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Liverpool" . ?e_1 <time_of_earliest_written_record> ?pv . ?pv <pred:year> 1190 . ?e_2 <pred:name> "Lancashire" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Answer: 1974-04-01