Question: How many miniseries are written by Charles Dickens or mainly depict World War II?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" .  { ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Charles Dickens" .  } UNION { ?e <main_subject> ?e_1 . ?e_1 <pred:name> "World War II" .  } }
Program:
function: Find
inputs: Charles Dickens
function: Relate
dependencies: 0
inputs: after a work by
backward
function: FilterConcept
dependencies: 1
inputs: miniseries
function: Find
inputs: World War II
function: Relate
dependencies: 3
inputs: main subject
backward
function: FilterConcept
dependencies: 4
inputs: miniseries
function: Or
dependencies: 2
5
function: Count
dependencies: 6