Question: How many Florida counties are located in or adjacent to the geographic region whose lowest point is Maryland (whose ISO 3166-2 code is US-MD)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_2 <lowest_point> ?e_1 . ?e_2 <pred:name> "Maryland" . ?e_2 <ISO_3166-2_code> ?pv . ?pv <pred:value> "US-MD" .   }
Program:
function: Find
inputs: Maryland
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
US-MD
function: Relate
dependencies: 1
inputs: lowest point
forward
function: FilterConcept
dependencies: 2
inputs: geographic region
function: Relate
dependencies: 3
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 4
inputs: county of Florida
function: Count
dependencies: 5