Size does matter.
Density of pure alcohol is 0.7948 (0.8) at 15 degree Celsius.
The alcohol content value, on the container’s label, indicated the content of alcohol in % of the volume. So if a drink has 10% alcohol, as a basic wine, 100 ml of it will contains 8 g. of alcohol (10 x 0.8).
1 gr of alcohol has 7 calories. Your 10% drink will get you 56 calories (7 x 8 g.).
Tequila alcohol content is about 40%, consequently 100 ml of it will get you 32 g. of alcohol (40 x 0.8) and 224 calories (7 x 32 g.).
To pair them, either you drink 400 ml of wine with 10% alcohol or 25 ml of Tequila at 40% alcohol. In short: either 4 times more of wine or 4 times less of tequila.
To note that the above does not count sugar content in the picture. Some sweet wine contains as much sugar as 140 g. per liter. And sugar has 3.87 calories per gram.