Question: How many New Jersey counties are named after the geographic region that includes the Mediterranean Sea as a component?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e <named_after> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "Mediterranean Sea" .   }
Program:
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 0
inputs: has part
backward
function: FilterConcept
dependencies: 1
inputs: geographic region
function: Relate
dependencies: 2
inputs: named after
backward
function: FilterConcept
dependencies: 3
inputs: county of New Jersey
function: Count
dependencies: 4
Answer: 2