answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT record FROM table_17848578_1 WHERE game_site = "San Diego Stadium"
What is the record when the game was at the San Diego Stadium?
CREATE TABLE table_17848578_1 (record VARCHAR, game_site VARCHAR)
SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation
Show different occupations along with the number of players in each occupation with a bar chart.
CREATE TABLE club ( Club_ID int, Club_name text, Region text, Start_year int ) CREATE TABLE coach ( Coach_ID int, Coach_name text, Gender text, Club_ID int, Rank int ) CREATE TABLE player ( Player_ID int, Sponsor_name text, Player_name text, Gender text, Residence text, Occupation text, Votes int, Rank text ) CREATE TABLE match_result ( Rank int, Club_ID int, Gold int, Big_Silver int, Small_Silver int, Bronze int, Points int ) CREATE TABLE player_coach ( Player_ID int, Coach_ID int, Starting_year int )
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
What character did Lisa Davina Phillip portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_manchester_performer VARCHAR)
SELECT COUNT(result) FROM table_17848578_1 WHERE game_site = "Atlanta-Fulton County Stadium"
How many results are there when the game was at the Atlanta-Fulton county stadium?
CREATE TABLE table_17848578_1 (result VARCHAR, game_site VARCHAR)
SELECT (SELECT COUNT(*) FROM table_203_300 WHERE "result" = 1 AND "year" > 2006) > 0
was there a result of 1st place after the year 2006 ?
CREATE TABLE table_203_300 ( id number, "year" number, "tournament" text, "venue" text, "result" text, "extra" text )
SELECT original_broadway_performer FROM table_22460085_1 WHERE original_west_end_performer = "Sharon D. Clarke"
Who was the Broadway equivalent of Sharon D. Clarke's character?
CREATE TABLE table_22460085_1 (original_broadway_performer VARCHAR, original_west_end_performer VARCHAR)
SELECT date FROM table_17848578_1 WHERE game_site = "Arrowhead Stadium"
What is the date of the game at Arrowhead Stadium?
CREATE TABLE table_17848578_1 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_4 WHERE record = "29–47"
Which Date has a Record of 29 47?
CREATE TABLE table_name_4 ( date VARCHAR, record VARCHAR )
SELECT character FROM table_22460085_1 WHERE original_broadway_performer = "Moya Angela"
What character did Moya Angela portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_broadway_performer VARCHAR)
SELECT game_site FROM table_17848578_1 WHERE attendance = 51478
Where was the game where attendance was 51478?
CREATE TABLE table_17848578_1 (game_site VARCHAR, attendance VARCHAR)
SELECT SUM("Ends Lost") FROM table_9712 WHERE "Province" = 'alberta' AND "Stolen Ends" > '7'
How many ends lost for Alberta when stolen ends are greater than 7?
CREATE TABLE table_9712 ( "Province" text, "Skip" text, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot Pct." real )
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman"
What character did Richard Fleeshman portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_west_end_performer VARCHAR)
SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = "Romania"
Name the military expenditures for 2011 for romania
CREATE TABLE table_17971449_2 (military_expenditures__2011 VARCHAR, _us$_millions_ VARCHAR, country VARCHAR)
SELECT "Result" FROM table_53769 WHERE "Competition" = 'friendly' AND "Date" = '8 october 2009'
what is the result when the competition is friendly on 8 october 2009?
CREATE TABLE table_53769 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = "Lisa Davina Phillip"
Who was the Manchester performer of Lisa Davina Phillip's character?
CREATE TABLE table_22460085_1 (original_manchester_performer VARCHAR, original_west_end_performer VARCHAR)
SELECT population__2011_ FROM table_17971449_2 WHERE country = "Luxembourg"
Name the population 2011 for luxembourg
CREATE TABLE table_17971449_2 (population__2011_ VARCHAR, country VARCHAR)
SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern"
What year did they finish 1st, southern?
CREATE TABLE table_12002388_1 ( year INTEGER, reg_season VARCHAR )
SELECT european_tier FROM table_22457674_1 WHERE artist = "Rick Springfield"
Name the european tier for rick springfield
CREATE TABLE table_22457674_1 (european_tier VARCHAR, artist VARCHAR)
SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = "Denmark"
Name the deployable military 2011 for denmark
CREATE TABLE table_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR)
SELECT COUNT("Version") FROM table_30594 WHERE "Release" = '1.0.12'
What's the number of the 1.0.12 release version?
CREATE TABLE table_30594 ( "Version" text, "Release" text, "Release date" text, "End of maintenance" text, "Requirement" text )
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe"
Name the song title for europe
CREATE TABLE table_22457674_1 (song_title VARCHAR, artist VARCHAR)
SELECT COUNT(loses) FROM table_18018214_2 WHERE club = "Tauras Tauragė"
List total loses forh the tauras tauragė team.
CREATE TABLE table_18018214_2 (loses VARCHAR, club VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Memphis"
What did they do against Memphis?
CREATE TABLE table_21058823_1 ( result VARCHAR, opponent VARCHAR )
SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = "Doobie Brothers The Doobie Brothers"
Name the number of master recording for doobie brothers the doobie brothers
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT MIN(goals_conceded) FROM table_18018214_2 WHERE points = 58
List the number of goals scored to equal 58.
CREATE TABLE table_18018214_2 (goals_conceded INTEGER, points VARCHAR)
SELECT "Major users" FROM table_31153 WHERE "Name/ designation" = 'Saturn machine pistol'
Who are all the major users of the Saturn Machine Pistol?
CREATE TABLE table_31153 ( "Name/ designation" text, "Year of intro" real, "Country of origin" text, "Primary cartridge" text, "Major users" text )
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe"
Name the master recording for europe
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = "Leonard B. Jordan (R)"
How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?
CREATE TABLE table_1802522_3 (reason_for_change VARCHAR, successor VARCHAR)
SELECT "total" FROM table_203_535 WHERE "nation" = 'spain'
what is the total amount of medals spain has won ?
CREATE TABLE table_203_535 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT date FROM table_22464685_1 WHERE georgian_name = "ცხოვრება და უწყება ბაგრატონიანთა"
what is the date for when the georgian name is ცხოვრება და უწყება ბაგრატონიანთა?
CREATE TABLE table_22464685_1 (date VARCHAR, georgian_name VARCHAR)
SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = "November 30, 1962"
What state had November 30, 1962 as the date of the successors formal installation?
CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT surface FROM table_name_3 WHERE date = "12 september 2006"
Name the surface for 12 september 2006
CREATE TABLE table_name_3 ( surface VARCHAR, date VARCHAR )
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223"
what is the transliteration during the period covered is 1125-1223?
CREATE TABLE table_22464685_1 (transliteration VARCHAR, period_covered VARCHAR)
SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = "Joseph H. Bottum (R)"
How many vacant seats were filled by newcomer Joseph H. Bottum (r)?
CREATE TABLE table_1802522_3 (vacator VARCHAR, successor VARCHAR)
SELECT COUNT("Player") FROM table_16402 WHERE "College" = 'Adams State'
How many players played for adams state school?
CREATE TABLE table_16402 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT author FROM table_22464685_1 WHERE english_name = "Histories and Eulogies of the Sovereigns"
Who is the auther when the english name was histories and eulogies of the sovereigns?
CREATE TABLE table_22464685_1 (author VARCHAR, english_name VARCHAR)
SELECT results FROM table_1805191_36 WHERE incumbent = "Marcy Kaptur"
What are the results of those elections for which Marcy Kaptur is the incumbent?
CREATE TABLE table_1805191_36 (results VARCHAR, incumbent VARCHAR)
SELECT "Proto-Semitic" FROM table_74055 WHERE "Arabic" = 'salām-'
If in arabic it is sal m-, what is it in proto-semitic?
CREATE TABLE table_74055 ( "English" text, "Proto-Semitic" text, "Akkadian" text, "Arabic" text, "Aramaic" text, "Hebrew" text, "Geez" text, "Mehri" text )
SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane"
who is the auther when the transliteration is lasha-giorgis droindeli matiane?
CREATE TABLE table_22464685_1 (author VARCHAR, transliteration VARCHAR)
SELECT results FROM table_1805191_36 WHERE incumbent = "Ted Strickland"
What are the results of the elections in which Ted Strickland is seeking re-election?
CREATE TABLE table_1805191_36 (results VARCHAR, incumbent VARCHAR)
SELECT "Away team" FROM table_6945 WHERE "Home team" = 'tottenham hotspur'
What away team has tottenham hotspur as the home team?
CREATE TABLE table_6945 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real )
SELECT state__class_ FROM table_224840_3 WHERE vacator = "John Laurance (F)"
in which state where John Laurance (f) as a vacator?
CREATE TABLE table_224840_3 (state__class_ VARCHAR, vacator VARCHAR)
SELECT candidates FROM table_1805191_36 WHERE incumbent = "Dennis Kucinich"
Who are all of the candidates in elections where Dennis Kucinich was a candidate?
CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'peak airway/pressure')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY cost.patienthealthsystemstayid) AS t1
what is the minimum total cost of a hospital involving a laboratory test for peak airway/pressure last year?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT reason_for_change FROM table_224840_3 WHERE vacator = "Henry Latimer (F)"
when the vacator was Henry Latimer (f), what were the causes for modification?
CREATE TABLE table_224840_3 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT candidates FROM table_1805191_36 WHERE incumbent = "Steve Chabot"
Who were all the candidates in elections in which Steve Chabot was a candidate?
CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT "year" FROM table_203_239 GROUP BY "year" ORDER BY COUNT("title") DESC LIMIT 1
which year did she work on the most films ?
CREATE TABLE table_203_239 ( id number, "year" number, "title" text, "chinese title" text, "role" text, "notes" text )
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT treasurer FROM table_18052353_4 WHERE year = "2008"
Who was treasurer in 2008?
CREATE TABLE table_18052353_4 (treasurer VARCHAR, year VARCHAR)
SELECT "Gold" FROM table_56135 WHERE "Nation" = 'netherlands'
Tell me the gold for netherlands
CREATE TABLE table_56135 ( "Nation" text, "Gold" text, "Silver" text, "Bronze" text, "Total" real )
SELECT COUNT(1 AS st_venue) FROM table_22482077_1 WHERE year = 2010
In 2010, how many 1st venue cities were there?
CREATE TABLE table_22482077_1 (year VARCHAR)
SELECT state_assembly FROM table_18052353_4 WHERE year = "2008"
What was the composition of the state assembly in 2008?
CREATE TABLE table_18052353_4 (state_assembly VARCHAR, year VARCHAR)
SELECT "Opponent" FROM table_14309 WHERE "City" = 'milwaukee'
Who was Milwaukee's opponent?
CREATE TABLE table_14309 ( "Date" text, "Opponent" text, "City" text, "Result" text, "Score" text )
SELECT COUNT(vacator) FROM table_224840_4 WHERE district = "Massachusetts 3rd"
How many seats became avaliable in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (vacator VARCHAR, district VARCHAR)
SELECT no_in_series FROM table_18055005_1 WHERE prod_code = "329"
What's the series number of the episode with production code 329?
CREATE TABLE table_18055005_1 (no_in_series VARCHAR, prod_code VARCHAR)
SELECT COUNT("Roll") FROM table_53507 WHERE "Name" = 'shelly park school'
What is the total number on roll for Shelly Park school?
CREATE TABLE table_53507 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT vacator FROM table_224840_4 WHERE date_successor_seated = "November 26, 1800"
Who left office on November 26, 1800?
CREATE TABLE table_224840_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein"
What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein?
CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT publisher FROM table_name_56 WHERE release_title = "martial law: dead ringers"
Who was the publisher of Martial Law: Dead Ringers?
CREATE TABLE table_name_56 ( publisher VARCHAR, release_title VARCHAR )
SELECT successor FROM table_224840_4 WHERE district = "Massachusetts 3rd"
Who was the latest to take office in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (successor VARCHAR, district VARCHAR)
SELECT MIN(year) FROM table_18106841_1 WHERE winners__percentage_votes = "55.99%"
What year was the winners vote 55.99%?
CREATE TABLE table_18106841_1 (year INTEGER, winners__percentage_votes VARCHAR)
SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval"
What is the location of the Moorabbin Oval stadium?
CREATE TABLE table_28885977_1 ( location VARCHAR, stadium VARCHAR )
SELECT builder FROM table_22481967_1 WHERE date = "1930"
List the builder from 1930.
CREATE TABLE table_22481967_1 (builder VARCHAR, date VARCHAR)
SELECT members_of_parliament FROM table_18106841_1 WHERE winners__percentage_votes = "50.54%"
When the winners votes were 50.54% who were the members of parliment?
CREATE TABLE table_18106841_1 (members_of_parliament VARCHAR, winners__percentage_votes VARCHAR)
SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53717' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY medication.drugstarttime DESC LIMIT 1
what was the name of the drug prescription that patient 030-53717 was last prescribed in their first hospital encounter?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT COUNT(builder) FROM table_22481967_1 WHERE withdrawn = "1951" AND number = "42"
List the number of builders where the withdrawn is 1951 and number is 42.
CREATE TABLE table_22481967_1 (builder VARCHAR, withdrawn VARCHAR, number VARCHAR)
SELECT us_viewers__millions_ FROM table_18102421_2 WHERE directed_by = "Allison Liddi-Brown"
How many millions of U.S. viewers watched the episode directed by Allison Liddi-Brown?
CREATE TABLE table_18102421_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT COUNT(*) FROM table_203_726 WHERE "national champion" = 'ucla'
how many times was ucla national champion ?
CREATE TABLE table_203_726 ( id number, "year" number, "national champion" text, "score" text, "runner-up" text, "host or site" text )
SELECT date FROM table_22481967_1 WHERE number = "1"
List the date for number 1.
CREATE TABLE table_22481967_1 (date VARCHAR, number VARCHAR)
SELECT title FROM table_18102421_2 WHERE us_viewers__millions_ = "13.82"
What was the title of the episode that had 13.82 million U.S. viewers?
CREATE TABLE table_18102421_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT "Home captain" FROM table_42816 WHERE "Venue" = 'oval'
Who was the Home captain that played at the venue Oval?
CREATE TABLE table_42816 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text )
SELECT number FROM table_22481967_1 WHERE operator = "Melbourne and Metropolitan Tramways Board"
List the number for the operator melbourne and metropolitan tramways board.
CREATE TABLE table_22481967_1 (number VARCHAR, operator VARCHAR)
SELECT club FROM table_18143210_2 WHERE top_division_titles = 10
What was the club that won 10 top division titles?
CREATE TABLE table_18143210_2 (club VARCHAR, top_division_titles VARCHAR)
SELECT COUNT("team") FROM table_204_735 WHERE "rank" < (SELECT "rank" FROM table_204_735 WHERE "team" = 'spain')
how many teams finished better than spain in cycling at the 1996 summer olympics men 's team pursuit ?
CREATE TABLE table_204_735 ( id number, "rank" number, "team" text, "names" text, "time" text, "qualification" text )
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission"
List the status for the operator Toronto transit commission.
CREATE TABLE table_22481967_1 (status VARCHAR, operator VARCHAR)
SELECT first_season_in_top_division FROM table_18143210_2 WHERE club = "UNAM"
When did the club UNAM played the first season in top division?
CREATE TABLE table_18143210_2 (first_season_in_top_division VARCHAR, club 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, date_day, days, flight WHERE (((date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time > 1000 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 0 AND 1200
i would like a flight from SAN FRANCISCO to PITTSBURGH on friday morning after 1000 o'clock
CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) 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, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int )
SELECT network FROM table_22485543_1 WHERE studio_host = "Bob Costas" AND ice_level_reporters = "Darren Pang"
Which network has bob costas as the studio host and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (network VARCHAR, studio_host VARCHAR, ice_level_reporters VARCHAR)
SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65"
When was the 'first season of current spell in top division' if the first season in top division is in 1964-65?
CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR)
SELECT athlete FROM table_26454128_4 WHERE height = "1.87" AND country = "Sweden"
Which athlete has a height of 1.87 and is from Sweden?
CREATE TABLE table_26454128_4 ( athlete VARCHAR, height VARCHAR, country VARCHAR )
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT top_division_titles FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1979-80"
How many top division titles were won during the 'first season of current spell in top division' in 1979-80?
CREATE TABLE table_18143210_2 (top_division_titles VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1
Find the name of the department which has the highest average salary of professors.
CREATE TABLE instructor ( dept_name VARCHAR, salary INTEGER )
SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = "Brian Engblom"
Who is the color commentator when brian engblom is ice level reporters?
CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR)
SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91"
How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91?
CREATE TABLE table_18143210_2 (number_of_seasons_in_top_division INTEGER, first_season_in_top_division VARCHAR)
SELECT ending FROM table_17798093_20 WHERE examples = "Achilles, appendices, fæces"
what are the endings of examples achilles, appendices, f ces
CREATE TABLE table_17798093_20 ( ending VARCHAR, examples VARCHAR )
SELECT play_by_play FROM table_22485543_1 WHERE network = "NBC" AND ice_level_reporters = "Darren Pang"
Who is the play-by-play when nbc is the network and darren pang is the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, network VARCHAR, ice_level_reporters VARCHAR)
SELECT number_of_seasons_in_liga_mx FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1962-63"
How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63?
CREATE TABLE table_18143210_2 (number_of_seasons_in_liga_mx VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3"
What is the area (km 2) where the population density (/mk2) is 84.3?
CREATE TABLE table_1480455_1 ( area__km_2__ VARCHAR, population_density___km_2__ VARCHAR )
SELECT studio_host FROM table_22485543_1 WHERE year = "2010"
Who is the studio host for the year 2010?
CREATE TABLE table_22485543_1 (studio_host VARCHAR, year VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II"
which chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)
SELECT "Date" FROM table_38154 WHERE "Competition" = 'friendly match' AND "Venue" = 'auckland'
On what date was a friendly match held at Auckland?
CREATE TABLE table_38154 ( "Date" text, "Venue" text, "Result" text, "Goals" real, "Competition" text )
SELECT vacator FROM table_224844_4 WHERE district = "Connecticut At-large"
Who left a seat open for the district of connecticut at-large
CREATE TABLE table_224844_4 (vacator VARCHAR, district VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE thursday = "438 Magic: The Gathering Mini Masters Tournament"
which episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, thursday VARCHAR)
SELECT "Ensemble name" FROM table_74568 WHERE "Area" = 'oxfordshire'
What is Oxfordshire Area's Ensemble Name?
CREATE TABLE table_74568 ( "Area" text, "Advertisement date" text, "Block" text, "Winning applicant" text, "Ensemble name" text )
SELECT reason_for_change FROM table_224844_4 WHERE district = "Connecticut At-large"
Why was a seat left open fo Connecticut at-large?
CREATE TABLE table_224844_4 (reason_for_change VARCHAR, district VARCHAR)
SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet"
which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday?
CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR)
SELECT "Termination" FROM table_20477 WHERE "Headphone Model" = 'SR80i'
Which terminations correspond with headphone model SR80I?
CREATE TABLE table_20477 ( "Headphone Model" text, "Headphone Class" text, "Driver-matched dB" text, "Construction" text, "Earpads" text, "Termination" text, "US MSRP" text )
SELECT MIN(rank_asia) FROM table_2248784_4
What is the smallest Asian rank?
CREATE TABLE table_2248784_4 (rank_asia INTEGER)
SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin"
which episode was Transmitted on friday if the episode of "515 the adventures of tintin" was transmitted on monday?
CREATE TABLE table_18173916_8 (friday VARCHAR, monday VARCHAR)