Question: How many democracies have diplomatic ties to Mexico?
Choices:
10
11
12
13
14
15
16
17
18
19
Program:
function: Find
inputs: Mexico
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: Count
dependencies: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Mexico" .   }
Answer: 13