Question: When was the administrative territorial entity whose end time is in 1947 founded?
Choices:
1948-06-04
1572-01-01
1821-01-01
1947-05-03
1710
1938
1795
1861-11-04
1066
1849-01-01
Answer: 1849-01-01
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <end_time> ?pv_1 . ?pv_1 <pred:year> 1947 . ?e <inception> ?pv .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1947
=
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: QueryAttr
dependencies: 2
inputs: inception