answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Country" FROM table_44390 WHERE "Score" = '71' | From what country did someone score 71? | CREATE TABLE table_44390 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) |
SELECT COUNT(grid) FROM table_name_18 WHERE time_retired = "+9 laps" AND laps > 91 | what is the grid when the time/retired is +9 laps and the laps is larger than 91? | CREATE TABLE table_name_18 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) |
SELECT date FROM table_18847736_2 WHERE opponent = "New England Patriots" | What is the date when the opponent is the New England Patriots? | CREATE TABLE table_18847736_2 (date VARCHAR, opponent VARCHAR) |
SELECT "Score" FROM table_72033 WHERE "Record" = '18–43' | What was the score of the game when the record was 18 43? | CREATE TABLE table_72033 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT MIN(grid) FROM table_name_88 WHERE time_retired = "clutch" AND driver = "peter collins" AND laps < 26 | what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26? | CREATE TABLE table_name_88 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR) |
SELECT date FROM table_18847736_2 WHERE dolphins_points = 6 | How many dates do the dolphins have 6 points? | CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2108" AND lab.itemid = "50998" | count the number of patients whose admission year is less than 2108 and item id is 50998? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT zone FROM table_name_41 WHERE camp_type = "d/s" AND area = "bl9" | What zone has camp type D/S in area Bl9? | CREATE TABLE table_name_41 (zone VARCHAR, camp_type VARCHAR, area VARCHAR) |
SELECT country FROM table_18862490_2 WHERE player = "Robert Allenby" | What country does robert allenby represent? | CREATE TABLE table_18862490_2 (country VARCHAR, player VARCHAR) |
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26156 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label ... | exactly what has the change in the anion gap of patient 26156 last measured on the first hospital visit compared to the value first measured on the first hospital visit? | 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime t... |
SELECT name FROM table_name_51 WHERE group_s_ = 0 AND area = "bl4" | Which name has group 0 in Bl4 area? | CREATE TABLE table_name_51 (name VARCHAR, group_s_ VARCHAR, area VARCHAR) |
SELECT to_par FROM table_18862490_2 WHERE year = 1998 | What score to par won in 1998? | CREATE TABLE table_18862490_2 (to_par VARCHAR, year VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2180" AND diagnoses.icd9_code = "3671" | how many patients admitted to the hospital before year 2180 had the diagnosis icd9 code 3671? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... |
SELECT zone FROM table_name_80 WHERE max_people > 23 AND group_s_ < 2 AND name = "robbers roost" | Which zone has max capacity of 23 in a group under 2 at Robbers Roost? | CREATE TABLE table_name_80 (zone VARCHAR, name VARCHAR, max_people VARCHAR, group_s_ VARCHAR) |
SELECT player FROM table_18862490_2 WHERE score = 64 - 70 - 67 - 69 = 270 | What player(s) had the score of 64-70-67-69=270? | CREATE TABLE table_18862490_2 (player VARCHAR, score VARCHAR) |
SELECT "Total" FROM table_6507 WHERE "Player" = 'robbie winters' | What is the Total with a Player named robbie winters? | CREATE TABLE table_6507 (
"Position" text,
"Player" text,
"Premiership" text,
"Norwegian Cup" text,
"UEFA" text,
"Total" text
) |
SELECT AVG(crowd) FROM table_name_43 WHERE away_team = "melbourne" | I want to know the average crowd for away team of melbourne | CREATE TABLE table_name_43 (crowd INTEGER, away_team VARCHAR) |
SELECT player FROM table_18862490_2 WHERE score = 64 - 71 - 67 - 67 = 269 | What players had teh score of 64-71-67-67=269? | CREATE TABLE table_18862490_2 (player VARCHAR, score VARCHAR) |
SELECT region FROM table_name_58 WHERE date = "1970" | Which region has a date of 1970? | CREATE TABLE table_name_58 (
region VARCHAR,
date VARCHAR
) |
SELECT driver FROM table_name_39 WHERE time_retired = "off course" | Which driver had a time off course? | CREATE TABLE table_name_39 (driver VARCHAR, time_retired VARCHAR) |
SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273 | What is the first yar that someone won with a score of 68-66-68-71=273? | CREATE TABLE table_18862490_2 (year INTEGER, score VARCHAR) |
SELECT SUM("To par") FROM table_13194 WHERE "Score" = '76-77-74-75=302' | What is the sum of the to par with a 76-77-74-75=302 score? | CREATE TABLE table_13194 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
) |
SELECT MAX(laps) FROM table_name_9 WHERE grid = "2" AND points > 26 | What is the top lap that had 2 grids and more than 26 points? | CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, points VARCHAR) |
SELECT COUNT(socialist) FROM table_1886589_1 WHERE lead = "12.6%" | How many socialist have a lead of 12.6%? | CREATE TABLE table_1886589_1 (socialist VARCHAR, lead VARCHAR) |
SELECT away_team FROM table_name_28 WHERE tie_no = "3" | Which away team has a tie number of 3? | CREATE TABLE table_name_28 (
away_team VARCHAR,
tie_no VARCHAR
) |
SELECT MAX(laps) FROM table_name_38 WHERE grid = "6" AND points > 19 | What is the top lap that had 6 grids and more than 19 points? | CREATE TABLE table_name_38 (laps INTEGER, grid VARCHAR, points VARCHAR) |
SELECT MIN(SOl) FROM table_1888157_1 | What is the lowest SOL? | CREATE TABLE table_1888157_1 (SOl INTEGER) |
SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'cholesterol, total') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51177) AND STRFTIME('%y-%m', labevents.charttime) >= '2103-02' OR... | when did patient 51177 receive a test for cholesterol, total for the last time since 02/2103? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
... |
SELECT AVG(points) FROM table_name_30 WHERE driver = "tristan gommendy" | What is the average point count for tristan gommendy? | CREATE TABLE table_name_30 (points INTEGER, driver VARCHAR) |
SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39 | What is the highest GA when GF is 39? | CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR) |
SELECT "Level" FROM table_26216 WHERE "Artist 1" = 'Marvin Gaye' AND "Artist 2" = 'David Bowie' | Which level has marvin gaye as artist 1 and david bowie as artist 2? | CREATE TABLE table_26216 (
"Song 1 title" text,
"Artist 1" text,
"Song 2 title" text,
"Artist 2" text,
"Mix artist" text,
"Guitar part?" text,
"Level" text
) |
SELECT MIN(points) FROM table_name_88 WHERE grid = "2" | What is the point low with 2 grids? | CREATE TABLE table_name_88 (points INTEGER, grid VARCHAR) |
SELECT COUNT(record) FROM table_18904831_5 WHERE score = "W 70-66" | How many different records were there in the games that ended in w 70-66? | CREATE TABLE table_18904831_5 (record VARCHAR, score VARCHAR) |
SELECT album FROM table_name_50 WHERE label = "hammer music / nail records" AND year = 2012 | What's the name of the album from 2012 with a Hammer Music / Nail Records label? | CREATE TABLE table_name_50 (
album VARCHAR,
label VARCHAR,
year VARCHAR
) |
SELECT dismissals FROM table_name_43 WHERE venue = "source: cricinfo.com" | What is the Dismissals with a Venue with source: cricinfo.com? | CREATE TABLE table_name_43 (dismissals VARCHAR, venue VARCHAR) |
SELECT record FROM table_18904831_5 WHERE high_rebounds = "Dydek (10)" | What was the record of the game in which Dydek (10) did the most high rebounds? | CREATE TABLE table_18904831_5 (record VARCHAR, high_rebounds VARCHAR) |
SELECT COUNT("Platform") FROM table_30343 WHERE "Mystic Arte" = 'Celsius Calibur' | How many platforms have celsius calibur as mystic arte? | CREATE TABLE table_30343 (
"Character" text,
"Game" text,
"Platform" text,
"Status" text,
"Mystic Arte" text,
"Character Voice" text
) |
SELECT versus FROM table_name_37 WHERE player = "ko otieno" AND venue = "bloemfontein" | What is the Versus with a Player with ko otieno, with Venue with bloemfontein? | CREATE TABLE table_name_37 (versus VARCHAR, player VARCHAR, venue VARCHAR) |
SELECT high_rebounds FROM table_18904831_5 WHERE high_points = "Sales (17)" | Who did the most high rebounds in the game where Sales (17) did the high points? | CREATE TABLE table_18904831_5 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT position FROM table_name_74 WHERE nationality = "united states" AND player = "brett lawrence" | What is the position of United States' player Brett Lawrence? | CREATE TABLE table_name_74 (
position VARCHAR,
nationality VARCHAR,
player VARCHAR
) |
SELECT venue FROM table_name_22 WHERE date = "27-02-2003" | What is the Venue with a Date with 27-02-2003? | CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR) |
SELECT total_footage_remaining_from_missing_episodes__mm AS :ss_ FROM table_1889619_5 WHERE story_no = "018" AND source = "Private individual" | When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)? | CREATE TABLE table_1889619_5 (total_footage_remaining_from_missing_episodes__mm VARCHAR, story_no VARCHAR, source VARCHAR) |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c... | what 's the fare from WASHINGTON to BOSTON | CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varcha... |
SELECT player FROM table_name_34 WHERE versus = "australia" | What is the Player with Versus with australia? | CREATE TABLE table_name_34 (player VARCHAR, versus VARCHAR) |
SELECT country_territory FROM table_1889619_5 WHERE story_no = "032" AND missing_episodes_with_recovered_footage = "Episode 4" | When episode 4 is the missing episode with recovered footage and the 032 is the story number what is the country/territory? | CREATE TABLE table_1889619_5 (country_territory VARCHAR, story_no VARCHAR, missing_episodes_with_recovered_footage VARCHAR) |
SELECT stuid FROM sportsinfo GROUP BY stuid HAVING SUM(hoursperweek) > 10 | What are the student IDs for everybody who worked for more than 10 hours per week on all sports? | CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperw... |
SELECT player FROM table_name_31 WHERE date = "12-03-2003" | What is the Player with a Date with 12-03-2003? | CREATE TABLE table_name_31 (player VARCHAR, date VARCHAR) |
SELECT MIN(game) FROM table_18894744_5 WHERE record = "8-3" | Name the least game for 8-3 | CREATE TABLE table_18894744_5 (game INTEGER, record VARCHAR) |
SELECT away_team AS score FROM table_name_76 WHERE home_team = "fitzroy" | When fitzroy was the home team, how much did the away team score? | CREATE TABLE table_name_76 (
away_team VARCHAR,
home_team VARCHAR
) |
SELECT dismissals FROM table_name_67 WHERE player = "source: cricinfo.com" | What is the Dismissals with a Player with source: cricinfo.com? | CREATE TABLE table_name_67 (dismissals VARCHAR, player VARCHAR) |
SELECT opponent FROM table_18894744_5 WHERE record = "10-4" | Name the opponent for record 10-4 | CREATE TABLE table_18894744_5 (opponent VARCHAR, record VARCHAR) |
SELECT date FROM table_15412381_5 WHERE wheels = 279 | What is the date of the 279 wheels? | CREATE TABLE table_15412381_5 (
date VARCHAR,
wheels VARCHAR
) |
SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scorer = "ricky davis (23)" | What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)? | CREATE TABLE table_name_76 (attendance VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) |
SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-1" | Name the high rebounds for record 7-1 | CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR) |
SELECT "Venue" FROM table_6059 WHERE "Opposition" = 'surrey' AND "Wicket" = '2nd' | In what Venue was Surrey the Opposition in the 2nd Wicket? | CREATE TABLE table_6059 (
"Wicket" text,
"Score" real,
"Batting partners" text,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
) |
SELECT visitor FROM table_name_80 WHERE home = "miami" AND date = "november 4" | Which Visitor was there when the Home game was played in Miami on November 4? | CREATE TABLE table_name_80 (visitor VARCHAR, home VARCHAR, date VARCHAR) |
SELECT game FROM table_18894744_5 WHERE date = "June 16" | Name the game for june 16 | CREATE TABLE table_18894744_5 (game VARCHAR, date VARCHAR) |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.days_stay = "5" | what is average age of patients whose primary disease is squamous cell carcinoma oral tongue/sda and days of hospital stay is 5? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
... |
SELECT nationality FROM table_name_1 WHERE player = "demetris nichols" | What nationality is Demetris Nichols? | CREATE TABLE table_name_1 (nationality VARCHAR, player VARCHAR) |
SELECT game FROM table_18894744_5 WHERE date = "June 7" | Name the game for june 7 | CREATE TABLE table_18894744_5 (game VARCHAR, date VARCHAR) |
SELECT high_points FROM table_17355408_7 WHERE team = "@ Chicago" | @ Chicago had a high points of what? | CREATE TABLE table_17355408_7 (
high_points VARCHAR,
team VARCHAR
) |
SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42 | What school or team has round of 2 with less than 42 picks? | CREATE TABLE table_name_50 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR) |
SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-6" | Who did the high rebounds in the game with a 19-6 record? | CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR) |
SELECT MAX(lane) FROM table_name_99 WHERE athlete = "david payne" AND time > 13.17 | What is the greatest lane that David Payne was in when he ran longer than 13.17? | CREATE TABLE table_name_99 (
lane INTEGER,
athlete VARCHAR,
time VARCHAR
) |
SELECT position FROM table_name_86 WHERE round < 2 | What position has round less than 2? | CREATE TABLE table_name_86 (position VARCHAR, round INTEGER) |
SELECT location_attendance FROM table_18894744_6 WHERE record = "13-5" | Where was the game with a 13-5 record played, and in front of how many people? | CREATE TABLE table_18894744_6 (location_attendance VARCHAR, record VARCHAR) |
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS Rank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInTimePeriod, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostI... | Most popular StackOverflow tags from 2020-1-18 to 2013-1-18. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description t... |
SELECT venue FROM table_name_92 WHERE home_team = "essendon" | In what venue is Essendon the home team? | CREATE TABLE table_name_92 (venue VARCHAR, home_team VARCHAR) |
SELECT high_rebounds FROM table_18894744_6 WHERE high_points = "Douglas (28)" | Who did the high rebounds in the game where Douglas (28) did the high points? | CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT COUNT("name") FROM table_204_577 | what is the number of names listed ? | CREATE TABLE table_204_577 (
id number,
"name" text,
"first operational" text,
"numeral system" text,
"computing mechanism" text,
"programming" text,
"turing complete" text
) |
SELECT away_team FROM table_name_59 WHERE venue = "windy hill" | Who was the away team when the venue was Windy Hill? | CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR) |
SELECT record FROM table_18894744_6 WHERE date = "July 1" | What was the record on the game played on July 1? | CREATE TABLE table_18894744_6 (record VARCHAR, date VARCHAR) |
SELECT MAX("Enrollment") FROM table_12337 WHERE "Nickname" = 'golden bears' AND "NCAA Team Championships (through July 4, 2012)" < '32' | What is the highest enrollment for an unversity whose nickname is the Golden Bears and had fewer than 32 NCAA championships as of July 4, 2012? | CREATE TABLE table_12337 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text,
"NCAA Team Championships (through July 4, 2012)" real
) |
SELECT away_team AS score FROM table_name_56 WHERE away_team = "hawthorn" | What was the score for Hawthorn when they were the away team? | CREATE TABLE table_name_56 (away_team VARCHAR) |
SELECT COUNT(opponent) FROM table_18894744_6 WHERE record = "17-6" | How many opponents was a game with a record 17-6 played against? | CREATE TABLE table_18894744_6 (opponent VARCHAR, record VARCHAR) |
SELECT customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY customer_last_name DESC | How many accounts for each customer? Show a bar chart that groups by customer's last name, sort in descending by the customer_last_name please. | CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER,
product_quantity VARCHAR(50),
other_order_item_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
date_account_opened DATETIME,
account_name VARCHAR(50),
... |
SELECT method FROM table_name_56 WHERE res = "win" AND opponent = "natsuko kikukawa" | What method was used that had a resulting win against opponent, Natsuko Kikukawa? | CREATE TABLE table_name_56 (method VARCHAR, res VARCHAR, opponent VARCHAR) |
SELECT career FROM table_18914438_1 WHERE matches = 60 | What was the career duration of the bowler who played 60 matches? | CREATE TABLE table_18914438_1 (career VARCHAR, matches VARCHAR) |
SELECT "French Title" FROM table_2976 WHERE "Date of Publication" = '1968' | What was the French title of the story published in 1968? | CREATE TABLE table_2976 (
"French Title" text,
"Date of Publication" real,
"English Translation" text,
"Writer" text,
"Artist" text
) |
SELECT MAX(round) FROM table_name_85 WHERE opponent = "hikaru shinohara" AND record = "11-7" | What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7? | CREATE TABLE table_name_85 (round INTEGER, opponent VARCHAR, record VARCHAR) |
SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = "2755.1" | What is the Best score if the Maidens is 547 and Overs is 2755.1? | CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR) |
SELECT "Manufacturer" FROM table_68368 WHERE "Rider" = 'shoya tomizawa' | Which manufacturer made Shoya Tomizawa's motorcycle? | CREATE TABLE table_68368 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT method FROM table_name_70 WHERE record = "11-10" | Which method has a record of 11-10? | CREATE TABLE table_name_70 (method VARCHAR, record VARCHAR) |
SELECT overs FROM table_18914438_1 WHERE career = "1993-2007" | What was the Overs score of the career played from 1993-2007? | CREATE TABLE table_18914438_1 (overs VARCHAR, career VARCHAR) |
SELECT "Status" FROM table_28180 WHERE "Juniors" = 'Baby Olympians' | What status of school is the school represented by the baby olympians? | CREATE TABLE table_28180 (
"Institution" text,
"Seniors" text,
"Juniors" text,
"Women" text,
"Status" text,
"Founded" real,
"Affiliation (Population)" text,
"Color" text,
"Location" text
) |
SELECT win__number FROM table_name_67 WHERE season = "2004-05" | How many wins were there in 2004-05? | CREATE TABLE table_name_67 (win__number VARCHAR, season VARCHAR) |
SELECT best FROM table_18914438_1 WHERE career = "1971-1984" | What was the Best score during the game played from 1971-1984? | CREATE TABLE table_18914438_1 (best VARCHAR, career VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "REPLACE" | what is the number of patients with replaced route of drug administration? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... |
SELECT COUNT(win__number) FROM table_name_2 WHERE winner = "jim vivona" | How many times did jim vivona win? | CREATE TABLE table_name_2 (win__number VARCHAR, winner VARCHAR) |
SELECT date FROM table_18904831_6 WHERE high_rebounds = "Dydek (11)" | When dydek (11) has the highest rebounds what is the date? | CREATE TABLE table_18904831_6 (date VARCHAR, high_rebounds VARCHAR) |
SELECT "crown entities" FROM table_204_988 WHERE id = (SELECT id FROM table_204_988 WHERE "crown entities" = 'takeovers panel') - 1 | what is the crown entity listed before the takeovers panel ? | CREATE TABLE table_204_988 (
id number,
"responsible minister(s)" text,
"crown entities" text,
"monitoring department(s)" text,
"category / type" text,
"empowering legislation" text
) |
SELECT position FROM table_name_1 WHERE team = "morristown minutemen" | Which position was morristown minutemen in? | CREATE TABLE table_name_1 (position VARCHAR, team VARCHAR) |
SELECT date FROM table_18904831_6 WHERE high_rebounds = "McWilliams-Franklin (8)" | When mcwilliams-franklin (8) has the highest rebounds what is the date? | CREATE TABLE table_18904831_6 (date VARCHAR, high_rebounds 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 = '011-57670')) AND intakeoutput.celllabel = 'urine... | what is the total amount of urine output patient 011-57670 has since 908 days ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... |
SELECT season FROM table_name_75 WHERE team = "harrisburg lunatics" | Which season was harrisburg lunatics in? | CREATE TABLE table_name_75 (season VARCHAR, team VARCHAR) |
SELECT high_points FROM table_18904831_6 WHERE high_rebounds = "Dydek (8)" | When dydek (8) has the highest rebounds who has the highest amount of points? | CREATE TABLE table_18904831_6 (high_points VARCHAR, high_rebounds VARCHAR) |
SELECT MAX(gold_medals) FROM table_1305623_12 WHERE ensemble = "Choctawhatchee High School" | How many gold medals does the Choctawhatchee High School have? | CREATE TABLE table_1305623_12 (
gold_medals INTEGER,
ensemble VARCHAR
) |
SELECT venue FROM table_name_8 WHERE round = "f" | What was the venue for Round f? | CREATE TABLE table_name_8 (venue VARCHAR, round VARCHAR) |
SELECT location FROM table_18904831_6 WHERE score = "W 73-70" | When w 73-70 is the score what is the location? | CREATE TABLE table_18904831_6 (location VARCHAR, score VARCHAR) |
SELECT burmese FROM table_14850099_18 WHERE cardinal_direction = "West" | What is the Burmese term associated with a cardinal direction of west? | CREATE TABLE table_14850099_18 (
burmese VARCHAR,
cardinal_direction VARCHAR
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.