Question: How many Games of the Summer Olympics were officially opened by Edward VII or began prior to 1976?
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Summer Olympic Games" .  { ?e <officially_opened_by> ?e_1 . ?e_1 <pred:name> "Edward VII" .  } UNION { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1976 ) .  } }
Program:
function: Find
inputs: Edward VII
function: Relate
dependencies: 0
inputs: officially opened by
backward
function: FilterConcept
dependencies: 1
inputs: Summer Olympic Games
function: FindAll
function: FilterYear
dependencies: 3
inputs: start time
1976
<
function: FilterConcept
dependencies: 4
inputs: Summer Olympic Games
function: Or
dependencies: 2
5
function: Count
dependencies: 6