Question: How many rock bands were founded pre-1973?
Choices:
23
24
25
26
27
28
29
30
31
32
Answer: 27
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1973 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1973
<
function: FilterConcept
dependencies: 1
inputs: rock band
function: Count
dependencies: 2