Question: How many pop musics began before 1990 and are the genre of Neil Young (who received a Grammy Award for Best Rock Song)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "pop music" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1990 ) . ?e_1 <genre> ?e . ?e_1 <pred:name> "Neil Young" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Grammy Award for Best Rock Song" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1990
<
function: FilterConcept
dependencies: 1
inputs: pop music
function: Find
inputs: Grammy Award for Best Rock Song
function: Relate
dependencies: 3
inputs: award received
backward
function: Find
inputs: Neil Young
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: genre
forward
function: FilterConcept
dependencies: 7
inputs: pop music
function: And
dependencies: 2
8
function: Count
dependencies: 9