Pinterest users want to see the best recipes for their specific diets. Find the highest-rated recipe in each category.
| category_id(INTEGER) | category_name(VARCHAR) |
|---|---|
| 1 | Vegan |
| 2 | Keto |
| 3 | Paleo |
| recipe_id(INTEGER) | recipe_name(VARCHAR) | category_id(INTEGER) |
|---|---|---|
| 10 | Tofu Scramble | 1 |
| 11 | Chickpea Curry | 1 |
| 20 | Steak & Butter | 2 |
| 21 | Egg Salad | 2 |
| 30 | Nut Mix | 3 |
| review_id(INTEGER) | recipe_id(INTEGER) | rating(INTEGER) |
|---|---|---|
| 1 | 10 | 5 |
| 2 | 10 | 4 |
| 3 | 11 | 5 |
| 4 | 20 | 5 |
| 5 | 21 | 5 |
| 6 | 30 | 3 |
| category(VARCHAR) | recipe_name(VARCHAR) | avg_rating(DECIMAL) |
|---|---|---|
| Keto | Egg Salad | 5 |
| Keto | Steak & Butter | 5 |
| Paleo | Nut Mix | 3 |
| Vegan | Chickpea Curry | 5 |