instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2138.0" AND prescriptions.formulary_drug_cd = "NEOSYRSL"
mimicsql_data
CREATE TABLE table_42230 ( "Rank" real, "Celebrity" text, "Professional Partner" text, "Season" real, "Average" real ) -- 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_42230 WHERE "Season" = '4'
wikisql
CREATE TABLE table_9875 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Jim Thorpe of United States has a score of 71, what is the place?
SELECT "Place" FROM table_9875 WHERE "Score" = '71' AND "Country" = 'united states' AND "Player" = 'jim thorpe'
wikisql
CREATE TABLE table_13991 ( "Season" text, "League" text, "Division" text, "Coach" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which division were the IceGators when coached by Todd Gordon?
SELECT "Division" FROM table_13991 WHERE "Coach" = 'todd gordon'
wikisql
CREATE TABLE table_name_97 ( player VARCHAR, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player is from the College of Alabama?
SELECT player FROM table_name_97 WHERE college = "alabama"
sql_create_context
CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZDZZBM...
SELECT * FROM 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_MZJZJLB AND jybgb.YLJGDM = jy...
css
CREATE TABLE table_21997 ( "No. in series" real, "No. in season" real, "Title" text, "Country" text, "Project" text, "Status at production" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the original are da...
SELECT "Original air date" FROM table_21997 WHERE "No. in series" = '71'
wikisql
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
SELECT TIME_TO_STR(v.CreationDate, '%W') AS start_weekday, COUNT(1) AS bounties FROM Votes AS v WHERE v.VoteTypeId = 8 GROUP BY TIME_TO_STR(v.CreationDate, '%W') ORDER BY start_weekday
sede
CREATE TABLE table_59562 ( "Show" text, "Date" text, "Official ratings (millions)" real, "Weekly rank" text, "Share" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Weekly Rank for a Live Final Show has an Official Ratings (millions) greater th...
SELECT "Weekly rank" FROM table_59562 WHERE "Official ratings (millions)" > '5.2' AND "Show" = 'live final'
wikisql
CREATE TABLE table_27078 ( "Episode" real, "Stage" text, "Celebrities" text, "Directed and produced by" text, "Original airdate" text, "Viewers (overnight estimates)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List directors and producers wh...
SELECT "Directed and produced by" FROM table_27078 WHERE "Celebrities" = 'Bill Turnbull and Louise Minchin'
wikisql
CREATE TABLE table_name_42 ( against INTEGER, status VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Against, when Status is 'First Test', and when Date is '26/05/2007'?
SELECT MIN(against) FROM table_name_42 WHERE status = "first test" AND date = "26/05/2007"
sql_create_context
CREATE TABLE table_name_89 ( rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?
SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia"
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 patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-77873') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.unitadmittime LIMIT 1
eicu
CREATE TABLE table_42427 ( "Year" real, "Venue" text, "Winning team" text, "Score" text, "USA Captain" text, "Europe Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest year that Europe won, when the USA's Captain was Kat...
SELECT MAX("Year") FROM table_42427 WHERE "Winning team" = 'europe' AND "USA Captain" = 'kathy whitworth'
wikisql
CREATE TABLE table_69494 ( "Nationality" text, "Position [A ]" text, "Milan career" text, "Captaincy" text, "Appearances" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality has 116 appearances?
SELECT "Nationality" FROM table_69494 WHERE "Appearances" = '116'
wikisql
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, SUM(Height) FROM people GROUP BY Sex ORDER BY SUM(Height) DESC
nvbench
CREATE TABLE table_train_202 ( "id" int, "systolic_blood_pressure_sbp" int, "body_weight" float, "diabetic" string, "qtc" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "clinical_diagnosis" bool, "NOUSE" float ) -- Using valid SQLite, answer the following que...
SELECT * FROM table_train_202 WHERE body_mass_index_bmi >= 18.5 AND body_mass_index_bmi <= 30
criteria2sql
CREATE TABLE table_46247 ( "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 on October 17 with a Score of 1 2?
SELECT "Home" FROM table_46247 WHERE "Score" = '1–2' AND "Date" = 'october 17'
wikisql
CREATE TABLE table_64635 ( "Tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "Career SR" text, "Caree...
SELECT "Career Win-Loss" FROM table_64635 WHERE "1995" = 'atp masters series'
wikisql
CREATE TABLE list ( LastName TEXT, FirstName TEXT, Grade INTEGER, Classroom INTEGER ) CREATE TABLE teachers ( LastName TEXT, FirstName TEXT, Classroom INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Plot a scatter chart, count(*) by class...
SELECT COUNT(*), Classroom FROM list GROUP BY Classroom
nvbench
CREATE TABLE table_28694 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "U.S. viewers (millions)" FROM table_28694 WHERE "Title" = 'Helen Back Again'
wikisql
CREATE TABLE gsi ( course_offering_id int, student_id int ) 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 requirement (...
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE (course.description LIKE '%reading group%' OR course.name LIKE '%reading group%') AND (course.description LIKE '%Digital Signal Processing Design Laboratory%' OR course.name LIKE '%Digital Signal Processing Design Laboratory%') AND course.course_id = cour...
advising
CREATE TABLE table_name_25 ( laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recor...
SELECT MAX(laps) FROM table_name_25 WHERE time_retired = "+1 lap" AND constructor = "brm" AND grid > 1
sql_create_context
CREATE TABLE table_30858 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which college/junior/club team has jim mathieson as the play...
SELECT "College/junior/club team" FROM table_30858 WHERE "Player" = 'Jim Mathieson'
wikisql
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE mzjzjlb ( HXPLC number, HZXM ...
SELECT jybgb.SHSJ 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 = '65243829' AND jybgb.BGRQ BETWEEN '2018-07-03' AND '2020-02-16' UNION...
css
CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, m...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_0.airport_code AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CLEVELAND') OR (flight.from_airpo...
atis
CREATE TABLE table_name_85 ( opponent VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a time of 2:35?
SELECT opponent FROM table_name_85 WHERE time = "2:35"
sql_create_context
CREATE TABLE table_name_94 ( result VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the result for 11 august 2010?
SELECT result FROM table_name_94 WHERE date = "11 august 2010"
sql_create_context
CREATE TABLE table_2361911_2 ( regular_season VARCHAR, league VARCHAR, playoffs VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the regular season for usisl d-3 pro league did not qualify
SELECT regular_season FROM table_2361911_2 WHERE league = "USISL D-3 Pro league" AND playoffs = "Did not qualify"
sql_create_context
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescription...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Tizanidine"
mimicsql_data
CREATE TABLE table_204_33 ( id number, "number" number, "name" text, "year built" number, "boat builder" text, "current status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which boat builder is the most popular ?
SELECT "boat builder" FROM table_204_33 GROUP BY "boat builder" ORDER BY COUNT(*) DESC LIMIT 1
squall
CREATE TABLE table_30062 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Title" FROM table_30062 WHERE "Directed by" = 'Mike Rohl' AND "No. in series" = '120'
wikisql
CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr numeric(5,0) ) 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 state
nvbench
CREATE TABLE table_24620684_2 ( vehicle VARCHAR, clean_electric_grid_california__san_francisco_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?
SELECT COUNT(vehicle) FROM table_24620684_2 WHERE clean_electric_grid_california__san_francisco_ = "100 g/mi (62 g/km)"
sql_create_context
CREATE TABLE table_name_21 ( sport VARCHAR, event VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Sport had an Event of men's 400 m hurdles?
SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"
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 demographic (...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE" AND diagnoses.short_title = "Retain plastic fragments"
mimicsql_data
CREATE TABLE person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) 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, JSB...
SELECT mzjzjlb.JZLSH 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 pers...
css
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswer...
SELECT p.Id AS "post_link" FROM Posts AS p INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE p.Body LIKE '%<img%' AND u.Reputation < 10 AND p.PostTypeId = 1 ORDER BY p.CreationDate DESC
sede
CREATE TABLE gwyjzb ( 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 gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '云清卓' UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '云清卓'
css
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_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '04686817' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 9433.92)
css
CREATE TABLE table_55908 ( "Year" text, "Language" text, "Title" text, "Translator" text, "Company" text, "Pages" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the title for year n.m.?
SELECT "Title" FROM table_55908 WHERE "Year" = 'n.m.'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, 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, ...
SELECT zzmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb 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 WHERE person_info.XM = '袁华皓' AND hz_info.YLJGDM = '3861685' AND zzmzjzjlb.JZKSMC LIKE '%正骨科%' UNION SELECT fzzmzjzjlb...
css
CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text, ZYLBDM text, ZYMC text ) CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGD...
SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '5860255' AND jybgb.BGRQ BETWEEN '2007-07-16' AND '2020-08-01' GROUP BY jybgb.KSBM HAVING COUNT(*) < 19) AS T
css
CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE aircraft ( ...
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 = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DEN...
atis
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), ...
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC
nvbench
CREATE TABLE table_name_3 ( date INTEGER, length VARCHAR, builder VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Length of feet 9inches (m), and a Builder of portland terminal company?
SELECT AVG(date) FROM table_name_3 WHERE length = "feet 9inches (m)" AND builder = "portland terminal company"
sql_create_context
CREATE TABLE table_20884160_1 ( winner VARCHAR, circuit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner of the race at barbagallo raceway?
SELECT winner FROM table_20884160_1 WHERE circuit = "Barbagallo Raceway"
sql_create_context
CREATE TABLE table_27193 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many writers are listed when the U.S vie...
SELECT COUNT("Written by") FROM table_27193 WHERE "U.S. viewers (millions)" = '11.21'
wikisql
CREATE TABLE table_63589 ( "Date" text, "Team 1" text, "Result" text, "Team 2" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game played that has a result of 0-4?
SELECT "Ground" FROM table_63589 WHERE "Result" = '0-4'
wikisql
CREATE TABLE table_name_50 ( round INTEGER, stadium VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least round for the game played at Members Equity Stadium in from of 12,581 people?
SELECT MIN(round) FROM table_name_50 WHERE stadium = "members equity stadium" AND attendance < 12 OFFSET 581
sql_create_context
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 COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '9823666' AND HOSP_STS > 0
css
CREATE TABLE constructorStandings ( constructorStandingsId INTEGER, raceId INTEGER, constructorId INTEGER, points REAL, position INTEGER, positionText TEXT, wins INTEGER ) CREATE TABLE qualifying ( qualifyId INTEGER, raceId INTEGER, driverId INTEGER, constructorId INTEGER, ...
SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name
nvbench
CREATE TABLE table_19058 ( "Team" text, "Stadium" text, "Capacity" real, "Highest" real, "Lowest" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the capacity with team being berwick rangers
SELECT "Capacity" FROM table_19058 WHERE "Team" = 'Berwick Rangers'
wikisql
CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZDZZBM...
SELECT * FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jy...
css
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND diagnoses.icd9_code = "56210"
mimicsql_data
CREATE TABLE table_34730 ( "Year" text, "Class" text, "Team" text, "Bike" text, "Races" real, "Wins" real, "Podiums" real, "Poles" real, "F. laps" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Poles have ...
SELECT SUM("Poles") FROM table_34730 WHERE "Class" = '125cc' AND "Team" = 'matteoni racing team' AND "Points" > '3'
wikisql
CREATE TABLE table_15501 ( "model" text, "engine type" text, "max. power" text, "max. torque" text, "top speed" text, "0\u2013100km/h (62mph)" text, "CO 2 emissions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the engine type wher...
SELECT "engine type" FROM table_15501 WHERE "0\u2013100km/h (62mph)" = '11.2 sec'
wikisql
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.icd9_code = "70704"
mimicsql_data
CREATE TABLE table_71638 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the co-drivers in 2008?
SELECT "Co-Drivers" FROM table_71638 WHERE "Year" = '2008'
wikisql
CREATE TABLE table_55126 ( "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 venue has a home team that has a score of ...
SELECT "Venue" FROM table_55126 WHERE "Home team score" = '18.16 (124)'
wikisql
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
SELECT SUM(t_kc24.OVE_PAY) FROM t_kc24 WHERE t_kc24.PERSON_ID = '90652066' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2004-04-27' AND '2018-08-22'
css
CREATE TABLE table_name_82 ( total_viewers VARCHAR, share VARCHAR, episode_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes have a share of 16.2% and an episode number of less than 1?
SELECT COUNT(total_viewers) FROM table_name_82 WHERE share = "16.2%" AND episode_no < 1
sql_create_context
CREATE TABLE table_28806 ( "English" text, "Galician ( Official )" text, "Galician ( Reintegrationist )" text, "Portuguese" text, "Spanish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Spanish word is there for the Portuguese bem-vindo?
SELECT COUNT("Spanish") FROM table_28806 WHERE "Portuguese" = 'Bem-vindo'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE zyjzjlb_jybgb ( YLJGDM_ZYJZJLB text, BGDH number, YLJGDM number ) CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, ...
SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDSM = '持久的妄想性障碍' AND jyjgzbb.JCZBMC = '补体C4'
css
CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM text, SHRGH ...
SELECT mzjzjlb.JZLSH 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 = '27160966' AND NOT mzjzjlb.JZLSH IN (SELECT JZLSH FROM jybgb WHERE BGRQ <= '2007-10-30')
css
CREATE TABLE table_30903 ( "Episode" real, "First Air Date" text, "Rating (18\u201349)" text, "Share (18\u201349)" real, "Viewers (millions)" text, "Rank (timeslot)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 4 is the episode what is th...
SELECT "First Air Date" FROM table_30903 WHERE "Episode" = '4'
wikisql
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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit 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.short_title = "Hypospadias" AND lab.flag = "abnormal"
mimicsql_data
CREATE TABLE table_66266 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the position of the player picked after 94, by the Boston Patriots?
SELECT "Position" FROM table_66266 WHERE "Pick" > '94' AND "Team" = 'boston patriots'
wikisql
CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDa...
SELECT TSQL.* FROM (SELECT Id AS "post_link", Title FROM Posts WHERE Tags LIKE '%sql-server%' ORDER BY LastActivityDate DESC LIMIT 10000) AS TSQL WHERE TSQL.Title LIKE '%cluster%' OR TSQL.Title LIKE '%Replication%' OR TSQL.Title LIKE '%tempdb%'
sede
CREATE TABLE table_name_47 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the percentage in 2006 that had less than 9% in 1970?
SELECT AVG(2006) FROM table_name_47 WHERE 1970 < 9
sql_create_context
CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturd...
SELECT DISTINCT transport_type FROM ground_service WHERE (airport_code IN (SELECT AIRPORTalias0.airport_code FROM airport AS AIRPORTalias0 WHERE AIRPORTalias0.airport_code = 'EWR') AND city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'NEW YORK'))
atis
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, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home
nvbench
CREATE TABLE table_name_58 ( events_won_by_kcl INTEGER, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average value for events won by KCL in a year earlier than 2004?
SELECT AVG(events_won_by_kcl) FROM table_name_58 WHERE year < 2004
sql_create_context
CREATE TABLE table_19396259_1 ( original_air_date VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the original air date for production code of 3t7501
SELECT COUNT(original_air_date) FROM table_19396259_1 WHERE production_code = "3T7501"
sql_create_context
CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_p...
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co...
advising
CREATE TABLE table_name_79 ( silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia"
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.insurance = "Private" AND demographic.admityear < "2166"
mimicsql_data
CREATE TABLE table_23622 ( "\u0410 \u0430 [a]" text, "\u0411 \u0431 [b]" text, "\u0412 \u0432 [v]" text, "\u0413 \u0433 [\u0261]" text, "\u0413\u044c \u0433\u044c [\u0261\u02b2]" text, "\u0413\u04d9 \u0433\u04d9 [\u0261\u02b7]" text, "\u0494 \u0495 [\u0281/\u0263]" text, "\u0494\u044c \u...
SELECT "\u0410 \u0430 [a]" FROM table_23622 WHERE "\u0494\u044c \u0495\u044c [\u0281\u02b2/\u0263\u02b2]" = 'Ш ш [ʂʃ]'
wikisql
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2177" AND lab.flag = "abnormal"
mimicsql_data
CREATE TABLE table_203_375 ( id number, "name" text, "year built" text, "country" text, "town" text, "height" text, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many pylons are at least 80 meters tall ?
SELECT COUNT("name") FROM table_203_375 WHERE "height" >= 80
squall
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.JCFF 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_MZJZJLB AND jybgb....
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT demographic.religion FROM demographic WHERE demographic.name = "Jerry Deberry"
mimicsql_data
CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Has_Allergy ( StuID INTEGE...
SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY COUNT(*) DESC
nvbench
CREATE TABLE table_34966 ( "Year" real, "Class" text, "Team" text, "Machine" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Team of Honda and a point total of 238 is what highest year?
SELECT MAX("Year") FROM table_34966 WHERE "Team" = 'honda' AND "Points" = '238'
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "30" AND demographic.admityear < "2174"
mimicsql_data
CREATE TABLE table_67728 ( "Peak" text, "Elevation (m)" real, "Prominence (m)" real, "Isolation (km)" real, "Municipality" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has a prominence less than 1292 and an Isolatio...
SELECT "County" FROM table_67728 WHERE "Prominence (m)" < '1292' AND "Isolation (km)" = '14'
wikisql
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 * FROM jyjgzbb WHERE jyjgzbb.JCZBMC = (SELECT jyjgzbb.JCZBMC FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '10460681309') AND jyjgzbb.JCZBJGDW = (SELECT jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '10460681309') AND jyjgzbb.JCZBJGDL >= (SELECT jyjgzbb.JCZBJGDL FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '10460681309')
css
CREATE TABLE table_16387953_1 ( home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the scores for games where the home team is Adelaide?
SELECT home_team AS score FROM table_16387953_1 WHERE home_team = "Adelaide"
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 COUNT(qtb.PERSON_ID) FROM qtb WHERE qtb.IN_DIAG_DIS_NM = '器质性心境[情感]障碍' UNION SELECT COUNT(gyb.PERSON_ID) FROM gyb WHERE gyb.IN_DIAG_DIS_NM = '器质性心境[情感]障碍' UNION SELECT COUNT(zyb.PERSON_ID) FROM zyb WHERE zyb.IN_DIAG_DIS_NM = '器质性心境[情感]障碍' UNION SELECT COUNT(mzb.PERSON_ID) FROM mzb WHERE mzb.IN_DIAG_DIS_NM = '器质性...
css
CREATE TABLE table_name_48 ( time INTEGER, reaction_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time of the Athlete with a Reaction time of 0.164?
SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.164
sql_create_context
CREATE TABLE table_50335 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?
SELECT AVG("December") FROM table_50335 WHERE "Record" = '16-3-4' AND "Game" < '23'
wikisql
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '6221358' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 8
css
CREATE TABLE table_name_84 ( attendance VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the attendance when the away team was boreham wood?
SELECT attendance FROM table_name_84 WHERE away_team = "boreham wood"
sql_create_context
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number...
SELECT MIN(t.TagName) AS "tagname", COUNT(*) AS total, SUM(CASE WHEN TIME_TO_STR(CreationDate, '%W') IN (1, 7) THEN 1 ELSE 0 END) AS weekend, CAST(SUM(CASE WHEN TIME_TO_STR(CreationDate, '%W') IN (1, 7) THEN 1 ELSE 0 END) AS FLOAT(15, 6)) / COUNT(*) AS ratio FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId...
sede
CREATE TABLE table_52145 ( "Result" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event went under 3 rounds and was no contest (punch after knockdown)?
SELECT "Event" FROM table_52145 WHERE "Round" < '3' AND "Method" = 'no contest (punch after knockdown)'
wikisql
CREATE TABLE table_28894 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the result for thomas h. hall (dr) 53.0% william clarke (f) 47.0%
SELECT COUNT("Result") FROM table_28894 WHERE "Candidates" = 'Thomas H. Hall (DR) 53.0% William Clarke (F) 47.0%'
wikisql
CREATE TABLE table_name_8 ( high_assists VARCHAR, location_attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the high assists when the game was at American Airlines Center 20,223?
SELECT high_assists FROM table_name_8 WHERE location_attendance = "american airlines center 20,223"
sql_create_context
CREATE TABLE table_24051050_1 ( events VARCHAR, episode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What events took place in episode 12?
SELECT events FROM table_24051050_1 WHERE episode = 12
sql_create_context
CREATE TABLE table_22938 ( "School" text, "Year Founded" text, "Denomination" text, "Language" text, "Grades" text, "Gender" text, "Private/Public" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the language in the school teaching gra...
SELECT "Language" FROM table_22938 WHERE "Grades" = '4-12'
wikisql
CREATE TABLE table_73600 ( "Name" text, "Location" text, "Act. Units" real, "Stacks" text, "In Service Dates" text, "Unit Capacity (2009)" text, "Nameplate Capacity (2009 MW )" text, "Owner Type" text, "Owner(s) (2009)" text ) -- Using valid SQLite, answer the following questions f...
SELECT COUNT("Stacks") FROM table_73600 WHERE "Unit Capacity (2009)" = '1 & 2 235 MW 3 & 4 88.2 MW'
wikisql