answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers"
What was the score when there was a visitor of Magic and at home with the Clippers?
CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?
CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT MAX("Apogee (km)") FROM table_72283 WHERE "Name" = 'SAMOS F3-3'
What is the maximum apogee for samos f3-3?
CREATE TABLE table_72283 ( "Name" text, "Alt name" text, "Launch date" text, "ID" text, "Mass (kg)" real, "Decay date" text, "Perigee (km)" real, "Apogee (km)" real, "Inclination" text )
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR)
SELECT MAX(gold) FROM table_22355_26
What is the maximum number of golds?
CREATE TABLE table_22355_26 (gold INTEGER)
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY COUNT(Carrier)
Bar chart x axis carrier y axis the number of carrier, and rank by the Y in ascending.
CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Rankin...
SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton"
What is the highest crowd when carlton is the away team?
CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(silver) FROM table_22355_29
What is the smallest amount of silver?
CREATE TABLE table_22355_29 (silver INTEGER)
SELECT part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name
How many assets can each parts be used in? List the part name and the number.
CREATE TABLE Asset_Parts ( asset_id INTEGER, part_id INTEGER ) CREATE TABLE Fault_Log_Parts ( fault_log_entry_id INTEGER, part_fault_id INTEGER, fault_status VARCHAR(10) ) CREATE TABLE Skills ( skill_id INTEGER, skill_code VARCHAR(20), skill_description VARCHAR(255) ) CREATE TABLE Ass...
SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg"
What is the highest crowd at mcg?
CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR)
SELECT nation FROM table_22355_44 WHERE athlete = "Abdon Pamich Category:Articles with hCards"
Name the nation for abdon pamich category:articles with hcards
CREATE TABLE table_22355_44 (nation VARCHAR, athlete VARCHAR)
SELECT SUM(amount) FROM payment
Return the sum of all payment amounts.
CREATE TABLE country ( country_id number, country text, last_update time ) CREATE TABLE film ( film_id number, title text, description text, release_year time, language_id number, original_language_id number, rental_duration number, rental_rate number, length number, ...
SELECT COUNT(grid) FROM table_name_87 WHERE time_retired = "+1.837"
How many grids are associated with a Time/Retired of +1.837?
CREATE TABLE table_name_87 (grid VARCHAR, time_retired VARCHAR)
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards"
Name the silver for ronald weigel category:articles with hcards
CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR)
SELECT pilot_s_ FROM table_name_43 WHERE location = "lake dumbleyung"
Who was the pilot at lake dumbleyung?
CREATE TABLE table_name_43 ( pilot_s_ VARCHAR, location VARCHAR )
SELECT hometown FROM table_name_99 WHERE college = "ucla"
What is the hometown of the player that attends UCLA?
CREATE TABLE table_name_99 (hometown VARCHAR, college VARCHAR)
SELECT MIN(rank) FROM table_22355_5
What's the minimal rank of a athlete shown in the chart?
CREATE TABLE table_22355_5 (rank INTEGER)
SELECT language FROM table_name_8 WHERE percentage___percentage_ = "2.54"
Which language has the percentage of 2.54?
CREATE TABLE table_name_8 ( language VARCHAR, percentage___percentage_ VARCHAR )
SELECT college FROM table_name_32 WHERE school = "wichita heights high school"
What college is getting a player that attends Wichita Heights High School?
CREATE TABLE table_name_32 (college VARCHAR, school VARCHAR)
SELECT MIN(gold) FROM table_22355_35
which is the minimun amount of gold medals?
CREATE TABLE table_22355_35 (gold INTEGER)
SELECT "Location" FROM table_70090 WHERE "Project" = 'eren talu bidding project'
Where is the Eren Talu bidding project located?
CREATE TABLE table_70090 ( "Project" text, "Year" text, "Location" text, "Capacity" real, "Suites" text, "Architect" text, "Cost" text )
SELECT hometown FROM table_name_83 WHERE player = "cody zeller"
What is the hometown of Cody Zeller?
CREATE TABLE table_name_83 (hometown VARCHAR, player VARCHAR)
SELECT MIN(silver) FROM table_22355_35
which is the minimun amount of silver medals?
CREATE TABLE table_22355_35 (silver INTEGER)
SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian'
What are the distinct types of mills that are built by American or Canadian architects?
CREATE TABLE bridge ( architect_id number, id number, name text, location text, length_meters number, length_feet number ) CREATE TABLE architect ( id text, name text, nationality text, gender text ) CREATE TABLE mill ( architect_id number, id number, location text,...
SELECT player FROM table_name_83 WHERE hometown = "washington, in"
What player's hometown is Washington, IN?
CREATE TABLE table_name_83 (player VARCHAR, hometown VARCHAR)
SELECT MIN(total_min_2_medals_) FROM table_22355_65
What is the lowest overall number for total(min. 2 medals)?
CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER)
SELECT "Mark" FROM table_13119 WHERE "Athlete" = 'tatyana lebedeva'
Which Mark has an Athlete of tatyana lebedeva?
CREATE TABLE table_13119 ( "Mark" text, "Wind*" text, "Athlete" text, "Nationality" text, "Venue" text, "Date" text )
SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4
What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?
CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR)
SELECT MAX(rank) FROM table_22355_62 WHERE gold = 4
What is the maximum rank of the nation that won 4 gold medals?
CREATE TABLE table_22355_62 (rank INTEGER, gold VARCHAR)
SELECT grand_final_dual_television_commentator FROM table_name_52 WHERE spokesperson = "amaury vassili"
What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson?
CREATE TABLE table_name_52 ( grand_final_dual_television_commentator VARCHAR, spokesperson VARCHAR )
SELECT SUM(seats_2001) FROM table_name_30 WHERE _percentage_2001 > 61.4 AND _percentage_2006 < 54.1
When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there?
CREATE TABLE table_name_30 (seats_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2006 VARCHAR)
SELECT MAX(rank) FROM table_22355_68
Name the most rank
CREATE TABLE table_22355_68 (rank INTEGER)
SELECT Name, COUNT(*) FROM Medication AS T1 JOIN Prescribes AS T2 ON T1.Code = T2.Medication GROUP BY T1.Brand
Find the number of medications prescribed for each brand.
CREATE TABLE Affiliated_With ( Physician INTEGER, Department INTEGER, PrimaryAffiliation BOOLEAN ) CREATE TABLE Appointment ( AppointmentID INTEGER, Patient INTEGER, PrepNurse INTEGER, Physician INTEGER, Start DATETIME, End DATETIME, ExaminationRoom TEXT ) CREATE TABLE Departme...
SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6
What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6?
CREATE TABLE table_name_79 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2
Name the most rank for 2 gold
CREATE TABLE table_22355_68 (rank INTEGER, gold VARCHAR)
SELECT preferred_foot, COUNT(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot ORDER BY COUNT(*) DESC
, and show in descending by the Y.
CREATE TABLE Team ( id INTEGER, team_api_id INTEGER, team_fifa_api_id INTEGER, team_long_name TEXT, team_short_name TEXT ) CREATE TABLE sqlite_sequence ( name any, seq any ) CREATE TABLE Player ( id INTEGER, player_api_id INTEGER, player_name TEXT, player_fifa_api_id INTEGE...
SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = "bürger für groß-rohrheim" AND _percentage_2006 < 21.3
What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?
CREATE TABLE table_name_5 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
SELECT MAX(total) FROM table_22360_3
Name the most total
CREATE TABLE table_22360_3 (total INTEGER)
SELECT finish FROM table_name_54 WHERE year_s__won = "2000"
What was the finish of the winner of the 2000 Masters?
CREATE TABLE table_name_54 ( finish VARCHAR, year_s__won VARCHAR )
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5
What is the %2006 when the %2001 was more than 62.5?
CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER)
SELECT MIN(silver) FROM table_22360_3 WHERE discipline = "Baseball"
Name the silver for baseball
CREATE TABLE table_22360_3 (silver INTEGER, discipline VARCHAR)
SELECT Author, COUNT(Author) FROM submission GROUP BY Author
Visualize a bar chart for how many authors submit to the workshop.
CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text ) CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text )
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15
What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?
CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR)
SELECT discipline FROM table_22360_3 WHERE bronze = 0
Name the discipline for bronze being 0
CREATE TABLE table_22360_3 (discipline VARCHAR, bronze VARCHAR)
SELECT "Broadcast date" FROM table_20305 WHERE "Run time" = '24:30'
What date was an episode with a run time of 24:30 broadcasted?
CREATE TABLE table_20305 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text )
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0
What is the largest Goals For by a team that has more than 0 ties?
CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER)
SELECT MAX(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Irish Nationwide"
Name the most tier 1 capital for irish nationwide
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital INTEGER, institution VARCHAR)
SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , and order by the X-axis in desc.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), ...
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5
How many ties do teams with 25 Goals For and more than 5 wins have?
CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR)
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent"
Name the tier 1 ratio for irish life and permanent
CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR)
SELECT "Holmenkollen" FROM table_45909 WHERE "Country" = 'norway' AND "Winner" = 'tom sandberg'
Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?
CREATE TABLE table_45909 ( "Winner" text, "Country" text, "Winter Olympics" text, "FIS Nordic World Ski Championships" text, "Holmenkollen" text )
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5
What is the lowest Goals Against by a team with more than 5 wins?
CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER)
SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"
Name the total number of tier 1 capital for allied irish banks
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.insurance = "Medicaid"
Out of the total number of patients admitted to emergency, calculate the number of those on Medicaid insurance.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3
What is the total number of ties a team with less than 3 losses have?
CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER)
SELECT date_of_report FROM table_22368322_2 WHERE tier_1_ratio = "3.9%"
Name the date of report for tier 1 ratio being 3.9%
CREATE TABLE table_22368322_2 (date_of_report VARCHAR, tier_1_ratio VARCHAR)
SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN characteristics AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "fast"
What are the names of the products that have a color description of 'red' and the 'fast' characteristic?
CREATE TABLE product_characteristics ( product_id number, characteristic_id number, product_characteristic_value text ) CREATE TABLE ref_colors ( color_code text, color_description text ) CREATE TABLE products ( product_id number, color_code text, product_category_code text, produc...
SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april"
Tell me the race name where stirling moss won on 16 april
CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR)
SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18"
What season ended on April 18?
CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR)
SELECT SUM("Weeks on chart") FROM table_54037 WHERE "Position" < '1'
What is the sum of the weeks on a chart a song with a position less than 1 haas?
CREATE TABLE table_54037 ( "Year" real, "Single" text, "Chart" text, "Position" real, "Weeks on chart" real )
SELECT report FROM table_name_25 WHERE circuit = "modena"
Tell me the report for circuit of modena
CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR)
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)"
When did the season start that ended with the top record of Lindenwood (20–0–0)?
CREATE TABLE table_22383603_1 (start__reg_season_ VARCHAR, top_record VARCHAR)
SELECT MIN("Bike No") FROM table_48571 WHERE "Driver / Passenger" = 'joris hendrickx / kaspars liepins' AND "Position" < '4'
What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?
CREATE TABLE table_48571 ( "Position" real, "Driver / Passenger" text, "Equipment" text, "Bike No" real, "Points" real )
SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april"
Tell me the race name for ferrari on 25 april
CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR)
SELECT season FROM table_22383603_1 WHERE no = 4
What is the year range of season 4?
CREATE TABLE table_22383603_1 (season VARCHAR, no VARCHAR)
SELECT road_team FROM table_name_36 WHERE result = "74-71"
What is Road Team, when Result is '74-71'?
CREATE TABLE table_name_36 ( road_team VARCHAR, result VARCHAR )
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet"
Name the constructor for vii kanonloppet
CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR)
SELECT finish__incl_championship_ FROM table_22383603_1 WHERE start__reg_season_ = "September 25"
When is the finish of the season that started on September 25?
CREATE TABLE table_22383603_1 (finish__incl_championship_ VARCHAR, start__reg_season_ VARCHAR)
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5
what were the five most frequently prescribed medications until 2 years ago?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartr...
SELECT opponent FROM table_name_55 WHERE date = "may 7"
Who is the opponent on May 7?
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
On what air date were there 2.15 million u.s. viewers?
CREATE TABLE table_22380270_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT to_par_ AS "a_" FROM table_name_35 WHERE course = "st andrews" AND year < 1888
What's the To par of St Andrews before the year 1888?
CREATE TABLE table_name_35 ( to_par_ VARCHAR, a_ VARCHAR, course VARCHAR, year VARCHAR )
SELECT away_team AS score FROM table_name_90 WHERE home_team = "carlton"
When the Home team was Carlton, what was the Away team score?
CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR)
SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
Who was the writer for the episode with 2.15 million u.s.viewers?
CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Chronic combined systolic and diastolic heart failure" AND prescriptions.route = "ED"
find the number of patients who have ed route of drug administration and diagnosed with chronic systolic and diastolic heart failure.
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 constructor FROM table_name_37 WHERE chassis = "fw20"
Who was the constructor for a FW20 chassis?
CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR)
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
Who walked in space from STS-101 Eva 1?
CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR)
SELECT main_use FROM table_name_75 WHERE country = "hungary" AND name = "transmitter solt"
What is the Main use of transmitter solt in Hungary?
CREATE TABLE table_name_75 ( main_use VARCHAR, country VARCHAR, name VARCHAR )
SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard"
What engine did David Coulthard have in his mp4-13 chassis?
CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours, 55 minutes"
What is the end (UTC) if the duration is 6 hours, 55 minutes?
CREATE TABLE table_22385461_8 (end__utc_ VARCHAR, duration VARCHAR)
SELECT "nationality" FROM table_204_174 ORDER BY id DESC LIMIT 1
what is the last nationality on the list ?
CREATE TABLE table_204_174 ( id number, "rank" number, "name" text, "nationality" text, "result" number, "notes" text )
SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon"
Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?
CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09"
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR)
SELECT "Season" FROM table_19090 WHERE "Winning Driver" = 'Tom Sneva'
In what year did Tom Sneva win a race?
CREATE TABLE table_19090 ( "Season" real, "Race Name" text, "Winning Driver" text, "Chassis" text, "Engine" text, "Tires" text, "Team" text )
SELECT opponent_in_the_final FROM table_name_33 WHERE date = "28 july 2013"
Who was the opponent on the 28 july 2013 final?
CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "October 30, 2007 15:53"
What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?
CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ 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 (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND date_day.day_number = 23 AND date_day.month_number = 4 AND...
show me all flights from PHOENIX to MILWAUKEE on wednesday
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 flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE aircraft (...
SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–6"
Which date has a Score in the final of 4–6, 3–6?
CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR)
SELECT position FROM table_22402438_7 WHERE player = "Bernie Doan"
Which position is player bernie doan?
CREATE TABLE table_22402438_7 (position VARCHAR, player VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Orthodontics Practice Management and Transitions%' OR course.description LIKE '%Orthodontics Practice Management and Transitions%' OR course.name LIKE '%Orthodontics Pra...
What classes involve Special Naval Architecture and Marine Engineering and Orthodontics Practice Management and Transitions ?
CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_p...
SELECT prefix FROM table_name_75 WHERE formula = "rsor'"
What is the prefix for the formula of Rsor'?
CREATE TABLE table_name_75 (prefix VARCHAR, formula VARCHAR)
SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender"
How many pick # are there for the goaltender position?
CREATE TABLE table_22402438_7 (pick__number INTEGER, position VARCHAR)
SELECT source FROM table_name_53 WHERE name = "delph"
What source has delph as the name?
CREATE TABLE table_name_53 ( source VARCHAR, name VARCHAR )
SELECT group FROM table_name_66 WHERE formula = "rncs"
Which group has the RNCS formula?
CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_22402438_7 WHERE player = "John Garrett"
How many college/junior/clubteams have John garrett as the player?
CREATE TABLE table_22402438_7 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT "Venue" FROM table_9051 WHERE "Date" = 'november 14, 2007'
What was the Venue on November 14, 2007?
CREATE TABLE table_9051 ( "Date" text, "Venue" text, "Score" text, "Competition" text, "Report" text )
SELECT formula FROM table_name_13 WHERE chemical_class = "thial"
Which formula has a thial as a chemical class?
CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR)
SELECT player FROM table_22402438_7 WHERE pick__number = 80
Who is the player with the pick# 80?
CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR)
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 71320 AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime LIMIT 1
when was patient 71320 for the first time admitted to the hospital since 2103?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE admissions ( ...
SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)"
Which suffix has the prefix of isothiocyanato- (-ncs)?
CREATE TABLE table_name_17 (suffix VARCHAR, prefix VARCHAR)