Villager trading in Minecraft: professions, workstations, best trades
A novice farmer pays 1 emerald for 22 Carrots, 26 Potatoes, 20 wheat or 15 Beetroots; later for 6 Pumpkins or 4 Melons.

A Pumpkin is an orange gourd that grows from a pumpkin stem and appears wild in grassy biomes.
It cannot be crafted; it can be found in chests. It is mined with an axe. It can be composted: each one has a 65% chance to add a layer to a Composter.
Use Shears on it to carve a face, giving a Carved Pumpkin and four Pumpkin Seeds. Crafted alone it gives seeds, and with sugar and an egg it makes Pumpkin Pie. Farmer villagers buy pumpkins.
This item has no crafting recipe.
A novice farmer pays 1 emerald for 22 Carrots, 26 Potatoes, 20 wheat or 15 Beetroots; later for 6 Pumpkins or 4 Melons.
Mining the block drops it. It can be found as loot in Shipwreck. Sold by Wandering Trader. Bought by Villager: Farmer (Apprentice).
It is a farm crop for pies, seeds and carved pumpkins. It is an ingredient in 2 recipes, made at the Crafting Table; for example Pumpkin Pie and Pumpkin Seeds.
The fastest tool is the axe.
Yes. Each Pumpkin put in a Composter has a 65% chance to add a layer (the first layer in an empty Composter always works). After 7 layers the Composter gives Bone Meal.
Placed under a Note Block, Pumpkin gives the Didgeridoo sound.
No: when a piston pushes it, it breaks and drops as an item.