Return a row of valid, reason and location. valid defines the validity of geometry, reason defines the
reason why it is not valid and location defines the location where it is not valid
If the geometry is valid then it will return null for reason and locationSQL reference: ST_IsValidDetail