Question: How many Summer Olympics took place later than 1912 and began later than 1988?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Summer Olympic Games" . ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1988 ) . ?e <point_in_time> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 > 1912 ) .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
1988
>
function: FilterConcept
dependencies: 1
inputs: Summer Olympic Games
function: FindAll
function: FilterYear
dependencies: 3
inputs: point in time
1912
>
function: FilterConcept
dependencies: 4
inputs: Summer Olympic Games
function: And
dependencies: 2
5
function: Count
dependencies: 6