Mix the pumpkin and shallots with the oil, wine, sugar and strong salt and pepper and place on a baking sheet.
Cook in a preheated oven at 200 ° C for about 1 hour, stirring once or twice in between. The pumpkin must be soft and the shallots should be caramelized and have brown edges.
Mix the parsley and lemon zest and set aside. Cook the orecchiette al dente according to the instructions on the packet. Then drain and put in a bowl.
Add the vegetables to the orecchiette, mix with 2-3 tablespoons of the pasta cooking water and also add half of the parsley mixture. Mix everything well.
Sprinkle with the remaining parsley mixture and pine nuts and drizzle with a little olive oil. Serve immediately.