Rinse the lentils and rice under cold water until the water runs clear.
In a large pot, heat 2 tablespoons of olive oil over medium heat. Add the sliced onions and cook until caramelized, stirring occasionally, for about 20-25 minutes.
In another pot, bring 2 cups of water to a boil. Add the lentils, cumin, coriander, turmeric, cinnamon, and cayenne pepper. Reduce the heat to low, cover, and simmer for 20 minutes or until the lentils are tender.
In a separate pot, bring 1 1/2 cups of water to a boil. Add the rice and a pinch of salt. Reduce the heat to low, cover, and simmer for 15-20 minutes or until the rice is cooked.
In a large skillet, heat the remaining 2 tablespoons of olive oil over medium heat. Add the dried apricots and raisins and cook for 2-3 minutes until they soften.
Add the cooked lentils, cooked rice, and caramelized onions to the skillet with the dried fruits. Mix well to combine all the ingredients. Season with salt and pepper to taste.
Garnish with fresh cilantro and serve hot.