Question: How many calendar months come after August (which comes after July) or come after March?
Choices: 0
1
2
3
4
5
6
7
8
9
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:name> "August" . ?e_1 <follows> ?e_2 . ?e_2 <pred:name> "July" .  } UNION { ?e <follows> ?e_1 . ?e_1 <pred:name> "March" .  } }
Program:
function: Find
inputs: July
function: Relate
dependencies: 0
inputs: follows
backward
function: Find
inputs: August
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: follows
backward
function: FilterConcept
dependencies: 4
inputs: calendar month
function: Find
inputs: March
function: Relate
dependencies: 6
inputs: follows
backward
function: FilterConcept
dependencies: 7
inputs: calendar month
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2