Bring sugar and water to a boil. Stir till sugar dissolves. Let cool. Put all ingredients into a food processor. Mix until onions are finely chopped. Makes about a quart. Refrigerate. Keeps well.