Question: How many regions of Italy are located in or next to the Mediterranean Sea or whose FIPS 10-4 (countries and regions) is IT16?
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> "region of Italy" .  { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Mediterranean Sea" .  } UNION { ?e <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "IT16" .  } }
Program:
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: FindAll
function: FilterStr
dependencies: 3
inputs: FIPS 10-4 (countries and regions)
IT16
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2