I have the following query using SQL
SELECT count(*) FROM nuts WHERE nuts_code LIKE \'%ES%\' AND level=3 AND LENGTH(nuts_code)=4
But I need to tr