Question: What is the number of counties in Ohio that has the capital Lima (which was incepted in 1831)
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Lima" . ?e_1 <inception> ?pv . ?pv <pred:year> 1831 .   }
Program:
function: Find
inputs: Lima
function: FilterYear
dependencies: 0
inputs: inception
1831
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: county of Ohio
function: Count
dependencies: 3
Answer: 1