Chinastark/bird_dataset huggingface dataset:
Database: human_resources
Question: How many "account representatives" are there in Chicago with a good performance?
Evidence: account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'
SQL: SELECT COUNT(*) FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T2.locationcity = 'Chicago' AND T1.performance = 'Good'
Database: human_resources
Question: What is Kenneth Charles's position title?
Evidence: Kenneth Charles is the full name of an employee; full name = firstname, lastname
SQL: SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Kenneth' AND T1.lastname = 'Charles'
Database: human_resources
Question: Give the full address of the office of the highest paid manager.
Evidence: the highest paid refers to MAX(salary); manager is a position title
SQL: SELECT T2.address FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Manager' ORDER BY T1.salary DESC LIMIT 1
Database: human_resources
Question: What is the max salary for 'Tracy Coulter' if he/she stays on his/her position?
Evidence: Tracy Coulter is the full name of an employee; full name = firstname, lastname
SQL: SELECT T2.maxsalary FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Tracy' AND T1.lastname = 'Coulter'
Database: human_resources
Question: If Jose Rodriguez tried his best, how many percentage can his salary raise without changing his position?
Evidence: Jose Rodriguez is the full name of an employee; full name = firstname, lastname; calculation = DIVIDE(SUBTRACT(maxsalary, salary), salary) * 100
SQL: SELECT 100 * (CAST(REPLACE(SUBSTR(T2.maxsalary, 4), ',', '') AS REAL) - CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) AS per FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Jose' AND T1.lastname = 'Rodriguez'
Database: human_resources
Question: How many employees whose performance is poor have a salary of over $50,000 per year?
Evidence: performance is poor refers to performance = 'Poor'; salary of over $50,000 refers to salary > '50000'
SQL: SELECT COUNT(*) FROM employee WHERE performance = 'Poor' AND CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) > 50000
Database: human_resources
Question: Who is the employee with the highest salary? Specify his/her full name.
Evidence: the highest salary refers to MAX(salary); full name = firstname, lastname
SQL: SELECT firstname, lastname FROM employee WHERE CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL)) FROM employee )
Database: human_resources
Question: How many positions have a maximum salary of no more than US$1000,000?
Evidence: maximum salary of no more than US$1000,000 refers to maxsalary < '100000';
SQL: SELECT COUNT(*) FROM position WHERE CAST(REPLACE(SUBSTR(maxsalary, 4), ',', '') AS REAL) < 100000
Database: human_resources
Question: How much is the salary of the first ever employee that was hired?
Evidence: first-ever employee that was hired refers to MIN(hiredate)
SQL: SELECT salary FROM employee ORDER BY hiredate ASC LIMIT 1
Database: human_resources
Question: How much is the minimum salary given to the position with the most complex work?
Evidence: most complex work refers to MAX(educationrequired); minimum salary refers to minsalary
SQL: SELECT minsalary FROM position ORDER BY educationrequired DESC LIMIT 1
Database: human_resources
Question: What is the full office location address where most of the employees work at?
Evidence: full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)
SQL: SELECT T2.address, T2.locationcity, T2.state, T2.zipcode FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID GROUP BY T2.address, T2.locationcity, T2.state, T2.zipcode ORDER BY COUNT(*) DESC LIMIT 1
Database: human_resources
Question: What is the average salary of all employees with a 2 year degree position?
Evidence: 2 year degree refers to educationrequired = '2 year degree'; calculation = DIVIDE(SUM(salary), COUNT(positiontitle))
SQL: SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.educationrequired = '2 year degree'
Database: human_resources
Question: How many male Regional Managers are there?
Evidence: male refers to gender = 'M'; Regional Managers is a position title
SQL: SELECT COUNT(*) FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.positiontitle = 'Regional Manager' AND T1.gender = 'M'
Database: human_resources
Question: Which position has the highest amount of poor performing employees?
Evidence: poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)
SQL: SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1
Database: human_resources
Question: Which position has the highest number of female employees with a 2 year degree?
Evidence: 2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)
SQL: SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T2.educationrequired = '2 year degree' AND T1.gender = 'F' GROUP BY T2.positiontitle ORDER BY COUNT(T2.positiontitle) DESC LIMIT 1
Database: human_resources
Question: How many Account Representatives are there in Illinois with satisfying performance?
Evidence: Account Representatives is a position title; satisfying performance mostly refers togood performance
SQL: SELECT COUNT(*) FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' AND T2.state = 'IL'
Database: human_resources
Question: What is the average salary of the worst performing managers?
Evidence: the worst performing refers to performance = 'Poor'; manager is a positiontitle; average salary refers to AVG(salary)
SQL: SELECT AVG(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1 INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Manager'
Database: human_resources
Question: In which state can you find the highest amount of good performing Account Representatives?
Evidence: good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);
SQL: SELECT T2.state FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Account Representative' AND T1.performance = 'Good' GROUP BY T2.state ORDER BY COUNT(T2.state) DESC LIMIT 1
Database: human_resources
Question: Mention the employee's full name and performance status who got the lowest in salary per year.
Evidence: full name = firstname, lastname; the lowest salary refers to MIN(salary)
SQL: SELECT firstname, lastname, performance FROM employee ORDER BY salary ASC LIMIT 1
Database: human_resources
Question: List the location cities in the Western states.
Evidence: Western states refers to state = 'CO' OR state = 'UT' OR state = 'CA'; location cities refers to locationcity
SQL: SELECT locationcity FROM location WHERE state IN ('CO', 'UT', 'CA')
Database: human_resources
Question: Which city and address has zip code of above 90000?
Evidence: zip code of above 90000 refers to zipcode > 90000; city refers to locationcity
SQL: SELECT locationcity, address FROM location WHERE zipcode > 90000
Database: human_resources
Question: Which positions are suitable with 4 years degree education?
Evidence: 4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle
SQL: SELECT positiontitle FROM position WHERE educationrequired = '4 year degree'
Database: human_resources
Question: What is the maximum salary of position "Trainer"?
Evidence: maximum salary refers to maxsalary; Trainee is a positiontitle
SQL: SELECT maxsalary FROM position WHERE positiontitle = 'Trainee'
Database: human_resources
Question: List the full name and social security number of the account representative with average performance.
Evidence: full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'
SQL: SELECT T1.firstname, T1.lastname, T1.ssn FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Average'
Database: human_resources
Question: When was Emily Wood hired? Mention her position and salary.
Evidence: Emily Wood is the full name of an employee; full name = firstname, lastname; when was she hired refers to hiredate
SQL: SELECT T1.hiredate, T2.positiontitle, T1.salary FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Emily' AND T1.lastname = 'Wood'
Database: human_resources
Question: What are the maximum and minimum salary range and position title of Bill Marlin?
Evidence: Bill Marlin is the full name of an employee; full name = firstname, lastname; maximum salary refers to maxsalary; minimum salary refers to minsalary
SQL: SELECT T2.maxsalary, T2.minsalary, T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Bill' AND T1.lastname = 'Marlin'
Database: human_resources
Question: List the full names, gender and positions who's location is in New York city.
Evidence: full name = firstname, lastname; New York city refers to locationcity = 'New York City'
SQL: SELECT T1.firstname, T1.lastname, T1.gender, T3.positiontitle FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T2.locationcity = 'New York City'
Database: human_resources
Question: Mention the full name, hired date and performance status of the employee whose location is in Utah state.
Evidence: full name = firstname, lastname; Utah refers to state = 'UT'
SQL: SELECT T1.firstname, T1.lastname, T1.hiredate, T1.performance FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T2.state = 'UT'
Database: human_resources
Question: Among the employees with poor performance, provide the managers' full names, location city, address and its zip code.
Evidence: poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title
SQL: SELECT T1.firstname, T1.lastname, T2.locationcity, T2.address, T2.zipcode FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T3.positiontitle = 'Manager' AND T1.performance = 'Poor'
Database: human_resources
Question: What is the education required to be account representative? Mention account representative full name and salary who got poor in performance status.
Evidence: account representative is a position title; full name = firstname, lastname; poor performance refers to performance = 'Poor'
SQL: SELECT T2.educationrequired, T1.firstname, T1.lastname, T1.salary FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Account Representative'
Database: human_resources
Question: Write down the full name, performance status and located city of the employee who's social security number is "767-74-7373".
Evidence: full name = firstname, lastname; ssn = '767-74-7373'
SQL: SELECT T1.firstname, T1.lastname, T2.state, T2.locationcity FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T1.ssn = '767-74-7373'
Database: human_resources
Question: Describe the employees' full name, positions, located city and office phone number within Colorado state.
Evidence: full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;
SQL: SELECT T1.firstname, T1.lastname, T3.positiontitle, T2.locationcity, T2.officephone FROM employee AS T1  INNER JOIN location AS T2  ON T1.locationID = T2.locationID INNER JOIN position AS T3  ON T3.positionID = T1.positionID WHERE T2.state = 'CO'
Database: human_resources
Question: Calculate the monthly average salary of the employee with highest salary. Mention his name, position title and location city.
Evidence: highest salary refers to MAX(salary); name = firstname, lastname; calculation = DIVIDE(MAX(salary), 12)
SQL: SELECT SUM(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) / 12 AS avg, T1.firstname, T1.lastname , T2.positiontitle, T3.locationcity FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID INNER JOIN location AS T3  ON T1.locationID = T3.locationID WHERE CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(SUBSTR(T1.salary, 4), ',', '') AS REAL)) FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID INNER JOIN location AS T3  ON T1.locationID = T3.locationID )
Database: bike_share_1
Question: Which trip had the longest duration? State the start and end station.
Evidence: start station refers to start_station_name; end station refers to end_station_name;
SQL: SELECT start_station_name, end_station_name FROM trip WHERE duration = ( SELECT MAX(duration) FROM trip )
Database: bike_share_1
Question: What is the percentage of the trip were done by a subscriber?
Evidence: subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;
SQL: SELECT CAST(COUNT(subscription_type) AS REAL) * 100 / ( SELECT COUNT(subscription_type) FROM trip ) FROM trip WHERE subscription_type = 'Subscriber'
Database: bike_share_1
Question: State the final station of bike id 13. Which city was it at?
Evidence: final station refers to end_station_name where MAX(end_date);
SQL: SELECT T2.end_station_id, T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T1.name = T2.end_station_name WHERE T2.bike_id = 13 ORDER BY T2.end_date DESC LIMIT 1
Database: bike_share_1
Question: Name all the trips where the bike was borrowed and returned on a different day. State the city where the bike was returned.
Evidence: the bike was borrowed and returned on a different day implies that start_date and end_date are not equal to each other; where the bike was returned refers to end_station_name;
SQL: SELECT DISTINCT T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, '/') + 1) - SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, ' ') - 5) <> SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, '/') + 1) - SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, ' ') - 5)
Database: bike_share_1
Question: Which is the station where no bike could not be borrowed form on the 2013/11/03 02:01:01? State the location of the station.
Evidence: Latitude and longitude coordinates can be used to indicate a location, where latitude refers to lat longtitude refer to long; bikes_available = 0 means no bike can be borrowed; 3/11/2013 02:01:01 refers to time;
SQL: SELECT T1.name, T1.long FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.time = '2013/11/03 02:01:01' AND T2.bikes_available = 0
Database: bike_share_1
Question: Name the station and city with the most borrowed bike.
Evidence: the station with the most borrowed bikes refers to MAX(start_station);
SQL: SELECT T2.start_station_name, T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name GROUP BY T2.start_station_name ORDER BY COUNT(T2.start_station_name) DESC LIMIT 1
Database: bike_share_1
Question: What was the hottest temperature on the day of trip ID 4080?
Evidence: the hottest temperature refers to max_temperature_f;
SQL: SELECT MAX(T2.max_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T1.id = 4080
Database: bike_share_1
Question: At what date and time did San Jose Diridon Caltrain Station have most bikes available.
Evidence: San Jose Diridon Caltrain Station is the name of the station; most bikes available refers to MAX(bikes_available);
SQL: SELECT T2.time FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.bikes_available = ( SELECT MAX(T2.bikes_available) FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T1.name = 'San Jose Diridon Caltrain Station' )
Database: bike_share_1
Question: Name all the trip on the days when it rained. State the duration of the trip
Evidence: events = 'Rain';
SQL: SELECT T1.id, T1.duration FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code AND T2.date = SUBSTR(CAST(T1.start_date AS TEXT), 1, INSTR(T1.start_date, ' ') - 1) WHERE T2.events LIKE '%Rain%' OR T2.events LIKE '%rain%'
Database: bike_share_1
Question: List all trips where bikes were returned at location 37.331415, -121.8932. State the date the bike was borrowed.
Evidence: 37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;
SQL: SELECT T2.end_station_name, T2.start_date FROM station AS T1 INNER JOIN trip AS T2 ON T2.end_station_name = T1.name WHERE T1.lat = 37.331415 AND T1.long = -121.8932
Database: bike_share_1
Question: Among the trips in August 2013, how many bikes were borrowed from Redwood City.
Evidence: Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';
SQL: SELECT COUNT(T2.start_date) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '8/%/2013%' AND T1.city = 'Redwood City'
Database: bike_share_1
Question: For all trips which took less 5 minutes, state the station name where the bike were borrowed and returned. Indicate mean temperature of the day.
Evidence: less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;
SQL: SELECT T1.start_station_name, T1.end_station_name, T2.mean_temperature_f FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.duration < 300
Database: bike_share_1
Question: Among all the trips, which day had the most bikes borrowed? What was the average coldest temperature on that day?
Evidence: which day had the most bikes borrowed refers to MAX(start_date); the average coldest temperature can be computed as DIVIDE(SUM(min_temperature_f), COUNT(min_temperature_f));
SQL: SELECT T2.date, AVG(T2.min_temperature_f) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code GROUP BY T2.date ORDER BY COUNT(T1.start_date) DESC LIMIT 1
Database: bike_share_1
Question: Calculate the average usage of each bike in the third quarter of year 2013. Find the average wind direction within the same period.
Evidence: the third quarter of year 2013 implies 3 month interval, including July, August, and September of 2013 and refers to date; the average usage of each bike = DIVIDE(SUM(duration), COUNT(bike_id)); the average wind direction = DIVIDE(SUM(wind_dir_degrees), COUNT(date));
SQL: SELECT AVG(T1.duration), AVG(T2.wind_dir_degrees) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), 1, INSTR(T2.date, '/') - 1) IN ('7', '8', '9') AND SUBSTR(CAST(T2.date AS TEXT), -4) = '2013'
Database: bike_share_1
Question: How many bike stations were installed in San Jose in 2014? Indicate the names of the stations.
Evidence: San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';
SQL: SELECT SUM(CASE WHEN city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014' THEN 1 ELSE 0 END) FROM station UNION SELECT name FROM station WHERE city = 'San Jose' AND SUBSTR(installation_date, -4) = '2014'
Database: bike_share_1
Question: What is the longest trip duration that started and ended August 29, 2013?
Evidence: started and ended August 29, 2013 refers to start_date = '8/29/2013' and end_date = '8/29/2013';
SQL: SELECT MAX(duration) FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%'
Database: bike_share_1
Question: How long did it take for bike id 426 to reach 2nd at South Park from Market at 4th on 8/29/2013? Indicate the duration in minutes.
Evidence: duration in minutes refers to DIVIDE(duration, 60 seconds); 2nd at South Park refers to end_station_name; Market at 4th refers to start_station_name; start_date = '8/29/2013'; end_date = '8/29/2013';
SQL: SELECT CAST(duration AS REAL) / 60  FROM trip WHERE bike_id = 426 AND end_station_name = '2nd at South Park' AND start_station_name = 'Market at 4th' AND start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%'
Database: bike_share_1
Question: On 8/29/2013, who took the longest to arrive in California Ave Caltrain Station from University and Emerson? Indicate the bike id.
Evidence: start_date = '8/29/2013'; end_date = '8/29/2013'; end_station_name = 'California Ave Caltrain Station'; start_station_name = 'University and Emerson'; who took the longest to arrive refers to MAX(duration);
SQL: SELECT bike_id FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' AND end_station_name = 'California Ave Caltrain Station' AND start_station_name = 'University and Emerson' AND duration = ( SELECT MAX(duration) FROM trip WHERE start_date LIKE '8/29/2013%' AND end_date LIKE '8/29/2013%' AND end_station_name = 'California Ave Caltrain Station' AND start_station_name = 'University and Emerson' )
Database: bike_share_1
Question: How many stations in San Francico can hold more than 20 bikes?
Evidence: San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count≥20;
SQL: SELECT SUM(CASE WHEN city = 'San Francisco' AND dock_count > 20 THEN 1 ELSE 0 END) FROM station
Database: bike_share_1
Question: When was the hottest temperature recorded? If there are multiple dates with the hottest temperature, indicate all of the dates.
Evidence: the hottest temperature refers to max_temperature_f;
SQL: SELECT max_temperature_f, date FROM weather WHERE max_temperature_f = ( SELECT MAX(max_temperature_f) FROM weather WHERE max_temperature_f IS NOT NULL AND max_temperature_f IS NOT '' )
Database: bike_share_1
Question: What is the maximum dew point in Fahrenheit degree on 7/15/2014 in the area with a zip code of 94301?
Evidence: the maximum dew point in Fahrenheit degree refers to max_dew_point_f; date = '7/15/2014';
SQL: SELECT DISTINCT CASE WHEN date = '7/15/2014' AND zip_code = 94301 THEN max_dew_point_f END FROM weather
Database: bike_share_1
Question: Which year experienced the most rain?
Evidence: events = 'Rain'; year refers to YEAR(date);
SQL: SELECT SUBSTR(CAST(date AS TEXT), -4) FROM weather GROUP BY SUBSTR(CAST(date AS TEXT), -4) ORDER BY SUM(CASE WHEN events LIKE '%Rain%' OR events LIKE '%rain%' THEN 1 ELSE 0 END) DESC LIMIT 1