answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2174" | count the number of inpatient hospital admission patients who were admitted before the year 2174. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT nat FROM table_name_76 WHERE app_l_c_e_ = "0 (0/0/0)" AND name = "yahaya" | What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)? | CREATE TABLE table_name_76 (nat VARCHAR, app_l_c_e_ VARCHAR, name VARCHAR) |
SELECT COUNT(owner) FROM table_14623167_1 WHERE branding = "Prairie Public" | Name the owners for prairie public | CREATE TABLE table_14623167_1 (owner VARCHAR, branding VARCHAR) |
SELECT record FROM table_name_81 WHERE round > 1 | What was his record when he went over 1 round? | CREATE TABLE table_name_81 (
record VARCHAR,
round INTEGER
) |
SELECT transfer_fee FROM table_name_61 WHERE app_l_c_e_ = "0 (0/0/0)" AND notes = "to anagennisi karditsa" | What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa? | CREATE TABLE table_name_61 (transfer_fee VARCHAR, app_l_c_e_ VARCHAR, notes VARCHAR) |
SELECT COUNT(class_aAA) FROM table_14630796_1 WHERE school_year = "2006-07" | Name the total number of class aaa for 2006-07 | CREATE TABLE table_14630796_1 (class_aAA VARCHAR, school_year VARCHAR) |
SELECT * FROM table_train_183 WHERE hemoglobin_a1c_hba1c < 12 | hba1c 12 % | CREATE TABLE table_train_183 (
"id" int,
"anemia" bool,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"panel_reactive_antibodies" int,
"NOUSE" float
) |
SELECT british_name FROM table_name_50 WHERE american_name = "sixteenth note" | what is the british name when the american name is sixteenth note? | CREATE TABLE table_name_50 (british_name VARCHAR, american_name VARCHAR) |
SELECT class_aAAA FROM table_14630796_1 WHERE class_a = "Menard" | Name the class aaaa for menard | CREATE TABLE table_14630796_1 (class_aAAA VARCHAR, class_a VARCHAR) |
SELECT SUM("Number of Jews (WJC)") FROM table_51949 WHERE "Metro area" = 'los angeles' AND "Rank (ARDA)" > '2' | How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2? | CREATE TABLE table_51949 (
"Rank ( WJC )" real,
"Rank (ARDA)" real,
"Metro area" text,
"Number of Jews (WJC)" real,
"Number of Jews (ASARB)" real
) |
SELECT value FROM table_name_23 WHERE british_name = "quaver" | what is the value when the british name is quaver? | CREATE TABLE table_name_23 (value VARCHAR, british_name VARCHAR) |
SELECT class_a FROM table_14630796_1 WHERE class_aAAA = Carthage | Name the class a for carthage | CREATE TABLE table_14630796_1 (class_a VARCHAR, class_aAAA VARCHAR, Carthage VARCHAR) |
SELECT original_air_date FROM table_21781578_2 WHERE season_no = 2 | What was the original air date for season number 2? | CREATE TABLE table_21781578_2 (
original_air_date VARCHAR,
season_no VARCHAR
) |
SELECT value FROM table_name_40 WHERE british_name = "maxima" | what is the value when the british name is maxima? | CREATE TABLE table_name_40 (value VARCHAR, british_name VARCHAR) |
SELECT original_title FROM table_14631909_1 WHERE english_title = "Europe for Dummies" | What is the original title of europe for dummies? | CREATE TABLE table_14631909_1 (original_title VARCHAR, english_title VARCHAR) |
SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = "Resident Evil 4" | Name the publisher for resident evil 4 | CREATE TABLE table_14325653_2 (
publisher_s_ VARCHAR,
video_game VARCHAR
) |
SELECT home_team FROM table_name_65 WHERE date = "28 january 1984" AND tie_no = "4" | What is Home Team, when Date is "28 January 1984", and when Tie No is "4"? | CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) |
SELECT english_title FROM table_14631909_1 WHERE author = "Mariusz Szczygieł" | What is the English version of Mariusz Szczygieł book? | CREATE TABLE table_14631909_1 (english_title VARCHAR, author VARCHAR) |
SELECT "Province" FROM table_16240 WHERE "GDP (2003, PPS in mil. \u20ac )" = '38355' | Which province has a gdp of 38355 million euros? | CREATE TABLE table_16240 (
"Province" text,
"Population (2004 estimate)" real,
"Area (km\u00b2)" real,
"Density" text,
"GDP (2003, PPS in mil. \u20ac )" real,
"GDP per cap. (2003, in \u20ac)" real
) |
SELECT date FROM table_name_2 WHERE away_team = "gillingham" | What is Date, when Away Team is "Gillingham"? | CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR) |
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10" | who is the the pole position with date being august 10 | CREATE TABLE table_14638077_2 (pole_position VARCHAR, date VARCHAR) |
SELECT "Nation" FROM table_13460 WHERE "Silver" > '4' AND "Gold" > '3' AND "Total" = '18' | What Nation has more than 4 silver, more than 3 gold and 18 total medals? | CREATE TABLE table_13460 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT home_team FROM table_name_30 WHERE date = "1 february 1984" AND tie_no = "5" | What is Home Team, when Date is "1 February 1984", and when Tie No is "5"? | CREATE TABLE table_name_30 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) |
SELECT COUNT(winning_team) FROM table_14638077_2 WHERE circuit = "Road America" | how many winning team with circuit being road america | CREATE TABLE table_14638077_2 (winning_team VARCHAR, circuit VARCHAR) |
SELECT Sex, COUNT(*) FROM Student WHERE Age > (SELECT AVG(Age) FROM Student) GROUP BY Sex ORDER BY Sex DESC | A bar chart about how many students are older than average for each gender?, and sort by the X-axis from high to low please. | CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGE... |
SELECT away_team FROM table_name_65 WHERE home_team = "sheffield wednesday" | What is Away Team, when Home Team is "Sheffield Wednesday"? | CREATE TABLE table_name_65 (away_team VARCHAR, home_team VARCHAR) |
SELECT winning_driver FROM table_14638077_2 WHERE pole_position = "Paul Tracy" AND race_name = "Miller Genuine Draft 200" | who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200 | CREATE TABLE table_14638077_2 (winning_driver VARCHAR, pole_position VARCHAR, race_name VARCHAR) |
SELECT "Adelaide" FROM table_68330 WHERE "Melbourne" = 'yes' AND "Auckland" = 'no' AND "Perth" = 'yes' | Which Adelaide's Melbourne and Perth were yes when Auckland was no? | CREATE TABLE table_68330 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) |
SELECT date FROM table_name_85 WHERE tie_no = "replay" AND away_team = "crystal palace" | What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"? | CREATE TABLE table_name_85 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR) |
SELECT pole_position FROM table_14638077_2 WHERE rnd = 16 | who is the the pole position with rnd being 16 | CREATE TABLE table_14638077_2 (pole_position VARCHAR, rnd VARCHAR) |
SELECT DISTINCT name FROM races ORDER BY name DESC | What are the different names of all the races in reverse alphabetical order? | CREATE TABLE circuits (
circuitid number,
circuitref text,
name text,
location text,
country text,
lat number,
lng number,
alt number,
url text
)
CREATE TABLE pitstops (
raceid number,
driverid number,
stop number,
lap number,
time text,
duration text,
mi... |
SELECT to_par FROM table_name_92 WHERE player = "tom kite" | What to par has tom kite as the player? | CREATE TABLE table_name_92 (to_par VARCHAR, player VARCHAR) |
SELECT race_name FROM table_14638077_2 WHERE date = "September 7" | what's the race name with date being september 7 | CREATE TABLE table_14638077_2 (race_name VARCHAR, date VARCHAR) |
SELECT "Chinese title" FROM table_374 WHERE "English title" = 'Forensic Heroes II' | what is the Chinese name for Forensic heroes ii? | CREATE TABLE table_374 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) |
SELECT player FROM table_name_65 WHERE finish = "t57" | What player has a t57 as the finish? | CREATE TABLE table_name_65 (player VARCHAR, finish VARCHAR) |
SELECT circuit FROM table_14638077_2 WHERE rnd = 5 | what's the circuit with rnd being 5 | CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR) |
SELECT AVG("Points") FROM table_54781 WHERE "Small Silver" > '9' AND "Club" = 'aik' AND "Bronze" > '8' | Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have? | CREATE TABLE table_54781 (
"Rank" real,
"Club" text,
"Gold" real,
"Big Silver" real,
"Small Silver" real,
"Bronze" real,
"Points" real
) |
SELECT MIN(total) FROM table_name_81 WHERE year_s__won = "1992" | What is the lowest total that has 1992 as the year (s) won? | CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR) |
SELECT COUNT(_number_appearances) FROM table_1463332_2 WHERE most_recent_final = "1999, beat Genk 3-1" | What is the number of appearances where the most recent final result is 1999, beat Genk 3-1? | CREATE TABLE table_1463332_2 (_number_appearances VARCHAR, most_recent_final VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(DisplayName) = 'jon skeet' ORDER BY Reputation DESC LIMIT 20 | Top 20 users called DavidG. Top 20 SO users from China | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
Rejection... |
SELECT player FROM table_name_36 WHERE to_par = "+21" | What player has +21 as the to par? | CREATE TABLE table_name_36 (player VARCHAR, to_par VARCHAR) |
SELECT MAX(_number_runner_up) FROM table_1463332_2 WHERE years__won_in_bold_ = "1984, 2010" | What is the number of runner-up results for the years (won in bold) 1984, 2010? | CREATE TABLE table_1463332_2 (_number_runner_up INTEGER, years__won_in_bold_ VARCHAR) |
SELECT "Days held" FROM table_72025 WHERE "Reign" > '3' AND "Defenses" < '1' | What is the days held the champion with a reign larger than 3 and less than 1 defense has? | CREATE TABLE table_72025 (
"Name" text,
"Reign" real,
"Days held" text,
"Location" text,
"Defenses" real
) |
SELECT to_par FROM table_name_5 WHERE total < 296 | Which to par has a total less than 296? | CREATE TABLE table_name_5 (to_par VARCHAR, total INTEGER) |
SELECT most_recent_final FROM table_1463332_2 WHERE years__won_in_bold_ = "1979" | What is the most recent final result for the years (won in bold) 1979? | CREATE TABLE table_1463332_2 (most_recent_final VARCHAR, years__won_in_bold_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Malignant carcinoid tumor of the rectum" AND lab."CATEGORY" = "Hematology" | count the number of patients whose diagnoses long title is malignant carcinoid tumor of the rectum and lab test category is hematology? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT finish FROM table_name_35 WHERE to_par = "+21" | What finish has +21 as the to par? | CREATE TABLE table_name_35 (finish VARCHAR, to_par VARCHAR) |
SELECT title FROM table_14637853_3 WHERE original_air_date = "September23,1995" | what's the title with original air date being september23,1995 | CREATE TABLE table_14637853_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT "songwriters" FROM table_203_228 GROUP BY "songwriters" ORDER BY COUNT("title") DESC LIMIT 1 | which songwriter is credited with the largest number of songs ? | CREATE TABLE table_203_228 (
id number,
"#" number,
"title" text,
"songwriters" text,
"producer(s)" text,
"performer (s)" text
) |
SELECT COUNT(events) FROM table_name_58 WHERE cuts_made < 34 AND top_10 > 3 | What is the total number of events that had 34 cuts and 3 in the top 10? | CREATE TABLE table_name_58 (events VARCHAR, cuts_made VARCHAR, top_10 VARCHAR) |
SELECT written_by FROM table_14637853_3 WHERE original_air_date = "September23,1995" | who wrote with original air date being september23,1995 | CREATE TABLE table_14637853_3 (written_by VARCHAR, original_air_date VARCHAR) |
SELECT COUNT("driver") FROM table_204_853 WHERE "points" < 80 | how many drivers got less than 80 points ? | CREATE TABLE table_204_853 (
id number,
"pos" number,
"grid" number,
"no." number,
"driver" text,
"team" text,
"manufacturer" text,
"laps" number,
"points" number
) |
SELECT high_rebounds FROM table_name_7 WHERE date = "january 3" | Who had the most rebounds on January 3? | CREATE TABLE table_name_7 (high_rebounds VARCHAR, date VARCHAR) |
SELECT directed_by FROM table_14637853_3 WHERE original_air_date = "November18,1995" | who directed with original air date being november18,1995 | CREATE TABLE table_14637853_3 (directed_by VARCHAR, original_air_date VARCHAR) |
SELECT "Declination ( J2000 )" FROM table_55067 WHERE "NGC number" > '5750' | Tell me the declination with NGC number larger than 5750 | CREATE TABLE table_55067 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text,
"Apparent magnitude" real
) |
SELECT surface FROM table_name_28 WHERE date > 1982 AND partner = "guy forget" | Which surface had a date after 1982 and partner of Guy Forget? | CREATE TABLE table_name_28 (surface VARCHAR, date VARCHAR, partner VARCHAR) |
SELECT social_democratic FROM table_1463383_1 WHERE left_bloc = "5.5%" | What percentages of social democratic correspond to a 5.5% left bloc? | CREATE TABLE table_1463383_1 (social_democratic VARCHAR, left_bloc VARCHAR) |
SELECT "Score" FROM table_45979 WHERE "Decision" = 'niittymaki' AND "Visitor" = 'calgary' | What was the score when Calgary was visiting team and Niittymaki had the decision? | CREATE TABLE table_45979 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) |
SELECT result FROM table_name_48 WHERE week = 9 | What was the result of the week 9 game? | CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR) |
SELECT date_released FROM table_1463383_1 WHERE green_communist = "8.9%" | When was there 8.9% Green-Communist? | CREATE TABLE table_1463383_1 (date_released VARCHAR, green_communist VARCHAR) |
SELECT Posts.Id, Posts.Title, Posts.Score, CASE Votes.VoteTypeId WHEN 2 THEN 'up' WHEN 3 THEN 'down' WHEN 15 THEN 'mod review' WHEN 16 THEN 'approve edit' ELSE CONCAT('<', Votes.VoteTypeId, '>') END AS VoteType FROM Posts JOIN Votes ON Posts.Id = Votes.PostId WHERE Posts.OwnerUserId = '##UserId##' AND Posts.PostTypeId ... | Show votes on my questions. | CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId... |
SELECT MAX(attendance) FROM table_name_18 WHERE date = "november 16, 1975" | What was the attendance during the november 16, 1975 game? | CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR) |
SELECT COUNT(socialist) FROM table_1463383_1 WHERE peoples_party = "7.5%" | How many socialists correspond to a 7.5% People's Party? | CREATE TABLE table_1463383_1 (socialist VARCHAR, peoples_party VARCHAR) |
SELECT AVG("Goals Conceded") FROM table_61256 WHERE "Draw" = '0' AND "Played" > '0' | Name the Goals Conceded which has a Draw of 0 and a Played larger than 0? | CREATE TABLE table_61256 (
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" text
) |
SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = "whitehaven coal" | What is the total number in class for the Whitehaven Coal? | CREATE TABLE table_name_13 (number_in_class INTEGER, owner VARCHAR) |
SELECT left_bloc FROM table_1463383_1 WHERE social_democratic = "28.7%" | What are all percentages of Left Block when there is a 28.7% Social Democratic? | CREATE TABLE table_1463383_1 (left_bloc VARCHAR, social_democratic VARCHAR) |
SELECT COUNT("Frequency (per hour)") FROM table_40407 WHERE "Line" = 'east london' AND "Destination" = 'crystal palace' | How many frequencies have a line of East London and destination of Crystal Palace? | CREATE TABLE table_40407 (
"Platform" real,
"Frequency (per hour)" real,
"Destination" text,
"Service Pattern" text,
"Operator" text,
"Line" text
) |
SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = "downer rail" | What was built in a class with less than 10, and the Downer Rail owner? | CREATE TABLE table_name_58 (built VARCHAR, number_in_class VARCHAR, owner VARCHAR) |
SELECT social_democratic FROM table_1463383_1 WHERE socialist = "46.1%" | If Socialist is at 46.1%, what are all percentages for social democratic? | CREATE TABLE table_1463383_1 (social_democratic VARCHAR, socialist VARCHAR) |
SELECT "Method" FROM table_45870 WHERE "Location" = 'tokyo , japan' AND "Event" = 'rings: millennium combine 2' | What is Method, when Location is 'Tokyo , Japan', and when Event is 'Rings: Millennium Combine 2'? | CREATE TABLE table_45870 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
) |
SELECT class FROM table_name_83 WHERE number_in_class > 15 | Which class has more than 15 people in the class? | CREATE TABLE table_name_83 (class VARCHAR, number_in_class INTEGER) |
SELECT COUNT(left_bloc) FROM table_1463383_1 WHERE social_democratic = "32.1%" | How many percentages of Left Bloc correspond to a 32.1% Social Democratic? | CREATE TABLE table_1463383_1 (left_bloc VARCHAR, social_democratic VARCHAR) |
SELECT "Result" FROM table_58804 WHERE "Attendance" = '72,703' | What was the result of the game that was attended by 72,703 people? | CREATE TABLE table_58804 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
) |
SELECT owner FROM table_name_98 WHERE built = "2009-2011" | Who is the owner that built in 2009-2011? | CREATE TABLE table_name_98 (owner VARCHAR, built VARCHAR) |
SELECT nfl_team FROM table_14650162_1 WHERE college = "Minnesota" | What is the NFL team of the player whose college is Minnesota? | CREATE TABLE table_14650162_1 (nfl_team VARCHAR, college 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, 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 CIT... | show me all overnight flights from WASHINGTON to SAN FRANCISCO and list their fares | 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
dire... |
SELECT AVG(grid) FROM table_name_33 WHERE manufacturer = "aprilia" AND rider = "bradley smith" | Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith? | CREATE TABLE table_name_33 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR) |
SELECT college FROM table_14650162_1 WHERE position = "Defensive Back" | What college did the defensive back attend? | CREATE TABLE table_14650162_1 (college VARCHAR, position VARCHAR) |
SELECT MIN(attendance) FROM table_name_67 WHERE home = "colorado" | What is the lowest number of people attending the game where Colorado was the home team? | CREATE TABLE table_name_67 (
attendance INTEGER,
home VARCHAR
) |
SELECT time FROM table_name_83 WHERE laps = 19 AND grid > 19 AND manufacturer = "ktm" AND rider = "randy krummenacher" | Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher? | CREATE TABLE table_name_83 (time VARCHAR, rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT pick__number FROM table_14650162_1 WHERE college = "Florida State" | What is the pick number of the player whose college is Florida State? | CREATE TABLE table_14650162_1 (pick__number VARCHAR, college VARCHAR) |
SELECT "Counties Represented" FROM table_19071 WHERE "First Elected" = '2006' | Which country has a delegate who was first elected in 2006? | CREATE TABLE table_19071 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
) |
SELECT time FROM table_name_13 WHERE manufacturer = "aprilia" AND grid < 16 AND rider = "sandro cortese" | Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese? | CREATE TABLE table_name_13 (time VARCHAR, rider VARCHAR, manufacturer VARCHAR, grid VARCHAR) |
SELECT COUNT(college) FROM table_14650162_1 WHERE pick__number = 269 | How many colleges did pick number 269 attend? | CREATE TABLE table_14650162_1 (college VARCHAR, pick__number VARCHAR) |
SELECT "Directed by" FROM table_25516 WHERE "Title" = 'Two Towns' | Who directed the episode titled 'Two Towns'? | CREATE TABLE table_25516 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58 | Name the Silver which has a Bronze of 19, and a Total larger than 58? | CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR) |
SELECT COUNT(pick__number) FROM table_14650162_1 WHERE position = "Tight End" | How many picks played Tight end? | CREATE TABLE table_14650162_1 (pick__number VARCHAR, position VARCHAR) |
SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'open reduc-int fix femur') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3403) AND ... | when patient 3403 first received the open reduc-int fix femur this year? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
... |
SELECT COUNT(silver) FROM table_name_9 WHERE rank = "3" AND gold < 2 | What kind of Silver has a Rank of 3, and a Gold smaller than 2? | CREATE TABLE table_name_9 (silver VARCHAR, rank VARCHAR, gold VARCHAR) |
SELECT position FROM table_14650162_1 WHERE college = "Western Kentucky" | What is the position of the player whose college is Western Kentucky? | CREATE TABLE table_14650162_1 (position VARCHAR, college VARCHAR) |
SELECT "Directed by" FROM table_30149 WHERE "Production" = '2M5901' | Who directed the episode whose production code is 2m5901? | CREATE TABLE table_30149 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
) |
SELECT SUM(silver) FROM table_name_19 WHERE bronze < 1 | COunt the silver that has a Bronze smaller than 1? | CREATE TABLE table_name_19 (silver INTEGER, bronze INTEGER) |
SELECT COUNT(position) FROM table_14649522_1 WHERE player = "Robert Brooks" | What position does Robert Brooks play? | CREATE TABLE table_14649522_1 (position VARCHAR, player VARCHAR) |
SELECT COUNT(*) FROM table_203_442 WHERE "score" + "score" >= 2 | how many games had at least a score of two or more points ? | CREATE TABLE table_203_442 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) |
SELECT MAX(total) FROM table_name_70 WHERE silver > 19 | Name the Total which has a Silver larger than 19? | CREATE TABLE table_name_70 (total INTEGER, silver INTEGER) |
SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks" | Which team does Robert Brooks play with? | CREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR) |
SELECT * FROM table_dev_34 WHERE hyperlipidemia = 1 OR (serum_ldl > 158 OR serum_tg > 691) | marked hyperlipidemia ( serum ldl > 158 mg / dl, or serum tg > 691 mg / dl ) | CREATE TABLE table_dev_34 (
"id" int,
"gender" string,
"heart_disease" bool,
"body_weight" float,
"hematocrit_hct" float,
"fasting_blood_glucose_fbg" float,
"hyperlipidemia" bool,
"systemic_illness" bool,
"angina" bool,
"serum_ldl" int,
"clinically_significant_atherosclerotic... |
SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = "south korea" | Name the Silver that has a Total smaller than 2, and a Nation of south korea? | CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR) |
SELECT nfl_team FROM table_14649522_1 WHERE college = "South Carolina" | Which team picked from South Carolina college? | CREATE TABLE table_14649522_1 (nfl_team VARCHAR, college VARCHAR) |
SELECT "Class" FROM table_35880 WHERE "City of license" = 'lake oconee, ga' | What is the Class where City of license is lake oconee, ga? | CREATE TABLE table_35880 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.