Question: How many plays do we know whose first performance did not happen in 2011 or that differ from the action movie 21 Jump Street ?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2011 ) .  } UNION { ?e <different_from> ?e_1 . ?e_1 <pred:name> "21 Jump Street" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "action film" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: date of first performance
2011
!=
function: FilterConcept
dependencies: 1
inputs: play
function: Find
inputs: action film
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: 21 Jump Street
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: different from
backward
function: FilterConcept
dependencies: 7
inputs: play
function: Or
dependencies: 2
8
function: Count
dependencies: 9