SELECT
CASE ol.lic_lic_id
WHEN 5328 THEN 'Seine A'
WHEN 5330 THEN 'Seine B'
WHEN 5332 THEN 'Gillnet C'
WHEN 5334 THEN 'Gillnet D'
WHEN 5336 THEN 'Gillnet E'
WHEN 5338 THEN 'Troll F'
WHEN 5340 THEN 'Troll G'
WHEN 5342 THEN 'Troll H'
ELSE 'Other'
END AS gear,
Recreate this part of the opening query: