The SQL is optional. If provided it is used for range checking. It should return a single boolean value. For example: