Question: How many television stations were established before 1985?
Choices:
20
21
22
23
24
25
26
27
28
29
Answer: 20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television station" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1985 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1985
<
function: FilterConcept
dependencies: 1
inputs: television station
function: Count
dependencies: 2