Question: How many wars have a location in which the geographic region of the Middle East is a part?
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_1 <part_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_1 <location> ?e_2 . ?e_2 <pred:name> "Middle East" .   }
Program:
function: Find
inputs: Middle East
function: Relate
dependencies: 0
inputs: location
backward
function: FilterConcept
dependencies: 1
inputs: geographic region
function: Relate
dependencies: 2
inputs: part of
forward
function: FilterConcept
dependencies: 3
inputs: war
function: Count
dependencies: 4
Answer: 1