Question: How many empires are a participant of the War of 1812 or have the capital of Mexico City?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: War of 1812
function: Relate
dependencies: 0
inputs: participant of
backward
function: FilterConcept
dependencies: 1
inputs: empire
function: Find
inputs: Mexico City
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: empire
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> "empire" .  { ?e <participant_of> ?e_1 . ?e_1 <pred:name> "War of 1812" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Mexico City" .  } }
Answer: 0