answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "saros" FROM table_204_206 WHERE "date" = 'july 30, 2307' | how long did the the saros on july 30 , 2307 last for ? | CREATE TABLE table_204_206 (
id number,
"saros" number,
"member" number,
"date" text,
"time\n(greatest)\nutc" text,
"type" text,
"location\nlat,long" text,
"gamma" number,
"mag." number,
"width\n(km)" number,
"duration\n(min:sec)" text,
"ref" number
) |
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12" | Who was the winner of Stage 12 with a Points Classification of Francesco Moser? | CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) |
SELECT MAX(combo) FROM table_18676973_3 WHERE rank = "3" | When 3 is the rank what is the highest combo? | CREATE TABLE table_18676973_3 (combo INTEGER, rank VARCHAR) |
SELECT COUNT(profit__loss__before_tax__) AS £m_ FROM table_name_47 WHERE year_ended = "2011" AND net_profit__£m_ > 123.8 | In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million? | CREATE TABLE table_name_47 (
profit__loss__before_tax__ VARCHAR,
year_ended VARCHAR,
net_profit__£m_ VARCHAR
) |
SELECT stage FROM table_name_51 WHERE winner = "bernard hinault" AND points_classification = "francesco moser" | Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser? | CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR) |
SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12" | When 12 is the rank who is the most recent cyclist? | CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR) |
SELECT "Tie no" FROM table_50007 WHERE "Away team" = 'newcastle united' | What was the tie number for the round against visiting opponent Newcastle United? | CREATE TABLE table_50007 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971 | Who was the loser on December 12, 1971? | CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR) |
SELECT MAX(different_holders) FROM table_18676973_3 WHERE jerseys = 155 | When 155 is the jersey what is the highest amount of different holders? | CREATE TABLE table_18676973_3 (different_holders INTEGER, jerseys VARCHAR) |
SELECT "Date" FROM table_39483 WHERE "Margin of victory" = '1 stroke' AND "Tournament" = 'colonial national invitation' | What day was the margin of victory 1 stroke when the tournament was colonial national invitation? | CREATE TABLE table_39483 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) |
SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 | Who was the loser at Municipal Stadium after 1970? | CREATE TABLE table_name_96 (loser VARCHAR, location VARCHAR, year VARCHAR) |
SELECT upper_index_kcal__nm_3 FROM table_1868929_1 WHERE lower_index_mj__nm_3 = "62.47" | Name the upper index kcal/nm3 for 62.47 | CREATE TABLE table_1868929_1 (upper_index_kcal__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR) |
SELECT "Date" FROM table_70319 WHERE "Field" = 'hofstra stadium' | What days were games played at Hofstra Stadium? | CREATE TABLE table_70319 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
) |
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders" | What is the date where the winner was the Oakland Raiders in 1975? | CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR) |
SELECT fuel_gas FROM table_1868929_1 WHERE upper_index_mj__nm_3 = "92.32" | Name the fuel gas for upper index mj/nm3 for 92.32 | CREATE TABLE table_1868929_1 (fuel_gas VARCHAR, upper_index_mj__nm_3 VARCHAR) |
SELECT "Score" FROM table_79135 WHERE "Opponent" = 'houston texans' | What score has houston texans as the opponent? | CREATE TABLE table_79135 (
"Date" text,
"Result" text,
"Score" text,
"Opponent" text,
"Record" text,
"Attendance" text
) |
SELECT result FROM table_name_23 WHERE location = "arrowhead stadium" AND loser = "kansas city chiefs" | What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs? | CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, loser VARCHAR) |
SELECT lower_index_kcal__nm_3 FROM table_1868929_1 WHERE upper_index_mj__nm_3 = "61.32" | Name the lower index kcal/ nm3 for 61.32 | CREATE TABLE table_1868929_1 (lower_index_kcal__nm_3 VARCHAR, upper_index_mj__nm_3 VARCHAR) |
SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 6 | What is the highest rank of the day with a gross of $38,916 and more than 6 screens? | CREATE TABLE table_name_27 (
rank INTEGER,
gross VARCHAR,
screens VARCHAR
) |
SELECT work FROM table_name_54 WHERE category = "best movie" | What was nominated for the Best Movie category? | CREATE TABLE table_name_54 (work VARCHAR, category VARCHAR) |
SELECT qb_rating FROM table_18686317_1 WHERE comp__percentage = "62.0" | What is the Quarterback rating of the player who got a comp percentage of 62.0? | CREATE TABLE table_18686317_1 (qb_rating VARCHAR, comp__percentage VARCHAR) |
SELECT Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name | For those products with a price between 60 and 120, visualize a bar chart about the distribution of name and manufacturer , and could you order in ascending by the x-axis? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT award FROM table_name_27 WHERE work = "scream" AND year = 1997 | Which award did Scream receive a nomination and/or win for in 1997? | CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year VARCHAR) |
SELECT rank FROM table_18686317_1 WHERE yardage = 58179 | What is the rank of the player who got 58179 in yardage? | CREATE TABLE table_18686317_1 (rank VARCHAR, yardage VARCHAR) |
SELECT date FROM table_12262182_2 WHERE titles = "WBC Flyweight (112)" | What is the date of the match for the wbc flyweight (112) title? | CREATE TABLE table_12262182_2 (
date VARCHAR,
titles VARCHAR
) |
SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild" | What category was Scream nominated for at the International Horror Guild? | CREATE TABLE table_name_52 (category VARCHAR, work VARCHAR, award VARCHAR) |
SELECT leagues FROM table_18686317_1 WHERE comp__percentage = "54.0" | In which league would you find the player with a comp percentage of 54.0? | CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR) |
SELECT Result, COUNT(Result) FROM music_festival GROUP BY Result ORDER BY COUNT(Result) | Please give me a bar chart to show the distribution of results of all music festival, and display by the Y-axis from low to high. | CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
V... |
SELECT time_retired FROM table_name_35 WHERE laps < 54 AND driver = "mark donohue" | what is the time/retired when the laps is less than 54 and the driver is mark donohue? | CREATE TABLE table_name_35 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT nation FROM table_18666752_3 WHERE rider = "Phillip Dutton" | Which nation is where rider phillip dutton from? | CREATE TABLE table_18666752_3 (nation VARCHAR, rider VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" | provide the number of patients whose gender is f and primary disease is brain mass;intracranial hemorrhage? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 | what is the grid when the driver is mario andretti and the laps is less than 54? | CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT nation FROM table_18666752_3 WHERE horse = "Parkmore Ed" | Which nation is where the horse parkmore ed is? | CREATE TABLE table_18666752_3 (nation VARCHAR, horse VARCHAR) |
SELECT points FROM table_name_90 WHERE year = 2005 | How many points did the 2005 1st place team receive? | CREATE TABLE table_name_90 (
points VARCHAR,
year VARCHAR
) |
SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24 | how many laps were there when the grid was 24? | CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) |
SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40" | How many total team penalties are there when cross country penalties is 30.40? | CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR) |
SELECT yearid, COUNT(yearid) FROM hall_of_fame ORDER BY yearid DESC | I want to see trend of the number of yearid by yearid, and I want to show in desc by the X. | CREATE TABLE team_franchise (
franchise_id TEXT,
franchise_name TEXT,
active TEXT,
na_assoc TEXT
)
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
... |
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni" | what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni? | CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT rider FROM table_18666752_3 WHERE horse = "Galan De Sauvagere" | Who is the rider where the horse is galan de sauvagere? | CREATE TABLE table_18666752_3 (rider VARCHAR, horse VARCHAR) |
SELECT "Nationality" FROM table_65201 WHERE "Time" = '1:08.80' | What is the Nationality of the swimmer with a Time of 1:08.80? | CREATE TABLE table_65201 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323" | Which class is smaller than 5 and the GWR is 1322–1323? | CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR) |
SELECT COUNT(total_penalties) FROM table_18666752_3 WHERE rider = "Eric Vigeanel" | How many penalties are there when Eric Vigeanel is the rider? | CREATE TABLE table_18666752_3 (total_penalties VARCHAR, rider VARCHAR) |
SELECT "Equipment" FROM table_21163 WHERE "Bike No" = '6' | Name the equipment for bike number 6 | CREATE TABLE table_21163 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
) |
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996 | Whose term expired in 1996 and was from the province of Central Highlands? | CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR) |
SELECT record_label FROM table_18710512_3 WHERE single = "I Can't Stay" | What record label corresponds to the single "I can't stay"? | CREATE TABLE table_18710512_3 (record_label VARCHAR, single VARCHAR) |
SELECT race_2 FROM table_name_40 WHERE race_4 = "28" | What is Race 2, when Race 4 is 28? | CREATE TABLE table_name_40 (
race_2 VARCHAR,
race_4 VARCHAR
) |
SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright" | Ken Wright of the National Party was from which province? | CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR) |
SELECT format FROM table_18710512_3 WHERE other_details = "2000 copies" | What format for the release that had 2000 copies? | CREATE TABLE table_18710512_3 (format VARCHAR, other_details VARCHAR) |
SELECT AVG("Games") FROM table_39857 WHERE "Rank" > '2' AND "Team" = 'olympiacos' AND "Points" > '113' | What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113? | CREATE TABLE table_39857 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
) |
SELECT venue FROM table_name_20 WHERE year = 1967 | Which venue hosted a race in 1967? | CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR) |
SELECT single FROM table_18710512_3 WHERE date = 2008 AND other_details = "4000 copies" | What single(s) released in 2008 and had 4000 copies? | CREATE TABLE table_18710512_3 (single VARCHAR, date VARCHAR, other_details VARCHAR) |
SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name | A pie chart for what are the number of the names of all the Japanese constructors that have earned more than 5 points? | CREATE TABLE races (
raceId INTEGER,
year INTEGER,
round INTEGER,
circuitId INTEGER,
name TEXT,
date TEXT,
time TEXT,
url TEXT
)
CREATE TABLE seasons (
year INTEGER,
url TEXT
)
CREATE TABLE status (
statusId INTEGER,
status TEXT
)
CREATE TABLE constructorStandings (
... |
SELECT tournament FROM table_name_73 WHERE year > 1966 | Which tournament was held after 1966? | CREATE TABLE table_name_73 (tournament VARCHAR, year INTEGER) |
SELECT other_details FROM table_18710512_3 WHERE single = "My Love Will Follow Me" | What were the "other details" (number released) for "is my love will follow me"? | CREATE TABLE table_18710512_3 (other_details VARCHAR, single VARCHAR) |
SELECT "High points" FROM table_50277 WHERE "Team" = 'utah' | What are Utah's high points? | CREATE TABLE table_50277 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT venue FROM table_name_78 WHERE year = 1965 | Which venue hosted a tournament in 1965? | CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR) |
SELECT date FROM table_18710512_3 WHERE single = "Moped Girls" | What year was "moped girls" released? | CREATE TABLE table_18710512_3 (date VARCHAR, single VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "NEWBORN" AND lab.fluid = "Ascites" | give me the number of newborn patients whose lab test fluid is ascites. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT result FROM table_name_17 WHERE nominee = "best new musical" | What is the result for the best new musical nominee? | CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR) |
SELECT MIN(losses) FROM table_18703133_1 WHERE points = 23 | Name the least amount of losses for 23 points | CREATE TABLE table_18703133_1 (losses INTEGER, points VARCHAR) |
SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.SSN JOIN stay AS T3 ON T1.Stay = T3.StayID WHERE T3.room = 111 | Find the names of all patients who have an undergoing treatment and are staying in room 111. | CREATE TABLE patient (
name VARCHAR,
SSN VARCHAR
)
CREATE TABLE undergoes (
patient VARCHAR,
Stay VARCHAR
)
CREATE TABLE stay (
StayID VARCHAR,
room VARCHAR
) |
SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker" | How many years does simon baker appear as a nominee? | CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR) |
SELECT MAX(wins) FROM table_18703133_1 WHERE team = "Sport Colombia" | Name the most wins for sport colombia | CREATE TABLE table_18703133_1 (wins INTEGER, team VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE (LOWER(Location) LIKE '%poland%' OR UPPER(Location) LIKE '%POLAND%' OR Location LIKE '%Poland%') AND Reputation >= 1000 AND Id IN (SELECT OwnerUserId FROM Posts WHERE LOWER(Tags) LIKE '%node.js%') ORDER BY Reputat... | Top Node.JS dev in Poland. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
I... |
SELECT height_in_ft FROM table_name_44 WHERE years_for_rockets = "2005-06" | What is the Height for Years of Rockets of 2005-06? | CREATE TABLE table_name_44 (height_in_ft VARCHAR, years_for_rockets VARCHAR) |
SELECT COUNT(played) FROM table_18703133_1 WHERE losses = 5 | Namr the total number of played for 5 losses | CREATE TABLE table_18703133_1 (played VARCHAR, losses VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE airport.airport_code = 'MKE' AND city.city_code = airport_service.city_code AND flight.from_airport = airport_service.airport_code AND flight.to_airport = airport.airport_code | list all the arriving flights at MKE | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_lo... |
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06" | What is the Height for Years for Rockets of 2005-06? | CREATE TABLE table_name_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR) |
SELECT MIN(scored) FROM table_18703133_6 WHERE position = 6 | What is scored with the position of 6? | CREATE TABLE table_18703133_6 (scored INTEGER, position VARCHAR) |
SELECT away_team FROM table_name_69 WHERE venue = "windy hill" | Who is the away team at Windy Hill? | CREATE TABLE table_name_69 (
away_team VARCHAR,
venue VARCHAR
) |
SELECT attendance FROM table_name_99 WHERE date = "august 15" | What is the Attendance on august 15? | CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR) |
SELECT losses FROM table_18703133_6 WHERE team = "Tembetary" | How many losses are there for team tembetary? | CREATE TABLE table_18703133_6 (losses VARCHAR, team VARCHAR) |
SELECT date FROM table_name_88 WHERE record = "30-31" | On what day was the record 30-31? | CREATE TABLE table_name_88 (
date VARCHAR,
record VARCHAR
) |
SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell" | What is the constructor for the race with Nigel Mansell as the fastest lap? | CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR) |
SELECT wins FROM table_18703133_6 WHERE points = 24 | How many wins have 24 points? | CREATE TABLE table_18703133_6 (wins VARCHAR, points VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2121" AND diagnoses.long_title = "Personal history of transient ischemic attack (TIA), and cerebral infarction without residual deficits" | how many patients whose admission year is less than 2121 and diagnoses long title is personal history of transient ischemic attack (tia), and cerebral infarction without residual deficits? | 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 demographic ... |
SELECT fastest_lap FROM table_name_82 WHERE location = "estoril" | What is the fastest lap at estoril? | CREATE TABLE table_name_82 (fastest_lap VARCHAR, location VARCHAR) |
SELECT MAX(wins) FROM table_18703133_6 | How many wins? | CREATE TABLE table_18703133_6 (wins INTEGER) |
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 = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS V... | what flights are there from NEW YORK to LAS VEGAS | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
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 TA... |
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard" | What is the race in Paul Ricard with Keke Rosberg as the fastest lap? | CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT original_air_date FROM table_18712423_3 WHERE directed_by = "Ian Barry" AND written_by = "Philip Dalkin" | What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin? | CREATE TABLE table_18712423_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT record FROM table_name_9 WHERE game > 15 AND opponent = "edmonton oilers" | Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers? | CREATE TABLE table_name_9 (
record VARCHAR,
game VARCHAR,
opponent VARCHAR
) |
SELECT race AS Winner FROM table_name_99 WHERE location = "spa-francorchamps" | Who was the winner at spa-francorchamps? | CREATE TABLE table_name_99 (race VARCHAR, location VARCHAR) |
SELECT MIN(series_episode) FROM table_18712423_3 WHERE viewers__millions_ = "1.215" | What is the show episode number of the episode that reached 1.215 millions views? | CREATE TABLE table_18712423_3 (series_episode INTEGER, viewers__millions_ VARCHAR) |
SELECT "plant name" FROM table_204_614 WHERE id = 1 | which plant is listed first ? | CREATE TABLE table_204_614 (
id number,
"date announced" text,
"plant name" text,
"location" text,
"date of closing" text,
"products" text,
"employees" number
) |
SELECT venue FROM table_name_11 WHERE result = "7-2" | Where was the game with result 7-2 played? | CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR) |
SELECT directed_by FROM table_18712423_3 WHERE written_by = "Matt Ford" | Who directed the episode written by Matt Ford? | CREATE TABLE table_18712423_3 (directed_by VARCHAR, written_by VARCHAR) |
SELECT * FROM table_train_149 WHERE fasting_serum_glucose > 300 | fasting serum glucose > 300 mg / dl at screening; a single repeat test is allowable. | CREATE TABLE table_train_149 (
"id" int,
"prostate_specific_antigen_psa" float,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"fasting_serum_glucose" int,
"vitamin_d" int,
"NOUSE" float
) |
SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2" | What was the score of the Friendly competition where the result was 7-2? | CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR) |
SELECT COUNT(players_left_after_round_1) FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers" | How many times was team 1 the wykeham wonderers? | CREATE TABLE table_18733480_1 (players_left_after_round_1 VARCHAR, team_1 VARCHAR) |
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-42654') AND NOT patient.unitdischargetime IS... | give me the total amount of output of patient 028-42654 on the last icu visit. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodi... |
SELECT score FROM table_name_15 WHERE date = "27 january 1996" | What was the score of the game on 27 January 1996? | CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR) |
SELECT air_date FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers" | What is the original air date that had the wykeham wonderers as team 1? | CREATE TABLE table_18733480_1 (air_date VARCHAR, team_1 VARCHAR) |
SELECT "Team" FROM table_68240 WHERE "Best" = '58.846' | Name the team with best of 58.846 | CREATE TABLE table_68240 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) |
SELECT competition FROM table_name_40 WHERE result = "3-2" | What is the event with a result of 3-2? | CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR) |
SELECT team_1 FROM table_18733480_1 WHERE team_2 = "Chalkheads" | Who was team 1 when the chalkheads were team 2? | CREATE TABLE table_18733480_1 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT "Notes" FROM table_66139 WHERE "Time" = '6:05.21' | what is the notes for the time 6:05.21? | CREATE TABLE table_66139 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) |
SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval" | How big was the crowd size, at the Junction Oval venue? | CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR) |
SELECT title FROM table_18734298_1 WHERE production_code = "1ACX09" | What is the title of the production code 1acx09? | CREATE TABLE table_18734298_1 (title VARCHAR, production_code VARCHAR) |
SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-584' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) ORDER BY patient.unitadmittime DESC LIMIT 1 | what was patient 029-584's last id of the ward when they came to the hospital first 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 diagnosis (
diagn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.