Let's say I have a presto sql table as following:
Lunch choice | Person
Pasta | John
Burger | David
Pasta | Bob
Pizza | Lindet
Pasta | Hillary
I want to group by 'Lunch choice', show the number of distinct persons who choose the meal, and give examples of up to two of them (doesn't matter which ones), as the following:
Lunch choice | count | example
Pasta | 3 | John, Bob
Burger | 1 | David
Pizza | 1 | Lindet
I'm struggling with the example part (the distinct count is obviously very simple). Anyone with ideas?