Preheat the oven to Gas Mark 7, 220ºC, fan 200ºC. Put the shallots in a pan, cover with boiling water and cook for 5 minutes. Drain and put in a large bowl. Add the pumpkin, sage, garlic and oil. Mix well to coat and tip onto a baking tray.
Put in the oven and cook for 30 minutes, then add the pine nuts and cook for 10 minutes more, until the pumpkin is tender.