Question: How many provinces of Italy are in the republic that is the country of Tuscany?
Choices:
9
10
11
12
13
14
15
16
17
18
Program:
function: Find
inputs: Tuscany
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: province of Italy
function: Count
dependencies: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Italy" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "republic" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Tuscany" .   }
Answer: 13