human
Group buildings by street name and compute the average number of units.
gpt
```sparql
PREFIX :       <http://example.org/ontology#>
PREFIX rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT ?street (AVG(?units) AS ?avgUnits)
WHERE {
  ?b rdf:type :Building ;
     :hasAddress ?addr ;
     :hasNumberOfUnits ?units .
  ?addr :hasStreetName ?street .
}
GROUP BY ?street
```