Question: What is the relationship between Apache (the one that has the record label Tommy Boy Records) and Bethlehem (the one whose postal code is 18015–18018)?
Choices:
works in collection
executive producer
mountain range
diplomatic relation
candidate
place of death
partner
official color
manner of death
film editor
Program:
function: Find
inputs: Tommy Boy Records
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: Apache
function: And
dependencies: 1
2
function: Find
inputs: Bethlehem
function: FilterStr
dependencies: 4
inputs: postal code
18015–18018
function: QueryRelation
dependencies: 3
5
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Apache" . ?e_1 <record_label> ?e_3 . ?e_3 <pred:name> "Tommy Boy Records" . ?e_2 <pred:name> "Bethlehem" . ?e_2 <postal_code> ?pv . ?pv <pred:value> "18015–18018" . ?e_1 ?p ?e_2 .  }
Answer: place of death