Start Instant Pot on Sauté. Add oil, cumin, garlic, and green chilies. Stir 30–45 seconds until fragrant.
Add onion and cook about 1 minute (just to soften).
Add tomato and cook 1–2 minutes until it breaks down a bit.
Add turmeric, red chili powder, salt. Stir. Add rinsed masoor dal and 3 cups water; mix well.
Place trivet into the dal. In a metal bowl, add rinsed quinoa (or rice) + 1 cup water. Set the bowl on the trivet. Close lid and move valve to sealing.
Pressure Cook for 4 minutes. Quick Release when done.
Lift out the PIP bowl and trivet carefully.
Stir in chopped spinach. The residual heat will wilt the spinach in around 1–2 minutes. Add a spoon of ghee if you like. Taste salt and adjust.
If too thick, splash in hot water to loosen.
Fluff quinoa/rice. Ladle dal over. Eat warm. Enjoy.