Clean and wash the broccoli and cut it into small florets. Peel and wash the carrots and slice them very thinly. Peel onions and garlic. Cut onions into thin slices, chop garlic finely.
Roast the pine nuts in a pan without fat and take them out. Heat the olive oil in the pan. Fry the minced meat in it until crumbly. Fry onions and garlic briefly. Deglaze with red wine. Add the tomatoes and juice and mash some of the cherry tomatoes with a spatula (be careful not to splash!).
Season with salt, pepper and 1 teaspoon sugar. Bring to the boil and simmer for 15-20 minutes.
Cook the spaghetti in 3-4 l boiling salted water (1 teaspoon salt per litre) according to the instructions on the packet. Add prepared vegetables in the last 3-4 minutes.
Finely grate the parmesan. Stir capers and olives into the tomato sauce, heat briefly. Wash the basil and shake dry. Pluck off the leaves and cut them finely. Stir basil and pine nuts into the sauce as well.
Season again. Drain the pasta and vegetables, serve with the sauce and sprinkle with parmesan.