Question: How many literary awards were nominated to Leo Tolstoy or are in the discipline of literature?
Choices:
25
26
27
28
29
30
31
32
33
34
Program:
function: Find
inputs: Leo Tolstoy
function: Relate
dependencies: 0
inputs: nominated for
forward
function: FilterConcept
dependencies: 1
inputs: literary award
function: Find
inputs: literature
function: Relate
dependencies: 3
inputs: award disciplines or subjects
backward
function: FilterConcept
dependencies: 4
inputs: literary award
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary award" .  { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Leo Tolstoy" .  } UNION { ?e <award_disciplines_or_subjects> ?e_1 . ?e_1 <pred:name> "literature" .  } }
Answer: 34