Question: Which rock music single was released pre-1985?
Choices:
Fair Game
The Way We Were
Dynasty
One Tree Hill
Tommy
Goldfinger
Stand by Me
The Beatles
Carry On
The Believer
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: single
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1985
<
function: FilterConcept
dependencies: 4
inputs: single
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" . ?e <genre> ?e_1 . ?e_1 <pred:name> "rock music" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1985 ) .  }
Answer: Carry On