Question: How may arts festivals were received by Kim Ki-duk, born on 20th December 1960, or are known by their TIFF short name?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "arts festival" .  { ?e_1 <award_received> ?e . ?e_1 <pred:name> "Kim Ki-duk" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1960-12-20"^^xsd:date .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "TIFF" .  } }
Program:
function: Find
inputs: Kim Ki-duk
function: FilterDate
dependencies: 0
inputs: date of birth
1960-12-20
=
function: Relate
dependencies: 1
inputs: award received
forward
function: FilterConcept
dependencies: 2
inputs: arts festival
function: FindAll
function: FilterStr
dependencies: 4
inputs: short name
TIFF
function: FilterConcept
dependencies: 5
inputs: arts festival
function: Or
dependencies: 3
6
function: Count
dependencies: 7