Mysql solution faster than 100%  so far
\nselect s.product_id, s.year as first_year, s.quantity, s.price\nfrom Sales s\njoin (\nselect product_id, min(year) as y1\nfrom Sales\ngroup by product_id) t\n
```\nselect s.product_id, s.year as first_year, s.quantity, s.price\nfrom Sales s\njoin (\nselect product_id, min(year) as y1\nfrom Sales\ngroup by product_id) t\non (s.product_id=t.product_id and s.year=t.y1)\n```
[]