Question: How many calendar months are either followed by June or have the name of marca?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: June
function: Relate
dependencies: 0
inputs: follows
forward
function: FilterConcept
dependencies: 1
inputs: calendar month
function: FindAll
function: FilterStr
dependencies: 3
inputs: name
marca
function: FilterConcept
dependencies: 4
inputs: calendar month
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "calendar month" .  { ?e_1 <follows> ?e . ?e_1 <pred:name> "June" .  } UNION { ?e <name> ?pv . ?pv <pred:value> "marca" .  } }
Answer: 2