Question: How many calendar months precede January or are the 4th in the series of months?
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> "calendar month" .  { ?e <series_ordinal> ?pv . ?pv <pred:value> "4" .  } UNION { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "January" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: series ordinal
4
function: FilterConcept
dependencies: 1
inputs: calendar month
function: Find
inputs: January
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: calendar month
function: Or
dependencies: 2
5
function: Count
dependencies: 6