Chinastark/bird_dataset huggingface dataset:
Database: bike_share_1
Question: How many bike stations are installed after August, 2013 in San Jose?
Evidence: installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';
SQL: SELECT COUNT(installation_date) FROM station WHERE city = 'San Jose' AND (SUBSTR(CAST(installation_date AS TEXT), 1, INSTR(installation_date, '/') - 1) IN ('8', '9', '10', '11', '12') AND SUBSTR(CAST(installation_date AS TEXT), -4) = '2013') OR SUBSTR(CAST(installation_date AS TEXT), -4) > '2013'
Database: bike_share_1
Question: What is the mean temperature in Fahrenheit on 8/29/2013 for the area where the zip code is 94107?
Evidence: mean temperature in Fahrenheit refers to mean_temperature_f; on 8/29/2013 refers to date = '8/29/2013';
SQL: SELECT SUM(IIF(zip_code = 94107 AND date = '8/29/2013', mean_temperature_f, 0)) FROM weather
Database: bike_share_1
Question: What is the difference between the hottest temperature and the coldest temperature in in Fahrenheit on 8/29/2013 for the area where the zip code is 94107?
Evidence: hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'
SQL: SELECT SUM(IIF(zip_code = 94107 AND date = '8/29/2013', max_temperature_f - min_temperature_f, 0)) FROM weather
Database: bike_share_1
Question: How many bikes can be borrowed in San Jose Diridon Caltrain Station at 12:06:01 on 2013/8/29?
Evidence: number of bikes that can be borrowed refers to bikes_available; San Jose Diridon Caltrain Station refers to name = 'San Jose Diridon Caltrain Station'; time = '2013/8/29 12:06:01'
SQL: SELECT T2.bikes_available FROM station AS T1 INNER JOIN status AS T2 ON T1.id = T2.station_id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.time = '2013/08/29 12:06:01'
Database: bike_share_1
Question: In which city's station is a bike borrowed on trip ID4069?
Evidence: bike is borrowed from refers to start_station_id;
SQL: SELECT T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 4069
Database: bike_share_1
Question: How many bike trips started on the days in September, 2013 with the hottest temperature over 70 degrees Fahrenheit in the area where the zip code is 94107?
Evidence: started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;
SQL: SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '9/%/2013' AND T2.zip_code = 94107 AND T2.max_temperature_f > 70
Database: bike_share_1
Question: Please list the starting stations of the bike trips made on a day with a max humidity over 80 in 2013 in the area where the zip code is 94107.
Evidence: starting stations refers to start_station_name; day with a max humidity over 80 refers to max_humidity>80; in 2013 refers to date LIKE'%2013';
SQL: SELECT DISTINCT T1.start_station_name FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), -4) = '2013' AND T2.zip_code = 94107 AND T2.max_temperature_f > 80
Database: bike_share_1
Question: How many trips made by a subscriber started in August, 2013 from a station that can hold more than 20 bikes?
Evidence: subscriber refers to subscription_type = 'Subscriber'; in August 2013 refers to start_date LIKE'8%' AND start_date LIKE'%2013%'; station that can hold more than 20 bikes refers to dock_count>20;
SQL: SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T1.id = T2.start_station_id WHERE T2.subscription_type = 'Subscriber' AND T2.start_date LIKE '8/%/2013%' AND T1.dock_count > 20
Database: bike_share_1
Question: What is the location coordinates of the bike station from which the bike for the trip that last the longest was borrowed?
Evidence: location coordinates refers to (lat, long); bike that was borrowed the longest refers to MAX(duration);
SQL: SELECT T2.lat, T2.long FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.duration = ( SELECT MAX(T1.duration) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name )
Database: bike_share_1
Question: How many docks were left at the end station for trip ID4069?
Evidence: end station refers to end_station_id; docks that were left refers to docks_available;
SQL: SELECT SUM(T2.docks_available) FROM trip AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.end_station_id WHERE T1.ID = 4069
Database: bike_share_1
Question: Among the bike trips started on the days with a fog in 2013, how many of those trips started from the station "2nd at Townsend"?
Evidence: started on the days with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013'; started from station refers to start_station_name; start_station_name = '2nd at Townsend';
SQL: SELECT COUNT(T1.start_station_name) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2013%' AND T2.events = 'Fog' AND T1.start_station_name = '2nd at Townsend' AND T2.zip_code = 94107
Database: bike_share_1
Question: What is the longest duration for a bike trip starting on a day with a fog in 2013?
Evidence: longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';
SQL: SELECT MAX(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2013%' AND T2.events = 'Fog' AND T2.zip_code = 94107
Database: bike_share_1
Question: When was the bike station from which the bike was borrowed on trip ID4069 installed?
Evidence: bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;
SQL: SELECT T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 4069
Database: bike_share_1
Question: How many trips with a bike borrowed from the stations in San Francisco were made by a subscriber?
Evidence: bike was borrowed from refers to start_station_id; San Francisco refers to city = 'San Francisco'; subscriber refers to subscription_type = 'Subscriber';
SQL: SELECT COUNT(T1.id) FROM trip AS T1 INNER JOIN station AS T2 ON T2.ID = T1.start_station_id WHERE T2.city = 'San Francisco' AND T1.subscription_type = 'Subscriber'
Database: bike_share_1
Question: On the day with the hottest temperature ever in 2014, how many bike trips started from the station 2nd at Folsom?
Evidence: hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';
SQL: SELECT COUNT(T1.start_station_name) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2014%' AND T2.zip_code = 94107 AND T1.start_station_name = '2nd at Folsom' ORDER BY T2.max_temperature_f DESC LIMIT 1
Database: bike_share_1
Question: What is the average duration of a bike trip made on the day with the hottest temperature ever in 2014?
Evidence: average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';
SQL: SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.date LIKE '%2014%' AND T1.start_station_name = '2nd at Folsom' AND T2.max_temperature_f = ( SELECT max_temperature_f FROM weather ORDER BY max_temperature_f DESC LIMIT 1 )
Database: bike_share_1
Question: List out all end stations for a bicycle that were making a trip starting from 2nd at South Park station? Only retain the unique value.
Evidence: end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';
SQL: SELECT DISTINCT end_station_name FROM trip WHERE start_station_name = '2nd at South Park'
Database: bike_share_1
Question: How many rainy days were recorded in Mountain View?
Evidence: rainy days refers to events = 'rain'; Mountain View refers to zip_code = 94041;
SQL: SELECT SUM(IIF(zip_code = 94041 AND events = 'Rain', 1, 0)) FROM weather
Database: bike_share_1
Question: What is the total number of bikes that can be hold in Redwood City before 2014.
Evidence: total number of bikes that can be hold = MAX(dock_count); before 2014 refers to year(installation_date)<2014;
SQL: SELECT SUM(CASE WHEN city = 'Redwood City' AND SUBSTR(installation_date, -4) < '2014' THEN dock_count ELSE 0 END) NUM FROM station
Database: bike_share_1
Question: What is the longest trip duration according? Convert the it to number of days.
Evidence: longest trip duration refers to MAX(duration); days conversion = DIVIDE(duration, 86400);
SQL: SELECT MAX(duration), CAST(MAX(duration) AS REAL) / 86400 FROM trip
Database: bike_share_1
Question: Convert all temperature recorded at San Francisco city during August 2013 into degree Celsius.
Evidence: temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;
SQL: SELECT (max_temperature_f - 32) / 1.8000 , (mean_temperature_f - 32) / 1.8000 , (min_temperature_f - 32) / 1.8000 FROM weather WHERE SUBSTR(CAST(date AS TEXT), 1, INSTR(date, '/') - 1) = '8' AND SUBSTR(CAST(date AS TEXT), -4) = '2013' AND zip_code = 94107
Database: bike_share_1
Question: What is the ratio for subscriber to customer given that the starting and the ending stations is 2nd at South Park?
Evidence: subscriber refers to subscription_type = 'Subscriber'; customer refers to subscription_type = 'customer';starting station refers to start_station_name; ending station refers to end_statio_name; start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'
SQL: SELECT CAST(SUM(IIF(subscription_type = 'Subscriber', 1, 0)) AS REAL) / SUM(IIF(subscription_type = 'Customer', 1, 0)) FROM trip WHERE start_station_name = '2nd at South Park' AND end_station_name = '2nd at South Park'
Database: bike_share_1
Question: Are all stations with zip code 94107 located in San Francisco city?
Evidence: station refers to name;
SQL: SELECT DISTINCT T2.city FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.zip_code = 94107
Database: bike_share_1
Question: List out all stations name that having a mean temperature 20 degree Celsius in year 2014.
Evidence: mean temperature refers to mean_temperature_f; mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';
SQL: SELECT DISTINCT T2.start_station_name, T2.end_station_name FROM weather AS T1 INNER JOIN trip AS T2 ON T1.zip_code = T2.zip_code WHERE T1.date LIKE '%2014' AND T1.mean_temperature_f = 20 * 1.8 + 32
Database: bike_share_1
Question: How many bicycle trip were made within San Jose city during August 2013?
Evidence: during August 2013 refers to start_date like '8/%/2013%';
SQL: SELECT COUNT(T2.id) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T1.city = 'San Jose' AND T2.start_date LIKE '8/%/2013%' AND T2.start_station_name LIKE 'San Jose%' AND T2.end_station_name LIKE 'San Jose%'
Database: bike_share_1
Question: Is there any intercity trip were made during 2014? If yes, list out the city name for the start and end station.
Evidence: intercity trip refers to start_station_name! = end_station_name; during 2014 refers to start_date like '%2014%'; start station refers to start_station_name; end station refers to end_station_name;
SQL: SELECT T1.start_station_name, T1.end_station_name FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_date LIKE '%/%/2014%' AND T1.start_station_name != T1.end_station_name
Database: bike_share_1
Question: Does the bike with Id number 16 making any intercity trip? If yes, calculate the total travel duration during all the intercity trip. Convert the duration to hour.
Evidence: intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;
SQL: SELECT T1.end_station_name, T2.city, CAST(SUM(T1.duration) AS REAL) / 3600 FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.bike_id = 16 AND T1.start_station_name != T1.end_station_name
Database: bike_share_1
Question: What is the ratio of customer to subscriber that making a trip inside Mountain View city?
Evidence: customer refers to subscription_type = 'customer'; subscriber refers to subscription_type = 'subscriber'; ratio = MULTIPLY(DIVIDE(COUNT(subscription_type = 'Customer'), COUNT(subscription_type = 'Subscriber'). 1.0)) AS ratio;
SQL: SELECT CAST(SUM(CASE WHEN T1.subscription_type = 'Customer' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.subscription_type = 'Subscriber' THEN 1 ELSE 0 END) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Mountain View'
Database: bike_share_1
Question: What is the total trip duration made within Palo Alto city? Convert the duration to hour.
Evidence: total trip duration to hour = DIVIDE(SUM(duration), 3600);
SQL: SELECT CAST(SUM(T1.duration) AS REAL) / 3600 FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'Palo Alto'
Database: bike_share_1
Question: Which bicycle is the least used bike. Check if the start and end station are from the same city and calculate the total duration travelled by the bicycle in hours for a trip made within the same city.
Evidence: least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;
SQL: SELECT T2.bike_id, T2.start_station_name, T2.end_station_name, T1.city , CAST(T2.duration AS REAL) / 3600 FROM station AS T1 INNER JOIN trip AS T2 ON T1.name = T2.start_station_name GROUP BY T2.bike_id ORDER BY COUNT(T2.id) DESC LIMIT 1
Database: bike_share_1
Question: Count the number of subscribers who started their trips in Market at 4th.
Evidence: subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';
SQL: SELECT COUNT(CASE WHEN subscription_type = 'Subscriber' AND start_station_name = 'Market at 4th' THEN id END) FROM trip
Database: bike_share_1
Question: List the names of the stations within Mountain View that were installed on 12/31/2013.
Evidence: Mountain View refers to city = 'Mountain View'; installed on 12/31/2013 refers to installation_date = '12/31/2013';
SQL: SELECT name FROM station WHERE installation_date = '12/31/2013' AND city = 'Mountain View'
Database: bike_share_1
Question: Which city is Townsend at 7th Station located and how many bikes could it hold?
Evidence: Townsend at 7th Station refers to city = 'Townsend at 7th Station'; number of bikes a station can hold refers to SUM(dock_count);
SQL: SELECT city, SUM(dock_count) FROM station WHERE name = 'Townsend at 7th'
Database: bike_share_1
Question: How many bikes could Evelyn Park and Ride hold and how many users who started on that station are subscribers?
Evidence: number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';
SQL: SELECT SUM(T2.dock_count), COUNT(T1.subscription_type) FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.name = 'Evelyn Park and Ride' AND T1.start_station_name = T2.name AND T1.subscription_type = 'Subscriber'
Database: bike_share_1
Question: How many subscribers are in the zip code of 94301 and what is the hottest temperature recorded on that zip code?
Evidence: hottest temperature refers to MAX(max_temperature_f);
SQL: SELECT COUNT(T3.zip_code), T3.max_temperature_f FROM trip AS T2 INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301 AND T2.subscription_type = 'Subscriber' ORDER BY T3.max_temperature_f DESC LIMIT 1
Database: bike_share_1
Question: What is the percentage ration of customers to subscribers that started their trips within the city of San Francisco?
Evidence: customer refers to subscription_type = 'customer'; subscriber refers to subscription_type = 'subscriber'; started their trips within refers to start_station_id; percentage ratio = DIVIDE(SUM(subscription_type = 'Customer'), SUM(subscription_type = 'Subscriber')) as percentage;
SQL: SELECT CAST(SUM(CASE WHEN T1.subscription_type = 'Customer' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T1.subscription_type = 'Subscriber' THEN 1 ELSE 0 END) FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T2.city = 'San Francisco'
Database: bike_share_1
Question: What is the average duration of trips for the starting station of Santa Clara at Almaden and what is the latitude and longitude of this station?
Evidence: average duration = DIVIDE(SUM(duration), COUNT(id)); starting station refers to start_station_name; start_station_name = 'Santa Clara at Almaden'; latitude refers to lat; longitude refers to long;
SQL: SELECT AVG(T1.duration), T2.lat, T2.long FROM trip AS T1 LEFT JOIN station AS T2 ON T2.name = T1.start_station_name LEFT JOIN station AS T3 ON T3.name = T1.end_station_name WHERE T1.start_station_name = 'Santa Clara at Almaden'
Database: bike_share_1
Question: What is the shortest trip made starting from Franklin at Maple and what is the maximum wind speed at that date?
Evidence: shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;
SQL: SELECT MIN(T1.duration), MAX(T2.max_wind_Speed_mph) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_station_name = 'Franklin at Maple' AND T2.date = '9/4/2013'
Database: bike_share_1
Question: How many bikes have been borrowed at San Jose Diridon Caltrain Station on the date and time of 10/20/2013 8:11:01 AM and indicate the station's coordinates.
Evidence: number of bikes that have been borrowed refers to SUM(bikes_available); San Jose Diridon Caltrain Station refers to name = 'San Jose Diridon Caltrain Station'; station's coordinates refers to (lat, long);
SQL: SELECT SUM(T2.bikes_available), T1.long, T1.lat FROM station AS T1 INNER JOIN status AS T2 ON T2.station_id = T1.id WHERE T2.time = '2013/10/20 8:11:01' AND T1.name = 'San Jose Diridon Caltrain Station'
Database: bike_share_1
Question: Name the city of the station that trip ID 585842 borrowed a bike and indicate when that station was first installed.
Evidence: when the station was first installed refers to installation_date;
SQL: SELECT T2.city, T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 585842
Database: bike_share_1
Question: How many stations were installed on the date of 8/16/2013 and how many users on those stations are classified as a customer?
Evidence: installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;
SQL: SELECT COUNT(T1.name) , SUM(CASE WHEN T2.subscription_type = 'Customer' THEN 1 ELSE 0 END) FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T1.installation_date = '8/16/2013' AND T2.subscription_type = 'Customer'
Database: bike_share_1
Question: Which station did the user who started at Market at 4th station ended their trip at the time of 12:45:00 PM and the date of 8/29/2013 and what is the location coordinates of the ending station?
Evidence: started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);
SQL: SELECT T1.name, T1.lat, T1.long FROM station AS T1 INNER JOIN trip AS T2 ON T2.end_station_name = T1.name WHERE T2.start_station_name = 'Market at 4th' AND T2.end_date = '8/29/2013 12:45'
Database: bike_share_1
Question: How many subscribers have ended their trip at MLK Library and how many docks does that station have?
Evidence: subscribers refers to subscription_type = 'subscribers'; ended their trip at refers to end_station_name; end_station_name = 'MLK Library'; number of docks a station have refers to dock_count;
SQL: SELECT COUNT(T1.id), T2.dock_count FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.end_station_name = 'MLK Library' AND T1.subscription_type = 'Subscriber' AND T2.dock_count = 19
Database: bike_share_1
Question: What is the average coldest temperature for the zip code of 94301 and what stations are within the zip code? Include the latitude and longitude as well.
Evidence: coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;
SQL: SELECT AVG(T3.min_temperature_f), T1.long, T1.lat FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name INNER JOIN weather AS T3 ON T3.zip_code = T2.zip_code WHERE T3.zip_code = 94301
Database: bike_share_1
Question: Calculate the average duration travelled by subscribers that both started and ended their trip in Mountain View City Hall and indicate the date when the station was first installed.
Evidence: average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;
SQL: SELECT AVG(T1.duration), T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.start_station_name = 'Mountain View City Hall' AND T1.subscription_type = 'Subscriber' AND T1.end_station_name = 'Mountain View City Hall'
Database: movie_3
Question: What is the description of the film ACADEMY DINOSAUR?
Evidence: "ACADEMY DINOSAUR" is the title of film
SQL: SELECT description FROM film WHERE title = 'ACADEMY DINOSAUR'
Database: movie_3
Question: How many films have a rental duration of over 6 days?
Evidence: rental duration of over 6 days refers to rental_duration > 6
SQL: SELECT COUNT(film_id) FROM film WHERE rental_duration > 6
Database: movie_3
Question: Please list the titles of the films that are released in 2006 and have a rental rate of $2.99.
Evidence: released in 2006 refers to release_year = 2006; rental rate of $2.99 refers to rental_rate = 2.99
SQL: SELECT title FROM film WHERE release_year = 2006 AND rental_rate = 2.99
Database: movie_3
Question: Which film has the longest duration of film screening? Please give its title.
Evidence: longest duration of film refers to Max(length)
SQL: SELECT title FROM film ORDER BY length DESC LIMIT 1
Database: movie_3
Question: Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?
Evidence: higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film
SQL: SELECT title FROM film WHERE title IN ('ACE GOLDFINGER', 'ACADEMY DINOSAUR') ORDER BY replacement_cost DESC LIMIT 1
Database: movie_3
Question: Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?
Evidence: released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'
SQL: SELECT COUNT(film_id) FROM film WHERE rating = 'NC-17' AND release_year = 2006
Database: movie_3
Question: How many films with the rental rate of $2.99 have the special feature of "Deleted Scenes"?
Evidence: rental rate of $2.99 refers to rental_rate = 2.99; film refers to title
SQL: SELECT COUNT(film_id) FROM film WHERE rental_rate = 2.99 AND special_features = 'Deleted Scenes'