Question: What is the IPTC Newscode for the state that is the main topic of Amazing Grace whose release date is 2006-01-01?
Choices: mediatopic/20000743
mediatopic/20000683
mediatopic/20000036
mediatopic/20000704
mediatopic/20000676
mediatopic/20000807
mediatopic/20000675
mediatopic/20001026
mediatopic/20000725
mediatopic/20001150
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Amazing Grace" . ?e_1 <publication_date> ?pv_1 . ?pv_1 <pred:date> "2006-01-01"^^xsd:date . ?e <IPTC_Newscode> ?pv .  }
Program:
function: Find
inputs: Amazing Grace
function: FilterDate
dependencies: 0
inputs: publication date
2006-01-01
=
function: Relate
dependencies: 1
inputs: main subject
forward
function: FilterConcept
dependencies: 2
inputs: state
function: QueryAttr
dependencies: 3
inputs: IPTC Newscode
Answer: mediatopic/20000807