answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT chambering FROM table_26967904_2 WHERE f_bolt___kgf__ = 8339 | What is the chambering for the 8339 f bolt ( kgf )? | CREATE TABLE table_26967904_2 (chambering VARCHAR, f_bolt___kgf__ VARCHAR) |
SELECT "round" FROM table_204_234 ORDER BY id LIMIT 1 | who is at the top of the chart ? | CREATE TABLE table_204_234 (
id number,
"round" text,
"100 yd (91 m)" text,
"80 yd (73 m)" text,
"60 yd (55 m)" text,
"50 yd (46 m)" text,
"40 yd (37 m)" text
) |
SELECT date FROM table_name_51 WHERE rank__number = "6" | WHAT DATE HAD 6 RANK? | CREATE TABLE table_name_51 (date VARCHAR, rank__number VARCHAR) |
SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = "11.35" | What is the f bolt for 11.35 p1 diameter (mm)? | CREATE TABLE table_26967904_2 (f_bolt VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT COUNT(date) FROM table_21058823_1 WHERE record = "0-2-0" | How many games did they play when their record 0-2-0? | CREATE TABLE table_21058823_1 (
date VARCHAR,
record VARCHAR
) |
SELECT opponent_number FROM table_name_37 WHERE date = "october 7" | WHAT OPPONENT WAS ON OCTOBER 7? | CREATE TABLE table_name_37 (opponent_number VARCHAR, date VARCHAR) |
SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum" | How many external (cm 2 ) are there for the .338 lapua magnum chambering? | CREATE TABLE table_26967904_2 (a_external__cm_2__ VARCHAR, chambering VARCHAR) |
SELECT DISTINCT aircraft_code FROM aircraft WHERE basic_type = '737' AND manufacturer = 'BOEING' | how many passengers can a BOEING 737 hold | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... |
SELECT rank__number FROM table_name_48 WHERE result = "w13-3" | WHAT RANK HAD A RESULT OF W13-3? | CREATE TABLE table_name_48 (rank__number VARCHAR, result VARCHAR) |
SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900 | With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900? | CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR) |
SELECT COUNT("player") FROM table_203_440 WHERE "transfer fee\n(\u20ac million)" >= 8 | how many players had a transfer fee of at least 8 million ? | CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
) |
SELECT original_nfl_team FROM table_name_51 WHERE college = "oregon" AND pos = "dt" | What is the original NFL team of the College of Oregon DT Player? | CREATE TABLE table_name_51 (original_nfl_team VARCHAR, college VARCHAR, pos VARCHAR) |
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "9.70" | What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm? | CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT "Career" FROM table_78835 WHERE "Super G" = '5' AND "Combined" = '6' | What Career has a Super G of 5, and a Combined of 6? | CREATE TABLE table_78835 (
"Country" text,
"Career" text,
"Victories" real,
"Super G" text,
"Giant Slalom" text,
"Slalom" text,
"Combined" text,
"Parallel" text
) |
SELECT player FROM table_name_6 WHERE college = "iowa state" | What Player is from Iowa State? | CREATE TABLE table_name_6 (player VARCHAR, college VARCHAR) |
SELECT MAX(p_max___bar__) FROM table_26967904_1 WHERE chambering = ".45 ACP" | What is the p max (bar) in the pistol where the chambering is .45 ACP? | CREATE TABLE table_26967904_1 (p_max___bar__ INTEGER, chambering VARCHAR) |
SELECT DEPT_CODE, AVG(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY AVG(STU_GPA) DESC | Bar chart of mean stu gpa from each dept code, sort in descending by the total number. | CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varcha... |
SELECT result FROM table_name_35 WHERE attendance = "77,702" | What was the result of the game that had 77,702 people in attendance? | CREATE TABLE table_name_35 (result VARCHAR, attendance VARCHAR) |
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "12.09" | What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm? | CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT director FROM table_name_85 WHERE title = "“some lapse of time”" | What is the Director for the episode titled some lapse of time ? | CREATE TABLE table_name_85 (
director VARCHAR,
title VARCHAR
) |
SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts" | On what day did the team play the Indianapolis Colts? | CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR) |
SELECT incoming_manager FROM table_26976615_3 WHERE date_of_appointment = "15 January 2011" | Who was the incoming manager for the date of appointment of 15 january 2011? | CREATE TABLE table_26976615_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR) |
SELECT sport FROM table_name_41 WHERE medal = "gold" AND games = "2000 sydney" | Which sport resulted in a gold medal in the 2000 Sydney games? | CREATE TABLE table_name_41 (
sport VARCHAR,
medal VARCHAR,
games VARCHAR
) |
SELECT AVG(played) FROM table_name_18 WHERE goals_against < 63 AND team = "nelson" AND lost > 16 | What is the average Played, when Goals Against is less than 63, when Team is "Nelson", and when Lost is greater than 16? | CREATE TABLE table_name_18 (played INTEGER, lost VARCHAR, goals_against VARCHAR, team VARCHAR) |
SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 2010" | What is the date of appointment for the date of vacancy of 22 august 2010? | CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-79017') AND patient.unitdischargetime IS NULL) ... | when did patient 004-79017 last got the maximum of respiration on the current icu visit? | 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 patient (
uniquep... |
SELECT COUNT(goals_for) FROM table_name_68 WHERE points_1 = "41" | What is the total number of Goals For, when Points 1 is "41"? | CREATE TABLE table_name_68 (goals_for VARCHAR, points_1 VARCHAR) |
SELECT outgoing_manager FROM table_26976615_3 WHERE team = "Târgu Mureş" | Who was the outgoing manager for the team of târgu mureş? | CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT "Directed by" FROM table_29979 WHERE "U.S. viewers (million)" = '14.11' | Who directed the episode with an audience of 14.11 million? | CREATE TABLE table_29979 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) |
SELECT MIN(position) FROM table_name_21 WHERE lost > 15 AND team = "cheadle town" AND drawn > 8 | What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8? | CREATE TABLE table_name_21 (position INTEGER, drawn VARCHAR, lost VARCHAR, team VARCHAR) |
SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010" | How many date of appointments are there when the date of vacancy was 2 october 2010? | CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.friday = 'N' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'FA' ... | For upper level elective classes offered next semester , which ones do n't meet on Fridays ? | CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_... |
SELECT MIN(position) FROM table_name_75 WHERE points_1 = "39" AND goals_against > 49 | What is the lowest Position, when Points 1 is "39", and when Goals Against is greater than 49? | CREATE TABLE table_name_75 (position INTEGER, points_1 VARCHAR, goals_against VARCHAR) |
SELECT outgoing_manager FROM table_26976615_3 WHERE incoming_manager = "Laurenţiu Reghecampf" | Who was the outgoing manager when the incoming manager was laurenţiu reghecampf? | CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR) |
SELECT director.name FROM directed_by, director, keyword, movie, tags WHERE director.did = directed_by.did AND keyword.keyword = 'nuclear weapons' AND movie.mid = directed_by.msid AND tags.kid = keyword.id AND tags.msid = movie.mid | List all the directors of movies about nuclear weapons | CREATE TABLE made_by (
id int,
msid int,
pid int
)
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE writer (
wid in... |
SELECT season FROM table_name_72 WHERE head_coach = "jonas kazlauskas" AND europe = "champions cup group stage" | WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage? | CREATE TABLE table_name_72 (season VARCHAR, head_coach VARCHAR, europe VARCHAR) |
SELECT manner_of_departure FROM table_26976615_3 WHERE outgoing_manager = "Andrea Mandorlini" | What was the manner of departure when the outgoing manager was andrea mandorlini? | CREATE TABLE table_26976615_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antihypertensives - labetalol') AS t1 JOIN (SELECT... | what are the top three most common drugs prescribed to patients within 2 months after antihypertensives - labetalol? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... |
SELECT lkf_cup FROM table_name_69 WHERE europe = "euroleague group stage" AND regional_competitions = "bbl elite division finalist" | WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist? | CREATE TABLE table_name_69 (lkf_cup VARCHAR, europe VARCHAR, regional_competitions VARCHAR) |
SELECT capacity FROM table_26980923_2 WHERE team = "Dundee United" | What is the capacity for dundee united? | CREATE TABLE table_26980923_2 (capacity VARCHAR, team VARCHAR) |
SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Home_team ORDER BY COUNT(Home_team) DESC | Show the number of games for each home team in a bar chart, sort by the y-axis in desc please. | CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE sta... |
SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist" | WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST? | CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR) |
SELECT total FROM table_26980923_2 WHERE stadium = "Rugby Park" | What was the total attendance at rugby park? | CREATE TABLE table_26980923_2 (total VARCHAR, stadium VARCHAR) |
SELECT DISTINCT course_offering.section_number FROM course, course_offering, semester WHERE course_offering.monday = 'N' AND course.course_id = course_offering.course_id AND course.department = 'MCDB' AND course.number = 680 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.y... | Is there an MCDB 680 section on any day other than Monday next semester ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semes... |
SELECT australian FROM table_name_79 WHERE examples = "illyria, cf. cirrhosis" | What is the entry for the Australian sound that has an example of illyria, cf. cirrhosis? | CREATE TABLE table_name_79 (australian VARCHAR, examples VARCHAR) |
SELECT MIN(total) FROM table_26980923_2 WHERE team = "Kilmarnock" | What is the total attended for kilmarnock? | CREATE TABLE table_26980923_2 (total INTEGER, team VARCHAR) |
SELECT "Fleet number(s)" FROM table_9752 WHERE "Wheel arrangement" = '2-6-0' AND "Class" = 'z' | What is Fleet Number(s), when Wheel Arrangement is '2-6-0', and when Class is 'Z'? | CREATE TABLE table_9752 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Quantity made" text,
"Quantity preserved" text
) |
SELECT examples FROM table_name_73 WHERE american = "ɪ, ə" AND semi_closed_initial_unstressed_vowels = "y /ɨ/" | What is the example for the American of ɪ, ə, and a Semi-closed initial unstressed vowels of y /ɨ/? | CREATE TABLE table_name_73 (examples VARCHAR, american VARCHAR, semi_closed_initial_unstressed_vowels VARCHAR) |
SELECT COUNT(mon_23_aug) FROM table_26986076_1 WHERE fri_27_aug = "19' 38.87 115.219mph" | How many times was the time 19' 38.87 115.219mph on Fri Aug 27? | CREATE TABLE table_26986076_1 (mon_23_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT MIN("Episode") FROM table_47551 WHERE "Original airdate" = '8 june 2008' | What is the lowest episode number with an original airdate on 8 June 2008? | CREATE TABLE table_47551 (
"Episode" real,
"Original airdate" text,
"Timeslot (approx.)" text,
"Viewers (millions)" real,
"Nightly rank" text
) |
SELECT field FROM table_name_88 WHERE opponent = "cannons" AND result = "w 16-11" | What field is an opponent of cannons and resulted with w 16-11? | CREATE TABLE table_name_88 (field VARCHAR, opponent VARCHAR, result VARCHAR) |
SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = "20' 49.46 108.709mph" | If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27? | CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT "city" FROM table_203_413 WHERE "population" > 30000 | which communes have a population above 30,000 ? | CREATE TABLE table_203_413 (
id number,
"rank" text,
"city" text,
"population" number,
"area\n(km2)" number,
"density\n(inhabitants/km2)" number,
"altitude\n(mslm)" number
) |
SELECT result FROM table_name_89 WHERE field = "texas stadium" | what is the result from texas stadium? | CREATE TABLE table_name_89 (result VARCHAR, field VARCHAR) |
SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time" | If Wed Aug 25 is —— no time, what is Sat aug 21? | CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR) |
SELECT COUNT("Cable channel") FROM table_63927 WHERE "Call sign" = 'cbft-dt' | How many cable channels have callsign CBFT-DT? | CREATE TABLE table_63927 (
"Call sign" text,
"Broadcast channel" real,
"Digital PSIP" real,
"Cable channel" real,
"Network" text
) |
SELECT field FROM table_name_46 WHERE result = "w 18-12" | What field resulted with w 18-12? | CREATE TABLE table_name_46 (field VARCHAR, result VARCHAR) |
SELECT sat_28_aug FROM table_26986076_1 WHERE rank = 10 | If the Rank is 10, what was the time on Sat aug 28? | CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, rank VARCHAR) |
SELECT MIN(top_10) FROM table_name_86 WHERE winnings = "$405,300" AND avg_start < 30 | Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30? | CREATE TABLE table_name_86 (
top_10 INTEGER,
winnings VARCHAR,
avg_start VARCHAR
) |
SELECT field FROM table_name_63 WHERE result = "w 18-12" | What field had results of w 18-12? | CREATE TABLE table_name_63 (field VARCHAR, result VARCHAR) |
SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = "20' 05.19 112.703mph" | How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th? | CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | how many days have elapsed since the last time patient 022-187132 had an intake of po reg diet on the current icu visit? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... |
SELECT MAX(points) FROM table_name_1 WHERE goals_for > 48 AND wins < 19 AND goals_against < 44 AND draws > 5 | WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5? | CREATE TABLE table_name_1 (points INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, wins VARCHAR) |
SELECT sat_28_aug FROM table_26986076_1 WHERE wed_25_aug = "20' 09.25 112.324mph" | If the time on Wed aug 25 was 20' 09.25 112.324mph, what was the time on sat Aug 28? | CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, wed_25_aug VARCHAR) |
SELECT organisation_details FROM organisations AS T1 JOIN organisation_types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details | What are the details of all organizations that are described as Sponsors and sort the results in ascending order? | CREATE TABLE research_staff (
staff_id number,
employer_organisation_id number,
staff_details text
)
CREATE TABLE organisation_types (
organisation_type text,
organisation_type_description text
)
CREATE TABLE project_staff (
staff_id number,
project_id number,
role_code text,
date_... |
SELECT COUNT(points) FROM table_name_73 WHERE wins < 14 AND club = "sd indauchu" AND position > 12 | WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12? | CREATE TABLE table_name_73 (points VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR) |
SELECT COUNT(rank) FROM table_26986076_2 WHERE tues_24_aug = "19' 19.83 117.110mph" | How many times was tues 24 aug 19' 19.83 117.110mph? | CREATE TABLE table_26986076_2 (rank VARCHAR, tues_24_aug VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND CITY_2.cit... | all right do you have a flight from WASHINGTON to BOSTON that stops in PHILADELPHIA | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id... |
SELECT AVG(goals_for) FROM table_name_9 WHERE draws < 6 AND losses < 7 | WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7? | CREATE TABLE table_name_9 (goals_for INTEGER, draws VARCHAR, losses VARCHAR) |
SELECT COUNT(sat_29_aug) FROM table_26986076_2 WHERE fri_27_aug = "19' 38.87 115.219mph" | how many time is fri 27 aug 19' 38.87 115.219mph? | CREATE TABLE table_26986076_2 (sat_29_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Propafenone HCl" | what is the drug code and route for the drug propafenone hcl? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... |
SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2 | How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006? | CREATE TABLE table_name_9 (Id VARCHAR) |
SELECT wed_25_aug FROM table_26986076_2 WHERE mon_23_aug = "26' 57.82 89.957mph" | what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph? | CREATE TABLE table_26986076_2 (wed_25_aug VARCHAR, mon_23_aug VARCHAR) |
SELECT "Written by" FROM table_28788 WHERE "Directed by" = 'Charles Haid' AND "No." = '54' | The episode with the no. 54, directed by Charles Haid, is written by who? | CREATE TABLE table_28788 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
) |
SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2 | What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007? | CREATE TABLE table_name_21 (Id VARCHAR) |
SELECT thurs_26_aug FROM table_26986076_2 WHERE wed_25_aug = "19' 59.98 113.192mph" | What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph? | CREATE TABLE table_26986076_2 (thurs_26_aug VARCHAR, wed_25_aug VARCHAR) |
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | On what dates were employees without the letter M in their first names hired, and count them by a bar chart | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... |
SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1 | How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1? | CREATE TABLE table_name_82 (Id VARCHAR) |
SELECT mon_23_aug FROM table_26986076_2 WHERE fri_27_aug = "18' 59.25 119.226mph" | what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph? | CREATE TABLE table_26986076_2 (mon_23_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT record FROM table_name_46 WHERE game_site = "raymond james stadium" | What is the record when the game was played at raymond james stadium? | CREATE TABLE table_name_46 (
record VARCHAR,
game_site VARCHAR
) |
SELECT MAX(2010) FROM table_name_80 WHERE 2009 < 6.5 AND 2008 = 0.4 AND 2007 < 0.5 | What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5? | CREATE TABLE table_name_80 (Id VARCHAR) |
SELECT sat_21_aug FROM table_26986076_5 WHERE rank = 8 | When 8 is the rank what is the Saturday August 21st? | CREATE TABLE table_26986076_5 (sat_21_aug VARCHAR, rank VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%sri lanka%' ORDER BY Reputation DESC | most reputation user from sri lanka. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... |
SELECT SUM(2007) FROM table_name_71 WHERE 2006 = 0.2 AND 2010 < 0.1 | How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1? | CREATE TABLE table_name_71 (Id VARCHAR) |
SELECT tues_24_aug FROM table_26986076_5 WHERE fri_27_aug = "20' 58.50 107.929mph" | When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August? | CREATE TABLE table_26986076_5 (tues_24_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Incisional ventral hernia with obstruction" | specify the total number of male patients having incisional ventral hernia with obstruction. | 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 tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6" | What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6? | CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR) |
SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 18.87 106.209mph" | When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd? | CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT COUNT(new_entries_this_round) FROM table_17814838_1 WHERE round = "Fourth round Proper" | How many categories of new entries this round are there for the fourth round proper? | CREATE TABLE table_17814838_1 (
new_entries_this_round VARCHAR,
round VARCHAR
) |
SELECT surface FROM table_name_18 WHERE date = "1 september 2008" | What Surface has a Date of 1 september 2008? | CREATE TABLE table_name_18 (surface VARCHAR, date VARCHAR) |
SELECT sat_29_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 10.25 106.930mph" | When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th? | CREATE TABLE table_26986076_5 (sat_29_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT "Entities" FROM table_22766 WHERE "Supply point" = 'Itaipu' | What are the electric companies drawing power from Itaipu? | CREATE TABLE table_22766 (
"Entities" text,
"Country" text,
"Supply point" text,
"Voltage (kV)" real,
"Power (MW)" real
) |
SELECT score FROM table_name_58 WHERE opponent = "nina bratchikova" | What Score has an Opponent of nina bratchikova? | CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) |
SELECT fri_27_aug FROM table_26986076_5 WHERE wed_25_aug = "21' 05.83 107.304mph" | When 21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th? | CREATE TABLE table_26986076_5 (fri_27_aug VARCHAR, wed_25_aug VARCHAR) |
SELECT AVG(room_count) FROM apartment_bookings AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional" | Show the average room count of the apartments that have booking status code 'Provisional'. | CREATE TABLE guests (
guest_id number,
gender_code text,
guest_first_name text,
guest_last_name text,
date_of_birth time
)
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date time,
available_yn others
)
CREATE TABLE apartment_bookings (
apt_booking... |
SELECT surface FROM table_name_61 WHERE tournament = "pune, india" | What Surface has a Tournament of pune, india? | CREATE TABLE table_name_61 (surface VARCHAR, tournament VARCHAR) |
SELECT mon_23_aug FROM table_26986076_5 WHERE rider = "Tom Snow 250cc Honda" | When tom snow 250cc honda is the rider what is Monday August 23rd? | CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, rider VARCHAR) |
SELECT COUNT("Week") FROM table_55737 WHERE "Date" = 'october 9, 1938' | What week was October 9, 1938? | CREATE TABLE table_55737 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT tournament FROM table_name_64 WHERE date = "20 december 2010" | What Tournament has a Date of 20 december 2010? | CREATE TABLE table_name_64 (tournament VARCHAR, date VARCHAR) |
SELECT directed_by FROM table_26982362_2 WHERE original_airdate = "October 8, 2010" | The episode with the original airdate October 8, 2010, is directed by who? | CREATE TABLE table_26982362_2 (directed_by VARCHAR, original_airdate VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.