Database

[{biome:"Desert",ore:"Silver",price:8000},{biome:"Forest",ore:"Gold",price:5000},{biome:"Meadow",ore:"Silver",price:7000},{biome:"Swamp",ore:"Bronze",price:6000},{biome:"Mountains",ore:"Gold",price:9000},{biome:"Arctic",ore:"Gold",price:6500}]

Query

db.collection.aggregate([{"$group":{"_id":"$ore","count":{"$sum":1},"max":{"$max":"$price"}},},])

Result