Between the stores under weather station 12, what is the percentage of item 5 sold in store 10 in 2014?
weather station 12 refers to station_nbr = 12; item 5 refers to item_nbr = 5; 10 store refers to store_nbr = 10; in 2014 refers to SUBSTR(date, 1, 4) = '2014'; percentage = Divide (Sum(units where store_nbr = 10), Sum(units)) * 100
SELECT CAST(SUM(CASE WHEN T2.store_nbr = 10 THEN units * 1 ELSE 0 END) AS REAL) * 100 / SUM(units) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE station_nbr = 12 AND item_nbr = 5 AND T2.`date` LIKE '%2014%'
database name:db_id sales_in_weather
sales_in_weather table sales_in_weather Cols: date dtype date, store number dtype integer, item number dtype integer, units dtype integer, 
weather table weather Cols: station number dtype integer, date dtype date, temperature max dtype integer, temperature min dtype integer, temperature average dtype integer, departure from normal dtype integer, dew point dtype integer, wet bulb dtype integer, heat dtype integer, cool dtype integer, sunrise dtype text, sunset dtype text, code summarization dtype text, snowfall dtype real, preciptotal dtype real, station pressure dtype real, sea level dtype real, resultant speed dtype real, resultant direction dtype integer, average speed dtype real, 
relation table relation Cols: store number dtype integer, station number dtype integer, 
