human
370) Retrieve buildings typed also as :Construction that have geometry referencing 'polygon' but typed incorrectly as xsd:string.
gpt
```sparql
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX geo:<http://www.opengis.net/ont/geosparql#>
PREFIX :   <http://example.org/ontology#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT ?b
WHERE {
  ?b rdf:type :Building , :Construction ;
     :hasGeometry ?g .
  ?g geo:asWKT ?val .
  FILTER(regex(?val, "polygon", "i") && datatype(?val) = xsd:string)
}
```