Question: What calendar month has the Iconclass notation 23I31 and is followed by August (that succeeds July)?
Choices: August
January
February
July
November
December
June
September
October
April
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "calendar month" . ?e <Iconclass_notation> ?pv . ?pv <pred:value> "23I31" . ?e <followed_by> ?e_1 . ?e_1 <pred:name> "August" . ?e_1 <follows> ?e_2 . ?e_2 <pred:name> "July" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Iconclass notation
23I31
function: FilterConcept
dependencies: 1
inputs: calendar month
function: Find
inputs: July
function: Relate
dependencies: 3
inputs: follows
backward
function: Find
inputs: August
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: followed by
backward
function: FilterConcept
dependencies: 7
inputs: calendar month
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: July