instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" | mimicsql_data |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnoses_icd (
... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 566... | mimic_iii |
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 text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | (SELECT jybgb.KSBM, jybgb.KSMC 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 = '32152549' AND jybgb.BGRQ BETWEEN '2015-03-23' AND '2021... | css |
CREATE TABLE txmzjzjlb (
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 txmzjzjlb.JZLSH 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 = '89963549' AND NOT txmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2015-03-17') UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOI... | css |
CREATE TABLE table_name_1 (
city VARCHAR,
airport VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is fuhlsb ttel airport in?
| SELECT city FROM table_name_1 WHERE airport = "fuhlsbüttel airport" | sql_create_context |
CREATE TABLE table_2361788_1 (
year INTEGER,
playoffs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most year for conference finals
| SELECT MAX(year) FROM table_2361788_1 WHERE playoffs = "Conference Finals" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.age < "64" | mimicsql_data |
CREATE TABLE table_name_91 (
psychological_dependence VARCHAR,
pleasure VARCHAR,
mean VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Psychological Dependence, when Pleasure is '2.3', and when Mean is less than 1.93000000000000... | SELECT COUNT(psychological_dependence) FROM table_name_91 WHERE pleasure = 2.3 AND mean < 1.9300000000000002 | sql_create_context |
CREATE TABLE table_13755 (
"Rank" real,
"Heat" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of an athlete from Switzerland in a heat larger than 3?
| SELECT MAX("Rank") FROM table_13755 WHERE "Heat" > '3' AND "Nationality" = 'switzerland' | wikisql |
CREATE TABLE table_name_33 (
arena VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what arena was the game against the Sharks played?
| SELECT arena FROM table_name_33 WHERE opponent = "sharks" | sql_create_context |
CREATE TABLE table_204_24 (
id number,
"year" number,
"league" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the previous manager of the california lea... | SELECT "manager" FROM table_204_24 WHERE "league" = 'california league' AND "year" < (SELECT "year" FROM table_204_24 WHERE "manager" = 'ray perry') ORDER BY id DESC LIMIT 1 | squall |
CREATE TABLE table_18987 (
"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 w... | SELECT MAX("Game") FROM table_18987 WHERE "Record" = '6-3' | wikisql |
CREATE TABLE table_name_81 (
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent with a 0-1 record?
| SELECT opponent FROM table_name_81 WHERE record = "0-1" | sql_create_context |
CREATE TABLE table_202_90 (
id number,
"name" text,
"county" text,
"population\n(2012 est.)" number,
"population\n(2010)" number,
"land area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which town name is the best if you want an area with the... | SELECT "name" FROM table_202_90 ORDER BY "land area" DESC LIMIT 1 | squall |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost numb... | SELECT COUNT(*) > 0 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 = 25696)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (ca... | mimic_iii |
CREATE TABLE table_15607589_2 (
points_against VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the points against for november 14
| SELECT points_against FROM table_15607589_2 WHERE date = "November 14" | sql_create_context |
CREATE TABLE table_26077092_7 (
player VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players are from Purdue?
| SELECT COUNT(player) FROM table_26077092_7 WHERE college = "Purdue" | sql_create_context |
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
... | SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' ORDER BY enr | nvbench |
CREATE TABLE table_4021 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries for district home are ... | SELECT COUNT("District Home") FROM table_4021 WHERE "Congress" = '87th' | wikisql |
CREATE TABLE table_69563 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
| SELECT "Engine" FROM table_69563 WHERE "Team" = 'chesterfield racing' AND "Chassis" = 'march 761' | wikisql |
CREATE TABLE table_60524 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"NHL team" text,
"Team from" text,
"League from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From which league is the player chosen by the Atlan... | SELECT "League from" FROM table_60524 WHERE "NHL team" = 'atlanta thrashers (from dallas) 6' | wikisql |
CREATE TABLE table_204_969 (
id number,
"composer" text,
"title" text,
"genre" text,
"date" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what work was written after henry hadley had seen an oscar wilde play ?
| SELECT "title" FROM table_204_969 WHERE "composer" = 'henry hadley' | squall |
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 All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(Team_ID) | nvbench |
CREATE TABLE table_1140082_2 (
fastest_lap VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the fastest lap at Watkins glen?
| SELECT fastest_lap FROM table_1140082_2 WHERE location = "Watkins Glen" | sql_create_context |
CREATE TABLE table_name_12 (
winner VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which winner had a location of Iowa?
| SELECT winner FROM table_name_12 WHERE location = "iowa" | sql_create_context |
CREATE TABLE table_5910 (
"Week" real,
"Kickoff" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"NFL.com Recap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the site of the recap at qualcomm ... | SELECT "NFL.com Recap" FROM table_5910 WHERE "Game Site" = 'qualcomm stadium' | wikisql |
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT MAX(Price), MAX(Score) FROM wine GROUP BY MAX(Price) | nvbench |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'stress ulcer treatment - famotidine' AND DATETIME(tr... | eicu |
CREATE TABLE status (
statusId INTEGER,
status TEXT
)
CREATE TABLE races (
raceId INTEGER,
year INTEGER,
round INTEGER,
circuitId INTEGER,
name TEXT,
date TEXT,
time TEXT,
url TEXT
)
CREATE TABLE qualifying (
qualifyId INTEGER,
raceId INTEGER,
driverId INTEGER,
... | SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name ORDER BY name DESC | nvbench |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational 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 INNER JOIN semester... | advising |
CREATE TABLE table_46056 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is points sgsinst when points diff i... | SELECT "Points against" FROM table_46056 WHERE "Points diff" = '+96' | wikisql |
CREATE TABLE table_name_70 (
points INTEGER,
time_retired VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?
| SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165 | 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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype tex... | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | mimic_iii |
CREATE TABLE table_77507 (
"D 49" text,
"D 48" text,
"D 47" text,
"D 46" text,
"D 45" text,
"D 44" text,
"D 43" text,
"D 42" text,
"D 41" text,
"D 40" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the D 40 with D 44 of d ... | SELECT "D 40" FROM table_77507 WHERE "D 44" = 'd 15' | wikisql |
CREATE TABLE table_22542179_3 (
nat VARCHAR,
total_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of nat for total g of 6
| SELECT COUNT(nat) FROM table_22542179_3 WHERE total_g = 6 | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
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... | SELECT * FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_info_hz_i... | css |
CREATE TABLE table_47943 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on 11 August 1991 when the H/A was H?
| SELECT "Opponents" FROM table_47943 WHERE "H / A" = 'h' AND "Date" = '11 august 1991' | wikisql |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Sc... | SELECT value AS tag, COUNT(*) AS nrPosts, AVG(Score) AS avgScore FROM (SELECT Tags, Score, value FROM Posts JOIN LATERAL STRING_SPLIT(REPLACE(REPLACE(REPLACE(Tags, '><', ','), '<', ''), '>', ''), ',')) AS t1 GROUP BY value HAVING COUNT(*) > 4 ORDER BY AVG(Score) DESC | sede |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId ... | SELECT p.Title, Answered = CASE WHEN NOT p.AcceptedAnswerId IS NULL THEN 'Yes' ELSE 'No' END, p.AnswerCount, p.ViewCount, p.CommentCount, UpVote = SUM(CASE WHEN vt.Name = 'UpMod' THEN 1 ELSE 0 END), Favorite = SUM(CASE WHEN vt.Name = 'Favorite' THEN 1 ELSE 0 END), OtherVote = SUM(CASE WHEN vt.Name NOT IN ('UpMod', 'Fav... | sede |
CREATE TABLE table_67748 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stadium held the game that had a score of 6 3?
| SELECT "Stadium" FROM table_67748 WHERE "Score" = '6–3' | wikisql |
CREATE TABLE table_25510 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode that aired originally ... | SELECT "Title" FROM table_25510 WHERE "Original air date" = 'November 10, 1998' | wikisql |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReas... | SELECT db.name FROM sys.databases AS db | sede |
CREATE TABLE fzzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jyb... | css |
CREATE TABLE table_name_97 (
high_points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the high scorer in the Toronto game?
| SELECT high_points FROM table_name_97 WHERE team = "toronto" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzb... | css |
CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
)
CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE countries (
coun... | SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%' | spider |
CREATE TABLE table_39468 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year featured lola motorsport as an entrant with over 0 points?
| SELECT AVG("Year") FROM table_39468 WHERE "Entrant" = 'lola motorsport' AND "Points" > '0' | wikisql |
CREATE TABLE table_203_272 (
id number,
"title" text,
"release" text,
"consoles" text,
"handheld" text,
"pc" text,
"arcade" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- nfl blitz special edition and nfl blitz 20-02 were both released in wh... | SELECT "release" FROM table_203_272 WHERE "title" IN ('nfl blitz special edition', 'nfl blitz 20-02') | squall |
CREATE TABLE table_47169 (
"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 Date of the game with a Record of 8 10 6?
| SELECT "Date" FROM table_47169 WHERE "Record" = '8–10–6' | wikisql |
CREATE TABLE table_23667534_1 (
singer_s_ VARCHAR,
song_s__title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who sand He's Bigfoot?
| SELECT singer_s_ FROM table_23667534_1 WHERE song_s__title = "He's Bigfoot" | sql_create_context |
CREATE TABLE table_23853 (
"No. in series" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the production code for episode #1?
| SELECT "Production code" FROM table_23853 WHERE "No. in series" = '1' | wikisql |
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 Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | 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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 mzjzjlb.JZZDBM = 'I86.192' AND hz_info.RYB... | css |
CREATE TABLE table_13703 (
"Season" text,
"High" real,
"Average" real,
"Total" real,
"League Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average that has a total more than 263,648, a high of 31,564, and ranking of 1st?
| SELECT SUM("Average") FROM table_13703 WHERE "League Ranking" = '1st' AND "Total" > '263,648' AND "High" = '31,564' | wikisql |
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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 84476 AND admissions.admission_location = 'transfer from hosp/extram' AND STRFTIME('%y', admissions.admittime) >= '2102' ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE table_name_39 (
round VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Round, when College is Northern Illinois?
| SELECT COUNT(round) FROM table_name_39 WHERE college = "northern illinois" | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "GANGRENE" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE table_name_31 (
games INTEGER,
lost VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Games have a Lost of 6, and Points smaller than 7?
| SELECT SUM(games) FROM table_name_31 WHERE lost = 6 AND points < 7 | 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 person_info.XM FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND 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 WHERE jybgb.BGDH = '1... | css |
CREATE TABLE table_name_43 (
winner VARCHAR,
time VARCHAR,
owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the WInner with a TIme of 1:10.60, and Owner of Leslie Combs II?
| SELECT winner FROM table_name_43 WHERE time = "1:10.60" AND owner = "leslie combs ii" | sql_create_context |
CREATE TABLE table_name_43 (
co_drivers VARCHAR,
year VARCHAR,
class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the co drivers past 1994 in the WSC class?
| SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc" | 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 COUNT(*) FROM zzmzjzjlb WHERE zzmzjzjlb.YLJGDM = '1540750' AND zzmzjzjlb.JZKSRQ BETWEEN '2004-04-22' AND '2008-12-14' AND zzmzjzjlb.ZSEBZ > 0 UNION SELECT COUNT(*) FROM fzzmzjzjlb WHERE fzzmzjzjlb.YLJGDM = '1540750' AND fzzmzjzjlb.JZKSRQ BETWEEN '2004-04-22' AND '2008-12-14' AND fzzmzjzjlb.ZSEBZ > 0 | css |
CREATE TABLE ALBUM (
ArtistId VARCHAR
)
CREATE TABLE ARTIST (
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of artists that do not have any albums.
| SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId | sql_create_context |
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.admission_location = "PHYS REFERRAL/NORMAL DELI" AND prescriptions.drug = "Vecuronium Bromide" | mimicsql_data |
CREATE TABLE table_46551 (
"Round" real,
"Overall Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team (League) did the ... | SELECT "College/Junior/Club Team (League)" FROM table_46551 WHERE "Round" > '3' AND "Player" = 'julien cayer' | wikisql |
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
)
CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE ndecoreexcel_math_gr... | SELECT t_fed_rev FROM finrev_fed_17 WHERE school_district LIKE "%Pecatonia Area%" | studentmathscore |
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.gender = "F" AND demographic.diagnosis = "STERNAL WOUND INFECTION" | mimicsql_data |
CREATE TABLE table_18965 (
"Election date" real,
"Party leader" text,
"Number of votes received" real,
"Percentage of votes" text,
"Number of deputies" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the percentage of votes with number of depu... | SELECT "Percentage of votes" FROM table_18965 WHERE "Number of deputies" = '112' | wikisql |
CREATE TABLE table_name_69 (
release_price___usd__ VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Release date of 2008 q3 has what release price?
| SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3" | sql_create_context |
CREATE TABLE table_3114 (
"University" text,
"Location" text,
"Year Founded" real,
"QS World University Rankings 2012" real,
"Times Higher Education World University Rankings 2012-2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the QS W... | SELECT MAX("QS World University Rankings 2012") FROM table_3114 WHERE "Times Higher Education World University Rankings 2012-2013" = '251-275' | wikisql |
CREATE TABLE table_40507 (
"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.
-- How many played has an against greater than 57 ... | SELECT COUNT("Played") FROM table_40507 WHERE "Against" > '57' AND "Lost" > '14' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-44805')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | eicu |
CREATE TABLE table_43698 (
"Rank" real,
"Date" text,
"Attendance" real,
"Opponent" text,
"Texas Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the largest attendance over 101,474 played against Rice?
| SELECT AVG("Rank") FROM table_43698 WHERE "Attendance" > '101,474' AND "Opponent" = 'rice' | wikisql |
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location | nvbench |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATIO... | SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY | nvbench |
CREATE TABLE table_44251 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is that player from South Africa who had a total score under 293?
| SELECT "Player" FROM table_44251 WHERE "Total" < '293' AND "Country" = 'south africa' | wikisql |
CREATE TABLE table_37502 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
| SELECT MIN("Loss") FROM table_37502 WHERE "Name" = 'jarius wright' AND "Gain" > '1' | wikisql |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", DisplayName, Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') ORDER BY Reputation DESC LIMIT 50 | sede |
CREATE TABLE table_33134 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit maker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who captains Portsmouth?
| SELECT "Captain" FROM table_33134 WHERE "Team" = 'portsmouth' | wikisql |
CREATE TABLE table_2522473_1 (
seasons INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of seasons for any team?
| SELECT MAX(seasons) FROM table_2522473_1 | sql_create_context |
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 lab (
labid numbe... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-6 year') GR... | eicu |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'dextrose 40 % oral gel' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-3 year')) | eicu |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
... | SELECT patients.gender FROM patients WHERE patients.subject_id = 61751 | mimic_iii |
CREATE TABLE table_13570_1 (
stain VARCHAR,
common_use VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stain is used commonly for elastic fibers?
| SELECT stain FROM table_13570_1 WHERE common_use = "Elastic fibers" | sql_create_context |
CREATE TABLE table_name_90 (
points VARCHAR,
difference VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points occurred with a difference of 2 for position less than 4?
| SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 4 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE icustays (
row_id number,
s... | 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 = 27964) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT zyjzjlb.CYZTDM FROM zyjzjlb WHERE zyjzjlb.JZLSH = '39258009864' | css |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
U... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN... | sede |
CREATE TABLE table_6610 (
"Title" text,
"Year" real,
"Platform(s)" text,
"Director" text,
"Producer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of Battalion Wars 2 which was released on GCN after 2004?
| SELECT "Director" FROM table_6610 WHERE "Platform(s)" = 'gcn' AND "Year" > '2004' AND "Title" = 'battalion wars 2' | wikisql |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment tex... | SELECT Date, UserId, UserId AS "user_link", Name, Class FROM Badges WHERE TagBased = 'true' AND (Name LIKE '%vba%' OR Name LIKE '%excel%') ORDER BY UserId, Date | sede |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE state (
state_code text,
state... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | atis |
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_NM, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '5349528' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM | css |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN person_info_hz_info ON person_info.RYBH = person_info_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 ... | css |
CREATE TABLE table_name_66 (
date_of_birth VARCHAR,
player VARCHAR,
years_at_club VARCHAR,
goals VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date of birth for the player with goals less than 4, games more than 1, yea... | SELECT date_of_birth FROM table_name_66 WHERE goals < 4 AND games > 1 AND years_at_club = "1945" AND player = "jim young" | sql_create_context |
CREATE TABLE Teachers (
last_name VARCHAR,
teacher_id VARCHAR
)
CREATE TABLE Detention (
teacher_id VARCHAR,
detention_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the id and last name of the teacher that has the most detentions wit... | SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_16795394_3 (
points VARCHAR,
team__number2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For team Atl tico Nacional, what were the points?
| SELECT points FROM table_16795394_3 WHERE team__number2 = "Atlético Nacional" | sql_create_context |
CREATE TABLE table_47255 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Goals against" FROM table_47255 WHERE "Goal Difference" < '43' AND "Wins" < '13' AND "Losses" > '14' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance... | SELECT COUNT(*) FROM Posts WHERE Posts.CreationDate = '10-13-2014' | sede |
CREATE TABLE table_48230 (
"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.
-- Can yo... | SELECT "Team" FROM table_48230 WHERE "High rebounds" = 'antawn jamison (10)' AND "Date" = 'november 5' | wikisql |
CREATE TABLE table_203_20 (
id number,
"player" text,
"year" number,
"round" text,
"result" text,
"opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are the only players listed that played in 2011 ?
| SELECT "player" FROM table_203_20 WHERE "year" = 2011 | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.