human
Count addresses that appear under two distinct buildings.
gpt
```sparql
PREFIX : <http://example.org/ontology#>
SELECT (COUNT(DISTINCT ?addr) AS ?count)
WHERE {
  ?b1 :hasAddress ?addr ; a :Building .
  ?b2 :hasAddress ?addr ; a :Building .
  FILTER(?b1 != ?b2)
}
```