[GEOT-4452] SQL Server: distance filters translated into faulty SQL