Question: How many literary awards created prior to 1978 are in the fantasy field?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary award" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1978 ) . ?e <award_disciplines_or_subjects> ?e_1 . ?e_1 <pred:name> "fantasy" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1978
<
function: FilterConcept
dependencies: 1
inputs: literary award
function: Find
inputs: fantasy
function: Relate
dependencies: 3
inputs: award disciplines or subjects
backward
function: FilterConcept
dependencies: 4
inputs: literary award
function: And
dependencies: 2
5
function: Count
dependencies: 6