SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Toms_Creek_(Monocacy_River)> <http://dbpedia.org/ontology/leftTributary> ?x . ?x <http://dbpedia.org/ontology/state> ?uri . }
In which states does the river flow whose left tributary is Toms Creek?
SELECT DISTINCT ?c WHERE { ?c property:state ?c . . resource:Toms_Creek_(_Monocacy_River) property:left_tributary ?c }
Maryland, Pennsylvania
The states of the left tributary of Toms Creek river are [Maryland, Pennsylvania].
The Toms Creek left tributary states are [Maryland, Pennsylvania].