answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds"
What is the M60A3 that has 40 rounds as Leclerc?
CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR)
SELECT accession_number FROM table_27155678_2 WHERE sequence_similarity = 54
Name the accession number for sequence similarity being 54
CREATE TABLE table_27155678_2 (accession_number VARCHAR, sequence_similarity VARCHAR)
SELECT title, year, director FROM movie ORDER BY budget_million
Show all movie titles, years, and directors, ordered by budget.
CREATE TABLE movie ( movie_id number, title text, year number, director text, budget_million number, gross_worldwide number ) CREATE TABLE book_club ( book_club_id number, year number, author_or_editor text, book_title text, publisher text, category text, result text...
SELECT lince FROM table_name_8 WHERE leclerc = "hp (kw)"
What's the lince when Leclerc was Hp (kw)?
CREATE TABLE table_name_8 (lince VARCHAR, leclerc VARCHAR)
SELECT gene_name FROM table_27155678_2 WHERE genus_species = "Methylobacterium nodulans"
Name the gene name for methylobacterium nodulans
CREATE TABLE table_27155678_2 (gene_name VARCHAR, genus_species VARCHAR)
SELECT "Occupation" FROM table_66709 WHERE "Candidate's Name" = 'john marvin wierenga'
What is John Marvin Wierenga's occupation?
CREATE TABLE table_66709 ( "Riding" text, "Candidate's Name" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text )
SELECT m1a1_abrams FROM table_name_92 WHERE lince = "t (short tons)"
What is the M1A1 when the Lince was T (Short Tons)?
CREATE TABLE table_name_92 (m1a1_abrams VARCHAR, lince VARCHAR)
SELECT gene_name FROM table_27155678_2 WHERE accession_number = "BX897700.1"
Name the gene name for accession number bx897700.1
CREATE TABLE table_27155678_2 (gene_name VARCHAR, accession_number VARCHAR)
SELECT "Weight" FROM table_63578 WHERE "2008 club" = 'acqua paradiso gabeca'
What Weight has a 2008 Club of Acqua Paradiso Gabeca?
CREATE TABLE table_63578 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text )
SELECT distance FROM table_name_73 WHERE time = "2:20.00"
Which Distance has a Time of 2:20.00?
CREATE TABLE table_name_73 (distance VARCHAR, time VARCHAR)
SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"
What was the minimum % funded of the project that was closed on 2012-05-18?
CREATE TABLE table_27155990_1 (_percentage_funded INTEGER, closing_date VARCHAR)
SELECT birth_country FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.birth_country ORDER BY COUNT(*) DESC LIMIT 1
Which birth place has the most player awards?
CREATE TABLE salary ( year number, team_id text, league_id text, player_id text, salary number ) CREATE TABLE player_award ( player_id text, award_id text, year number, league_id text, tie text, notes text ) CREATE TABLE hall_of_fame ( player_id text, yearid number,...
SELECT distance FROM table_name_16 WHERE event = "breaststroke" AND location = "beijing, chn"
Which Distance has an Event of breaststroke, and a Location of beijing, chn?
CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR)
SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = "Pebble Technology"
What was the maximum total USD collected by Pebble Technology?
CREATE TABLE table_27155990_1 (total_usd INTEGER, creator VARCHAR)
SELECT DISTINCT FLIGHT_0.flight_id FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days A...
show me the flight with the smallest seating capacity which leaves PITTSBURGH and arrives in BALTIMORE on 6 14
CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, depa...
SELECT meet FROM table_name_5 WHERE time = "1:04.84"
What Meet has a Time of 1:04.84?
CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR)
SELECT category FROM table_27155990_1 WHERE project_name = "Mighty No. 9"
What was the category of the project name Mighty No. 9?
CREATE TABLE table_27155990_1 (category VARCHAR, project_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Lap surg convert to open"
find the number of female patients whose diagnoses is titled lap surg convert to open.
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT COUNT(season) FROM table_name_58 WHERE viewer_rank___number_ = "#4"
What season had a viewer rank of #4?
CREATE TABLE table_name_58 (season VARCHAR, viewer_rank___number_ VARCHAR)
SELECT COUNT(rank) FROM table_27155990_1 WHERE project_name = "Pebble: E-Paper Watch for iPhone and Android"
Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times?
CREATE TABLE table_27155990_1 (rank VARCHAR, project_name VARCHAR)
SELECT MAX(game) FROM table_11959669_6 WHERE location_attendance = "Pepsi Center 19,894"
What is the game that the location attendance is pepsi center 19,894?
CREATE TABLE table_11959669_6 ( game INTEGER, location_attendance VARCHAR )
SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6"
Which season had less than 25.4 viewers and had a viewer rank of #6?
CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR)
SELECT league_apps FROM table_27170987_5 WHERE total_goals = 11
How many league apps did the player with 11 team goals have?
CREATE TABLE table_27170987_5 (league_apps VARCHAR, total_goals VARCHAR)
SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
For those employees who did not have any job in the past, show me about the correlation between employee_id and department_id in a scatter chart.
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0...
SELECT season AS premiere FROM table_name_12 WHERE viewer_rank___number_ = "#6"
When did the season premiere that had a viewer rank of #6?
CREATE TABLE table_name_12 (season VARCHAR, viewer_rank___number_ VARCHAR)
SELECT MIN(total_goals) FROM table_27170987_5 WHERE league_goals = 6
What is the lowest number of total goals for a player with 6 league goals?
CREATE TABLE table_27170987_5 (total_goals INTEGER, league_goals VARCHAR)
SELECT to_par FROM table_name_35 WHERE country = "south africa"
What is South Africa's to par?
CREATE TABLE table_name_35 ( to_par VARCHAR, country VARCHAR )
SELECT COUNT(gold) FROM table_name_16 WHERE rank = "2" AND silver < 2
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_27170987_5
What is the lowest number of fa cup goals by a player?
CREATE TABLE table_27170987_5 (fa_cup_goals INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2194" AND lab.flag = "delta"
provide the number of patients whose admission year is less than 2194 and lab test abnormal status is delta?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(gold) FROM table_name_47 WHERE silver = 0 AND bronze > 1
What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?
CREATE TABLE table_name_47 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT written_by FROM table_27169029_1 WHERE original_air_date = "September 26, 2010"
Who wrote the episode that aired on September 26, 2010?
CREATE TABLE table_27169029_1 (written_by VARCHAR, original_air_date VARCHAR)
SELECT "Player" FROM table_61580 WHERE "Country" = 'united states' AND "Total" = '297'
What player from the United States had a total of 297?
CREATE TABLE table_61580 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT MIN(bronze) FROM table_name_3 WHERE total > 13 AND gold > 10 AND silver < 22
What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?
CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR)
SELECT asia FROM table_27184837_1 WHERE programs = "Radio Stations"
How many radio stations were built in Asia?
CREATE TABLE table_27184837_1 (asia VARCHAR, programs VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHING...
information on flights from BOSTON to WASHINGTON
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text,...
SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20
What was the main date of the round with 20 fixtures?
CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR)
SELECT COUNT(asia) FROM table_27184837_1 WHERE americas = 14
How many program data on Asia was written if the organization launched 14 programs iin the Americas?
CREATE TABLE table_27184837_1 (asia VARCHAR, americas VARCHAR)
SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1
Which start station had the most trips starting from August? Give me the name and id of the station.
CREATE TABLE status ( station_id number, bikes_available number, docks_available number, time text ) CREATE TABLE station ( id number, name text, lat number, long number, dock_count number, city text, installation_date text ) CREATE TABLE trip ( id number, duration ...
SELECT new_entries_this_round FROM table_name_97 WHERE number_of_fixtures < 8 AND round = "semi-finals"
What were the new entries for the Semi-Finals round with fewer than 8 fixtures?
CREATE TABLE table_name_97 (new_entries_this_round VARCHAR, number_of_fixtures VARCHAR, round VARCHAR)
SELECT COUNT(australasia) FROM table_27184837_1 WHERE americas = 115
How many times did Australasia received a program if the Americas received 115 program?
CREATE TABLE table_27184837_1 (australasia VARCHAR, americas VARCHAR)
SELECT Body, Score, CreationDate FROM Posts WHERE PostTypeId = 1 AND CreationDate BETWEEN '##Startdate:string##' AND '##Enddate:string##'
Get body and score of questions in specified date interval.
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number...
SELECT club FROM table_name_59 WHERE home_ground = "central reserve"
What was the club when home ground was Central Reserve?
CREATE TABLE table_name_59 (club VARCHAR, home_ground VARCHAR)
SELECT episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series FROM table_27208311_1 WHERE series_no = 3
What is every episode number for the series number 3?
CREATE TABLE table_27208311_1 (episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series VARCHAR, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series VARCHAR, series_no VARCHAR)
SELECT name_of_lava_dome FROM table_1081235_1 WHERE last_eruption_or_growth_episode = "Holocene"
Which lava domes erupted or had a growth episode during the Holocene period?
CREATE TABLE table_1081235_1 ( name_of_lava_dome VARCHAR, last_eruption_or_growth_episode VARCHAR )
SELECT gfl_premierships FROM table_name_4 WHERE home_ground = "leopold memorial park"
What's the GFL Premiership when the home ground was Leopold Memorial Park?
CREATE TABLE table_name_4 (gfl_premierships VARCHAR, home_ground VARCHAR)
SELECT episode FROM table_27208311_1 WHERE writer = "Barry Purchese"
What is every episode with Barry Purchese as the writer?
CREATE TABLE table_27208311_1 (episode VARCHAR, writer VARCHAR)
SELECT location_attendance FROM table_27713030_3 WHERE date = "October 18"
What is the location and attendance on October 18?
CREATE TABLE table_27713030_3 ( location_attendance VARCHAR, date VARCHAR )
SELECT location FROM table_name_39 WHERE years_in_gfl = "1988-"
What's the location where the Years in GFL was 1988-?
CREATE TABLE table_name_39 (location VARCHAR, years_in_gfl VARCHAR)
SELECT COUNT(episode) FROM table_27208817_1 WHERE writer = "Sam Snape"
Name the number of episodes for sam snape
CREATE TABLE table_27208817_1 (episode VARCHAR, writer VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Obstructive chronic bronchitis with acute bronchitis"
calculate the total number of patients diagnosed with obstructive chronic bronchitis with acute bronchitis
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT home_ground FROM table_name_15 WHERE nickname = "lions"
What's the home ground of the Lions?
CREATE TABLE table_name_15 (home_ground VARCHAR, nickname VARCHAR)
SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"
What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?
CREATE TABLE table_272313_1 (aspect_ratio VARCHAR, vertical VARCHAR, pixel_aspect_ratio VARCHAR)
SELECT COUNT("title") FROM table_203_633 WHERE "platform" = 'microsoft windows'
what number of swat games were made for microsoft windows ?
CREATE TABLE table_203_633 ( id number, "title" text, "year" number, "platform" text, "developer" text, "publisher" text )
SELECT location FROM table_name_37 WHERE years_in_gfl = "1979-" AND nickname = "saints"
What is the location of the Saints having 1979- as Years in GFL?
CREATE TABLE table_name_37 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR)
SELECT MIN(vertical) FROM table_272313_1 WHERE aspect_ratio = "16:9" AND scanning = "interlaced"
What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced?
CREATE TABLE table_272313_1 (vertical INTEGER, aspect_ratio VARCHAR, scanning VARCHAR)
SELECT "Name" FROM table_401 WHERE "Position" = 'DE' AND "College" = 'Ohio State'
What is the name when the position is de and college is ohio state?
CREATE TABLE table_401 ( "Name" text, "Position" text, "Height" text, "Weight(lbs)" real, "Born" text, "College" text, "Drafted" text, "Pro Team" text )
SELECT type FROM table_name_34 WHERE ends = 2013 AND transfer_window = "summer" AND moving_from = "kalmar ff"
What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?
CREATE TABLE table_name_34 (type VARCHAR, moving_from VARCHAR, ends VARCHAR, transfer_window VARCHAR)
SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640
What was the maximum vertical measurement if the horizon measurement is 640?
CREATE TABLE table_272313_1 (vertical INTEGER, horizontal VARCHAR)
SELECT DISTINCT author.authorname, COUNT(writes.paperid) FROM author, writes WHERE author.authorname IN ('Geoffrey E. Hinton', 'Yann Lecun') AND writes.authorid = author.authorid GROUP BY author.authorname ORDER BY COUNT(writes.paperid) DESC
Is it true that Geoffrey E. Hinton has more citations than Yann Lecun ?
CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE ...
SELECT moving_from FROM table_name_38 WHERE type = "transfer" AND transfer_window = "summer" AND ends < 2013
Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?
CREATE TABLE table_name_38 (moving_from VARCHAR, ends VARCHAR, type VARCHAR, transfer_window VARCHAR)
SELECT outgoing_manager FROM table_27225944_3 WHERE manner_of_departure = "Mutual consent" AND position_in_table = "16th"
Name the outgoing manager for mutual consent and position 16th
CREATE TABLE table_27225944_3 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT SUM(city_population) FROM district WHERE city_area > (SELECT AVG(city_area) FROM district)
Find the total population of the districts where the area is bigger than the average city area.
CREATE TABLE store_district ( store_id number, district_id number ) CREATE TABLE product ( product_id number, product text, dimensions text, dpi number, pages_per_minute_color number, max_page_size text, interface text ) CREATE TABLE store ( store_id number, store_name text...
SELECT transfer_window FROM table_name_8 WHERE name = "larsson"
What is the transfer window for larsson?
CREATE TABLE table_name_8 (transfer_window VARCHAR, name VARCHAR)
SELECT replaced_by FROM table_27225944_3 WHERE team = "Slaven Belupo"
Name the replaced by for slaven belupo
CREATE TABLE table_27225944_3 (replaced_by VARCHAR, team VARCHAR)
SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11426) AND prescriptions.drug = 'magnesium sulfate' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-36 month')
tell me the total magnesium sulfate dose that patient 11426 has been prescribed until 36 months ago?
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CR...
SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer"
What is the average end year of the player from swe and a summer transfer window?
CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka"
Name the number of outgoing manager for rijeka
CREATE TABLE table_27225944_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011
Who was the opponent in the 2011 event with less than 113 players?
CREATE TABLE table_name_72 ( opponent VARCHAR, player VARCHAR, event VARCHAR )
SELECT outcome FROM table_name_26 WHERE date = "2 december 2012"
What was the outcome on 2 December 2012?
CREATE TABLE table_name_26 (outcome VARCHAR, date VARCHAR)
SELECT MIN(horizontal) FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M three quarters"
Name the least horizontal for smpte 259m three quarters
CREATE TABLE table_272313_2 (horizontal INTEGER, pixel_aspect_ratio VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.icd9_code = "5771"
give me the number of patients whose admission type is urgent and procedure icd9 code is 5771?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescription...
SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,000 – tarakan , indonesia f2"
What is the score of the final in $10,000 – tarakan , indonesia f2?
CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR)
SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M" AND scanning = "interlaced"
Name the aspect ratio for smpte 259m and interlaced scanning
CREATE TABLE table_272313_2 (aspect_ratio VARCHAR, pixel_aspect_ratio VARCHAR, scanning VARCHAR)
SELECT constructor FROM table_2911781_3 WHERE grand_prix = "Belgian grand_prix"
What was the constructor in the Belgian Grand Prix round?
CREATE TABLE table_2911781_3 ( constructor VARCHAR, grand_prix VARCHAR )
SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211
What was the place for the score 70-72-69=211?
CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR)
SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan"
What date did the episode that was written by Fintan Ryan originally air?
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, written_by VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = '...
show me the evening flights from PHILADELPHIA to ATLANTA
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int,...
SELECT player FROM table_name_97 WHERE place = "t9" AND score = 73 - 69 - 74 = 216
What was the player for t9 and a score of 73-69-74=216?
CREATE TABLE table_name_97 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT originalairdate FROM table_27218002_2 WHERE ratings = "1.37 Million"
What date did the epiode that had 1.37 million as the rating originally air?
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, ratings VARCHAR)
SELECT SUM("Rank") FROM table_61819 WHERE "Total" < '1'
What's the rank that has a total of less than 1?
CREATE TABLE table_61819 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT place FROM table_name_50 WHERE player = "stacy lewis"
What was Stacy Lewis' place?
CREATE TABLE table_name_50 (place VARCHAR, player VARCHAR)
SELECT title FROM table_27250813_1 WHERE no_in_season = 16
What is the title of the episode no. 16 by season?
CREATE TABLE table_27250813_1 (title VARCHAR, no_in_season VARCHAR)
SELECT record__conf_ FROM table_name_73 WHERE conference = "wac"
What is the recorded conference that was a Wac Conference?
CREATE TABLE table_name_73 ( record__conf_ VARCHAR, conference VARCHAR )
SELECT score FROM table_name_87 WHERE tie_no = "13"
What was the score when the tie no was 13?
CREATE TABLE table_name_87 (score VARCHAR, tie_no VARCHAR)
SELECT COUNT(original_air_date) FROM table_27250813_1 WHERE production_code = 12003
How many times did an episode with a production code of 12003 was aired?
CREATE TABLE table_27250813_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT SUM("Earnings ( $ )") FROM table_34474 WHERE "Wins" > '3'
How many earnings have Wins larger than 3?
CREATE TABLE table_34474 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real )
SELECT score FROM table_name_31 WHERE away_team = "burnley"
What was the score when Burnley was the away team?
CREATE TABLE table_name_31 (score VARCHAR, away_team VARCHAR)
SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = "Terry Bowden" AND tv_rating = "17.2"
Name the color analyst for terry bowden and 17.2
CREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "st kilda"
On what date is St Kilda the away team?
CREATE TABLE table_name_31 ( date VARCHAR, away_team VARCHAR )
SELECT to_par FROM table_name_32 WHERE finish = "66"
What is the To par when the finish is 66?
CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR)
SELECT COUNT(bowl) FROM table_2724704_5 WHERE studio_analyst_s_ = "Lee Corso, Gene Chizik and Chip Kelly"
Name the number of bowl for lee corso, gene chizik and chip kelly
CREATE TABLE table_2724704_5 (bowl VARCHAR, studio_analyst_s_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT FEMUR FRACTURE" AND demographic.admityear < "2203"
how many patients whose primary disease is left femur fracture and admission year is less than 2203?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( ...
SELECT MIN(total) FROM table_name_58 WHERE finish = "t46" AND year_s__won = "1981, 1987"
When the year won is 1981, 1987, and the finish is t46, what is the lowest total?
CREATE TABLE table_name_58 (total INTEGER, finish VARCHAR, year_s__won VARCHAR)
SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi"
Name the studio analysts for espn with erin andrews and tom rinaldi
CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR)
SELECT COUNT(instructor.name), instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'MO' AND course.number = 899 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = cour...
Who is the usual teacher of MO 899 ?
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
SELECT year_s__won FROM table_name_25 WHERE finish = "68"
Which year was won with a finish of 68
CREATE TABLE table_name_25 (year_s__won VARCHAR, finish VARCHAR)
SELECT MAX(no_in_series) FROM table_27255755_1 WHERE us_viewers__millions_ = "9.17"
What is the highest series number with 9.17 million US viewers?
CREATE TABLE table_27255755_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT title FROM table_name_96 WHERE language = "korean" AND network = "kbs2"
What is the title for the Korean progran on KBS2?
CREATE TABLE table_name_96 ( title VARCHAR, language VARCHAR, network VARCHAR )
SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15
WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?
CREATE TABLE table_name_19 (snatch INTEGER, total__kg_ VARCHAR, bodyweight VARCHAR)