Cut the tomatoes into small cubes, cut the garlic and onions into small pieces.
Heat the olive oil in a small saucepan or pan. Sauté the onions and add the tomatoes with the garlic. Let everything boil down a little. Then season with sugar, pepper and salt and remove from the heat. Drizzle some lemon juice over it and pour over the salad. Mix everything well and serve.