Question: What is the name of the record label with headquarter located in the city that is the birthplace of John Wood (the one whose date of death is 1959-01-01)?
Choices:
RCA Records
Relapse Records
Earache Records
Fat Wreck Chords
ABC Records
Alternative Tentacles
Cleopatra
Frontiers Records
Nottingham Forest F.C.
University of Nottingham
Answer: Earache Records
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "record label" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "John Wood" . ?e_2 <date_of_death> ?pv . ?pv <pred:date> "1959-01-01"^^xsd:date .   }
Program:
function: Find
inputs: John Wood
function: FilterDate
dependencies: 0
inputs: date of death
1959-01-01
=
function: Relate
dependencies: 1
inputs: place of birth
forward
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: record label
function: What
dependencies: 5