- A pumpkin contains seeds
- Fruit contains seeds
- Therefore, a pumpkin and fruit both contain seeds

- A pumpkin is a kind of gourd
- A gourd is a kind of fruit
- So, a pumpkin is a kind of gourd which is a kind of fruit

- A pumpkin and fruit both contain seeds
- A pumpkin is a kind of gourd which is a kind of fruit
- Hence, a pumpkin is a kind of fruit

So, a pumpkin is a kind of fruit
Question: Which food is a fruit?
Context: - A pumpkin is a kind of gourd 
- A pumpkin contains seeds 
- A gourd is a kind of fruit 
- Fruit contains seeds