instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_53 (
year VARCHAR,
result VARCHAR,
location VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did the new york giants win with a result of 15-7 at lincoln financial field?
| SELECT COUNT(year) FROM table_name_53 WHERE location = "lincoln financial field" AND winner = "new york giants" AND result = "15-7" | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Mental disor NEC oth dis" | mimicsql_data |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "FEMORAL ARTERY THROMBOSIS" AND demographic.age < "89" | mimicsql_data |
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 zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJL... | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM, MAX(t_kc24.CIVIL_SUBSIDY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '2325366' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM ORDER BY MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) DESC | css |
CREATE TABLE table_19141 (
"EDO Flight" real,
"Shuttle" text,
"Mission" text,
"Launch Date" text,
"Duration" text,
"Primary Payload(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the mission with primary payload(s) being spacelab life... | SELECT "Mission" FROM table_19141 WHERE "Primary Payload(s)" = 'Spacelab Life Sciences-2' | wikisql |
CREATE TABLE table_57338 (
"Tallangatta DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tallangatta DFL losses greater than 2 and an against greater than 1013... | SELECT "Tallangatta DFL" FROM table_57338 WHERE "Against" > '1013' AND "Losses" > '2' | wikisql |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId numb... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%sri lanka%' ORDER BY Reputation DESC | sede |
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE t... | SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location | nvbench |
CREATE TABLE table_64532 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes for the contestants that were ranked #1?
| SELECT "Notes" FROM table_64532 WHERE "Rank" = '1' | wikisql |
CREATE TABLE table_train_38 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"child_pugh_class" string,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"acute_hepatitis" bool,
"liver_disease" bool,
"heart_rate" int,
"NOUSE" float
)
-- Using valid SQLite, answer t... | SELECT * FROM table_train_38 WHERE systolic_blood_pressure_sbp < 90 | criteria2sql |
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 mzjzjlb.JLSJ FROM mzjzjlb WHERE mzjzjlb.JZLSH = '03946875795' | css |
CREATE TABLE table_name_44 (
game INTEGER,
opponent VARCHAR,
november VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Game, when Opponent is 'Chicago Black Hawks', and when November is less than 16?
| SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16 | sql_create_context |
CREATE TABLE table_name_91 (
national_cup VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What national cup has fc barcelona?
| SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona" | 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 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.ethnicity = "ASIAN" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | mimicsql_data |
CREATE TABLE table_1342198_13 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many candidates ran against barratt o'hara?
| SELECT COUNT(candidates) FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" | sql_create_context |
CREATE TABLE table_name_29 (
nominated_work VARCHAR,
year VARCHAR,
result VARCHAR,
award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nominated work, nominated for the drama league award before 2007?
| SELECT nominated_work FROM table_name_29 WHERE result = "nominated" AND award = "drama league award" AND year < 2007 | sql_create_context |
CREATE TABLE table_31685 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the result of july 16, 2000
| SELECT "Result" FROM table_31685 WHERE "Date" = 'july 16, 2000' | wikisql |
CREATE TABLE table_name_39 (
runner_s__up VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner(s)-up for the Feb 18, 1996 tournament?
| SELECT runner_s__up FROM table_name_39 WHERE date = "feb 18, 1996" | sql_create_context |
CREATE TABLE nuclear_power_plants (
id text,
name text,
latitude text,
longitude text,
country text,
status text,
reactortype text,
reactormodel text,
constructionstartat text,
operationalfrom text,
operationalto text,
capacity text,
lastupdatedat text,
source tex... | SELECT COUNT(*) FROM nuclear_power_plants WHERE reactortype = "PHWR" | geonucleardata |
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.BBCJBW 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 = '81818459' AND jybgb.BGRQ BETWEEN '2007-08-03' AND '2009-08-24' UNI... | css |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT p.Id, p.Title, p.Body FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id JOIN Posts AS a ON p.AcceptedAnswerId = a.Id WHERE (t.TagName = '##TagName:string##') AND (NOT p.AcceptedAnswerId IS NULL) AND (p.CreationDate >= '##Date1?2016-01-01##') AND (p.CreationDate <= '##Date2... | sede |
CREATE TABLE table_1206114_2 (
comments VARCHAR,
vendor_and_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the comments when vendor and type is enterasys switches?
| SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Enterasys Switches" | sql_create_context |
CREATE TABLE table_6720 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of laps for Karl Muggeridge on a grid less than 16?
| SELECT SUM("Laps") FROM table_6720 WHERE "Rider" = 'karl muggeridge' AND "Grid" < '16' | wikisql |
CREATE TABLE table_name_51 (
package_option VARCHAR,
language VARCHAR,
television_service VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?
| SELECT package_option FROM table_name_51 WHERE language = "italian" AND television_service = "sky radio" | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT prescriptions.formulary_drug_cd, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Acetaminophen IV" | mimicsql_data |
CREATE TABLE table_29632 (
"#" real,
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Viewers" real,
"Original airdate" text,
"Prod. code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode number in the season ... | SELECT "No." FROM table_29632 WHERE "Written by" = 'Greg Nelson' AND "Directed by" = 'Keith Samples' | wikisql |
CREATE TABLE table_64986 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"League Cup Apps" real,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answer the following questi... | SELECT MAX("League Cup Apps") FROM table_64986 WHERE "League Cup Goals" = '0' AND "Name" = 'jimmy lawson' | wikisql |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_cod... | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND... | atis |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%zealand' ORDER BY Reputation DESC LIMIT 50 | sede |
CREATE TABLE table_14192 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold medals when the total is more than 1 and 18 silver?
| SELECT MIN("Gold") FROM table_14192 WHERE "Total" > '1' AND "Silver" = '18' | wikisql |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
... | SELECT DISTINCT ph.PostId AS "post_link", TagName FROM Posts AS p JOIN PostTags AS pt ON pt.PostId = p.Id JOIN Tags AS t ON t.Id = pt.TagId JOIN PostHistory AS ph ON ph.PostId = p.Id WHERE ph.PostHistoryTypeId = 11 AND p.ClosedDate IS NULL AND TagName IN ('android') | sede |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '55722979' AND t_kc22.STA_DATE BETWEEN '2001-09-01' AND '2015-06-25' AND t_kc21.MED_SER_ORG_NO = '5394717' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_1342292_45 (
result VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the election result for the candidate first elected in 1918?
| SELECT result FROM table_1342292_45 WHERE first_elected = 1918 | sql_create_context |
CREATE TABLE store_district (
Store_ID int,
District_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number_of_product_category real,
Ranking int
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE product (
pr... | SELECT Type, COUNT(*) FROM store GROUP BY Type ORDER BY COUNT(*) DESC | nvbench |
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.days_stay > "16" AND diagnoses.short_title = "Staph pneumonia NEC" | mimicsql_data |
CREATE TABLE code_description (
code varchar,
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 TABLE food_service (
meal_... | 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 = 'DALLAS' AND CITY_2.cit... | atis |
CREATE TABLE table_34763 (
"Operation" text,
"Binary" text,
"Binomial" text,
"Fibonacci" text,
"Pairing" text,
"Brodal ***" text,
"Strict Fibonacci Heap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Operation of find-min has what binary?
| SELECT "Binary" FROM table_34763 WHERE "Operation" = 'find-min' | wikisql |
CREATE TABLE table_name_46 (
most_populous_city_town VARCHAR,
irish_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Irish name of d n na ngall (contae dh n na ngall) has the most populous city/town?
| SELECT most_populous_city_town FROM table_name_46 WHERE irish_name = "dún na ngall (contae dhún na ngall)" | sql_create_context |
CREATE TABLE table_63885 (
"Driver" text,
"Navigator" text,
"Vehicle" text,
"Class" text,
"Capacity" real,
"Total Time" text,
"Margin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much time did Coad make when the margin was 04:02?
| SELECT "Total Time" FROM table_63885 WHERE "Margin" = '04:02' AND "Driver" = 'coad' | wikisql |
CREATE TABLE table_name_33 (
total INTEGER,
silver VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?
| SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0 | sql_create_context |
CREATE TABLE Parts (
part_id INTEGER,
part_name VARCHAR(255),
chargeable_yn VARCHAR(1),
chargeable_amount VARCHAR(20),
other_part_details VARCHAR(255)
)
CREATE TABLE Engineer_Skills (
engineer_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
... | SELECT first_name, COUNT(first_name) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY first_name | nvbench |
CREATE TABLE table_203_60 (
id number,
"outcome" text,
"no." number,
"date" text,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many were played... | SELECT COUNT(*) FROM table_203_60 WHERE "date" < 1985 | squall |
CREATE TABLE table_name_26 (
record VARCHAR,
visitor VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the visiting team was the Quebec Nordiques on April 22?
| SELECT record FROM table_name_26 WHERE visitor = "quebec nordiques" AND date = "april 22" | sql_create_context |
CREATE TABLE table_10722506_6 (
_number_of_bids VARCHAR,
elite_eight INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of bids with elite eight larger than 1.0
| SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE elite_eight > 1.0 | sql_create_context |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
... | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 45304) AND prescriptions.drug = 'magnesium sulfate' | mimic_iii |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(t_kc21.PERSON_ID) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3922120' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = '异地2' | css |
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnSc... | SELECT AVG(Age), MIN(Age) FROM Student GROUP BY Major | nvbench |
CREATE TABLE table_name_82 (
rank INTEGER,
earnings__$__ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average rank has an Earning amount that is less than $224,589?
| SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589 | sql_create_context |
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 = '67375587183') AND jyjgzbb.JCZBJGDW = (SELECT jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '67375587183') AND jyjgzbb.JCZBJGDL <= (SELECT jyjgzbb.JCZBJGDL FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '67375587183') | css |
CREATE TABLE table_name_56 (
average INTEGER,
evening_gown VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average for a contestant with an evening gown larger than 9.449 from Kansas?
| SELECT MAX(average) FROM table_name_56 WHERE evening_gown > 9.449 AND state = "kansas" | sql_create_context |
CREATE TABLE table_65761 (
"Name" text,
"Nationality" text,
"4.30" text,
"4.45" text,
"4.55" text,
"Result" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Anna Rogowska's average result?
| SELECT AVG("Result") FROM table_65761 WHERE "Name" = 'anna rogowska' | wikisql |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '1134387' AND gwyjzb.IN_HOSP_DATE BETWEEN '2016-10-13' AND '2019-07-16' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '1134387' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2016-10-13' AND '2019-07-16' | css |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id... | 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 = 'TORONTO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PE... | atis |
CREATE TABLE table_name_96 (
leading_lady VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading lady in The Lonely Trail?
| SELECT leading_lady FROM table_name_96 WHERE title = "the lonely trail" | sql_create_context |
CREATE TABLE table_40390 (
"School year" text,
"95-96" text,
"99-00" text,
"00-01" text,
"01-02" text,
"02-03" text,
"03-04" text,
"04-05" text,
"05-06" text,
"06-07" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 02-03, ... | SELECT "02-03" FROM table_40390 WHERE "06-07" = '1198' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "82" AND demographic.days_stay > "5" | mimicsql_data |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE ... | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code... | atis |
CREATE TABLE table_32951 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue did Essendon play as the away team?
| SELECT "Venue" FROM table_32951 WHERE "Away team" = 'essendon' | wikisql |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description va... | SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN... | advising |
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 * 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 = '8930086' AND zzmzjzjlb.JZZDSM LIKE '%颅脑%' UNION SELECT * FROM person_info JOIN h... | css |
CREATE TABLE table_30543 (
"#" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Winnings ($)" real,
"After" real,
"Before" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the after for the player kevin streelman?... | SELECT "After" FROM table_30543 WHERE "Player" = 'Kevin Streelman' | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.long_title = "Fiber-optic bronchoscopy" | mimicsql_data |
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.KSBM, jybgb.KSMC FROM jybgb WHERE jybgb.BGDH = '72593278389' | css |
CREATE TABLE table_55844 (
"ATHLETE" text,
"FINAL" real,
"LANE" real,
"SEMI" real,
"QUART" real,
"HEAT" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lane did the athlete swim in who had a semi-final time of 49.19?
| SELECT MIN("LANE") FROM table_55844 WHERE "SEMI" = '49.19' | wikisql |
CREATE TABLE table_17114 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the numbers of the nba draft where the player went to kentucky
| SELECT "NBA Draft" FROM table_17114 WHERE "College" = 'Kentucky' | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0... | SELECT SALARY, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_name_80 (
usual_translation VARCHAR,
date_³ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Usual translation is on sep 23?
| SELECT usual_translation FROM table_name_80 WHERE date_³ = "sep 23" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | SELECT c.Id FROM Comments AS c INNER JOIN Posts AS q ON q.Id = c.PostId AND q.PostTypeId = 1 AND LENGTH(c.Text) <= 75 AND (LOWER(c.Text) LIKE '%forget%accept%' OR LOWER(c.Text) LIKE '%please%accept%answer%') ORDER BY c.CreationDate DESC | sede |
CREATE TABLE table_203_252 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country t... | SELECT "country" FROM table_203_252 WHERE "place" = 1 | squall |
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 person_info.XM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE jybgb.BGDH = '21844290233' | css |
CREATE TABLE table_33019 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Venue when the Crowd was larger than... | SELECT "Venue" FROM table_33019 WHERE "Crowd" > '11,000' AND "Away team score" = '7.9 (51)' | 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 SUM(t_kc24.MED_AMOUT), SUM(t_kc24.OVE_PAY) FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '7738882' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2010-01-07' AND '2010-10-09' | css |
CREATE TABLE table_name_46 (
total INTEGER,
bronze INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Total with a Bronze that is larger than 1?
| SELECT AVG(total) FROM table_name_46 WHERE bronze > 1 | sql_create_context |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,... | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26398) AND prescriptions.drug = 'aztreonam' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER B... | mimic_iii |
CREATE TABLE table_name_29 (
release_date VARCHAR,
production_num VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Production Number 9105 released?
| SELECT release_date FROM table_name_29 WHERE production_num = "9105" | sql_create_context |
CREATE TABLE table_57292 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had a toleman tg183 chassis?
| SELECT COUNT("Year") FROM table_57292 WHERE "Chassis" = 'toleman tg183' | wikisql |
CREATE TABLE table_56463 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the Jazz play the Bulls at home?
| SELECT "Date" FROM table_56463 WHERE "Home" = 'jazz' AND "Visitor" = 'bulls' | wikisql |
CREATE TABLE table_42552 (
"Time" text,
"06:00 PM" text,
"07:00 PM" text,
"08:00 PM" text,
"09:00 PM" text,
"10:00 PM" text,
"10:30 PM" text,
"11:00 PM" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 10:30 PM when the 08:00 P... | SELECT "10:30 PM" FROM table_42552 WHERE "08:00 PM" = '[v] play & learn' AND "Time" = 'sunday' | wikisql |
CREATE TABLE table_39152 (
"Teams" text,
"Name" text,
"Trophy" text,
"First met" real,
"Games played" text,
"Series record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the event where Cornell-Penn played?
| SELECT "Name" FROM table_39152 WHERE "Teams" = 'cornell-penn' | wikisql |
CREATE TABLE table_1348989_2 (
season VARCHAR,
viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the season finale have a total of 10.29 million viewers?
| SELECT season AS Finale FROM table_1348989_2 WHERE viewers__in_millions_ = "10.29" | sql_create_context |
CREATE TABLE table_204_530 (
id number,
"type" text,
"stage" number,
"cyclist" text,
"team" text,
"reason" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the first person to withdraw from the race ?
| SELECT "type" FROM table_204_530 WHERE id = 1 | squall |
CREATE TABLE table_70911 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height that has a year born before 1977
| SELECT COUNT("Height") FROM table_70911 WHERE "Year born" < '1977' | wikisql |
CREATE TABLE table_49474 (
"Tongan" text,
"Niuean" text,
"S\u0101moan" text,
"Takuu" text,
"Tahitian" text,
"Rarotongan" text,
"M\u0101ori" text,
"North Marquesan" text,
"South Marquesan" text,
"Hawai'ian" text,
"Mangarevan" text
)
-- Using valid SQLite, answer the followin... | SELECT "Takuu" FROM table_49474 WHERE "North Marquesan" = '/vehine/' | wikisql |
CREATE TABLE table_name_44 (
attendance VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game on May 10?
| SELECT COUNT(attendance) FROM table_name_44 WHERE date = "may 10" | sql_create_context |
CREATE TABLE table_name_21 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament has a 2010 of 2r, and a 2011 of 1r?
| SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r" | sql_create_context |
CREATE TABLE table_19439864_2 (
stavanger INTEGER,
oslo VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When oslo is 48, what is stavanger?
| SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48 | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.icd9_code = "99859" | mimicsql_data |
CREATE TABLE table_26706 (
"Major version" text,
"Minor version" text,
"WebKit version" text,
"Operating System" text,
"Release date" text,
"Features" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all webkit versions when the major version... | SELECT "WebKit version" FROM table_26706 WHERE "Major version" = 'Safari 3' AND "Minor version" = '3.1.2' | wikisql |
CREATE TABLE table_21485 (
"Year" real,
"West Manila" text,
"East Manila" text,
"Consumer Price Index (2005=100)" text,
"West Manila as a share of 1996 real tariff" text,
"East Manila as a share of 1996 real tariff" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT "West Manila as a share of 1996 real tariff" FROM table_21485 WHERE "Consumer Price Index (2005=100)" = '92.9' | 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 t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'dementia' AND STRFTIME('%y', diagnosis.d... | eicu |
CREATE TABLE table_53225 (
"Year" real,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What divisions was in the year 1993?
| SELECT "Division" FROM table_53225 WHERE "Year" = '1993' | wikisql |
CREATE TABLE table_1061 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall NT points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2nd for 1... | SELECT "2nd (m)" FROM table_1061 WHERE "1st (m)" = '124.5' | wikisql |
CREATE TABLE table_38423 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Drawn has a Lost larger than 0, and Points smaller than 11, and Games smaller than 7?
| SELECT AVG("Drawn") FROM table_38423 WHERE "Lost" > '0' AND "Points" < '11' AND "Games" < '7' | wikisql |
CREATE TABLE table_2679061_9 (
nationality VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nationality of player Cliff Abrecht?
| SELECT nationality FROM table_2679061_9 WHERE player = "Cliff Abrecht" | sql_create_context |
CREATE TABLE table_69546 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years that Scuderia Guastalla was an entrant?
| SELECT COUNT("Year") FROM table_69546 WHERE "Entrant" = 'scuderia guastalla' | wikisql |
CREATE TABLE table_name_26 (
location VARCHAR,
method VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which location was the method decision (split)?
| SELECT location FROM table_name_26 WHERE method = "decision (split)" | sql_create_context |
CREATE TABLE table_name_74 (
location VARCHAR,
opponent_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Milan play against Napoli?
| SELECT location FROM table_name_74 WHERE opponent_team = "napoli" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '33874140' AND t_kc22.STA_DATE BETWEEN '2015-12-26' AND '2016-02-29' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_ID = '3... | css |
CREATE TABLE table_204_623 (
id number,
"opponent" text,
"goals" text,
"wins" number,
"draws" number,
"losses" number,
"+- goals" number,
"matches" number,
"qualified" number,
"eliminated" number
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT AVG("losses") FROM table_204_623 | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.