Question: How many arts festivals are either held in May (the one that is followed by June) or were received by Kim Ki-duk (the one whose ISNI is 0000 0001 0909 9404)?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "arts festival" .  { ?e <month_of_the_year> ?e_1 . ?e_1 <pred:name> "May" . ?e_1 <followed_by> ?e_2 . ?e_2 <pred:name> "June" .  } UNION { ?e_1 <award_received> ?e . ?e_1 <pred:name> "Kim Ki-duk" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0001 0909 9404" .  } }
Program:
function: Find
inputs: June
function: Relate
dependencies: 0
inputs: followed by
backward
function: Find
inputs: May
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: month of the year
backward
function: FilterConcept
dependencies: 4
inputs: arts festival
function: Find
inputs: Kim Ki-duk
function: FilterStr
dependencies: 6
inputs: ISNI
0000 0001 0909 9404
function: Relate
dependencies: 7
inputs: award received
forward
function: FilterConcept
dependencies: 8
inputs: arts festival
function: Or
dependencies: 5
9
function: Count
dependencies: 10
Answer: 3