Question: What person is the composer of The Gift (that has J. K. Simmons as a cast member) and is born before 1978?
Choices:
Theodore Shapiro
Max Fleischer
Peter Boyle
Sylvester Stallone
Christopher Young
Chandra Wilson
John Cale
Jayne Mansfield
Danny Elfman
Rolfe Kent
Program:
function: Find
inputs: J. K. Simmons
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Gift
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: FindAll
function: FilterYear
dependencies: 6
inputs: date of birth
1978
<
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <composer> ?e . ?e_1 <pred:name> "The Gift" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "J. K. Simmons" .  ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1978 ) .  }
Answer: Christopher Young