Question: How many Florida counties border the Florida county that has the capital Orlando which is the residence of Shaquille O'Neal?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Shaquille O'Neal
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Orlando
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: county of Florida
function: Relate
dependencies: 5
inputs: shares border with
backward
function: FilterConcept
dependencies: 6
inputs: county of Florida
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Florida" . ?e_2 <capital_of> ?e_1 . ?e_2 <pred:name> "Orlando" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "Shaquille O'Neal" .   }
Answer: 4