Question: When was the oldest record in writing of the city that became the capital of the Spanish Empire in 1606?
Choices:
1536
0854-07-22
-301
871
766
880
1776
1101
1898
1143
Program:
function: Find
inputs: Spanish Empire
function: Relate
dependencies: 0
inputs: capital
forward
function: QFilterYear
dependencies: 1
inputs: start time
1606
=
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttr
dependencies: 3
inputs: time of earliest written record
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Spanish Empire" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital> ; <pred:fact_t> ?e ] <start_time> ?qpv . ?qpv <pred:year> 1606 . ?e <time_of_earliest_written_record> ?pv .  }
Answer: 871