Question: What state is located in or next to the sea that is located on a North Sea terrain feature?
Choices:
Saint Vincent and the Grenadines
Denmark
Jersey
Isle of Wight
Bulgaria
Kosovo
Saint Kitts and Nevis
Croatia
Finland
Guernsey
Program:
function: Find
inputs: North Sea
function: Relate
dependencies: 0
inputs: located on terrain feature
backward
function: FilterConcept
dependencies: 1
inputs: sea
function: Relate
dependencies: 2
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 3
inputs: state
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sea" . ?e_1 <located_on_terrain_feature> ?e_2 . ?e_2 <pred:name> "North Sea" .   }
Answer: Guernsey