Preheat the oven to 425°F. Line a baking sheet with aluminum foil. Spread chopped pumpkin in a single layer, drizzle with oil and season with salt. Mix well. Bake for 20~25 minutes or until tender and lightly browned around the edges. Remove from the oven and set aside to cool.
While the squash is in the oven, cook the lentil/ dal until very soft and mushy. I cook dal in Instant pot for 6~8 minutes.
Grind coconut along with sambar powder into a coarse paste. Add half of the roasted squash and grind to a smooth paste.
Heat ghee in a medium size saucepan on medium heat. Add the mustard seeds and once they pop, add asafoetida/ hing and cook for few seconds. Add the curry leaves and scallion; sauté till they turn soft.
Stir in the coconut paste, cooked lentils, reserved roasted squash, jaggery and salt. Simmer on medium flame, for 8~10 minutes until the flavors meld. Finally stir in the lemon juice and turn off the flame. Serve warm with rice and a curry.