Question: What is the ISO 3166-2 code of Lorraine which ended on 2016-01-01?
Choices: DE-TH
IN-MH
US-AS
GB-BRD
MY-14
BE-VLI
FR-M
AZ-BA
BY-HM
CA-PE
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Lorraine" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2016-01-01"^^xsd:date . ?e <ISO_3166-2_code> ?pv .  }
Program:
function: Find
inputs: Lorraine
function: FilterDate
dependencies: 0
inputs: end time
2016-01-01
=
function: QueryAttr
dependencies: 1
inputs: ISO 3166-2 code
Answer: FR-M