Question: How many wars have the Spanish Empire as a participant and the Holy Roman Empire as a participant?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e <participant> ?e_1 . ?e_1 <pred:name> "Spanish Empire" .  ?e <participant> ?e_2 . ?e_2 <pred:name> "Holy Roman Empire" .  }
Program:
function: Find
inputs: Spanish Empire
function: Relate
dependencies: 0
inputs: participant
backward
function: FilterConcept
dependencies: 1
inputs: war
function: Find
inputs: Holy Roman Empire
function: Relate
dependencies: 3
inputs: participant
backward
function: FilterConcept
dependencies: 4
inputs: war
function: And
dependencies: 2
5
function: Count
dependencies: 6