Question: How many states of Germany follow Rio de Janeiro that shares a border with Minas Gerais?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Minas Gerais
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Rio de Janeiro
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: followed by
forward
function: FilterConcept
dependencies: 4
inputs: state of Germany
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e_1 <followed_by> ?e . ?e_1 <pred:name> "Rio de Janeiro" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Minas Gerais" .   }
Answer: 0