Question: How many 3D films are a part of The Smurfs (that has Jonathan Winters as a cast member) or have the release date that is not in 2013?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "3D film" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "The Smurfs" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Jonathan Winters" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2013 ) .  } }
Program:
function: Find
inputs: Jonathan Winters
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Smurfs
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: 3D film
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
2013
!=
function: FilterConcept
dependencies: 7
inputs: 3D film
function: Or
dependencies: 5
8
function: Count
dependencies: 9