Question: Of the 3 states that border the Pacific Ocean, which has the smallest GNIS feature ID?
Answer(s):
answer: Oregon

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.05rgl)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05rgl ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.0kpys4 .
?x ns:location.location.gnis_feature_id ?num .
}
ORDER BY xsd:integer(?num) LIMIT 1