Preheat oven to 425 F.
Place the chicken in a large bowl and add olive oil, 1 tsp salt, and generous grind of black pepper. Toss to coat, the transfer to a baking sheet lined with parchment paper, skin side up.
Put the cumin, coriander, cinnamon, turmeric, and fennel seeds into a small bowl and mix to combine. Sprinkle a quarter of the spice mix over the chicken. Roast for 45 minutes, or browned and cooked through.
To assemble the moghrabieh, while the chicken is roasting in the oven, put the oil in a large pot, and place over medium heat. Add the onions and salt and cook for 5 minutes, stirring every minute so they cook evenly.
Add the tomato paste and sugar and cook for one minute. Add the carrots and squash and cook for 3 minutes, stirring to ensure the vegetables cook evenly. Add the chickpeas, remaining spice mix, garlic and stock.
Bring to boil, then reduce the heat and cover with a lid. Cook on low simmer for 15 minutes, or until the vegetables are cooked through.
Make sure to reserve the stock, strain the vegetables and set them aside. Return the stock to the pot then add the pasta and bring to boil.
Decrease the heat to low, cover, and cook for 10 minutes, or until the pasta is al dente. Turn off the heat and set aside for 10 minutes, with the pot still covered.
Fluff the pasta with a fork and add vegetables to the pot, along with lemon juice and parsley.
Spoon the moghrabieh into a large and deep serving dish. Top with roast chicken legs, sprinkle with remaining parsley and serve hot.