Question: How many wars do we know that were followed by World War or that come after First Crusade?
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> "war" .  { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "World War II" .  } UNION { ?e <follows> ?e_1 . ?e_1 <pred:name> "First Crusade" .  } }
Program:
function: Find
inputs: World War II
function: Relate
dependencies: 0
inputs: followed by
backward
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: First Crusade
function: Relate
dependencies: 3
inputs: follows
backward
function: FilterConcept
dependencies: 4
inputs: war
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2