Question: How many constitutional monarchies, comprising the location of Second Boer War, have a diplomatic relation with Tunisia ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constitutional monarchy" . ?e_1 <location> ?e . ?e_1 <pred:name> "Second Boer War" .  ?e_2 <diplomatic_relation> ?e . ?e_2 <pred:name> "Tunisia" .  }
Program:
function: Find
inputs: Second Boer War
function: Relate
dependencies: 0
inputs: location
forward
function: FilterConcept
dependencies: 1
inputs: constitutional monarchy
function: Find
inputs: Tunisia
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 4
inputs: constitutional monarchy
function: And
dependencies: 2
5
function: Count
dependencies: 6