QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Which weather station does store no.20 belong to? store no.20 refers to store_nbr = 20; weather station refers to station_nbr

    【Evidence】
    store no.20 refers to store_nbr = 20; weather station refers to station_nbr

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT station_nbr FROM relation WHERE store_nbr = 20
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Tell the temperature range of the home weather station of store no.7 on 2014/4/28. store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)

    【Evidence】
    store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.tmax - T1.tmin AS temprange FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 7 AND T1.`date` = '2014-04-28'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    For the weather station which recorded the highest temperature above the 30-year normal, how many stores does it have? highest temperature above the 30-year normal refers to Max(depart)

    【Evidence】
    highest temperature above the 30-year normal refers to Max(depart)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT store_nbr FROM relation WHERE station_nbr = ( SELECT station_nbr FROM weather ORDER BY depart DESC LIMIT 1 )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    For the home weather station of store no.15, what was the dew point on 2012/2/18? store no. 15 refers to store_nbr = 15; on 2012/2/18 refers to date = '2012-02-18'

    【Evidence】
    store no. 15 refers to store_nbr = 15; on 2012/2/18 refers to date = '2012-02-18'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.dewpoint FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 15 AND T1.`date` = '2012-02-18'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Tell the wet-bulb temperature of the weather station which contained store no.6 on 2012/2/15. store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb

    【Evidence】
    store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.wetbulb FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 14 AND T1.`date` = '2012-02-15'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Give the number of stores which opened on the weather station that recorded the fastest average wind speed. fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)

    【Evidence】
    fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(T.store_nbr) FROM ( SELECT DISTINCT store_nbr FROM relation WHERE station_nbr = ( SELECT station_nbr FROM weather ORDER BY avgspeed DESC LIMIT 1 ) ) T
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    State the max temperature of the weather station which has the no.21 store on 2012/11/9. no.21 store refers to store_nbr = 21; on 2012/11/9 refers to date = '2012-11-09'; max temperature refers to tmax

    【Evidence】
    no.21 store refers to store_nbr = 21; on 2012/11/9 refers to date = '2012-11-09'; max temperature refers to tmax

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT tmax FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 21 AND T1.`date` = '2012-11-09'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Provide the sunrise time recorded by the home weather station of store no.30 on 2014/2/21. store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'

    【Evidence】
    store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.sunrise FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2014-02-21' AND store_nbr = 30
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    State the number of stores that belongs to the weather station which recorded the deepest snowfall. deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr

    【Evidence】
    deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.store_nbr FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr ORDER BY snowfall DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Provide the code summarization for the weather recorded by the weather station which contained the no.2 store on 2013/2/12. no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum

    【Evidence】
    no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.codesum FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2013-02-12' AND T2.store_nbr = 2
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 sales_in_weather
【Schema】
# Table: sales_in_weather
[
(date:DATE, Primary Key, Examples: [2012-01-01]),
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(item_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(units:INTEGER, Examples: [0, 29, 2])
]
# Table: relation
[
(store_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(station_nbr:INTEGER, Examples: [1, 14, 7])
]
# Table: weather
[
(station_nbr:INTEGER, Primary Key, Examples: [1, 2, 3]),
(date:DATE, Primary Key, Examples: [2012-01-01]),
(tmax:INTEGER, Examples: [52, 50, 32]),
(tmin:INTEGER, Examples: [31, 11, 9]),
(tavg:INTEGER, Examples: [42, 41, 22]),
(depart:INTEGER, Examples: [16, 12, -6]),
(dewpoint:INTEGER, Examples: [36, 26, 4]),
(wetbulb:INTEGER, Examples: [40, 35, 18]),
(heat:INTEGER, Examples: [23, 24, 43]),
(cool:INTEGER, Examples: [0, 5, 6]),
(sunrise:TEXT, Examples: [07:16:00, 07:15:00, 07:14:00]),
(sunset:TEXT, Examples: [16:26:00, 16:27:00, 16:28:00]),
(codesum:TEXT, Examples: [RA FZFG BR,  , SN]),
(snowfall:REAL, Examples: [0.0, 0.05, 0.2]),
(preciptotal:REAL, Examples: [0.05, 0.01, 0.0]),
(stnpressure:REAL, Examples: [29.78, 29.44, 29.67]),
(sealevel:REAL, Examples: [29.92, 29.62, 29.87]),
(resultspeed:REAL, Examples: [3.6, 9.8, 10.8]),
(resultdir:INTEGER, Examples: [20, 24, 31]),
(avgspeed:REAL, Examples: [4.6, 10.3, 11.6])
]
【Foreign keys】
relation.store_nbr=sales_in_weather.store_nbr
relation.station_nbr=weather.station_nbr

    【Question】
    Show the sea level status recorded by the weather station of store no.19 on 2013/2/24. store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel

    【Evidence】
    store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.sealevel FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` = '2013-02-24' AND T2.store_nbr = 19