human
Compute the average geometry distance between a specific building and all roads (conceptual example).
gpt
```sparql
PREFIX geo:   <http://www.opengis.net/ont/geosparql#>
PREFIX geof:  <http://www.opengis.net/def/function/geosparql/>
PREFIX :      <http://example.org/ontology#>
PREFIX rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT (AVG(?dist) AS ?avgDist)
WHERE {
  :SomeBuilding :hasGeometry ?bGeom .
  ?road rdf:type :Road ;
        :hasGeometry ?rGeom .
  BIND(
    geof:distance(
      ?bGeom,
      ?rGeom,
      <http://www.opengis.net/def/uom/OGC/1.0/metre>
    ) AS ?dist
  )
}
```