SELECT l.location_id FROM LOCATION l, (SELECT l.location_id, cl.classification_location_id from classification_location cl,location l, (select platform_code from platform WHERE platform_code IN ('6100284')) P WHERE cl.platform_code = P.platform_code AND cl.on_day <= TO_DATE('04/12/2024 23:59:59', 'DD/MM/YYYY HH24:MI:SS') AND cl.on_day >= TO_DATE('1/1/2019 00:00:00', 'DD/MM/YYYY HH24:MI:SS') AND cl.classification_code IN (1, 2, 3, 4, 5, 6, 9, 11, 12, 13, 14, 15, 19) AND (cl.restriction = 'P' or cl.restriction is null) AND cl.lat_min <= 43.73 AND cl.lat_max >= 42.91 AND ((cl.long_min <= 5.9 AND cl.long_max >= 3.84) OR (cl.long_min <= MOD(5.9+360, 360) AND cl.long_max >= MOD(3.84+360, 360)) OR (cl.long_min <= MOD(5.9-360, 360) AND cl.long_max >= MOD(3.84-360, 360)) ) AND l.platform_code = cl.platform_code AND l.location_date >= on_day AND l.location_date < cl.on_day + 1 AND l.latitude <= 43.73 AND l.latitude >= 42.91 AND ((l.longitude <= 5.9 AND l.longitude >= 3.84) OR (l.longitude <= MOD(5.9+360, 360) AND l.longitude >= MOD(3.84+360, 360)) OR (l.longitude <= MOD(5.9-360, 360) AND l.longitude >= MOD(3.84-360, 360)) ) AND (psal = 'Y' OR not 1=1)AND (('mediterranean' = 'mediterranean' AND ((cl.lat_min between 30 and 41 or cl.lat_max between 30 and 41) AND (cl.long_min between -6 and 37 or cl.long_max between -6 and 37)) OR ((cl.lat_min between 41 and 45.6 or cl.lat_max between 41 and 45.6) AND (cl.long_min between 0 and 20 or cl.long_max between 0 and 20))) OR ('jerico' = 'mediterranean' AND ((cl.lat_min between 30 and 65 or cl.lat_max between 30 and 65) AND (cl.long_min between -15 and 30 or cl.long_max between 15 and 30))))) locationToDiff,CLASSIFICATION_LOCATION cl, CLASSIFICATION_TYPE ct WHERE l.location_id = locationToDiff.location_id AND cl.classification_location_id = locationToDiff.classification_location_id AND ct.classification_code = cl.classification_code AND l.PLATFORM_CODE='6100284' and cl.classification_code=15;/home1/datawork/co_exp/coriolis_exp/spool/co05/co0501/tmp/DataSelection_20241204_132417_15124523/mooring-buoys-time-series-6100284.csv; -measure_qc=12578