Question: How is the Hal Smith who died 1992-09-27 related to the Pittsburgh Pirates?
Choices:
located on terrain feature
applies to jurisdiction
member of sports team
mountain range
natural product of taxon
diaspora
copyright representative
currency
programming language
famous people
Program:
function: Find
inputs: Hal Smith
function: FilterDate
dependencies: 0
inputs: date of death
1992-09-27
=
function: Find
inputs: Pittsburgh Pirates
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hal Smith" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1992-09-27"^^xsd:date . ?e_2 <pred:name> "Pittsburgh Pirates" . ?e_1 ?p ?e_2 .  }
Answer: member of sports team