instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_51 (
pick INTEGER,
position VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?
| SELECT MIN(pick) FROM table_name_51 WHERE position = "ss, p" AND team = "minnesota twins" | sql_create_context |
CREATE TABLE table_37351 (
"Week" real,
"Date" text,
"Opponent" text,
"Time ( ET )" text,
"Game site" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week with a record of 2-1?
| SELECT COUNT("Week") FROM table_37351 WHERE "Record" = '2-1' | 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 MED_SER_ORG_NO FROM t_kc21 WHERE PERSON_NM = '姜璇子' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE SOC_SRT_DIRE_NM = '阿立哌唑口腔崩解片') | css |
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT HIRE_DATE, SALARY FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
CREATE TABLE table_5230 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Total points for a bs automotive entrant?
| SELECT COUNT("Points") FROM table_5230 WHERE "Entrant" = 'bs automotive' | wikisql |
CREATE TABLE table_name_29 (
semifinalists VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Semifinalists that has a Tournament of Cincinnati?
| SELECT semifinalists FROM table_name_29 WHERE tournament = "cincinnati" | sql_create_context |
CREATE TABLE company (
company VARCHAR,
main_industry VARCHAR,
headquarters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the company name and the main industry for all companies whose headquarters are not from USA.
| SELECT company, main_industry FROM company WHERE headquarters <> 'USA' | sql_create_context |
CREATE TABLE table_name_93 (
status VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the 10 against?
| SELECT status FROM table_name_93 WHERE against = 10 | sql_create_context |
CREATE TABLE table_name_25 (
average_parish_size INTEGER,
_percentage_of_adherents VARCHAR,
regular_attendees VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees?
| SELECT MIN(average_parish_size) FROM table_name_25 WHERE _percentage_of_adherents = "47.2%" AND regular_attendees > 4 OFFSET 936 | sql_create_context |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 500 AND 500 + 100 AND semester.semester IN ('SP', 'SU', 'SS') AND semester.semester_i... | 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 MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "8" AND demographic.admityear >= "2103" | mimicsql_data |
CREATE TABLE table_name_5 (
goals VARCHAR,
club VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals did the club from Hawthorn score in the 1971 season?
| SELECT goals FROM table_name_5 WHERE club = "hawthorn" AND season = "1971" | sql_create_context |
CREATE TABLE table_60644 (
"Year" real,
"Total Horses" real,
"Working Horses" text,
"Total Cattle" real,
"Oxen" real,
"Bulls" text,
"Cows" real,
"Pigs" real,
"Sheep and Goats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was t... | SELECT MIN("Total Horses") FROM table_60644 WHERE "Total Cattle" < '6274.1' AND "Oxen" < '156.5' AND "Bulls" = '40.0' AND "Cows" < '3377' | wikisql |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.long_title = "Initial insertion of transvenous lead [electrode] into ventricle" | mimicsql_data |
CREATE TABLE gyb (
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 SUM(t_kc24.OVE_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 '2010-10-19' AND '2016-11-12' UNION SELECT SUM(t_kc24.OVE_PAY) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.PERSON_NM = '苗婉丽' AND t_kc2... | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "11" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time... | SELECT Id AS "postlink", Id, Title, Score, Tags, Body, CreationDate FROM Posts WHERE CreationDate < '2013-01-01' AND ClosedDate IS NULL AND AnswerCount = 1 AND Score > 0 ORDER BY Score DESC | sede |
CREATE TABLE table_name_84 (
opponents_in_the_final VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
| SELECT opponents_in_the_final FROM table_name_84 WHERE score = "4-1 5-4 (7) 4-2" | sql_create_context |
CREATE TABLE table_18811 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What amo... | SELECT "University students and Adults (18yrs+)" FROM table_18811 WHERE "Senior High School (15\u201318 yrs)" = '26mm' | wikisql |
CREATE TABLE table_name_13 (
home_team VARCHAR,
rank VARCHAR,
capacity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home team has a rank greater than 6, and 94,392 as the capacity?
| SELECT home_team FROM table_name_13 WHERE rank > 6 AND capacity = "94,392" | sql_create_context |
CREATE TABLE table_61194 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & Jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?
| SELECT AVG("Snatch") FROM table_61194 WHERE "Total (kg)" > '318' AND "Bodyweight" = '84.15' | wikisql |
CREATE TABLE table_77003 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Points when the artist is kamil mikul ... | SELECT AVG("Points") FROM table_77003 WHERE "Artist" = 'kamil mikulčík and nela' AND "Place" > '18' | wikisql |
CREATE TABLE table_204_504 (
id number,
"year" number,
"award" text,
"category" text,
"work" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did she win as an outstanding actress in a daytime drama series more than she lost ?
| SELECT (SELECT COUNT(*) FROM table_204_504 WHERE "result" = 'won' AND "category" = 'outstanding actress in a daytime drama series') > (SELECT COUNT(*) FROM table_204_504 WHERE "result" <> 'won' AND "category" = 'outstanding actress in a daytime drama series') | squall |
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
cha... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25733) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY prescriptions.startdate LIMIT 1 | mimic_iii |
CREATE TABLE zyjybgb (
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 person_info.XM FROM person_info JOIN hz_info JOIN zyjzjlb JOIN zyjybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND zyjzjlb.YLJGDM = zyjybgb.YLJGDM_ZYJZJLB AND zyjzjlb.JZLSH = zyjybgb.JZLSH_ZYJZJLB WHERE zyjybgb.BGDH = '36585... | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, 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 = 'mixed acid base disorder - respiratory a... | eicu |
CREATE TABLE table_49023 (
"School Year" text,
"Volleyball" text,
"Cross Country" text,
"Soccer" text,
"Tennis" text,
"Golf" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is School Year, when Cross Country is Wooster?
| SELECT "School Year" FROM table_49023 WHERE "Cross Country" = 'wooster' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Persistent postoperative fistula" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_43405 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which club has Jamie Korab as Lead?
| SELECT "Club" FROM table_43405 WHERE "Lead" = 'jamie korab' | wikisql |
CREATE TABLE table_3832 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What wa... | SELECT "Location Attendance" FROM table_3832 WHERE "Game" = '2' | wikisql |
CREATE TABLE table_203_400 (
id number,
"district" text,
"vacator" text,
"reason for change" text,
"successor" text,
"date successor\nseated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was catherine s. long 's previous representative ?
| SELECT "vacator" FROM table_203_400 WHERE "successor" = 'catherine s. long' | squall |
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_seaso... | SELECT Title, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Title ORDER BY Title DESC | nvbench |
CREATE TABLE table_23157997_13 (
mountains_classification VARCHAR,
youth_classification VARCHAR,
points_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Mountains Classification in the race with Nick Frey as Youth Classification and ... | SELECT mountains_classification FROM table_23157997_13 WHERE youth_classification = "Nick Frey" AND points_classification = "Tom Zirbel" | sql_create_context |
CREATE TABLE table_name_1 (
score VARCHAR,
date VARCHAR,
set_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Date is Jun 16, and when Set 4 is 25-20?
| SELECT score FROM table_name_1 WHERE date = "jun 16" AND set_4 = "25-20" | sql_create_context |
CREATE TABLE table_9188 (
"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 was the score for the match at the tournament in canada f7, toronto?
| SELECT "Score" FROM table_9188 WHERE "Tournament" = 'canada f7, toronto' | 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 (
KH text,
KLX number... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybg... | css |
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 AVG(demographic.days_stay) FROM demographic WHERE demographic.ethnicity = "ASIAN" | mimicsql_data |
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 WHERE MED_SER_ORG_NO = '3892472' AND IN_HOSP_DATE BETWEEN '2010-05-27' AND '2021-02-21' AND SERVANT_FLG = '公务员' | css |
CREATE TABLE table_52167 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total value in a League less than 1 with more than 1 League Cup?
| SELECT AVG("Total") FROM table_52167 WHERE "League" < '1' AND "League Cup" > '1' | wikisql |
CREATE TABLE table_name_42 (
to_par INTEGER,
country VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Country of australia, and a Year(s) won of 1990?
| SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990" | sql_create_context |
CREATE TABLE table_204_852 (
id number,
"year" number,
"film" text,
"language" text,
"character" text,
"co-star" text,
"music" text,
"banner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films did the actress appear in 1941 /
| SELECT COUNT("film") FROM table_204_852 WHERE "year" = 1941 | squall |
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE team (
Team_id int,
... | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_59067 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the shooter that is the Defending Champion?
| SELECT "Shooter" FROM table_59067 WHERE "Total" = 'defending champion' | wikisql |
CREATE TABLE table_name_83 (
surface VARCHAR,
opponent_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what surface did Katarina Srebotnik play Paola Su rez?
| SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez" | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd 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 = "MILRBASE" | mimicsql_data |
CREATE TABLE table_28511558_2 (
original_air_date__us_ VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.?
| SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = "Curt Geda" AND written_by = "Mitch Watson" | sql_create_context |
CREATE TABLE table_22759 (
"Name" text,
"Country" text,
"Seasons" text,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT COUNT("Wins") FROM table_22759 WHERE "Name" = 'Michele Rugolo Category:Articles with hCards' | wikisql |
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT T1.pname FROM player AS T1 JOIN tryout AS T2 ON T1.pid = T2.pid ORDER BY T1.pname | spider |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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... | css |
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 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.MED_SER_ORG_NO = '3974649' AND t_kc22.SOC_SRT_DIRE_CD = '165044266-n' | css |
CREATE TABLE table_71675 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Team 2 has a second leg of 1-0?
| SELECT "Team 2" FROM table_71675 WHERE "2nd leg" = '1-0' | wikisql |
CREATE TABLE table_name_14 (
position VARCHAR,
bats VARCHAR,
surname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position has L bats and Anderson as a surname?
| SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson" | sql_create_context |
CREATE TABLE table_train_244 (
"id" int,
"fasting_venous_plasma_glucose" int,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"capillary_glycated_hemoglobin" float,
"fasting_capillary_glucose" int,
"borderline_fasting_capillary_glucose_level" int,
"body_mass_index_bmi" float,
"fasti... | SELECT * FROM table_train_244 WHERE (CASE WHEN capillary_glycated_hemoglobin >= 5.7 AND capillary_glycated_hemoglobin <= 6.4 THEN 1 ELSE 0 END + CASE WHEN fasting_capillary_glucose >= 100 AND fasting_capillary_glucose <= 125 THEN 1 ELSE 0 END + CASE WHEN capillary_glycated_hemoglobin < 5.7 AND borderline_fasting_capill... | criteria2sql |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
h... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 70516) AND prescriptions.drug = 'morphine sulfate' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND S... | mimic_iii |
CREATE TABLE table_22879262_7 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what ist he date of game 29?
| SELECT date FROM table_22879262_7 WHERE game = 29 | sql_create_context |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE equipment_sequence (... | 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, days, flight WHERE ((((flight.departure_time <= 601 AND flight.departure_time >= 1759) AND days.day_name = 'TUESDAY' AND flight.flight_days = days.days_code) OR ((flight.depa... | atis |
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, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
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_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '6110632' GROUP BY t_kc21.MED_ORG_DEPT_CD | css |
CREATE TABLE VOTING_RECORD (
CLASS_Senator_VOTE VARCHAR
)
CREATE TABLE STUDENT (
Fname VARCHAR,
StuID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the distinct first names of the students who have class senator votes.
| SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE | sql_create_context |
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Participates_in (
stuid IN... | SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY Building DESC | nvbench |
CREATE TABLE table_63441 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time did the team from Ukraine have?
| SELECT "Time" FROM table_63441 WHERE "Country" = 'ukraine' | wikisql |
CREATE TABLE table_37284 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest amount of draws when the p... | SELECT MIN("Drawn") FROM table_37284 WHERE "Position" < '7' AND "Against" = '19' | wikisql |
CREATE TABLE table_1507806_1 (
year VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2?
| SELECT year FROM table_1507806_1 WHERE winning_score = "3 & 2" | sql_create_context |
CREATE TABLE table_38302 (
"Rank" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Director(s) made the film hanzubon no ojisan and received a prize of 300,000?
| SELECT "Director(s)" FROM table_38302 WHERE "Prize" = '¥300,000' AND "Film" = 'hanzubon no ojisan' | wikisql |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 26849 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
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 * 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.person_i... | css |
CREATE TABLE Invoices (
Order_Quantity INTEGER,
payment_method_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average quantities ordered with payment method code 'MasterCard' on invoices?
| SELECT AVG(Order_Quantity) FROM Invoices WHERE payment_method_code = "MasterCard" | sql_create_context |
CREATE TABLE table_14462 (
"Urban area" text,
"Population 1.1.2009" text,
"Population 1.1.2008" real,
"Population 1.1.2007" text,
"Population 1.1.2006" real,
"Population per square km" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the leas... | SELECT MIN("Population 1.1.2008") FROM table_14462 WHERE "Population per square km" = '1.957' AND "Population 1.1.2006" < '12.67' | wikisql |
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Visualize a... | SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY COUNT(*) | nvbench |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | SELECT Id AS "post_link", Score, LENGTH(Body) AS Length, CAST(Score AS FLOAT) / LENGTH(Body) AS Ratio, OwnerUserId AS "user_link" FROM Posts WHERE Body != '' AND Score > 100 ORDER BY CAST(Score AS FLOAT) / LENGTH(Body) DESC | sede |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT School_ID, ACC_Percent FROM basketball_match | nvbench |
CREATE TABLE table_41894 (
"Name" text,
"Level" real,
"Digits" real,
"Average size (square miles)" text,
"Number of HUs (approximate)" real,
"Example name" text,
"Example code (HUC)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the ... | SELECT COUNT("Number of HUs (approximate)") FROM table_41894 WHERE "Digits" > '2' AND "Level" = '6' | wikisql |
CREATE TABLE table_47147 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Group's Equity Shareholding has a Company of epcor?
| SELECT "Group's Equity Shareholding" FROM table_47147 WHERE "Company" = 'epcor' | wikisql |
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,... | SELECT name FROM people WHERE NOT people_id IN (SELECT people_id FROM candidate) | spider |
CREATE TABLE table_7559 (
"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 is... | SELECT "Score" FROM table_7559 WHERE "Game" < '21' AND "High rebounds" = 'antonio davis (12)' | wikisql |
CREATE TABLE table_50313 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Studio has a Rank smaller than 3, and a Director of adrian lyne?
| SELECT "Studio" FROM table_50313 WHERE "Rank" < '3' AND "Director" = 'adrian lyne' | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) 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.STA_DATE BETWEEN '2016-05-27' AND '2019-08-14' AND t_kc22.SELF_PAY_PRO < 0.69 | css |
CREATE TABLE table_27713030_16 (
location_attendance VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location and attendance when lebron james (10) had the high assists?
| SELECT location_attendance FROM table_27713030_16 WHERE high_assists = "LeBron James (10)" | sql_create_context |
CREATE TABLE table_19769687_3 (
_percentage_of_popular_vote VARCHAR,
_number_of_seats_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number for % popular vote for # of seats won for 83
| SELECT COUNT(_percentage_of_popular_vote) FROM table_19769687_3 WHERE _number_of_seats_won = 83 | 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 wdmzjzjlb.CYBQDM, wdmzjzjlb.CYBQMC, wdmzjzjlb.CYCWH FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '79904903869' UNION SELECT bdmzjzjlb.CYBQDM, bdmzjzjlb.CYBQMC, bdmzjzjlb.CYCWH FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '79904903869' | css |
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescript... | SELECT (CAST(COUNT(a.Id) AS FLOAT) / (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 2) * 100) AS AcceptedPercentage FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 | sede |
CREATE TABLE table_27530 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many solar eclipse during June 10-11 and march 27-29 is 149?
| SELECT "June 10-11" FROM table_27530 WHERE "March 27-29" = '149' | wikisql |
CREATE TABLE table_name_3 (
year INTEGER,
surface VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?
| SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina" | sql_create_context |
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 JCZBMC FROM jyjgzbb WHERE BGDH = '76845212176') INTERSECT (SELECT JCZBMC FROM jyjgzbb WHERE BGDH = '63705425605') | css |
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Fentanyl Patch" | mimicsql_data |
CREATE TABLE Student_Addresses (
student_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
date_address_to DATETIME,
monthly_rental DECIMAL(19,4),
other_details VARCHAR(255)
)
CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id ... | SELECT student_id, address_id FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE procedures (
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.long_title = "Diverticulosis of colon with hemorrhage" | mimicsql_data |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 's/p whipple')) AND DATETIME(cost.chargetime,... | eicu |
CREATE TABLE table_52485 (
"Date" text,
"Venue" text,
"Result" text,
"Scored" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest score with a Result of 1 1 on 4 march 2001?
| SELECT MAX("Scored") FROM table_52485 WHERE "Result" = '1–1' AND "Date" = '4 march 2001' | wikisql |
CREATE TABLE table_name_40 (
screening_started VARCHAR,
screening_completed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the screening started when it was completed 3 may 2006
| SELECT screening_started FROM table_name_40 WHERE screening_completed = "3 may 2006" | sql_create_context |
CREATE TABLE table_name_82 (
outcome VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the tournament in Edinburgh?
| SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh" | sql_create_context |
CREATE TABLE table_name_75 (
wins INTEGER,
rank VARCHAR,
points VARCHAR,
class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?
| SELECT MIN(wins) FROM table_name_75 WHERE points < 32 AND class = "350cc" AND rank = "8th" | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1879" AND lab.itemid = "51093" | mimicsql_data |
CREATE TABLE table_78117 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is at 9:00 when at 10:00 it is local programming and at 9:30 it is my thursday night movie?
| SELECT "9:00" FROM table_78117 WHERE "10:00" = 'local programming' AND "9:30" = 'my thursday night movie' | 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 AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND demographic.age >= "54" | mimicsql_data |
CREATE TABLE table_name_88 (
date VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the opponents the Oakland Raiders?
| SELECT date FROM table_name_88 WHERE opponent = "oakland raiders" | sql_create_context |
CREATE TABLE table_name_86 (
team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Team with a Player that is david cooper?
| SELECT team FROM table_name_86 WHERE player = "david cooper" | sql_create_context |
CREATE TABLE table_name_5 (
block INTEGER,
weight VARCHAR,
height VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest block that has a height less than 202, 19.06.1980 as the date of birth, and a weight greater th... | SELECT MIN(block) FROM table_name_5 WHERE height < 202 AND date_of_birth = "19.06.1980" AND weight > 76 | sql_create_context |
CREATE TABLE table_68069 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the season outcome for smyrna
| SELECT "Season Outcome" FROM table_68069 WHERE "School" = 'smyrna' | 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 * FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '21776586' AND jyjgzbb.JYRQ BETWEEN '2011-02-03' AND '2019-0... | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.