Question: for the city that is a Gold Coast Capital (which has the dissolution date of 1957-01-01), and local dialing code of 40302, tell me the location.
Choices:
St. Michaelis Church, Hamburg
Tokyo
beginning
Grand Rapids
Renaissance Center
Accra
Church of Our Lady of the Joy of All Who Sorrow on Bolshaya Ordynka
Essex County
Paramount Studios
Metropolitan France
Answer: Accra
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Gold Coast" . ?e_1 <dissolved,_abolished_or_demolished> ?pv_1 . ?pv_1 <pred:date> "1957-01-01"^^xsd:date . ?e <local_dialing_code> ?pv . ?pv <pred:value> "0302" . [ <pred:fact_h> ?e ; <pred:fact_r> <local_dialing_code> ; <pred:fact_t> ?pv ] <location> ?qpv .  }
Program:
function: Find
inputs: Gold Coast
function: FilterDate
dependencies: 0
inputs: dissolved, abolished or demolished
1957-01-01
=
function: Relate
dependencies: 1
inputs: capital of
backward
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttrQualifier
dependencies: 3
inputs: local dialing code
0302
location