Add the lentils, rice, bulgur and water to a pot and bring to a simmer. Skim off the foam on top and discard it. Do this at least twice.
Simmer until the lentils and grains are soft, 25 to 30 minutes. There's no need to add more water.
Meanwhile, whisk the yogurt, egg, flour and lemon juice together in a bowl until smooth.
Slowly whisk 2 ladles of the hot soup into the terbiye, one at a time, to temper it.
Turn the heat to low. Slowly pour the tempered terbiye into the soup while stirring. Cook over low heat for 15 minutes, stirring now and then. Do not let it simmer or boil.
Melt the butter in a small pan over medium-low heat, then add the olive oil. Stir in the mint and Aleppo pepper and cook for 2 to 3 minutes.
Season the soup with the salt, pour the mint butter over the top, give it a good stir and serve.