Question: How many New Jersey cities are in the sovereign state that is the country of Clinton County (whose official website is https://www.clintonco.illinois.gov/)?
Choices:
13
14
15
16
17
18
19
20
21
22
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Clinton County" . ?e_2 <official_website> ?pv . ?pv <pred:value> "https://www.clintonco.illinois.gov/" .   }
Program:
function: Find
inputs: Clinton County
function: FilterStr
dependencies: 0
inputs: official website
https://www.clintonco.illinois.gov/
function: Relate
dependencies: 1
inputs: country
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: Count
dependencies: 5