human
336) Compute average year among roads that have addresses with 'Street' in the name.
gpt
```sparql
PREFIX :<http://example.org/ontology#>
SELECT (AVG(?y) AS ?avgYear)
WHERE {
  ?r a :Road ;
     :hasConstructionYear ?y ;
     :hasAddress ?addr .
  ?addr :hasStreetName ?name .
  FILTER regex(?name, "Street", "i")
}
```