SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/river> <http://dbpedia.org/resource/Pequea_Creek> . ?x <http://dbpedia.org/ontology/state> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Bridge>}
In which states are there bridges over the Pequea Creek?
SELECT DISTINCT ?g WHERE { ?d rdf:type ontology:Bridge . ?d property:state ?g . ?d property:river resource:Pequea_Creek }
Pennsylvania
[Pennsylvania] is the state where the bridges cross over the Pequea Creek river.
[Pennsylvania] is a state with bridges crossing the Pekea Creek River.