instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_19491 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pick number?
| SELECT MAX("Pick #") FROM table_19491 | wikisql |
CREATE TABLE Customers (
Customer_ID VARCHAR(100),
Address_ID INTEGER,
Customer_Name VARCHAR(255),
Customer_Phone VARCHAR(255),
Customer_Email_Address VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Drama_Workshop_Groups (
Workshop_Group_ID INTEGER,
Address_ID INTEGER,
Curre... | SELECT Order_Date, COUNT(Order_Date) FROM Customer_Orders AS T1 JOIN Order_Items AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_Price > 1000 | nvbench |
CREATE TABLE table_name_38 (
enrollment INTEGER,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people are enrolled in platteville, wi?
| SELECT SUM(enrollment) FROM table_name_38 WHERE location = "platteville, wi" | sql_create_context |
CREATE TABLE table_43112 (
"Country" text,
"Freedom in the World 2013" text,
"2013 Index of Economic Freedom" text,
"2013 Press Freedom Index" text,
"2012 Democracy Index" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2013 press freedom... | SELECT "2013 Press Freedom Index" FROM table_43112 WHERE "Country" = 'egypt' | wikisql |
CREATE TABLE table_name_29 (
professional_partner VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the professional partner in season 4?
| SELECT professional_partner FROM table_name_29 WHERE season = 4 | 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 Code, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 | nvbench |
CREATE TABLE table_14331 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many totals have brazil as the nation, and a bronze less than 2?
| SELECT SUM("Total") FROM table_14331 WHERE "Nation" = 'brazil' AND "Bronze" < '2' | wikisql |
CREATE TABLE table_name_26 (
election VARCHAR,
seats VARCHAR,
dáil VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a dail of 24th and more than 57 seats, what is the election?
| SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th" | sql_create_context |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
... | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY dept_name | nvbench |
CREATE TABLE features (
feature_id number,
feature_details text
)
CREATE TABLE theme_parks (
theme_park_id number,
theme_park_details text
)
CREATE TABLE street_markets (
market_id number,
market_details text
)
CREATE TABLE ref_hotel_star_ratings (
star_rating_code text,
star_rating_d... | SELECT T1.shop_details FROM shops AS T1 JOIN tourist_attractions AS T2 ON T1.shop_id = T2.tourist_attraction_id WHERE T2.how_to_get_there = "walk" | spider |
CREATE TABLE table_65956 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was selected in rounds under 3?
| SELECT "Player" FROM table_65956 WHERE "Round" < '3' | wikisql |
CREATE TABLE table_48863 (
"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 Country, when Player is 'Billy Maxwell'?
| SELECT "Country" FROM table_48863 WHERE "Player" = 'billy maxwell' | wikisql |
CREATE TABLE table_69187 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year resulted in 54 laps?
| SELECT "Year" FROM table_69187 WHERE "Laps" = '54' | wikisql |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
Ex... | SELECT CASE WHEN Score > 50 THEN 50 ELSE Score END AS bucket, SUM(Score * 10 + CASE WHEN AcceptedAnswerId IS NULL THEN 15 ELSE 0 END) AS REP FROM Posts WHERE PostTypeId = 2 AND Score >= 0 GROUP BY CASE WHEN Score > 50 THEN 50 ELSE Score END ORDER BY CASE WHEN Score > 50 THEN 50 ELSE Score END | sede |
CREATE TABLE table_51581 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game week did the buccaneers have... | SELECT "Week" FROM table_51581 WHERE "Record" = '0-5' | wikisql |
CREATE TABLE table_name_40 (
position INTEGER,
total VARCHAR,
a_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the person with a total less than 16.65 and an A score of 7.4?
| SELECT MIN(position) FROM table_name_40 WHERE total < 16.65 AND a_score = 7.4 | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyeve... | 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 = 'amlodipine besylate' AND STRFTIME('%y', prescriptions.startdate) ... | mimic_iii |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2146" AND diagnoses.short_title = "Skin disorders NEC" | mimicsql_data |
CREATE TABLE table_75251 (
"common name" text,
"protein name" text,
"divergence from human lineage (MYA)" real,
"accession number" text,
"sequence length (aa)" real,
"sequence identity to human protein" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "accession number" FROM table_75251 WHERE "divergence from human lineage (MYA)" = '937.5' | wikisql |
CREATE TABLE table_37683 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district is the parish who had the South Cambridgeshire rural district as the for... | SELECT "District" FROM table_37683 WHERE "Former local authority" = 'south cambridgeshire rural district' | wikisql |
CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advis... | SELECT clubname FROM club WHERE clublocation = "AKW" | spider |
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_ORG_DEPT_CD, t_kc21.OUT_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6135153' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.OUT_DIAG_DIS_NM | css |
CREATE TABLE table_8956 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the Away team Kangaroos Crowd totals?
| SELECT SUM("Crowd") FROM table_8956 WHERE "Away team" = 'kangaroos' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT COUNT(txmzjzjlb.ZZYSGH) FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '41398120' AND txmzjzjlb.JZKSRQ BETWEEN '2001-07-25' AND '2011-05-08' UNION SELECT COUNT(ftxmzjzjlb.ZZYSGH) FROM hz_info JOIN ftxmzjzjlb ON h... | css |
CREATE TABLE table_40716 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Draw, when the Song is 'The Innocent Days'?
| SELECT MIN("Draw") FROM table_40716 WHERE "Song" = 'the innocent days' | wikisql |
CREATE TABLE table_name_18 (
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game with 16,404 people?
| SELECT date FROM table_name_18 WHERE attendance = "16,404" | sql_create_context |
CREATE TABLE table_name_7 (
opponent VARCHAR,
competition VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?
| SELECT opponent FROM table_name_7 WHERE competition = "vfl reserves" AND score = "18.6 (114) - 21.14 (140)" | sql_create_context |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Candidal esophagitis" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_77913 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player for Washington school?
| SELECT "Position" FROM table_77913 WHERE "School" = 'washington' | wikisql |
CREATE TABLE table_name_44 (
country VARCHAR,
player VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country watch Tom Watson at t9 score 72-72=144?
| SELECT country FROM table_name_44 WHERE place = "t9" AND score = 72 - 72 = 144 AND player = "tom watson" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc24.t_kc21_IN_DIAG_DIS_CD, t_kc24.t_kc21_IN_DIAG_DIS_NM FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_NM = '秦芳华' AND t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 6792.26) | css |
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 gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '邹正初' AND t_kc22.STA_DATE BETWEEN '2015-03-28' AND '2019-07-23' AND gwyjzb.MED_SER_ORG_NO = '0625386' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_... | css |
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 zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '60094518' AND hz_info.YLJGDM = '2158634' AND NOT zyjzjlb.CYKSMC LIKE '%与%' | css |
CREATE TABLE table_name_91 (
bodyweight INTEGER,
total__kg_ VARCHAR,
clean_ VARCHAR,
_jerk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?
| SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5 | sql_create_context |
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which teacher teaches the most students? G... | SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_42672 (
"Benchmark" text,
"Crown height" text,
"Pavilion depth" text,
"Table diameter" text,
"Girdle thickness" text,
"Crown angle" text,
"Pavilion angle" text,
"Brilliance Grade" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Brilliance Grade" FROM table_42672 WHERE "Crown angle" = '41.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 PRESCRIPTION_CODE, PRESCRIPTION_ID FROM t_kc22 WHERE MED_EXP_DET_ID = '78945033351' | css |
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... | WITH Raw AS (SELECT A.TagId AS TagA, B.TagId AS TagB, C.TagId AS TagC, AVG(1.0 * Posts.Score) AS Score, COUNT(*) AS Count FROM PostTags AS A, PostTags AS B, PostTags AS C, Posts WHERE Posts.Id = A.PostId AND Posts.Id = B.PostId AND Posts.Id = C.PostId AND A.TagId < B.TagId AND B.TagId < C.TagId GROUP BY A.TagId, B.TagI... | sede |
CREATE TABLE table_40071 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stable, when Current Rank is F1 J ry 14 West?
| SELECT "Stable" FROM table_40071 WHERE "Current rank" = 'f1 jūryō 14 west' | wikisql |
CREATE TABLE table_74451 (
"Rank" real,
"Rider" text,
"Sat 20 Aug" text,
"Mon 22 Aug" text,
"Tues 23 Aug" text,
"Wed 24 Aug" text,
"Thurs 25 Aug" text,
"Fri 26 Aug" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every entry for F... | SELECT "Fri 26 Aug" FROM table_74451 WHERE "Mon 22 Aug" = '32'' 25.72 69.809mph' | wikisql |
CREATE TABLE table_4970 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the most touchdowns with more than 0 Field goals?
| SELECT MAX("Touchdowns") FROM table_4970 WHERE "Field goals" > '0' | wikisql |
CREATE TABLE table_name_13 (
performer_1 VARCHAR,
performer_3 VARCHAR,
performer_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Performer 1's name who performed with Sandi Toksvig as Performer 3 and Mike McShane as Performer 4?
| SELECT performer_1 FROM table_name_13 WHERE performer_3 = "sandi toksvig" AND performer_4 = "mike mcshane" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
la... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'valvular stenosis' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year')) | eicu |
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 FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '凤德容' AND t_kc22.t_kc21_MED_SER_ORG_NO = '8078105' AND t_kc22.t_kc21_IN_HOSP_DATE BETWEEN '2008-02-04' AND '2014-05-24') | css |
CREATE TABLE table_35766 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team that played on February 25?
| SELECT "Home" FROM table_35766 WHERE "Date" = 'february 25' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT MIN(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 treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'erythropoietin')) AND DATETIME(cost.chargeti... | eicu |
CREATE TABLE table_203_425 (
id number,
"season" number,
"driver" text,
"equipment" text,
"position" number,
"points" number,
"races" number,
"wins" number,
"second" number,
"third" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "points" FROM table_203_425 WHERE "season" = 2007 | squall |
CREATE TABLE table_name_37 (
visitor VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the visitor for home of dallas
| SELECT visitor FROM table_name_37 WHERE home = "dallas" | sql_create_context |
CREATE TABLE table_name_52 (
city VARCHAR,
plant_hardiness_zone VARCHAR,
january VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what city is the plant hardiness zone 2B and January temp is 12/ 23 c (10/-9 f)?
| SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)" | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.long_title = "Cholangitis" | mimicsql_data |
CREATE TABLE table_name_49 (
drawn VARCHAR,
points_for VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What drawn has 416 as the points for and 533 as the points against?
| SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533" | sql_create_context |
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
avail... | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings | nvbench |
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.SG, wdmzjzjlb.TZ, wdmzjzjlb.TW, wdmzjzjlb.SSY, wdmzjzjlb.SZY, wdmzjzjlb.XL, wdmzjzjlb.HXPLC, wdmzjzjlb.ML FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '11382760786' UNION SELECT bdmzjzjlb.SG, bdmzjzjlb.TZ, bdmzjzjlb.TW, bdmzjzjlb.SSY, bdmzjzjlb.SZY, bdmzjzjlb.XL, bdmzjzjlb.HXPLC, bdmzjzjlb.ML FROM bdmzjzjlb ... | css |
CREATE TABLE Departments (
department_id INTEGER,
dept_store_id INTEGER,
department_name VARCHAR(80)
)
CREATE TABLE Supplier_Addresses (
supplier_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Products (
product_id INTEGER,
product_type_code VAR... | SELECT product_name, product_price FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 | nvbench |
CREATE TABLE table_74719 (
"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 is the away team that scored 9.12 (66) at W... | SELECT "Away team" FROM table_74719 WHERE "Away team score" = '9.12 (66)' AND "Venue" = 'windy hill' | wikisql |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TAB... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Sandra Palaich%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.of... | advising |
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 height > 200 OR height < 190 | spider |
CREATE TABLE table_name_22 (
position VARCHAR,
goals_against VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has Goals against larger than 32, and points larger than 30?
| SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30 | sql_create_context |
CREATE TABLE table_78237 (
"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.
-- How many attended the game at Arden Street Oval?... | SELECT AVG("Crowd") FROM table_78237 WHERE "Venue" = 'arden street oval' | 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 demographic (
subject_id text,
hadm_id t... | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "8323" | 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_kc22 WHERE MED_ORG_DEPT_CD = '9438' AND STA_DATE BETWEEN '2003-05-10' AND '2005-01-31' AND SOC_SRT_DIRE_NM = '复方丙酸氯倍他索软膏' | css |
CREATE TABLE table_297 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?
| SELECT "Hometown" FROM table_297 WHERE "Position" = 'Catcher' | wikisql |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT u.Id AS "user_link", COUNT(b.Id) AS "number_of_badges" FROM Users AS u, Badges AS b WHERE b.UserId = u.Id AND b.Name = '##Badge##' GROUP BY u.Id ORDER BY COUNT(b.Id) DESC | sede |
CREATE TABLE table_name_44 (
train_name VARCHAR,
frequency__inbound_outbound_ VARCHAR,
destination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the train name of the rail with a daily frequency and a destination of Rajgir?
| SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir" | sql_create_context |
CREATE TABLE table_15333 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Appointed has Termination of Mission on april 7, 2... | SELECT "Appointed by" FROM table_15333 WHERE "Termination of Mission" = 'april 7, 2005' | wikisql |
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE... | SELECT DISTINCT fname FROM student WHERE fname LIKE '%a%' | spider |
CREATE TABLE table_40884 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What airport is in Sabha?
| SELECT "Airport" FROM table_40884 WHERE "City" = 'sabha' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT COUNT(*) FROM (SELECT zyjybgb.KSBM FROM mzjzjlb JOIN zyjybgb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '6114875' AND zyjybgb.BGRQ BETWEEN '2001-06-25' AND '2009-03-18' GROUP BY zyjybgb.KSBM HAVING COUNT(*) <= 20 UNION SELECT mzjybgb.KSBM FROM mzjz... | css |
CREATE TABLE table_75020 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the version shown for the Length of 5:20, and shows Remixed by ?
| SELECT "Version" FROM table_75020 WHERE "Length" = '5:20' AND "Remixed by" = '—' | wikisql |
CREATE TABLE table_49232 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the May 7 finalist?
| SELECT "Finalist" FROM table_49232 WHERE "Week" = 'may 7' | wikisql |
CREATE TABLE table_19834691_4 (
viewers__millions_ VARCHAR,
audience_share_in_timeslot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of viewers for audience share in timeslot for 10.2%
| SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = "10.2%" | 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 demographic.ethnicity FROM demographic WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE table_55712 (
"Region" text,
"Date" real,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Under what label was the album with the catalog of 3645 and came out later than 1987?
| SELECT "Label" FROM table_55712 WHERE "Catalog" = '3645' AND "Date" > '1987' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Revenue) DESC | nvbench |
CREATE TABLE table_name_19 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance with a Week that is 18?
| SELECT attendance FROM table_name_19 WHERE week = 18 | sql_create_context |
CREATE TABLE table_37634 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score against the phillies on may 24?
| SELECT "Score" FROM table_37634 WHERE "Opponent" = 'phillies' AND "Date" = 'may 24' | wikisql |
CREATE TABLE table_14345690_2 (
finished VARCHAR,
celebrity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did Nell McAndrew finish?
| SELECT finished FROM table_14345690_2 WHERE celebrity = "Nell McAndrew" | sql_create_context |
CREATE TABLE table_10828 (
"Team" text,
"Season" text,
"Regular Season" real,
"Tournament" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for the school with over 2 tournaments and 1 regular season title?
| SELECT AVG("Total") FROM table_10828 WHERE "Tournament" > '2' AND "Regular Season" = '1' | wikisql |
CREATE TABLE table_61814 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Venue has a Status of five nations, and Against of 0?
| SELECT "Venue" FROM table_61814 WHERE "Status" = 'five nations' AND "Against" = '0' | wikisql |
CREATE TABLE table_1593 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when the population was 1599, what was the census ranking?
| SELECT "Census Ranking" FROM table_1593 WHERE "Population" = '1599' | 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 * FROM t_kc21 WHERE t_kc21.PERSON_NM = '王灵秀' AND t_kc21.MED_SER_ORG_NO = '5443679' AND t_kc21.MED_ORG_DEPT_NM LIKE '%喉%' | 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 SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, UNIVALENT FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '31659348' AND MED_SER_ORG_NO = '6659356') ORDER BY UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE table_24781886_3 (
title VARCHAR,
_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 9 is the number what is the title?
| SELECT title FROM table_24781886_3 WHERE _number = 9 | sql_create_context |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "VITB1" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT 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.MED_SER_ORG_NO = '2488172' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 20 UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_I... | css |
CREATE TABLE table_name_95 (
nation VARCHAR,
uci_protour_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation is the cyclist hat has a UCI ProTour Points of 25?
| SELECT nation FROM table_name_95 WHERE uci_protour_points = 25 | sql_create_context |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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,
... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'cd4/cd8 ratio')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... | mimic_iii |
CREATE TABLE table_name_51 (
venue VARCHAR,
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what venue did the team from Collingwood score 7.14 (56) - 4.5 (29)?
| SELECT venue FROM table_name_51 WHERE opponent = "collingwood" AND score = "7.14 (56) - 4.5 (29)" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT SUM(t_kc22.AMOUNT) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '施博雅' AND t_kc22.t_kc21_CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2005-08-29' AND '2007-04-15' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' | css |
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 COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '5498370' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING AVG(t_kc21.IN_HOSP_DAYS) > 3) AS T | css |
CREATE TABLE table_name_99 (
player VARCHAR,
money___£__ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has money of ( ) 159,500, and france is the country?
| SELECT player FROM table_name_99 WHERE money___£__ = "159,500" AND country = "france" | sql_create_context |
CREATE TABLE table_77132 (
"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 is the away team with a 5 tie no?
| SELECT "Away team" FROM table_77132 WHERE "Tie no" = '5' | wikisql |
CREATE TABLE table_name_93 (
size INTEGER,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest size of the school with titans as the mascot?
| SELECT MIN(size) FROM table_name_93 WHERE mascot = "titans" | sql_create_context |
CREATE TABLE table_13392 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record ... | SELECT "Record" FROM table_13392 WHERE "Location" = 'madison square garden' | wikisql |
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABL... | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | spider |
CREATE TABLE table_name_88 (
club_province VARCHAR,
caps VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?
| SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = "chris cusiter" | sql_create_context |
CREATE TABLE mzb (
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 qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '褚莹华' AND qtb.MED_SER_ORG_NO = '9536805' AND NOT qtb.OUT_DIAG_DIS_NM LIKE '%胃肠炎%' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '褚莹华' AND gyb.MED_SER_ORG_NO = '9536805' AND NOT gyb.OUT_DIAG_DIS_NM LIKE '%胃肠炎%' UNION SELECT zyb.MED_CLINIC_ID FROM zy... | css |
CREATE TABLE table_75559 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest points where there were less than 2 drawn and the games were less than 6?
| SELECT MAX("Points") FROM table_75559 WHERE "Drawn" < '2' AND "Games" < '6' | wikisql |
CREATE TABLE table_23871828_1 (
song_choice VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the song chose for the British Invasion.
| SELECT song_choice FROM table_23871828_1 WHERE theme = "British Invasion" | sql_create_context |
CREATE TABLE table_59635 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Competition has a Year larger than 1990 in seville , spain?
| SELECT "Competition" FROM table_59635 WHERE "Year" > '1990' AND "Venue" = 'seville , spain' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.