Question: How many Summer Olympic Games are the main subject of Rear Window (the one whose production company is Focus Features) or have an end time after 2000?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Summer Olympic Games" .  { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Rear Window" . ?e_1 <production_company> ?e_2 . ?e_2 <pred:name> "Focus Features" .  } UNION { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2000 ) .  } }
Program:
function: Find
inputs: Focus Features
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Rear Window
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: Summer Olympic Games
function: FindAll
function: FilterYear
dependencies: 6
inputs: end time
2000
>
function: FilterConcept
dependencies: 7
inputs: Summer Olympic Games
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3