Question: How many activities were published before 2004, but not in 2000?
Choices: 75
76
77
78
79
80
81
82
83
84
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2000 ) . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 < 2004 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2000
!=
function: FilterConcept
dependencies: 1
inputs: activity
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2004
<
function: FilterConcept
dependencies: 4
inputs: activity
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 76