SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Joseph_Story> <http://dbpedia.org/property/state> ?uri. <http://dbpedia.org/resource/Dorchester_Bay_(Boston_Harbor)> <http://dbpedia.org/property/state> ?uri . }
Which US state has Dorchester Bay and the Joseph Story?
SELECT DISTINCT ?f WHERE { resource:Joseph_Story property:state ?f . resource:Dorchester_Bay_(_Boston_Harbor) property:state ?f . }
Massachusetts
[Massachusetts] is the state which has Joseph Story and Dorchester Bay.
[Massachusetts] is a state having both Joseph Story and Dorchester Bay.
The state of them is [Massachusetts].
The State that has them is [Massachusetts].