Wash the legs and pat dry. Pour the tomatoes into a sieve and collect the oil. Mix paprika, 3 tablespoons of tomato oil, salt and pepper. Brush chicken legs with it. Heat the oil in a pan.
Sauté the legs for about 5 minutes, turning them over. Wash and halve the potatoes. Wash the rosemary and dab dry. Remove the needles and chop roughly. Cut garlic tubers in half crosswise. Put chicken legs, potatoes, garlic and rosemary on a baking tray.
Drizzle with 4 tablespoons of tomato oil. Season with salt and pepper and cook in the preheated oven (electric cooker: 200 °C/ convection oven: 175 °C/ gas: level 3) for approx. 35 minutes. About 10 minutes before the end of the cooking time, wash the basil and dab dry.
Pluck the leaves from the stalks and spread them on the tray with the tomatoes. Stir the sour cream into the pesto like a strudel and add to the pesto.