Question: What single was written by Madonna and was published before 1988?
Choices:
Goldfinger
Die Another Day
A View to a Kill
Venus
Angel
Hello, Dolly!
Monster
The Way We Were
Stand by Me
Carry On
Answer: Angel
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1988 ) . ?e <lyrics_by> ?e_1 . ?e_1 <pred:name> "Madonna" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1988
<
function: FilterConcept
dependencies: 1
inputs: single
function: Find
inputs: Madonna
function: Relate
dependencies: 3
inputs: lyrics by
backward
function: FilterConcept
dependencies: 4
inputs: single
function: And
dependencies: 2
5
function: What
dependencies: 6