If using basmati rice, clean, wash, and soak it according to package directions, then drain well.
Heat the ghee or oil in a heavy, nonstick saucepan over moderate heat.
Add the broken dal badi bits and stir-fry for 30–45 seconds until they turn a nutty brown color.
Remove them with a slotted spoon and set aside.
To the same pan, add the cumin and black mustard seeds.
Fry until the mustard seeds turn gray and begin to pop.
Stir in the green beans and rice, and sauté for 3–4 minutes to lightly cook the beans and coat the rice grains in the spiced oil.
Return the fried badi bits to the pan.
Add the water, salt, turmeric, and fresh parsley or coriander.
Bring the mixture to a rapid boil.
Immediately reduce the heat to the lowest setting, cover the pan with a tight-fitting lid, and simmer gently for 20–25 minutes.
Do not stir. The pilaf is ready when the rice is tender and has absorbed all the water.
Remove the pan from the heat and let it stand, still covered, for 5 minutes. This allows the delicate rice grains to firm up. Fluff gently with a fork and serve piping-hot.
Letting the rice rest for 5 minutes after cooking is crucial. It prevents the fragile grains from breaking when you fluff them with a fork.