Sawfly are included with Wasps rather than Flies since they are of the "Hymenoptera" order
(Bees, Wasps and Ants) with four wings.
They are stockier than most wasps, with little waist between thorax and abdomen and have caterpillar-like larvae.
Females have a serrated "saw-like" ovipositor to cut plants/leaves.
Or this sawfly may be the Green Sawfly, Rhogogaster viridis, or may be the Green-legged Sawfly,
Tenthredo mesomelas
Also thought to be a sawfly
And another