Question: How many months come after the month preceded by May, the 5th in the series of calendar months?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "calendar month" . ?e <follows> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "calendar month" . ?e_1 <followed_by> ?e_3 . ?e_3 <pred:name> "May" . ?e_3 <series_ordinal> ?pv . ?pv <pred:value> "5" .   }
Program:
function: Find
inputs: May
function: FilterStr
dependencies: 0
inputs: series ordinal
5
function: Relate
dependencies: 1
inputs: followed by
backward
function: FilterConcept
dependencies: 2
inputs: calendar month
function: Relate
dependencies: 3
inputs: follows
backward
function: FilterConcept
dependencies: 4
inputs: calendar month
function: Count
dependencies: 5