instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3519597' AND t_kc21.IN_HOSP_DATE BETWEEN '2013-12-23' AND '2020-10-22' AND t_kc21.IN_DIAG_DIS_CD <> t_kc21.OUT_DIAG_DIS_CD | css |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_lo... | 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 = 'OAKLAND' AND date_day.day_number = 25 AND date_day.month_number = 6 AND d... | atis |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "DMI neuro nt st uncntrld" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
... | (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 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 jyjgzbb (
BGDH text,
BGRQ tim... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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.... | css |
CREATE TABLE table_1140080_2 (
rnd INTEGER,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the minimum rnd with race italian grand prix
| SELECT MIN(rnd) FROM table_1140080_2 WHERE race = "Italian Grand Prix" | 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(DISTINCT T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code ORDER BY COUNT(DISTINCT T1.Name) | nvbench |
CREATE TABLE table_name_86 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on June 29?
| SELECT opponent FROM table_name_86 WHERE date = "june 29" | 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 MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dod_year < "2115.0" | mimicsql_data |
CREATE TABLE table_name_89 (
tamil_months VARCHAR,
english_transliteration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the months in Tamil that has an english transliteration of Mun-pani?
| SELECT tamil_months FROM table_name_89 WHERE english_transliteration = "mun-pani" | sql_create_context |
CREATE TABLE table_name_22 (
rating VARCHAR,
air_date VARCHAR,
share VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Rating(s), when Air Date is June 25, 2008, and when Share is greater than 3?
| SELECT COUNT(rating) FROM table_name_22 WHERE air_date = "june 25, 2008" AND share > 3 | sql_create_context |
CREATE TABLE table_10547 (
"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.
-- What was the attendance at the game when the awa... | SELECT "Crowd" FROM table_10547 WHERE "Away team score" = '21.14 (140)' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semest... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course_offering.friday = 'N' AND course.department = 'NRE' AND semester.semester = 'WN' AND se... | advising |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_50192 (
"Player" text,
"Country" text,
"Year(s) won" real,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Year(s) Won, when Player is Arnold Palmer?
| SELECT "Year(s) won" FROM table_50192 WHERE "Player" = 'arnold palmer' | wikisql |
CREATE TABLE table_name_41 (
rowers VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rowers have FA as the notes?
| SELECT rowers FROM table_name_41 WHERE notes = "fa" | sql_create_context |
CREATE TABLE zyb (
CLINIC_ID 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,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '38590585' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE ... | css |
CREATE TABLE table_10669 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least laps for driver gerhard berger with a grid more than 6?
| SELECT MIN("Laps") FROM table_10669 WHERE "Driver" = 'gerhard berger' AND "Grid" > '6' | wikisql |
CREATE TABLE table_47756 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the match with Opponent in the final of Filip Pol ek?
| SELECT "Date" FROM table_47756 WHERE "Opponent in the final" = 'filip polášek' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 28020 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_44398 (
"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.
-- What team was the home team when Tottenham Hotspur is the away team?
| SELECT "Home team" FROM table_44398 WHERE "Away team" = 'tottenham hotspur' | wikisql |
CREATE TABLE room (
blockcode VARCHAR,
unavailable VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the unique block codes that have available rooms?
| SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 | sql_create_context |
CREATE TABLE table_18018 (
"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.
-- What week did the Seahawks play at los angeles memorial coliseu... | SELECT MIN("Week") FROM table_18018 WHERE "Game site" = 'Los Angeles Memorial Coliseum' | wikisql |
CREATE TABLE table_43687 (
"Nationality" text,
"Position" text,
"Gillingham career" text,
"Apps." real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the mf from England play for Gillingham that made 0 goals and less than 37 appear... | SELECT "Gillingham career" FROM table_43687 WHERE "Goals" = '0' AND "Apps." < '37' AND "Nationality" = 'england' AND "Position" = 'mf' | wikisql |
CREATE TABLE table_62598 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total for Seve Ballesteros?
| SELECT SUM("Total") FROM table_62598 WHERE "Player" = 'seve ballesteros' | wikisql |
CREATE TABLE fzzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jyb... | css |
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 patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-47601') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.unitadmittime LIMIT 1 | eicu |
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(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Small-to-small intestinal anastomosis" | mimicsql_data |
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int... | SELECT Minister, COUNT(Minister) FROM party WHERE Party_name <> 'Progress Party' GROUP BY Minister | nvbench |
CREATE TABLE table_14300 (
"Name A[\u203a ]" text,
"Dam or A[\u203a ] Reservoir" text,
"GNIS Feature ID # Link A[\u203a ] B[\u203a ]" real,
"Elevation A[\u203a ]" text,
"Borough or A[\u203a ] Census area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Name A[\u203a ]" FROM table_14300 WHERE "Borough or A[\u203a ] Census area" = 'ketchikan gateway' AND "Dam or A[\u203a ] Reservoir" = 'reservoir' | 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_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '82923898' AND t_kc21.MED_SER_ORG_NO = '7620449' AND NOT t_kc21.IN_DIAG_DIS_NM LIKE '%震颤麻痹%' | css |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3267) AND prescriptions.route = 'subcut' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2102-09' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_1571238_2 (
third_place VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the team is Toronto how many times did they place third?
| SELECT COUNT(third_place) FROM table_1571238_2 WHERE team = "Toronto" | sql_create_context |
CREATE TABLE table_58923 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?
| SELECT MIN("Bronze") FROM table_58923 WHERE "Total" < '10' AND "Gold" < '0' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '陶乐贤' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_72591 (
"Year" text,
"Channel" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Courtside reporter" text,
"Studio host" text,
"Studio analysts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the studio host ... | SELECT "Studio host" FROM table_72591 WHERE "Year" = '2006-07' | wikisql |
CREATE TABLE table_61627 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver finished in ... | SELECT "Driver" FROM table_61627 WHERE "Fin. Pos" = '8' | wikisql |
CREATE TABLE table_train_276 (
"id" int,
"hbv" bool,
"systolic_blood_pressure_sbp" int,
"hiv_infection" bool,
"hcv" bool,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for ... | SELECT * FROM table_train_276 WHERE hypertension = 0 OR systolic_blood_pressure_sbp < 130 OR diastolic_blood_pressure_dbp < 80 | criteria2sql |
CREATE TABLE table_1940144_1 (
change_since_2006 VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many places did the rank change since 22006 for County Leitrim?
| SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = "county Leitrim" | sql_create_context |
CREATE TABLE table_name_16 (
round VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was Tom Morris picked in?
| SELECT COUNT(round) FROM table_name_16 WHERE player = "tom morris" | sql_create_context |
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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE... | 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 ((flight.departure_time <= 1000 AND flight.departure_time >= 0) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND flight.to... | atis |
CREATE TABLE table_name_69 (
wins INTEGER,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least wins for 6 points
| SELECT MIN(wins) FROM table_name_69 WHERE points = 6 | sql_create_context |
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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "3310" AND lab.fluid = "Pleural" | mimicsql_data |
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 diagnosis (
diagn... | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'mpv' ... | eicu |
CREATE TABLE table_16029 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the match with partner Jim Pugh?
| SELECT "Score" FROM table_16029 WHERE "Partner" = 'Jim Pugh' | wikisql |
CREATE TABLE table_name_14 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Score 105-128?
| SELECT date FROM table_name_14 WHERE score = "105-128" | sql_create_context |
CREATE TABLE match_result (
rank number,
club_id number,
gold number,
big_silver number,
small_silver number,
bronze number,
points number
)
CREATE TABLE coach (
coach_id number,
coach_name text,
gender text,
club_id number,
rank number
)
CREATE TABLE player (
playe... | SELECT T3.player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.coach_id = T2.coach_id JOIN player AS T3 ON T1.player_id = T3.player_id WHERE T1.starting_year > 2011 | spider |
CREATE TABLE table_17488 (
"Series #" real,
"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 above.
-- ... | SELECT COUNT("Series #") FROM table_17488 WHERE "Written by" = 'William N. Fordes' | wikisql |
CREATE TABLE table_49737 (
"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.
-- Who was the away team when Manchester United played at home on 10 February 1951?
| SELECT "Away team" FROM table_49737 WHERE "Date" = '10 february 1951' AND "Home team" = 'manchester united' | wikisql |
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 AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year > "2080" | mimicsql_data |
CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE band (
id number,
firstname text,
lastname text
)
CREATE TABLE instruments (
songid number,
bandmateid number,
instrument text
)
CREATE TABLE vocals (
songid number,
bandmate numbe... | SELECT COUNT(DISTINCT label) FROM albums | spider |
CREATE TABLE table_5909 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance when Nuneaton Borough was the home team?
| SELECT "Attendance" FROM table_5909 WHERE "Home team" = 'nuneaton borough' | wikisql |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime ... | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.charttime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id... | mimic_iii |
CREATE TABLE table_47396 (
"Rank" real,
"Rider" text,
"Team" text,
"Time" text,
"Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the rider with 120.953 mph speed?
| SELECT "Rider" FROM table_47396 WHERE "Speed" = '120.953 mph' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_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,
C... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM 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 = '90461367' AND t_kc21.MED_SER_ORG_NO = '5572160' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-04-20' AND '2004-12-07') | css |
CREATE TABLE table_51936 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Established" real,
"Championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which WNBA team that won at least 2 championships was established most recently... | SELECT MAX("Established") FROM table_51936 WHERE "League" = 'wnba' AND "Championships" > '2' | wikisql |
CREATE TABLE table_name_52 (
rank INTEGER,
name VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank of flori lang when his time was less than 22.27
| SELECT SUM(rank) FROM table_name_52 WHERE name = "flori lang" AND time < 22.27 | sql_create_context |
CREATE TABLE table_10674 (
"Team" text,
"Lost" real,
"Tied" real,
"Pct." real,
"Years" real,
"Total Games" real,
"Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the total games in the Big Ten conference when Nebraska lo... | SELECT SUM("Total Games") FROM table_10674 WHERE "Conference" = 'big ten' AND "Lost" < '488' AND "Team" = 'nebraska' AND "Pct." < '0.7014' | wikisql |
CREATE TABLE Shipment_Items (
shipment_id INTEGER,
order_item_id INTEGER
)
CREATE TABLE Products (
product_id INTEGER,
product_name VARCHAR(80),
product_details VARCHAR(255)
)
CREATE TABLE Shipments (
shipment_id INTEGER,
order_id INTEGER,
invoice_number INTEGER,
shipment_tracking_... | SELECT date_order_placed, COUNT(date_order_placed) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" | nvbench |
CREATE TABLE table_name_47 (
country VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country has tiger woods
| SELECT country FROM table_name_47 WHERE player = "tiger woods" | sql_create_context |
CREATE TABLE table_name_38 (
spouse VARCHAR,
birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Spouse has a Birth of 30 may 1653?
| SELECT spouse FROM table_name_38 WHERE birth = "30 may 1653" | sql_create_context |
CREATE TABLE table_name_93 (
label VARCHAR,
catalogue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the label for catalogue of RT-346-5?
| SELECT label FROM table_name_93 WHERE catalogue = "rt-346-5" | sql_create_context |
CREATE TABLE table_77357 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Dauphine" text,
"Ceased to be Dauphine" text,
"Death" text,
"Husband" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was became dauphine when birth is 1393?
| SELECT "Became Dauphine" FROM table_77357 WHERE "Birth" = '1393' | wikisql |
CREATE TABLE table_45055 (
"Season" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of wins in the 2007 season when the fastest laps is 0, ther... | SELECT SUM("Wins") FROM table_45055 WHERE "Fastest Laps" = '0' AND "Races" < '16' AND "Season" = '2007' AND "Podiums" < '0' | 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 WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA" AND demographic.admityear < "2198" | mimicsql_data |
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 MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay = "20" | mimicsql_data |
CREATE TABLE table_54173 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the lowest point value that had not only a Chevrolet car, but also a car number s... | SELECT MIN("Points") FROM table_54173 WHERE "Make" = 'chevrolet' AND "Car #" < '24' AND "Laps" = '312' AND "Winnings" = '$122,325' | wikisql |
CREATE TABLE table_24887326_8 (
score_1 VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the away team was norwich city?
| SELECT score_1 FROM table_24887326_8 WHERE away_team = "Norwich City" | sql_create_context |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT Id, Reputation, DisplayName FROM Users WHERE Location LIKE '%##Location##%' ORDER BY Reputation DESC | sede |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape | nvbench |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
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 in... | 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITT... | atis |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS va... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConce... | SELECT Id AS "comment_link", Text FROM Comments WHERE Text LIKE '%##Word##%' AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##' | sede |
CREATE TABLE table_name_19 (
finish INTEGER,
year VARCHAR,
start VARCHAR,
engine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the finish associated with under 11 starts, a honda engine, before 2003?
| SELECT AVG(finish) FROM table_name_19 WHERE start < 11 AND engine = "honda" AND year < 2003 | sql_create_context |
CREATE TABLE table_76554 (
"Date" text,
"Captain 1" text,
"Team 2" text,
"Captain 2" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Captain 2 of louis burger?
| SELECT "Result" FROM table_76554 WHERE "Captain 2" = 'louis burger' | wikisql |
CREATE TABLE table_name_92 (
result VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the match that had a score of 58-6?
| SELECT result FROM table_name_92 WHERE score = "58-6" | sql_create_context |
CREATE TABLE table_204_556 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many women competed during the 1980 winter olympic women 's 1000 metres in speed skati... | SELECT COUNT("athlete") FROM table_204_556 | squall |
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 IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '窦麦冬' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT > 5656.54) | css |
CREATE TABLE table_64265 (
"Rank" text,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the speed for rank 1?
| SELECT "Speed" FROM table_64265 WHERE "Rank" = '1' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'ventilator wean... | eicu |
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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "HOME HEALTH CARE" | mimicsql_data |
CREATE TABLE table_32259 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue featured a notes of 2:38:44?
| SELECT "Venue" FROM table_32259 WHERE "Notes" = '2:38:44' | wikisql |
CREATE TABLE table_train_83 (
"id" int,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"iq" int,
"geriatric_depression_scale_gds" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for... | SELECT * FROM table_train_83 WHERE diabetic = 'i' | criteria2sql |
CREATE TABLE table_11761 (
"Name" text,
"Location" text,
"Elevation + Height" text,
"Delivery" text,
"Purpose" text,
"Yield" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Elevation + Height has a Delivery of barge and a Location of bikini... | SELECT "Elevation + Height" FROM table_11761 WHERE "Delivery" = 'barge' AND "Location" = 'bikini, yurochi aka irioj (dog)' | wikisql |
CREATE TABLE table_54360 (
"Candidate" text,
"Contributions" real,
"Loans Received" real,
"All Receipts" real,
"Operating Expenditures" real,
"All Disbursements" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much in average Loans Received h... | SELECT AVG("Loans Received") FROM table_54360 WHERE "Contributions" < '34,986,088' AND "All Disbursements" > '251,093,944' AND "Candidate" = 'dennis kucinich †' AND "Operating Expenditures" > '3,638,219' | wikisql |
CREATE TABLE table_name_44 (
viewers VARCHAR,
order VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
| SELECT AVG(18 AS _49) FROM table_name_44 WHERE viewers < 3.5 AND order > 35 | sql_create_context |
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 COUNT(*) FROM mzjzjlb WHERE YLJGDM = '8951695' AND JZKSRQ BETWEEN '2000-12-30' AND '2020-10-26' AND ZSEBZ > 0 | css |
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 AVG(MED_AMOUT) FROM t_kc24 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_AGE >= 10) | css |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, AVG(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC | nvbench |
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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.icd9_code = "79439" | mimicsql_data |
CREATE TABLE table_name_39 (
winner VARCHAR,
prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of the prize z 1,226,711?
| SELECT winner FROM table_name_39 WHERE prize = "zł 1,226,711" | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "82" AND lab.label = "Chloride" | mimicsql_data |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048')) AND DATETIME(diagnosis.diagnosistime, 'start of year... | eicu |
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 diagnosis (
diagn... | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anemia - ... | eicu |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a histogram on how o... | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC | nvbench |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
... | SELECT a.OwnerUserId AS "user_link", COUNT(DISTINCT a.Id) AS "accepted", COUNT(DISTINCT b.Id) AS "enlightened", (CAST(COUNT(DISTINCT b.Id) AS FLOAT) / COUNT(DISTINCT a.Id)) * 100.0 AS "percentage_enlightened", COUNT(DISTINCT b.Id) * (CAST(COUNT(DISTINCT b.Id) AS FLOAT) / COUNT(DISTINCT a.Id)) * 100.0 AS "weighting" FRO... | sede |
CREATE TABLE table_name_10 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record on July 12?
| SELECT record FROM table_name_10 WHERE date = "july 12" | sql_create_context |
CREATE TABLE table_5095 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game against Luxembourg?
| SELECT "Results\u00b9" FROM table_5095 WHERE "Opponent" = 'luxembourg' | wikisql |
CREATE TABLE table_34712 (
"Year" text,
"National Champion" text,
"Runner-Up" text,
"Location" text,
"Host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Runner-up in the Monroe County Sports Commission?
| SELECT "Runner-Up" FROM table_34712 WHERE "Host" = 'monroe county sports commission' | wikisql |
CREATE TABLE table_27146 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team record after th... | SELECT "Team record" FROM table_27146 WHERE "Opponent" = 'Frankfurt Galaxy' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.