Question: ow many fiction stories are the genre of King of the Hill (whose date of first performance is 1997-01-12) or are the major topic of Taken (whose release territory is Chile)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fiction" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "King of the Hill" . ?e_1 <date_of_first_performance> ?pv . ?pv <pred:date> "1997-01-12"^^xsd:date .  } UNION { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Taken" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Chile" .  } }
Program:
function: Find
inputs: King of the Hill
function: FilterDate
dependencies: 0
inputs: date of first performance
1997-01-12
=
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: fiction
function: Find
inputs: Chile
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Taken
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: main subject
forward
function: FilterConcept
dependencies: 8
inputs: fiction
function: Or
dependencies: 3
9
function: Count
dependencies: 10
Answer: 1