human
Find all buildings that share the same street name as any road (assuming roads might have addresses too).
gpt
```sparql
PREFIX :     <http://example.org/ontology#>
PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?building
WHERE {
  ?road rdf:type :Road ;
        :hasAddress ?rAddr .
  ?rAddr :hasStreetName ?commonStreet .
  ?building rdf:type :Building ;
            :hasAddress ?bAddr .
  ?bAddr :hasStreetName ?commonStreet .
}
```