human
Count roads that have addresses referencing street names with trailing punctuation (regex).
gpt
```sparql
PREFIX :<http://example.org/ontology#>
SELECT (COUNT(DISTINCT ?road) AS ?count)
WHERE {
  ?road a :Road ;
        :hasAddress ?addr .
  ?addr :hasStreetName ?name .
  FILTER regex(?name, "[^a-zA-Z0-9]$", "i")
}
```