Question: How many arts festivals are in Venice which is the twinned administrative body of Trieste or were not founded in 1946?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "arts festival" .  { ?e <location> ?e_1 . ?e_1 <pred:name> "Venice" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Trieste" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1946 ) .  } }
Program:
function: Find
inputs: Trieste
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Venice
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: location
backward
function: FilterConcept
dependencies: 4
inputs: arts festival
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1946
!=
function: FilterConcept
dependencies: 7
inputs: arts festival
function: Or
dependencies: 5
8
function: Count
dependencies: 9