human
List the building, street name, and geometry, if geometry exists.
gpt
```sparql
PREFIX :      <http://example.org/ontology#>
PREFIX rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT ?building ?street ?geom
WHERE {
  ?building rdf:type :Building ;
            :hasAddress ?addr .
  ?addr :hasStreetName ?street .
  OPTIONAL {
    ?building :hasGeometry ?geom .
  }
}
```