instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Adv eff benzodiaz tranq" | mimicsql_data |
CREATE TABLE table_68289 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which place has horton smith as the player?
| SELECT "Place" FROM table_68289 WHERE "Player" = 'horton smith' | wikisql |
CREATE TABLE table_204_109 (
id number,
"district" text,
"incumbent" text,
"party" text,
"first\nelected" text,
"result" text,
"candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the next incumbent after john randolph ?
| SELECT "incumbent" FROM table_204_109 WHERE id = (SELECT id FROM table_204_109 WHERE "incumbent" = 'john randolph') + 1 | squall |
CREATE TABLE editor (
Age VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Please show the most common age of editors.
| SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '3415980' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-08-09' AND '2005-09-08' GROUP B... | css |
CREATE TABLE table_7903 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the highest drafted player that attended college at Virginia?
| SELECT MAX("Pick") FROM table_7903 WHERE "College" = 'virginia' | wikisql |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction 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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | atis |
CREATE TABLE table_name_18 (
total VARCHAR,
silver VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many medals were won total for the country that won 1 silver and was ranked 2 or lower?
| SELECT COUNT(total) FROM table_name_18 WHERE silver = 1 AND rank < 2 | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE pat... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'propofol' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRE... | mimic_iii |
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 T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid ... | SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-44805')) AND intakeoutput.celllabel = 'misc.... | eicu |
CREATE TABLE table_name_98 (
points INTEGER,
year VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total amount of points in 1978 with a Chassis of arrows fa1?
| SELECT SUM(points) FROM table_name_98 WHERE year = 1978 AND chassis = "arrows fa1" | 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 Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | nvbench |
CREATE TABLE table_13613 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"GPU frequency" text,
"Cores" text,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" te... | SELECT "Voltage" FROM table_13613 WHERE "Cores" = '2' AND "Release date" = 'september 2010' AND "Turbo" = '5/8' | wikisql |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '82459876' AND gwyjzb.IN_HOSP_DATE BETWEEN '2000-05-09' AND '2017-10-31' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_... | css |
CREATE TABLE table_23992 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- state the status of pick # 32
| SELECT "Status" FROM table_23992 WHERE "Pick #" = '32' | wikisql |
CREATE TABLE table_13342 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT AVG("Water (sqmi)") FROM table_13342 WHERE "Pop. (2010)" > '47' AND "Township" = 'brenna' AND "Longitude" < '-97.171507' | wikisql |
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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | 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.label = "Lymphocytes, Percent" | mimicsql_data |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit te... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | mimic_iii |
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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "OU" | mimicsql_data |
CREATE TABLE table_train_176 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"estimated_glomerular_filtration_rate_egfr" int,
"blood_glucose" int,
"hypoglycemia" bool,
"total_cholesterol" int,
"low_density_lipoprotein_ldl_cholesterol" int,
"triglyceride_t... | SELECT * FROM table_train_176 WHERE estimated_glomerular_filtration_rate_egfr > 30 | criteria2sql |
CREATE TABLE table_41651 (
"Year" text,
"Starts" real,
"Cuts Made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings (\u20ac)" real,
"Money list rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of ... | SELECT AVG("Starts") FROM table_41651 WHERE "Cuts Made" = '11' AND "Top 10" > '4' | wikisql |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc21_t_kc22.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '97104929' AND t_kc21.MED_SER_ORG_NO = '0510522') ORDER BY t_kc22.UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE table_name_7 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance in Week 1?
| SELECT attendance FROM table_name_7 WHERE week = 1 | sql_create_context |
CREATE TABLE table_47294 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the loser when the New York Giants were the winners on November 14?
| SELECT "Loser" FROM table_47294 WHERE "Winner" = 'new york giants' AND "Date" = 'november 14' | wikisql |
CREATE TABLE table_25275 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most margin for nco party and p. ramachandran won
| SELECT MAX("Margin") FROM table_25275 WHERE "Party" = 'NCO' AND "Winner" = 'P. Ramachandran' | wikisql |
CREATE TABLE complaints (
complaint_status_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which complaint status has more than 3 records on file?
| SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND prescriptions.drug = "Gentamicin" | mimicsql_data |
CREATE TABLE table_54393 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the tyres for hans binder
| SELECT "Tyres" FROM table_54393 WHERE "Driver" = 'hans binder' | wikisql |
CREATE TABLE table_name_71 (
nationality VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is the player who scored 27 goals from?
| SELECT nationality FROM table_name_71 WHERE goals = 27 | sql_create_context |
CREATE TABLE table_name_84 (
team_name VARCHAR,
schools VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the team from cisne fairfield school?
| SELECT team_name FROM table_name_84 WHERE schools = "cisne fairfield" | sql_create_context |
CREATE TABLE table_name_7 (
total VARCHAR,
finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of total with finish of t45
| SELECT COUNT(total) FROM table_name_7 WHERE finish = "t45" | sql_create_context |
CREATE TABLE table_59419 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a place of t2?
| SELECT "Player" FROM table_59419 WHERE "Place" = 't2' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare... | SELECT DISTINCT flight_id FROM flight WHERE airline_code = 'TW' | atis |
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM... | css |
CREATE TABLE table_11207040_6 (
team VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What teams does jim mcinally manage?
| SELECT team FROM table_11207040_6 WHERE outgoing_manager = "Jim McInally" | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TA... | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND DATETIME(microlab.culturetakentime, 'start of month') ... | eicu |
CREATE TABLE table_name_98 (
date VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the match at mcg played?
| SELECT date FROM table_name_98 WHERE venue = "mcg" | sql_create_context |
CREATE TABLE table_1206114_2 (
netflow_version VARCHAR,
vendor_and_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the netflow version when vendor and type is pc and servers?
| SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = "PC and Servers" | sql_create_context |
CREATE TABLE table_8508 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a black of Kramnik, opening of E05 Catalan Opening, mov... | SELECT MAX("Year") FROM table_8508 WHERE "Result" = '½–½' AND "Black" = 'kramnik' AND "Opening" = 'e05 catalan opening' AND "Moves" > '38' | wikisql |
CREATE TABLE table_264 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tournament of aug 29?
| SELECT "Tournament" FROM table_264 WHERE "Date" = 'Aug 29' | wikisql |
CREATE TABLE table_9527 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the to par when the place is 8?
| SELECT "To par" FROM table_9527 WHERE "Place" = '8' | wikisql |
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 compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE restriction (
... | 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CINCINNATI' AND date_day.day_number = 30 AND date_day.month_number = 6 A... | atis |
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the following questions fo... | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality | nvbench |
CREATE TABLE table_name_64 (
date VARCHAR,
region VARCHAR,
catalog VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the catalog cy-24623 for New Zealand?
| SELECT date FROM table_name_64 WHERE region = "new zealand" AND catalog = "cy-24623" | sql_create_context |
CREATE TABLE table_name_30 (
total INTEGER,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least total for 1978 years won
| SELECT MIN(total) FROM table_name_30 WHERE year_s__won = "1978" | sql_create_context |
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 person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND 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 = jyjgzb... | css |
CREATE TABLE Detention (
detention_summary VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return all detention summaries.
| SELECT detention_summary FROM Detention | sql_create_context |
CREATE TABLE table_65295 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average react for a rank more than 8?
| SELECT AVG("React") FROM table_65295 WHERE "Rank" > '8' | 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 hz_info_mzjzjlb (
JZLSH number,
... | 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_28023 (
"Episode #" text,
"Original Air Date (UK)" text,
"Episode Title" text,
"Director" text,
"Writer" text,
"Cast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that aired on 13 august 1981... | SELECT "Episode Title" FROM table_28023 WHERE "Original Air Date (UK)" = '13 August 1981' | wikisql |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Tags (
Id number,
TagName text,
Cou... | SELECT u.Id AS "user_link", COUNT(p.OwnerUserId) AS TotalPosts, u.UpVotes, u.DownVotes FROM Users AS u LEFT JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.Id IS NULL AND u.UpVotes + u.DownVotes > '##MinVotes##' GROUP BY u.Id, u.UpVotes, u.DownVotes ORDER BY COUNT(p.OwnerUserId), u.UpVotes DESC | sede |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense... | SELECT p.Id AS "post_link", p.CreationDate AS QuestionAsked, p.AnswerCount AS NumberOfAnswers, v.CreationDate AS AnswerAccepted, DATEDIFF(day, p.CreationDate, CreationDate) AS DiffDate FROM Posts AS p INNER JOIN Posts AS a ON a.Id = p.AcceptedAnswerId INNER JOIN Votes AS v ON a.Id = v.PostId WHERE p.PostTypeId = 1 AND ... | sede |
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(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '7787217' AND t_kc22.SOC_SRT_DIRE_CD = '3265' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO = '7787217' AND t_kc22.SOC_SRT_DIRE_CD = '3265' UNION ... | css |
CREATE TABLE table_72867 (
"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.
-- Name t... | SELECT "Record" FROM table_72867 WHERE "Score" = 'L 93–104 (OT)' | wikisql |
CREATE TABLE table_22282917_26 (
code_ VARCHAR,
_location VARCHAR,
launch_site_condition_owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every code and location where the launch site condition and owner is obliterated?
| SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated" | sql_create_context |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
... | SELECT Tags, COUNT(DISTINCT Id) AS post_cnt FROM Posts WHERE YEAR(CreationDate) = '2017' GROUP BY Tags ORDER BY post_cnt DESC LIMIT 10 | sede |
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 lab.flag, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Roxanna Weaver" | mimicsql_data |
CREATE TABLE table_204_480 (
id number,
"title" text,
"alternate title(s)" text,
"year" number,
"manufacturer" text,
"genre(s)" text,
"max. players" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many arcade games were released before ... | SELECT COUNT(*) FROM table_204_480 WHERE "year" < 1979 | squall |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT Q.Id AS "post_link" FROM Posts AS Q INNER JOIN Posts AS A ON (Q.Id = A.ParentId) INNER JOIN Users AS U ON (Q.OwnerUserId = U.Id) WHERE Q.PostTypeId = 1 AND A.PostTypeId = 2 AND A.OwnerUserId = @UserId AND Q.AcceptedAnswerId IS NULL AND Q.ClosedDate IS NULL AND NOT EXISTS(SELECT A2.Id FROM Posts AS A2 WHERE A2.Po... | sede |
CREATE TABLE table_name_33 (
class VARCHAR,
quantity VARCHAR,
gwr_nos VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class is smaller than 5 and the GWR is 1322 1323?
| SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
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,
JY... | SELECT jyjgzbb.JYZBLSH 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.BGDH WHERE hz... | css |
CREATE TABLE table_15193 (
"Name" text,
"Race" text,
"Current age" real,
"Age at offense" real,
"Years on death row" real,
"Location of offense" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the prisoner that is older than 45 and has ser... | SELECT "Name" FROM table_15193 WHERE "Current age" > '45' AND "Years on death row" < '22' | wikisql |
CREATE TABLE table_66155 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT SUM("Water (sqmi)") FROM table_66155 WHERE "Land ( sqmi )" = '35.918' AND "Longitude" < '-97.115459' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT DISTINCT Q.Id AS "post_link", A.CreationDate FROM Posts AS Q INNER JOIN PostHistory AS PH ON Q.Id = PH.PostId INNER JOIN Posts AS A ON Q.Id = A.ParentId WHERE PH.CreationDate <= DATEADD(d, -2, GETDATE()) AND PH.PostHistoryTypeId = 10 AND PH.UserId = @UserId AND NOT Q.ClosedDate IS NULL AND A.Score > 0 | sede |
CREATE TABLE table_name_40 (
rank_points VARCHAR,
event VARCHAR,
score_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Rank points has an Event of wc beijing, and Score points of 11?
| SELECT rank_points FROM table_name_40 WHERE event = "wc beijing" AND score_points = "11" | sql_create_context |
CREATE TABLE table_26010 (
"Pos" real,
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Power stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT MAX("Finishes") FROM table_26010 | wikisql |
CREATE TABLE table_1601027_1 (
headphone_model VARCHAR,
driver_matched_db VARCHAR,
us_msrp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
| SELECT headphone_model FROM table_1601027_1 WHERE driver_matched_db = "0.1" AND us_msrp = "$49" | sql_create_context |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_i... | SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cv dis nec-deliver w p/p') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2102' GROUP BY STRFTIME('%y... | mimic_iii |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | (SELECT * 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.BGDH WHERE hz_info.RYBH = ... | css |
CREATE TABLE diagnoses (
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 procedures (
... | SELECT demographic.days_stay, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "813" | mimicsql_data |
CREATE TABLE table_name_84 (
lane VARCHAR,
react VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Lane has a 0.209 React entered with a Rank entry that is larger than 6?
| SELECT lane FROM table_name_84 WHERE react > 0.209 AND rank > 6 | sql_create_context |
CREATE TABLE table_20396 (
"N\u00b0" text,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What package ... | SELECT "Package/Option" FROM table_20396 WHERE "Content" = 'cinema' AND "N\u00b0" = '333' | wikisql |
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(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0295569' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-01-07' AND '2013-04-27' AND t_kc21.INSU_TYPE = '儿童' | css |
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 program_requirement (
program_id int,
category varchar,
min_credit int,
additio... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE program_course.catego... | advising |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 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_203_767 (
id number,
"season" text,
"club" text,
"league" text,
"apps" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did ibricic score more or less goals in his 3 seasons with hajduk split when compared to h... | SELECT (SELECT SUM("goals") FROM table_203_767 WHERE "club" = 'hajduk split') > (SELECT SUM("goals") FROM table_203_767 WHERE "club" = 'nk zagreb') | squall |
CREATE TABLE table_name_15 (
callback_venue VARCHAR,
audition_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the callback venue for the Phoenix, Arizona auditions?
| SELECT callback_venue FROM table_name_15 WHERE audition_city = "phoenix, arizona" | sql_create_context |
CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary VARCHAR(255),
recommendations VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Incident_Type (
... | SELECT date_address_from, COUNT(date_address_from) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE table_72640 (
"Date" text,
"Tournament" text,
"Player" text,
"Country" text,
"Rounds" text,
"Score" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What players finished 2nd?
| SELECT "Player" FROM table_72640 WHERE "Finish" = '2nd' | wikisql |
CREATE TABLE table_3358 (
"Total" real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"UK air date" text,
"Canadian Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the UK a... | SELECT "Written by" FROM table_3358 WHERE "UK air date" = 'February 18, 2013' | wikisql |
CREATE TABLE table_49851 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did they play when the score was 95-118?
| SELECT "Opponent" FROM table_49851 WHERE "Score" = '95-118' | wikisql |
CREATE TABLE table_42109 (
"Source" text,
"Date" text,
"Clinton" text,
"Obama" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Obama that has a Source of rasmussen reports?
| SELECT "Obama" FROM table_42109 WHERE "Source" = 'rasmussen reports' | wikisql |
CREATE TABLE table_44462 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Player that has a To standard of 1, and a Score of 71-68-76=215?
| SELECT "Player" FROM table_44462 WHERE "To par" = '–1' AND "Score" = '71-68-76=215' | wikisql |
CREATE TABLE table_78757 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ceremony year when Ganito Kami Noon, Paano Kayo Ngay... | SELECT "Year (Ceremony)" FROM table_78757 WHERE "Original title" = 'ganito kami noon, paano kayo ngayon' | wikisql |
CREATE TABLE complaints (
complaint_id number,
product_id number,
customer_id number,
complaint_outcome_code text,
complaint_status_code text,
complaint_type_code text,
date_complaint_raised time,
date_complaint_closed time,
staff_id number
)
CREATE TABLE customers (
customer_id... | SELECT town_city FROM customers WHERE customer_type_code = "Good Credit Rating" GROUP BY town_city ORDER BY COUNT(*) LIMIT 1 | spider |
CREATE TABLE table_7664 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Format when Alfa records is the label, and there is a Catalog of alca-9016?
| SELECT "Format" FROM table_7664 WHERE "Label" = 'alfa records' AND "Catalog" = 'alca-9016' | wikisql |
CREATE TABLE table_42850 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Entrant" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco ente... | SELECT "Start" FROM table_42850 WHERE "Engine" = 'ford cosworth dfx' AND "Year" > '1981' AND "Entrant" = 'kraco enterprises' | wikisql |
CREATE TABLE table_54457 (
"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 was Windy Hill used as a venue?
| SELECT "Date" FROM table_54457 WHERE "Venue" = 'windy hill' | wikisql |
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 cost (
costid num... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-16431' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitala... | eicu |
CREATE TABLE table_25756 (
"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 (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Title" FROM table_25756 WHERE "Directed by" = 'Rodney Clouden' | wikisql |
CREATE TABLE table_name_6 (
rank INTEGER,
silver INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rank when silver is less than 0?
| SELECT SUM(rank) FROM table_name_6 WHERE silver < 0 | sql_create_context |
CREATE TABLE table_name_76 (
date INTEGER,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Score of 3 6, 6 4, 3 6, 6 1, 6 2
| SELECT SUM(date) FROM table_name_76 WHERE score = "3–6, 6–4, 3–6, 6–1, 6–2" | sql_create_context |
CREATE TABLE diagnoses (
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
)
C... | SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "Dawn Cooper" | mimicsql_data |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Users.Id AS "user_link", Reputation, Location, Name FROM Users, Badges WHERE Users.Id = Badges.UserId AND Badges.TagBased = 1 AND Users.Location LIKE '%United%' AND Badges.Name = 'knockout.js' AND Badges.Name = 'reactjs' ORDER BY Reputation DESC | sede |
CREATE TABLE table_12338595_1 (
average VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much is the average score for New York state?
| SELECT average FROM table_12338595_1 WHERE state = "New York" | sql_create_context |
CREATE TABLE table_name_53 (
react INTEGER,
mark INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average React, when Mark is less than 7.93?
| SELECT AVG(react) FROM table_name_53 WHERE mark < 7.93 | sql_create_context |
CREATE TABLE table_4209 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" text,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the best finish for 206 on the money list?
| SELECT "Best finish" FROM table_4209 WHERE "Money list rank" = '206' | wikisql |
CREATE TABLE table_name_73 (
crowd INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the team with the smallest crowd at the Princes Park venue?
| SELECT MIN(crowd) FROM table_name_73 WHERE venue = "princes park" | sql_create_context |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varc... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | atis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.