instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_53400 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Goals have a Result of 0 4?
| SELECT AVG("Goals") FROM table_53400 WHERE "Result" = '0 – 4' | wikisql |
CREATE TABLE table_2889810_1 (
motogp_500cc INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum MotoGP/500cc ranking?
| SELECT MIN(motogp_500cc) FROM table_2889810_1 | sql_create_context |
CREATE TABLE table_50240 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name listed for the royal house of jiang and a title of duke?
| SELECT "Name" FROM table_50240 WHERE "Title" = 'duke' AND "Royal house" = 'jiang' | wikisql |
CREATE TABLE table_25478 (
"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.
-- Name t... | SELECT COUNT("High rebounds") FROM table_25478 WHERE "Score" = 'L 92–96 (OT)' | wikisql |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE T... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND CITY_2.ci... | atis |
CREATE TABLE table_23465864_5 (
mon_24_aug VARCHAR,
fri_28_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph?
| SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "26' 04.60 86.814mph" | sql_create_context |
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, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | 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 MED_ORG_DEPT_CD, MED_ORG_DEPT_NM FROM t_kc22 WHERE STA_DATE BETWEEN '2001-08-25' AND '2019-12-05' AND MED_INV_ITEM_TYPE = '手术费' GROUP BY MED_ORG_DEPT_CD ORDER BY COUNT(*) LIMIT 1 | css |
CREATE TABLE table_25664518_3 (
first_couple VARCHAR,
fourth_couple VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the first couple in the episode having a fourth couple of Sammy and Nat?
| SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat" | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '9062886' AND t_kc24.t_kc21_OUT_DIAG_DIS_CD = 'K71.024') | css |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW te... | SELECT mzjzjlb.ZZYSGH, mzjzjlb.QTJZYSGH FROM mzjzjlb WHERE mzjzjlb.JZLSH = '18548556313' | css |
CREATE TABLE table_dev_15 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"hepatic_enzymes" bool,
"platelet_count" float,
"liver_disease" bool,
"hba1c" float,
"triglyceride_tg" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- pla... | SELECT * FROM table_dev_15 WHERE platelet_count < 150 | criteria2sql |
CREATE TABLE table_54396 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successor's formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the state of the senator with a November 14... | SELECT "State (class)" FROM table_54396 WHERE "Date of successor's formal installation" = 'november 14, 1972' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId nu... | SELECT 'overall total' AS "per_tag_totals", (SELECT COUNT(*) FROM Votes AS v WHERE VoteTypeId = 8) AS total, (SELECT COUNT(*) FROM Posts AS p INNER JOIN Votes AS v ON v.PostId = p.AcceptedAnswerId WHERE v.VoteTypeId = 9 AND p.PostTypeId = 1) AS claimed | sede |
CREATE TABLE table_25568 (
"R" real,
"Player" text,
"Position" text,
"League" real,
"Champions League" real,
"Copa del Rey" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the position is FB, what is the Copa Del Rey?
| SELECT "Copa del Rey" FROM table_25568 WHERE "Position" = 'FB' | wikisql |
CREATE TABLE table_name_56 (
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game with the away team york city?
| SELECT date FROM table_name_56 WHERE away_team = "york city" | sql_create_context |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'crp' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-2 year')) | eicu |
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 IN_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '3491233' GROUP BY IN_DIAG_DIS_CD | 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 jybgb.BGRGH, jybgb.BGRXM FROM jybgb WHERE jybgb.BGDH = '26946687277' | css |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE zyjzjlb.YLJGDM = '6451963' AND DATEDIFF(zyjzjlb.CYSJ, zyjzjlb.RYSJ) > 15 | css |
CREATE TABLE table_71361 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has kim eun-ha as an Opponent?
| SELECT "Round" FROM table_71361 WHERE "Opponent" = 'kim eun-ha' | wikisql |
CREATE TABLE table_train_93 (
"id" int,
"mini_mental_state_examination_mmse" int,
"creatinine_clearance_cl" float,
"cornell_scale_for_depression_in_dementia_csdd" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT * FROM table_train_93 WHERE creatinine_clearance_cl < 30 | criteria2sql |
CREATE TABLE table_14048 (
"Polling firm" text,
"Dates" text,
"Prog. Cons." text,
"New Democratic" text,
"Liberal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- According to the February 2009 poll by the Corporate Research Associates that reported ... | SELECT "Prog. Cons." FROM table_14048 WHERE "Polling firm" = 'corporate research associates' AND "Liberal" = '31%' AND "Dates" = 'february 2009' | 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 demographic.age, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_31943 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the date for 2010 fifa world cup qualification
| SELECT "Date" FROM table_31943 WHERE "Competition" = '2010 fifa world cup qualification' | wikisql |
CREATE TABLE table_name_16 (
time VARCHAR,
distance VARCHAR,
start_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the finishing time of the stage that featured a distance of 18.25km and a start time of 11:31?
| SELECT time FROM table_name_16 WHERE distance = "18.25km" AND start_time = "11:31" | sql_create_context |
CREATE TABLE table_17103645_10 (
score VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score when game is 19
| SELECT score FROM table_17103645_10 WHERE game = 19 | sql_create_context |
CREATE TABLE table_77820 (
"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.
-- Which Away team has a Crowd larger than 14,000, ... | SELECT "Away team" FROM table_77820 WHERE "Crowd" > '14,000' AND "Home team" = 'melbourne' | wikisql |
CREATE TABLE table_name_2 (
location VARCHAR,
home_ground VARCHAR,
position_in_2012_13 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location has a home ground of n/a, and position in 2012-13 of 13th, third division?
| SELECT location FROM table_name_2 WHERE home_ground = "n/a" AND position_in_2012_13 = "13th, third division" | sql_create_context |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-19622')) AND microlab.culturesite = 'bronchial lavage' AND DATETIME(microl... | eicu |
CREATE TABLE table_1399994_5 (
location VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many locations hosted Claudia Kohde-Kilsch Eva Pfaff?
| SELECT COUNT(location) FROM table_1399994_5 WHERE opponents = "Claudia Kohde-Kilsch Eva Pfaff" | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZ... | css |
CREATE TABLE table_49847 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round did the fight last when Mikhail Ilyukhin's record was 15-5?
| SELECT "Round" FROM table_49847 WHERE "Record" = '15-5' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6389409' AND t_kc21.IN_HOSP_DATE BETWEEN '2004-09-26' AND '2012-04-01' EXCEPT SELECT * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6389409' AND t_kc21.IN_HOSP_DATE BETWEEN '2004-09-26' AND '2012-04-01' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = ... | css |
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height) DESC | nvbench |
CREATE TABLE table_name_13 (
gold INTEGER,
total INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gold medal total for a total of 44 medals?
| SELECT MIN(gold) FROM table_name_13 WHERE total > 44 | sql_create_context |
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime ti... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'entral infu... | mimic_iii |
CREATE TABLE table_20148 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text,
"Career and other notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ring names are currently ranked f0 j ry 3 west?
| SELECT "Ring name" FROM table_20148 WHERE "Current rank" = 'f0 Jūryō 3 West' | wikisql |
CREATE TABLE table_name_44 (
silver VARCHAR,
total VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Silver has a Total larger than 9, and a Gold of 14?
| SELECT COUNT(silver) FROM table_name_44 WHERE total > 9 AND gold = 14 | sql_create_context |
CREATE TABLE table_51049 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in week 14?
| SELECT "Opponent" FROM table_51049 WHERE "Week" = '14' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT (SELECT vitalperiodic.respiration FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-27704') AND NOT patient.unitdischargetime I... | eicu |
CREATE TABLE table_15108 (
"Year" real,
"\u00c1lbum" text,
"Charts" text,
"Sales" real,
"Certification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the No. 7 charts?
| SELECT AVG("Year") FROM table_15108 WHERE "Charts" = 'no. 7' | wikisql |
CREATE TABLE table_203_349 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"production\ncode" text,
"u.s. viewers\n(millions)" number
)
-- Using valid SQLite, answer the following question... | SELECT "title" FROM table_203_349 WHERE "u.s. viewers\n(millions)" = (SELECT MAX("u.s. viewers\n(millions)") FROM table_203_349) | squall |
CREATE TABLE table_59781 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Team... | SELECT "Team" FROM table_59781 WHERE "Position in table" = 'pre-season' AND "Manner of departure" = 'end of tenure as caretaker' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM t... | SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '68417064' AND mzjzjlb.JZKSRQ BETWEEN '2009-12-28' AND '2021-09-30' AND mzjzjlb.YLJGDM = '1278762' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Heparin (Preservative Free)" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC tex... | SELECT COUNT(*) FROM jybgb WHERE jybgb.JZLSH = '97977330567' | css |
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 prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Promethazine HCl" | mimicsql_data |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id = jyjgzbb.jyjgzbb_id WHERE jybgb.JZLSH = '18545084468' AND jyjgzbb.JCRXM LIKE... | css |
CREATE TABLE table_48459 (
"Year" text,
"Date" text,
"Circuit" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What report did Jack Brabham win?
| SELECT "Report" FROM table_48459 WHERE "Winning driver" = 'jack brabham' | wikisql |
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE team (
Team_id int,
... | SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name ORDER BY Country_name DESC | nvbench |
CREATE TABLE table_15268 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is a Decision of osgood, and a Score of 6 7?
| SELECT "Date" FROM table_15268 WHERE "Decision" = 'osgood' AND "Score" = '6 – 7' | wikisql |
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,... | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had the highest total amount of medals ?
| SELECT "npc" FROM table_203_707 ORDER BY "total" DESC LIMIT 1 | squall |
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes in... | SELECT nationality FROM actor WHERE name = 'Christoph Waltz' | imdb |
CREATE TABLE table_22282917_26 (
control_site_condition_owner VARCHAR,
launch_site_condition_owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?... | SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings" | 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(DISTINCT hz_info.RYBH) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE mzjzjlb.ZZYSGH = '87598615' AND mzjzjlb.JZKSRQ BETWEEN '2005-03-01' AND '2011-02-19' | css |
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,... | SELECT DISTINCT C.UserId AS "user_link", C.Text, P.Id AS "post_link", P.Tags, C.Score FROM Comments AS C, Posts AS P, PostTypes AS Pt, Votes AS V, VoteTypes AS Vt WHERE P.Id = C.PostId AND PT.Id = P.PostTypeId AND Vt.Id = V.VoteTypeId AND C.Id = V.PostId AND C.Score > 5 AND Pt.Id = 1 AND Vt.Id = 2 AND P.AnswerCount = 0... | sede |
CREATE TABLE table_28305 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Station Type" text,
"Power kW (ERP)" text,
"Location (Transmitter Site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power, in kW, of channel TV-23, calls... | SELECT "Power kW (ERP)" FROM table_28305 WHERE "Ch. #" = 'TV-23' AND "Callsign" = 'DYCG-TV' | wikisql |
CREATE TABLE table_20767 (
"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.
-- Who are the away teams when subiaco oval was th... | SELECT "Away team" FROM table_20767 WHERE "Ground" = 'Subiaco Oval' | wikisql |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-142835' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) | eicu |
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age ... | SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) | nvbench |
CREATE TABLE table_44263 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the overall pick number for rich dobbert?
| SELECT AVG("Overall") FROM table_44263 WHERE "Name" = 'rich dobbert' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DEAD/EXPIRED" AND demographic.age < "61" | mimicsql_data |
CREATE TABLE table_34239 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of total with silver of 6, bronze more than 5 and gold less than 4
| SELECT COUNT("Total") FROM table_34239 WHERE "Silver" = '6' AND "Bronze" > '5' AND "Gold" < '4' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM t... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 = jy... | css |
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 comment_instructor (
instructor_id int,
student_id int,
score int,
... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.name L... | advising |
CREATE TABLE table_64122 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue was the tour match against eastern province played at with more than 0 against?
| SELECT "Venue" FROM table_64122 WHERE "Status" = 'tour match' AND "Against" > '0' AND "Opposing Team" = 'eastern province' | wikisql |
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
... | SELECT Statement_Details, COUNT(Statement_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details ORDER BY Statement_Details | nvbench |
CREATE TABLE table_name_53 (
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Home team of footscray is playing, what's the Home team score?
| SELECT home_team AS score FROM table_name_53 WHERE home_team = "footscray" | sql_create_context |
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 Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Price | nvbench |
CREATE TABLE product (
product_id number,
product text,
dimensions text,
dpi number,
pages_per_minute_color number,
max_page_size text,
interface text
)
CREATE TABLE store (
store_id number,
store_name text,
type text,
area_size number,
number_of_product_category number,... | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 | spider |
CREATE TABLE table_37433 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player from Sweden?
| SELECT "Position" FROM table_37433 WHERE "Nationality" = 'sweden' | 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 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2058" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2056" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE table_16997 (
"Season" real,
"Position" real,
"Win/Loss" text,
"Coach" text,
"Captain" text,
"Dudley Tuckey Medal" text,
"Leading goalkicker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the coach where dudley tuckey me... | SELECT "Coach" FROM table_16997 WHERE "Dudley Tuckey Medal" = 'Ben Howlett' | wikisql |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE chart... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5828 AND admissions.dischtime IS NULL) AND transfers.careunit = 'sicu' ORDER BY transfers.intime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_1805919_1 (
standard_order INTEGER,
english_translation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place of 'A Lament for Ying'?
| SELECT MAX(standard_order) FROM table_1805919_1 WHERE english_translation = "A Lament for Ying" | sql_create_context |
CREATE TABLE member (
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the names of members in ascending alphabetical order.
| SELECT Name FROM member ORDER BY Name | sql_create_context |
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 COUNT(*) FROM t_kc21 WHERE PERSON_NM = '奚子默' AND IN_HOSP_DATE BETWEEN '2001-09-21' AND '2009-02-26' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '60676464' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgzbb WH... | css |
CREATE TABLE table_name_74 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4?
| SELECT tournament FROM table_name_74 WHERE 2000 = "2-4" | sql_create_context |
CREATE TABLE table_41082 (
"Airline" text,
"Fleet Size" real,
"Notes" text,
"IOSA (IATA)" text,
"EASA (EU)" text,
"IASA (FAA)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Notes when the fleet size is 3?
| SELECT "Notes" FROM table_41082 WHERE "Fleet Size" = '3' | wikisql |
CREATE TABLE table_name_65 (
year INTEGER,
english_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average year for my queen
| SELECT AVG(year) FROM table_name_65 WHERE english_title = "my queen" | sql_create_context |
CREATE TABLE table_name_15 (
sets_lost VARCHAR,
sets_won INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sets lost have a sets won less than 0?
| SELECT COUNT(sets_lost) FROM table_name_15 WHERE sets_won < 0 | sql_create_context |
CREATE TABLE table_5194 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had a qualifying 2 time of 1:01.093?
| SELECT "Team" FROM table_5194 WHERE "Qual 2" = '1:01.093' | wikisql |
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCAT... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
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 mzjzjlb (
HXPLC number,
HZXM ... | SELECT zyjzjlb.RYTJDM, zyjzjlb.RYTJMC FROM zyjzjlb WHERE zyjzjlb.JZLSH = '47260453566' | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "1" AND prescriptions.drug = "Neomycin-Polymyxin-Bacitracin" | mimicsql_data |
CREATE TABLE bdmzjzjlb (
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,
MZZYZDZ... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jyb... | css |
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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Price DESC | nvbench |
CREATE TABLE table_51691 (
"Crew" real,
"Open 1st VIII" text,
"Senior 2nd VIII" text,
"Senior 3rd VIII" text,
"Senior IV" text,
"Year 12 Single Scull" text,
"Year 11 Single Scull" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2nd seni... | SELECT "Senior 2nd VIII" FROM table_51691 WHERE "Senior IV" = 'stm' | wikisql |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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 nu... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '05689089455' | css |
CREATE TABLE table_41189 (
"City" text,
"Comprehension of Danish" text,
"Comprehension of Swedish" text,
"Comprehension of Norwegian" text,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Average of bergen, norway?
| SELECT MIN("Average") FROM table_41189 WHERE "City" = 'bergen, norway' | wikisql |
CREATE TABLE table_20055 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the team i... | SELECT MIN("Won") FROM table_20055 WHERE "Team" = 'Ypiranga-SP' | wikisql |
CREATE TABLE table_204_90 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many rwandans competed ?
| SELECT COUNT("name") FROM table_204_90 WHERE "nationality" = 'rwanda' | squall |
CREATE TABLE table_name_32 (
player VARCHAR,
rank INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's ranked less than 2?
| SELECT player FROM table_name_32 WHERE rank < 2 | sql_create_context |
CREATE TABLE table_69323 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance in the gave versus the Brewers with a score of 9 6?
| SELECT "Attendance" FROM table_69323 WHERE "Opponent" = 'brewers' AND "Score" = '9–6' | wikisql |
CREATE TABLE table_name_25 (
side VARCHAR,
inscription VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which side has Vischer as the inscription?
| SELECT side FROM table_name_25 WHERE inscription = "vischer" | sql_create_context |
CREATE TABLE table_12556 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the venue that had 5000 m after 2009?
| SELECT "Venue" FROM table_12556 WHERE "Year" > '2009' AND "Notes" = '5000 m' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.