Question: Hal Smith, born 1902-06-30, is a member of which baseball team?
Choices:
San Diego Padres
Baltimore Orioles
Texas Rangers
Pittsburgh Pirates
Colorado Rockies
Tohoku Rakuten Golden Eagles
Cleveland Indians
Cincinnati Reds
Los Angeles Dodgers
St. Louis Cardinals
Program:
function: Find
inputs: Hal Smith
function: FilterDate
dependencies: 0
inputs: date of birth
1902-06-30
=
function: Relate
dependencies: 1
inputs: member of sports team
forward
function: FilterConcept
dependencies: 2
inputs: baseball team
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Hal Smith" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1902-06-30"^^xsd:date .   }
Answer: Pittsburgh Pirates