Question: How many literary works were not created in 1852 or served as a the basis for Cloud Atlas (with the regional debut venue being 2012 Toronto International Film Festival) ?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1852 ) .  } UNION { ?e_1 <based_on> ?e . ?e_1 <pred:name> "Cloud Atlas" . ?e_1 <film_regional_debut_venue> ?e_2 . ?e_2 <pred:name> "2012 Toronto International Film Festival" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1852
!=
function: FilterConcept
dependencies: 1
inputs: literary work
function: Find
inputs: 2012 Toronto International Film Festival
function: Relate
dependencies: 3
inputs: film regional debut venue
backward
function: Find
inputs: Cloud Atlas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: based on
forward
function: FilterConcept
dependencies: 7
inputs: literary work
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 7