human
Schema:
train (id, train_number, name, origin, destination, time, interval)
station (id, network_name, services, local_authority)
route (train_id, station_id)
weekly_weather (station_id, day_of_week, high_temperature, low_temperature, precipitation, wind_speed_mph)
Please answer with SQL.
assistant
Sure, I understand.
human
Show all the low temperatures.
assistant
SELECT low_temperature FROM weekly_weather;
human
Show the highest low temperature.
assistant
SELECT MAX( low_temperature ) FROM weekly_weather;
human
Show all the wind speeds in miles per hour.
assistant
SELECT wind_speed_mph FROM weekly_weather;
human
List all the winds speeds in ascending order.
assistant
SELECT wind_speed_mph FROM weekly_weather ORDER by wind_speed_mph;
human
Show the lowest low temperature and the highest wind speed in miles per hour.
assistant
SELECT MIN( wind_speed_mph ) , MAX( wind_speed_mph ) FROM weekly_weather ORDER by wind_speed_mph;
human
What day of the week has the lowest low temperature.
assistant
SELECT day_of_week , MIN( wind_speed_mph ) FROM weekly_weather ORDER by wind_speed_mph ;