Soak the rice and dals separately for twenty minutes and drain. Heat three tablespoons of oil in a pressure cooker and sauté onion. Add green chillies, sambhar onions, curry leaves and turmeric powder. Add rice and dals with five cups of water. Bring to a boil.
Add tomatoes, asafoetida, red chilli powder, tamarind pulp and salt. Stir well and add huliyana masala. Cover and pressure-cook for five minutes. Open the lid when cool and stir. Check consistency. If it is too dry, add a little warm water.
Heat remaining oil and temper it with mustard seeds and whole red chillies. Add to rice. Heat pure ghee and fry the cashewnuts to light brown and add to the rice, along with the ghee. Mix well and serve hot.