In a large saucepan, bring the sliced chili, shallot, garlic and water to a boil over medium heat, then simmer uncovered for 3 to 5 minutes. Add the eggplants and tamarind, and simmer until half cooked, about 2 minutes. Add the tomato and sugar, and simmer until t