Question: What number of baseball teams were founded before 2005?
Choices:
34
35
36
37
38
39
40
41
42
43
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2005 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
2005
<
function: FilterConcept
dependencies: 1
inputs: baseball team
function: Count
dependencies: 2