Question: Find the top 3 wineries with the greatest number of wines made of white color grapes.
Schema: create table grapes (grape varchar, color varchar, PRIMARY KEY (grape)); create table wine (winery varchar, grape varchar, PRIMARY KEY (winery))
SQL: select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = "white" group by t2.winery order by count(*) desc limit 3