Boil the rice in salted water.
Drain and rinse.
Chop the vegetables.
Fry the onions and garlic in a large pan.
After 5 minutes, add the eggplant and the celery.
Once they have started to soften, add the tomato.
When it has reduced, add the sugar and the vinegar and allow to reduce again.
Add the raisins, pistachios, capers, oregano, parsley and olives.