instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_67481 (
"Name" text,
"Discovered" real,
"Museum" text,
"Museum city" text,
"Discoverer" text,
"Formation" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the formation that had the specimen discover... | SELECT "Formation" FROM table_67481 WHERE "Discovered" < '2001' AND "Museum city" = 'indianapolis, in' | wikisql |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT SUM(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '柏安民' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-06-28' AND '2012-04-06' | css |
CREATE TABLE table_name_35 (
fcc_info VARCHAR,
frequency_mhz VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the FCC frequency for the station w262al which has a Frequency MHz larger than 92.7?
| SELECT fcc_info FROM table_name_35 WHERE frequency_mhz > 92.7 AND call_sign = "w262al" | sql_create_context |
CREATE TABLE table_68950 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nationality do the Montreal Canadiens belong to with a... | SELECT "Nationality" FROM table_68950 WHERE "NHL team" = 'montreal canadiens' AND "Pick #" = '25' | wikisql |
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 HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "MEPE50I" | mimicsql_data |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT SUM(t_kc24.PER_ACC_PAY) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.PERSON_NM = '任元恺' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-09-23' AND '2006-11-28' UNION SELECT SUM(t_kc24.PER_ACC_PAY) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.PERSON_NM = '任元恺' A... | css |
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 AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.discharge_location = "SHORT TERM HOSPITAL" | mimicsql_data |
CREATE TABLE table_38534 (
"Game" text,
"Date" text,
"Referee" text,
"Umpire" text,
"Head Linesman" text,
"Line Judge" text,
"Field Judge" text,
"Back Judge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the line judge at the ga... | SELECT "Line Judge" FROM table_38534 WHERE "Referee" = 'scott green' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zzmzjzjlb (
HXPLC number,
HZX... | SELECT COUNT(zzmzjzjlb.ZZYSGH) FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '51768625' AND zzmzjzjlb.JZKSRQ BETWEEN '2013-02-09' AND '2016-05-30' UNION SELECT COUNT(fzzmzjzjlb.ZZYSGH) FROM hz_info JOIN fzzmzjzjlb ON h... | css |
CREATE TABLE table_name_70 (
city_of_license VARCHAR,
class VARCHAR,
identifier VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the city of license when the class is LP and the identifier is CBDK?
| SELECT city_of_license FROM table_name_70 WHERE class = "lp" AND identifier = "cbdk" | sql_create_context |
CREATE TABLE table_41996 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Runner-up when the game was played at Bells Beach?
| SELECT "Runner-up" FROM table_41996 WHERE "Location" = 'bells beach' | wikisql |
CREATE TABLE table_46950 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the opponent when the score is 3 6, 6 1, 7 5?
| SELECT "Opponent" FROM table_46950 WHERE "Score" = '3–6, 6–1, 7–5' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BG... | css |
CREATE TABLE table_52525 (
"Munsee Delaware" text,
"Unami Delaware" text,
"De Laet (1633)" text,
"Campanius (ca. 1645)" text,
"Interpreter (1684?)" text,
"Thomas (1698)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Interpreter valu... | SELECT "Interpreter (1684?)" FROM table_52525 WHERE "Unami Delaware" = 'palé·naxk' | wikisql |
CREATE TABLE table_19112_3 (
industry VARCHAR,
company VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of industry for maxis
| SELECT COUNT(industry) FROM table_19112_3 WHERE company = "Maxis" | sql_create_context |
CREATE TABLE table_54404 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Home team of footscray is playing, what... | SELECT "Home team score" FROM table_54404 WHERE "Home team" = 'footscray' | wikisql |
CREATE TABLE table_70481 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the gender for elsthorpe school
| SELECT "Gender" FROM table_70481 WHERE "Name" = 'elsthorpe school' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sinusitis - radiographically demonstrated' AND STRFT... | eicu |
CREATE TABLE table_name_85 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of game 21?
| SELECT date FROM table_name_85 WHERE game = 21 | sql_create_context |
CREATE TABLE table_name_45 (
episode VARCHAR,
air_date VARCHAR,
viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?
| SELECT episode FROM table_name_45 WHERE air_date = "july 23, 2009" AND viewers > 3.31 | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '57271172' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 2998.53) | css |
CREATE TABLE table_39463 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district is the parish Milburn in?
| SELECT "District" FROM table_39463 WHERE "Name" = 'milburn' | wikisql |
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
-- Using valid SQLite, answer the ... | SELECT Date, Vote_Percent FROM election | nvbench |
CREATE TABLE table_name_51 (
rating INTEGER,
player VARCHAR,
yards VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rating for john kidd with more than 0 yards?
| SELECT AVG(rating) FROM table_name_51 WHERE player = "john kidd" AND yards > 0 | sql_create_context |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT Name, SUM(Price) FROM Products GROUP BY Name ORDER BY SUM(Price) | nvbench |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
... | SELECT p.CreationDate AS "Date", p.Id AS "post_link" FROM Posts AS p WHERE p.OwnerUserId = @user ORDER BY 'Date' DESC LIMIT 5 | sede |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND ... | css |
CREATE TABLE table_name_23 (
director VARCHAR,
original_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the director of la ronde
| SELECT director FROM table_name_23 WHERE original_title = "la ronde" | sql_create_context |
CREATE TABLE table_name_11 (
money___ INTEGER,
to_par INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Money ( $ ), when To Par is less than 2?
| SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2 | sql_create_context |
CREATE TABLE table_1786 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game where attendance was 51478?
| SELECT "Game site" FROM table_1786 WHERE "Attendance" = '51478' | wikisql |
CREATE TABLE table_name_79 (
us_release VARCHAR,
pages VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which US release has 704 pages?
| SELECT us_release FROM table_name_79 WHERE pages = "704" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
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 MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.days_stay = "30" | mimicsql_data |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | SELECT meter_500, ID FROM swimmer ORDER BY ID DESC | nvbench |
CREATE TABLE table_74732 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" text,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average car number of all the drivers who have won $111,683?
| SELECT AVG("Car #") FROM table_74732 WHERE "Winnings" = '$111,683' | wikisql |
CREATE TABLE table_204_481 (
id number,
"poll source" text,
"date(s)\nadministered" text,
"sample\nsize" number,
"margin of\nerror" text,
"andrew\ncuomo (d)" text,
"rob\nastorino (r)" text,
"other" text,
"undecided" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT COUNT("poll source") FROM table_204_481 WHERE "andrew\ncuomo (d)" > 60 | squall |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description ... | SELECT CAST(SUM(a.Score) AS FLOAT) / COUNT(*) AS MeanScorePerAnswer FROM Posts AS a WHERE a.PostTypeId = 2 AND a.CreationDate >= DATEADD(year, -1, GETDATE()) | sede |
CREATE TABLE table_67205 (
"Year" real,
"Denomination" text,
"Reverse" text,
"Weight" text,
"Diameter" text,
"Fineness" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the diameter of the 2006 equestrian Reverse?
| SELECT "Diameter" FROM table_67205 WHERE "Year" = '2006' AND "Reverse" = 'equestrian' | wikisql |
CREATE TABLE table_21632 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes were there in season 19?
| SELECT COUNT("Title") FROM table_21632 WHERE "Season #" = '19' | wikisql |
CREATE TABLE table_30405 (
"Season" text,
"Host" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all men's doubles when men's singles is Jean-Michel S... | SELECT "Mens Doubles" FROM table_30405 WHERE "Mens Singles" = 'Jean-Michel Saive' | wikisql |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
... | SELECT * FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE hz_inf... | css |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
instructo... | SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe... | advising |
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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi" AND lab."CATEGORY" = "Hematology" | mimicsql_data |
CREATE TABLE endowment (
endowment_id int,
School_id int,
donator_name text,
amount real
)
CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
)
CREAT... | SELECT County, COUNT(*) FROM School GROUP BY County ORDER BY County | nvbench |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT t_kc24.t_kc21_OUT_DIAG_DIS_CD, t_kc24.t_kc21_OUT_DIAG_DIS_NM FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_ID = '55299978' AND t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 6461.54) | css |
CREATE TABLE table_name_93 (
city_of_license VARCHAR,
network VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which city is the network latv licensed?
| SELECT city_of_license FROM table_name_93 WHERE network = "latv" | sql_create_context |
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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.days_stay > "9" | mimicsql_data |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age te... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'metoclopramide' AND DATETIME(medication.drugstartti... | eicu |
CREATE TABLE table_204_258 (
id number,
"location" text,
"frequency" number,
"call sign" text,
"network" text,
"call sign meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which frequency has the most stations ?
| SELECT "frequency" FROM table_204_258 GROUP BY "frequency" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party | nvbench |
CREATE TABLE table_204_172 (
id number,
"year" number,
"representative" text,
"hometown" text,
"placement in miss nepal" text,
"special awards at miss nepal" text,
"placement in miss pokhara" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT "year" FROM table_204_172 WHERE id = (SELECT id FROM table_204_172 WHERE "year" = 1997) + 1 | squall |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-47575' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) | eicu |
CREATE TABLE table_name_91 (
type VARCHAR,
state VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type is You from the state of Chen?
| SELECT type FROM table_name_91 WHERE state = "chen" AND name = "you" | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime ... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40707 AND admissions.dischtime IS NULL)) AND transfers.... | mimic_iii |
CREATE TABLE table_31271 (
"Pick #" real,
"MLS team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number for the team toronto fc and affiliation is ldu quito?
| SELECT MAX("Pick #") FROM table_31271 WHERE "MLS team" = 'Toronto FC' AND "Affiliation" = 'LDU Quito' | wikisql |
CREATE TABLE table_15305 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score when november 15 is the date?
| SELECT "Score" FROM table_15305 WHERE "Date" = 'november 15' | wikisql |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2115.0" AND procedures.long_title = "Coronary arteriography using two catheters" | mimicsql_data |
CREATE TABLE table_11207040_6 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the dates of the outgoing manager colin hendry does appointments?
| SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = "Colin Hendry" | sql_create_context |
CREATE TABLE table_name_50 (
year INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year is the highest one that has a Venue of edmonton, canada?
| SELECT MAX(year) FROM table_name_50 WHERE venue = "edmonton, canada" | sql_create_context |
CREATE TABLE table_name_79 (
avg_g INTEGER,
name VARCHAR,
long VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?
| SELECT SUM(avg_g) FROM table_name_79 WHERE name = "blaine gabbert" AND long > 30 | sql_create_context |
CREATE TABLE table_29742 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Location Attendance" FROM table_29742 WHERE "High assists" = 'Gilbert Arenas (9)' | wikisql |
CREATE TABLE first_notification_of_loss (
fnol_id number,
customer_id number,
policy_id number,
service_id number
)
CREATE TABLE customers (
customer_id number,
customer_name text
)
CREATE TABLE settlements (
settlement_id number,
claim_id number,
effective_date time,
settlemen... | SELECT customer_phone FROM available_policies | spider |
CREATE TABLE table_name_86 (
record VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the game ending with a score of 28-43, what is the listed as the final record?
| SELECT record FROM table_name_86 WHERE score = "28-43" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT COUNT(t_kc21.MED_SER_ORG_NO) FROM t_kc21 WHERE t_kc21.PERSON_ID = '76533732' AND t_kc21.IN_HOSP_DATE BETWEEN '2007-06-24' AND '2016-11-03' | css |
CREATE TABLE table_name_19 (
drawn VARCHAR,
tries_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the amount of draws where a club had 51 tries for?
| SELECT drawn FROM table_name_19 WHERE tries_for = "51" | sql_create_context |
CREATE TABLE table_17604 (
"#" real,
"Nation" text,
"Winners" real,
"Runners-up" real,
"3rd Place" real,
"4th Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many winners with # being 4
| SELECT COUNT("Winners") FROM table_17604 WHERE "#" = '4' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
c... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 's/p cartoid endarterectomy' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year')) | eicu |
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 lab (
la... | SELECT 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 = '005-77687')) AND intakeoutput.cellpath LIKE '%output%... | eicu |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationD... | WITH a AS (SELECT 'A' AS master, 1 AS ColA UNION SELECT 'A', 2 UNION SELECT 'B', 1 UNION SELECT 'B', 2), b AS (SELECT 'A' AS master, 1 AS ColB UNION SELECT 'A', 3 UNION SELECT 'B', 1 UNION SELECT 'B', 2 UNION SELECT 'C', 1) SELECT COALESCE(a.master, b.master) AS master, a.ColA, b.ColB FROM a FULL OUTER JOIN B ON a.mast... | sede |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '章乐悦' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | SELECT * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '56017266' AND hz_info.YLJGDM = '9235653' AND zyjzjlb.JZKSMC LIKE '%角膜%' | css |
CREATE TABLE table_name_3 (
young_rider_classification VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Young rider classification has a Stage of 18?
| SELECT young_rider_classification FROM table_name_3 WHERE stage = "18" | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "MORBID OBESITY/SDA" | mimicsql_data |
CREATE TABLE table_22438 (
"Rank" real,
"Title" text,
"Release Date" text,
"Franchise" text,
"Developer(s)" text,
"Platform" text,
"Units sold (in Millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did the platform sell 9.87 ... | SELECT "Release Date" FROM table_22438 WHERE "Units sold (in Millions)" = '9.87' | wikisql |
CREATE TABLE table_21761882_4 (
final_score VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score when the game was @ roughriders?
| SELECT final_score FROM table_21761882_4 WHERE opponent = "@ Roughriders" | sql_create_context |
CREATE TABLE table_14932 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game against athletics with the record of 9-12?
| SELECT COUNT("Attendance") FROM table_14932 WHERE "Opponent" = 'athletics' AND "Record" = '9-12' | wikisql |
CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
"wednesday nigh... | SELECT "year" FROM table_203_794 WHERE "year" IN (2001, 2002) ORDER BY "attendance" DESC LIMIT 1 | squall |
CREATE TABLE table_55201 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the opponent when anastasia pivovarova wa... | SELECT "Opponents" FROM table_55201 WHERE "Partner" = 'anastasia pivovarova' | wikisql |
CREATE TABLE table_9660 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 2 2, and an Away team of aylesbury united?
| SELECT "Date" FROM table_9660 WHERE "Score" = '2–2' AND "Away team" = 'aylesbury united' | wikisql |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '18154604' AND t_kc22.STA_DATE BETWEEN '2005-01-07' AND '2016-10-05' AND t_kc21.MED_SER_ORG_NO = '4531182' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_204_501 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which school has the least number... | SELECT "institution" FROM table_204_501 ORDER BY "enrollment" LIMIT 1 | squall |
CREATE TABLE table_name_61 (
lead VARCHAR,
date_s__conducted VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 5 May 2011, what was the lead percentage?
| SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011" | sql_create_context |
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 DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ASTRO' AND course.number = 115 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | advising |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResults (
Id number,
Review... | SELECT Num, Users.DisplayName FROM (SELECT COUNT(*) AS Num, UserId FROM Badges WHERE Badges.Name = '##BadgeName##' GROUP BY UserId) AS BadgeTop JOIN Users ON Users.Id = BadgeTop.UserId WHERE Num >= '##MinNumOfBadges##' ORDER BY Num DESC | sede |
CREATE TABLE table_34680 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Extra points is the highest one that has a Player of herman everhardus, and a Field g... | SELECT MAX("Extra points") FROM table_34680 WHERE "Player" = 'herman everhardus' AND "Field goals" > '0' | wikisql |
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players had a transfer fee of at least 9 ... | SELECT COUNT("player") FROM table_203_440 WHERE "transfer fee\n(\u20ac million)" >= 9 | squall |
CREATE TABLE table_name_25 (
winner VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of stage 11?
| SELECT winner FROM table_name_25 WHERE stage = "11" | sql_create_context |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
... | SELECT question.Id AS "post_link", question.CreationDate, COUNT(selfAnswer.Id) AS "count" FROM Posts AS question INNER JOIN Posts AS selfAnswer ON selfAnswer.OwnerUserId = question.OwnerUserId AND selfAnswer.ParentId = question.Id INNER JOIN Users AS users ON Users.Id = question.OwnerUserId WHERE question.PostTypeId = ... | sede |
CREATE TABLE table_27969432_2 (
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode written by karina csolty
| SELECT directed_by FROM table_27969432_2 WHERE written_by = "Karina Csolty" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.t_kc21_MED_SER_ORG_NO = '6951170' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | nvbench |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
... | SELECT * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '5188854' AND t_kc21.IN_HOSP_DATE BETWEEN '2010-07-06' AND '2021-06-21' EXCEPT SELECT * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '5188854' AND t_kc21.IN_HOSP_DATE BETWEEN '2010-07-06' AND '2021-06-21' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = ... | css |
CREATE TABLE table_1790 (
"Country" text,
"Population (2011)" real,
"GDP (nominal) (2010, US$ millions)" real,
"Military expenditures (2011, US$ millions)" real,
"Military expenditures (2011, % of GDP)" text,
"Defence expenditures, (2011, per capita)" real,
"Deployable military (2011, thousa... | SELECT "GDP (nominal) (2010, US$ millions)" FROM table_1790 WHERE "Defence expenditures, (2011, per capita)" = '162' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT COUNT(*) FROM zyjybgb WHERE zyjybgb.JZLSH = '91340380252' UNION SELECT COUNT(*) FROM mzjybgb WHERE mzjybgb.JZLSH = '91340380252' | css |
CREATE TABLE table_59392 (
"Competition" text,
"Round" text,
"Date and time" text,
"Opponent team" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date and Time, when Competition is 'Serie A', and when Result is '0-3'?
| SELECT "Date and time" FROM table_59392 WHERE "Competition" = 'serie a' AND "Result" = '0-3' | wikisql |
CREATE TABLE table_24329 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the episode with maritza reveron
| SELECT "Episode" FROM table_24329 WHERE "Coach" = 'Maritza Reveron' | wikisql |
CREATE TABLE table_203_60 (
id number,
"outcome" text,
"no." number,
"date" text,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the opponent... | SELECT "opponent in the final" FROM table_203_60 ORDER BY "date" DESC LIMIT 1 | squall |
CREATE TABLE table_name_30 (
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2007 Team with player Deshaun Foster?
| SELECT 2007 AS _team FROM table_name_30 WHERE player = "deshaun foster" | sql_create_context |
CREATE TABLE table_name_65 (
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT PLACE DOES TOM LEHMAN HAVE?
| SELECT place FROM table_name_65 WHERE player = "tom lehman" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.