Question: Which month of the calendar precedes September, which precedes October?
Choices:
May
January
April
October
July
August
February
September
November
June
Answer: August
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "calendar month" . ?e <followed_by> ?e_1 . ?e_1 <pred:name> "September" . ?e_1 <followed_by> ?e_2 . ?e_2 <pred:name> "October" .   }
Program:
function: Find
inputs: October
function: Relate
dependencies: 0
inputs: followed by
backward
function: Find
inputs: September
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: calendar month
function: What
dependencies: 5