In 2019 , the average jail sentence length for people convicted of terrorism offences varied significantly across the European Union , with the average length being 20 years in Greece , compared with two years in Lithuania , France and Poland .