Question: How many short films are produced by Walt Disney Pictures or published after 1944?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "short film" .  { ?e <production_company> ?e_1 . ?e_1 <pred:name> "Walt Disney Pictures" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1944 ) .  } }
Program:
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: FilterConcept
dependencies: 1
inputs: short film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1944
>
function: FilterConcept
dependencies: 4
inputs: short film
function: Or
dependencies: 2
5
function: Count
dependencies: 6