Question: How many literary genres are eligible for the Caldecott Medal or were nominated for National Book Award for Fiction?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" .  { ?e_1 <award_disciplines_or_subjects> ?e . ?e_1 <pred:name> "Caldecott Medal" .  } UNION { ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "National Book Award for Fiction" .  } }
Program:
function: Find
inputs: Caldecott Medal
function: Relate
dependencies: 0
inputs: award disciplines or subjects
forward
function: FilterConcept
dependencies: 1
inputs: literary genre
function: Find
inputs: National Book Award for Fiction
function: Relate
dependencies: 3
inputs: nominated for
backward
function: FilterConcept
dependencies: 4
inputs: literary genre
function: Or
dependencies: 2
5
function: Count
dependencies: 6