answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19352) AND STRFTIME('%y', diagnoses_icd.charttime) >= '2102'
since 2102, has patient 19352 been diagnosed with any illness?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ...
SELECT 2005 FROM table_name_14 WHERE 2006 = "1r" AND 2002 = "1r"
What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT date_of_vacancy FROM table_18522916_5 WHERE date_of_appointment = "29 December 2008"
Name the date of vacancy for 29 december 2008 being date of appointment
CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE notes = "via WCCV; formerly W236AJ"
how many height m ( ft ) with notes being via wccv; formerly w236aj
CREATE TABLE table_13998897_1 ( height_m___ft__ VARCHAR, notes VARCHAR )
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT COUNT(directed_by) FROM table_1854728_2 WHERE production_code = "1008/1009"
When 1008/1009 is the production code how many directors are there?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT "Old Bulgarian Names" FROM table_19977 WHERE "Bulgarian name ( Transliteration )" = 'Yanuari'
Name the old bulgarian names for yanuari
CREATE TABLE table_19977 ( "No." real, "English name" text, "Bulgarian name" text, "Bulgarian name ( Transliteration )" text, "Old Bulgarian Names" text, "Old Bulgarian name (Transliteration)" text, "Old Bulgarian name - Meaning" text )
SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.4"
For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?
CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT directed_by FROM table_1854728_2 WHERE written_by = "Arthur Heinemann"
When arthur heinemann is the writer who is the director?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT "Stroke" FROM table_35995 WHERE "Max. Power" = '109 ps(80kw)@4000 rpm'
What stroke has a max power of 109 ps(80kw)@4000 rpm?
CREATE TABLE table_35995 ( "Code" text, "Vehicle" text, "Year" text, "Displacement" text, "Bore" text, "Stroke" text, "C.R." text, "Max. Power" text )
SELECT player FROM table_name_96 WHERE round = 6
What player was selected in Round 6?
CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR)
SELECT running_with__in_team_ FROM table_1855841_1 WHERE candidate = "Elizabeth Falco"
Name the running with for elizabeth falco
CREATE TABLE table_1855841_1 (running_with__in_team_ VARCHAR, candidate VARCHAR)
SELECT TagName, SUM(CASE WHEN Posts.CommunityOwnedDate IS NULL OR Votes.CreationDate < Posts.CommunityOwnedDate THEN 1 ELSE 0 END) AS NonWikiUpvotes, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Post...
How many upvotes do I have for each tag? (Wiki & Non-Wiki). how long before I get tag badges?
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( Id number...
SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)"
What is the nationality of the player who played for the Peterborough Petes (OHL)?
CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT office_running_for FROM table_1855841_1 WHERE candidate = "Carol Marsh"
Name the officing running for for carol marsh
CREATE TABLE table_1855841_1 (office_running_for VARCHAR, candidate VARCHAR)
SELECT "Crowd" FROM table_53293 WHERE "Away team" = 'richmond'
How big was the crowd when Richmond was the away team?
CREATE TABLE table_53293 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT SUM(round) FROM table_name_84 WHERE nationality = "canada" AND player = "mike peca (c)"
Which round was Mike Peca (C) of Canada selected in?
CREATE TABLE table_name_84 (round INTEGER, nationality VARCHAR, player VARCHAR)
SELECT office_running_for FROM table_1855841_1 WHERE candidate = "Anthony Mussara"
Name the office running for for anthony mussara
CREATE TABLE table_1855841_1 (office_running_for VARCHAR, candidate VARCHAR)
SELECT COUNT("Writer(s)") FROM table_29295 WHERE "Episode" = 'Peace, Brother'
How many writers for the episode 'peace, brother'?
CREATE TABLE table_29295 ( "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." real, "Series No." real, "Episode" text, "Director" text, "Writer(s)" text, "Original airdate" text )
SELECT MIN(grid) FROM table_name_21 WHERE driver = "ayrton senna"
What is the smallest grid for Ayrton Senna?
CREATE TABLE table_name_21 (grid INTEGER, driver VARCHAR)
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega"
Name the votes given for michael russo, genevy dimitrion , manny ortega
CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)
SELECT "year" FROM table_201_36 GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1
which year had the most credits ?
CREATE TABLE table_201_36 ( id number, "year" number, "title" text, "role" text, "notes" text )
SELECT time_retired FROM table_name_47 WHERE laps > 52 AND grid > 21
What is the Time/Retired for laps higher than 52 on a grid larger than 21?
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT position FROM table_1858574_3 WHERE sail_number = "6606"
Qhat was the position of sail 6606?
CREATE TABLE table_1858574_3 (position VARCHAR, sail_number VARCHAR)
SELECT "Venue" FROM table_4684 WHERE "Away team" = 'hawthorn'
Where did Hawthorn play as the away team?
CREATE TABLE table_4684 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT SUM(laps) FROM table_name_53 WHERE grid = 20
What is the sum of laps for grid 20?
CREATE TABLE table_name_53 (laps INTEGER, grid VARCHAR)
SELECT yacht FROM table_1858574_3 WHERE sail_number = "AUS70"
On what yacht was the sail number aus70?
CREATE TABLE table_1858574_3 (yacht VARCHAR, sail_number VARCHAR)
SELECT "Record" FROM table_21315 WHERE "Date" = 'June 7'
Name the record for june 7
CREATE TABLE table_21315 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text )
SELECT MAX(laps) FROM table_name_6 WHERE driver = "ayrton senna"
What is the most laps for Ayrton Senna?
CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR)
SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992"
How many titles were released on 21 October 1992?
CREATE TABLE table_18590048_1 (rank VARCHAR, release_date VARCHAR)
SELECT "Raised" FROM table_14620 WHERE "Original Team" = 'hydra' AND "Hometown" = 'bronx, new york'
How much did the Hydra team from Bronx, New York raise?
CREATE TABLE table_14620 ( "Celebrity" text, "Background" text, "Original Team" text, "Hometown" text, "Result" text, "Raised" text )
SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5
what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?
CREATE TABLE table_name_87 (parallel_bars INTEGER, vault VARCHAR, floor_exercise VARCHAR, horizontal_bar VARCHAR)
SELECT MIN(rank) FROM table_18590048_1 WHERE title = "Super Mario Land 2: 6 Golden Coins"
What rank is Super Mario Land 2: 6 Golden Coins?
CREATE TABLE table_18590048_1 (rank INTEGER, title VARCHAR)
SELECT away_team FROM table_name_75 WHERE score = "139-119"
Who was the away team for the game with a score of 139-119?
CREATE TABLE table_name_75 ( away_team VARCHAR, score VARCHAR )
SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475
what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?
CREATE TABLE table_name_81 (floor_exercise INTEGER, pommel_horse VARCHAR, horizontal_bar VARCHAR)
SELECT platform FROM table_18590048_1 WHERE units_sold__in_millions_ = "11.18"
What platform sold 11.18 million units?
CREATE TABLE table_18590048_1 (platform VARCHAR, units_sold__in_millions_ VARCHAR)
SELECT "University of Minnesota" FROM table_6743 WHERE "Deloria & Boas" = 'n'
Deloria & Boas of n included what university of Minnesota?
CREATE TABLE table_6743 ( "Buechel & Manhart spelling (pronunciation)" text, "Ullrich" text, "Brandon University" text, "Deloria & Boas" text, "Dakota Mission" text, "Rood & Taylor" text, "Riggs" text, "Williamson" text, "University of Minnesota" text, "White Hat" text )
SELECT tournament FROM table_name_4 WHERE 2008 = "a" AND 2010 = "1r"
Which tournament had A in 2008, and a 1r in 2010?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT release_date FROM table_18590048_1 WHERE units_sold__in_millions_ = "9.87"
What day did the platform sell 9.87 million units?
CREATE TABLE table_18590048_1 (release_date VARCHAR, units_sold__in_millions_ VARCHAR)
SELECT denomination FROM table_11900773_4 WHERE theme = "Opera, Léopold Simoneau and Pierrette Alarie"
What denominations are the stamps with themes opera, l opold simoneau and pierrette alarie?
CREATE TABLE table_11900773_4 ( denomination VARCHAR, theme VARCHAR )
SELECT 2008 FROM table_name_12 WHERE 2012 = "q1" AND 2010 = "1r"
What was the position for 2008, where 2012 was q1, and 2010 was 1r?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT COUNT(round) FROM table_1859269_1 WHERE new_entries_this_round = "65"
If new entries this round is 65, what is the round?
CREATE TABLE table_1859269_1 (round VARCHAR, new_entries_this_round VARCHAR)
SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY Visit_Date
A line chart for what are the number of the distinct visit dates?, rank by the X in ascending please.
CREATE TABLE Photos ( Photo_ID INTEGER, Tourist_Attraction_ID INTEGER, Name VARCHAR(255), Description VARCHAR(255), Filename VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Hotels ( hotel_id INTEGER, star_rating_code CHAR(15), pets_allowed_yn CHAR(1), price_range real, ...
SELECT venue FROM table_name_81 WHERE goal = 3
Which venue has a Goal of 3?
CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR)
SELECT MAX(clubs_remaining) FROM table_1859269_1 WHERE leagues_entering_at_this_round = "Süper Lig"
If leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining?
CREATE TABLE table_1859269_1 (clubs_remaining INTEGER, leagues_entering_at_this_round VARCHAR)
SELECT bronze FROM table_name_9 WHERE nation = "netherlands"
How many bronzes did netherlands win?
CREATE TABLE table_name_9 ( bronze VARCHAR, nation VARCHAR )
SELECT venue FROM table_name_28 WHERE date = "10 september 2010"
Which venue was used on 10 september 2010?
CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR)
SELECT round FROM table_1859269_1 WHERE winners_from_previous_round = "8"
If the winners from the previous round is 8, what is the round?
CREATE TABLE table_1859269_1 (round VARCHAR, winners_from_previous_round VARCHAR)
SELECT "Founded" FROM table_23259 WHERE "Location" = 'Salem, Massachusetts'
When was the school in Salem, Massachusetts located?
CREATE TABLE table_23259 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Primary Conference" text, "LEC Sport" text )
SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 5
How many carries for the player with under 6 yards and an average of over 5?
CREATE TABLE table_name_48 (car VARCHAR, yards VARCHAR, avg VARCHAR)
SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals"
If the round is the semi-finals, what are the new entries this round?
CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)
SELECT "Lead" FROM table_41281 WHERE "Season" = '1999–00'
What is the Lead for the 1999 00 season?
CREATE TABLE table_41281 ( "Season" text, "Skip" text, "Third" text, "Second" text, "Lead" text )
SELECT MAX(long) FROM table_name_72 WHERE player = "kevin clemens" AND yards < 31
What was the longest carry for kevin clemens with under 31 yards total?
CREATE TABLE table_name_72 (long INTEGER, player VARCHAR, yards VARCHAR)
SELECT MAX(losses) FROM table_18594107_2 WHERE team = "Atl. Colegiales"
How many losses for the team atl. colegiales?
CREATE TABLE table_18594107_2 (losses INTEGER, team VARCHAR)
SELECT series__number FROM table_28019988_2 WHERE production_code = "BDF109"
What is the series number for the episode with production code bdf109?
CREATE TABLE table_28019988_2 ( series__number VARCHAR, production_code VARCHAR )
SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "brunswick street oval"
What was the attendance at Brunswick Street Oval?
CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR)
SELECT MIN(points) FROM table_18594107_2 WHERE scored = 14
How many points when the score is 14?
CREATE TABLE table_18594107_2 (points INTEGER, scored VARCHAR)
SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-58018')) AND diagnosis.diagnosisname = 'malignancy - cancer w...
when was the last time patient 030-58018 has been diagnosed with malignancy - cancer with metastases to the lung until 1 year ago?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, ic...
SELECT first_day_cover_cancellation FROM table_name_4 WHERE date_of_issue = "13 june 2005"
What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?
CREATE TABLE table_name_4 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR)
SELECT MAX(draws) FROM table_18594107_2 WHERE scored = 13
How many draws are there when the score is 13?
CREATE TABLE table_18594107_2 (draws INTEGER, scored 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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTI...
show me the flights available from ATLANTA to BALTIMORE leaving ATLANTA in the morning
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 ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, ...
SELECT first_day_cover_cancellation FROM table_name_68 WHERE denomination = "$0.50" AND date_of_issue = "13 june 2005"
What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?
CREATE TABLE table_name_68 (first_day_cover_cancellation VARCHAR, denomination VARCHAR, date_of_issue VARCHAR)
SELECT MAX(wins) FROM table_18594107_2 WHERE conceded = 18
How many wins have conceded as 18?
CREATE TABLE table_18594107_2 (wins INTEGER, conceded VARCHAR)
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-136480')) AND lab.labname = 'peak airway/pressure' AND DATETIME(lab.labresulttime, '...
did patient 027-136480 in 07/this year receive a peak airway/pressure lab test?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost numbe...
SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005"
What's the Denomination listed for the Date of Issue 12 April 2005?
CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR)
SELECT COUNT(draws) FROM table_18594107_1 WHERE scored = 25
How many draws occurred when 25 points were scored?
CREATE TABLE table_18594107_1 (draws VARCHAR, scored VARCHAR)
SELECT MIN(lane) FROM table_name_17 WHERE country = "nigeria" AND react < 0.133
What is the lowest lane for Nigeria, with a react less than 0.133?
CREATE TABLE table_name_17 ( lane INTEGER, country VARCHAR, react VARCHAR )
SELECT paper_type FROM table_name_30 WHERE denomination = "$0.50" AND date_of_issue = "4 february 2005"
Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?
CREATE TABLE table_name_30 (paper_type VARCHAR, denomination VARCHAR, date_of_issue VARCHAR)
SELECT MIN(points) FROM table_18594107_1 WHERE team = "San Lorenzo"
What is the least number of poins for San Lorenzo?
CREATE TABLE table_18594107_1 (points INTEGER, team VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'furosemide 20 mg po tabs')
how much does it cost to take a drug called furosemide 20 mg po tabs?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )...
SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats"
What's the Date of Issue for Design of Katalin Kovats?
CREATE TABLE table_name_46 (date_of_issue VARCHAR, design VARCHAR)
SELECT draws FROM table_18594107_1 WHERE team = "12 de Octubre"
How many draws does 12 de Octubre have?
CREATE TABLE table_18594107_1 (draws VARCHAR, team VARCHAR)
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-9785')) AND vitalperiodic.sao2 > 88.0 AND NOT v...
what was the first time that the sao2 of patient 017-9785 was, , greater than 88.0?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, ...
SELECT MIN(rec) FROM table_name_57 WHERE avg > 13
What was the lowest recorded record for a player with an average larger than 13?
CREATE TABLE table_name_57 (rec INTEGER, avg INTEGER)
SELECT MAX(inaba) FROM table_18595004_7
What is Inaba's maximum score?
CREATE TABLE table_18595004_7 (inaba INTEGER)
SELECT "Incumbent" FROM table_18228 WHERE "First elected" = '1958'
Which incumbent was first elected in 1958?
CREATE TABLE table_18228 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 13
How many yards were averaged by the player that had a higher than 13 average with less than 18 long?
CREATE TABLE table_name_94 (yards INTEGER, long VARCHAR, avg VARCHAR)
SELECT COUNT(tonioli) FROM table_18595004_7 WHERE week__number = 3
How many sets of marks does Tonioli get in week 3?
CREATE TABLE table_18595004_7 (tonioli VARCHAR, week__number VARCHAR)
SELECT name FROM table_name_15 WHERE bodyweight = 73.6
Which person has a bodyweight of 73.6?
CREATE TABLE table_name_15 ( name VARCHAR, bodyweight VARCHAR )
SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83
For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?
CREATE TABLE table_name_77 (passenger_fleet INTEGER, airline_holding VARCHAR, current_destinations VARCHAR)
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Columbia, South Carolina"
When columbia, south carolina is the hometown what is the lowest age?
CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR)
SELECT "Laid down" FROM table_33842 WHERE "Launched" = '1899-04-25'
What is the date that the item was laid down if it was launched on 1899-04-25?
CREATE TABLE table_33842 ( "Kanji" text, "Name (Translation)" text, "Builder" text, "Laid down" text, "Launched" text, "Completed" text )
SELECT alliance__association FROM table_name_85 WHERE rank = 40
Which alliance has a rank of 40?
CREATE TABLE table_name_85 (alliance__association VARCHAR, rank VARCHAR)
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Austin, Texas"
When austin, texas is the hometown what is the lowest age?
CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR)
SELECT "ICAO" FROM table_68856 WHERE "IATA" = 'ccu'
Name the ICAO for IATA of ccu
CREATE TABLE table_68856 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group"
For airlines named Aeroflot Group, what is the alliance?
CREATE TABLE table_name_11 (alliance__association VARCHAR, airline_holding VARCHAR)
SELECT result FROM table_1859855_2 WHERE candidate = "Stacy Schneider"
When stacy schneider is the candidate what are the results?
CREATE TABLE table_1859855_2 (result VARCHAR, candidate VARCHAR)
SELECT COUNT(*) FROM employees
Find the number of employees we have.
CREATE TABLE roles ( role_code text, role_name text, role_description text ) CREATE TABLE employees ( employee_id number, role_code text, employee_name text, gender_mfu text, date_of_birth time, other_details text ) CREATE TABLE ref_document_types ( document_type_code text, ...
SELECT year FROM table_name_4 WHERE position = "linebacker" AND pick = "17"
In which year was a linebacker pick 17?
CREATE TABLE table_name_4 (year VARCHAR, position VARCHAR, pick VARCHAR)
SELECT township FROM table_18600760_15 WHERE land___sqmi__ = "35.766"
Which township is 35.766 sqmi?
CREATE TABLE table_18600760_15 (township VARCHAR, land___sqmi__ VARCHAR)
SELECT candidates FROM table_1341690_35 WHERE incumbent = "Del Latta"
Who were the candidates in the district won by the incumbent Del Latta?
CREATE TABLE table_1341690_35 ( candidates VARCHAR, incumbent VARCHAR )
SELECT player_name FROM table_name_42 WHERE position = "cornerback" AND year = 1997
What is the name of the cornerback from 1997?
CREATE TABLE table_name_42 (player_name VARCHAR, position VARCHAR, year VARCHAR)
SELECT county FROM table_18600760_15 WHERE township = "Osborn"
What county is the township of Osborn in?
CREATE TABLE table_18600760_15 (county VARCHAR, township VARCHAR)
SELECT location FROM table_11214772_2 WHERE year = 2007
Where was the final game played in 2007
CREATE TABLE table_11214772_2 ( location VARCHAR, year VARCHAR )
SELECT player_name FROM table_name_48 WHERE year > 1989 AND college = "washington state"
What is the name of the player from after 1989 from Washington State?
CREATE TABLE table_name_48 (player_name VARCHAR, year VARCHAR, college VARCHAR)
SELECT longitude FROM table_18600760_15 WHERE latitude = "47.985154"
What is the longitude with a latitude of 47.985154?
CREATE TABLE table_18600760_15 (longitude VARCHAR, latitude VARCHAR)
SELECT year, SUM(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY year DESC
For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons using a line chart, sort by the x axis in desc.
CREATE TABLE home_game ( year INTEGER, league_id TEXT, team_id TEXT, park_id TEXT, span_first TEXT, span_last TEXT, games INTEGER, openings INTEGER, attendance INTEGER ) CREATE TABLE college ( college_id TEXT, name_full TEXT, city TEXT, state TEXT, country TEXT )...
SELECT race FROM table_name_5 WHERE margin = "8"
Which race has a Margin of 8?
CREATE TABLE table_name_5 (race VARCHAR, margin VARCHAR)
SELECT water__sqmi_ FROM table_18600760_15 WHERE county = "Ramsey" AND geo_id > 3807159460.0
How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?
CREATE TABLE table_18600760_15 (water__sqmi_ VARCHAR, county VARCHAR, geo_id VARCHAR)
SELECT "S\u00e3o Paulo career" FROM table_49015 WHERE "Appearances" < '201' AND "Goals" < '2' AND "Name" = 'ricardo rocha'
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?
CREATE TABLE table_49015 ( "Name" text, "Nationality" text, "Position" text, "S\u00e3o Paulo career" text, "Appearances" real, "Goals" real )