Question: How is Pittsburgh (the one whose publication date is 2006-01-01) related to Pittsburgh (the one whose postal code is 15215)?
Choices:
geography of topic
programming language
significant event
characters
capital
record label
narrative location
located in or next to body of water
had as last meal
given name
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Pittsburgh" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2006-01-01"^^xsd:date . ?e_2 <pred:name> "Pittsburgh" . ?e_2 <postal_code> ?pv_1 . ?pv_1 <pred:value> "15215" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pittsburgh
function: FilterDate
dependencies: 0
inputs: publication date
2006-01-01
=
function: Find
inputs: Pittsburgh
function: FilterStr
dependencies: 2
inputs: postal code
15215
function: QueryRelation
dependencies: 1
3