First, let's take a look at the macros. Each of these are listed in grams and as usual, normalized to 200 calories for easy comparison, so we're always comparing apples to apples.
| Spinach | Tomatoes | 
| Nutrient | spinach | tomatoes | 
| Protein | 25g | 10g | 
| Carbohydrate | 32g | 44g | 
| Fiber | 19g | 13g | 
| Fat | 3g | 2g | 
| Monounsat. Fat | 0g | 2g | 
| Polyunsat. Fat | 1g | 1g | 
| Saturated Fat | 1g | 0g | 

Next, let's take a look at the Vitamin density. These values are shown in units of percent of recommended daily intake. And since we're showing 200 calories worth, this means anything above 10% is good.
| Nutrient | spinach | tomatoes | 
| Choline | 37% | 18% | 
| Vitamin A | 653% | 75% | 
| Vitamin C | 326% | 188% | 
| Vitamin E | 147% | 50% | 
| Vitamin K | 5249% | 110% | 
Spinach have significantly more Vitamins A, E, C, K than tomatoes. Spinach are a great source of Thiamin, Niacin, Zinc, Phosphorus. Spinach are an excellent source of Vitamin A, Vitamin E, Vitamin K, Vitamin C, Riboflavin, Vitamin B6, Potassium, Magnesium, Calcium, Iron. Tomatoes are a good source of Magnesium, Zinc, Calcium. Tomatoes are a great source of Vitamin A, Vitamin E, Thiamin, Niacin, Vitamin B6, Potassium, Phosphorus, Iron. Tomatoes are an excellent source of Vitamin K, Vitamin C.

And here we see the B-vitamins: B1 (Thiamin), B2 (Riboflavin), B3 (Niacin), B5 (Pantothenic Acid), B6 (Pyridoxine)
| Nutrient | spinach | tomatoes | 
| Vitamin B1 | 68% | 41% | 
| Vitamin B2 | 149% | 19% | 
| Vitamin B3 | 53% | 55% | 
| Vitamin B5 | 11% | 20% | 
| Vitamin B6 | 154% | 81% | 
| Vitamin B12 | 0% | 0% | 
Now, lets look at mineral density. Here we have a lot of important electrolytes and minerals. Once again, units are in percent of RDI, thus for this 200 calorie serving anything above 10% would considered high.
| Nutrient | spinach | tomatoes | 
| Sodium | 46% | 4% | 
| Potasium | 139% | 75% | 
| Calcium | 172% | 22% | 
| Magnesium | 196% | 35% | 
| Phosphorus | 73% | 46% | 
| Iron | 393% | 50% | 
| Manganese | 339% | 55% | 
| Selenium | 19% | 0% | 
| Copper | 113% | 66% | 
| Zinc | 49% | 20% |