Question: What is the number of entertainments that were published before 2008?
Choices:
125
126
127
128
129
130
131
132
133
134
Answer: 129
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "entertainment" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2008 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2008
<
function: FilterConcept
dependencies: 1
inputs: entertainment
function: Count
dependencies: 2