instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_28790 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many are direc... | SELECT COUNT("Directed by") FROM table_28790 WHERE "Production code" = '3T5009' | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Late ef-hemplga side NOS" | mimicsql_data |
CREATE TABLE table_13050822_2 (
leg VARCHAR,
rally_leader VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the leg for c. atkinson
| SELECT leg FROM table_13050822_2 WHERE rally_leader = "C. Atkinson" | 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(*) FROM (SELECT qtb.MED_ORG_DEPT_CD FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '3415980' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-08-09' AND '2005-09-08' GROUP BY qtb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) < 7321.4 UNION SELECT gyb.MED_ORG_DEPT_CD FROM... | css |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
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 TA... | 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, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((((DA... | atis |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT County_name, Population FROM county ORDER BY County_name DESC | nvbench |
CREATE TABLE table_name_89 (
record VARCHAR,
class VARCHAR,
sport VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team's record in 3a volleyball?
| SELECT record FROM table_name_89 WHERE class = "3a" AND sport = "volleyball" | 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 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '马兴生' AND t_kc22.STA_DATE BETWEEN '2004-04-23' AND '2010-10-25' AND t_kc22.SELF_PAY_AMO > 2352.85 | css |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-17325') AND NOT patient.unitdischargetime IS NULL ORDER ... | eicu |
CREATE TABLE table_5503 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on November 11, 1951?
| SELECT "Opponent" FROM table_5503 WHERE "Date" = 'november 11, 1951' | wikisql |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_req... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PETERSBURG' AND date_day.day_number = 2 AND date_day.month_number = 6... | atis |
CREATE TABLE table_name_78 (
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the game on November 6, 1966?
| SELECT result FROM table_name_78 WHERE date = "november 6, 1966" | sql_create_context |
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 jybgb (
BBCJBW text,
BBDM tex... | SELECT txmzjzjlb.JLSJ FROM txmzjzjlb WHERE txmzjzjlb.JZLSH = '32713764439' UNION SELECT ftxmzjzjlb.JLSJ FROM ftxmzjzjlb WHERE ftxmzjzjlb.JZLSH = '32713764439' | css |
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 AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_CD = '31515' AND IN_HOSP_DATE BETWEEN '2008-06-11' AND '2013-03-29' AND IN_DIAG_DIS_CD = 'W23.015' AND CLINIC_TYPE = '住院' | 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.language = "SPAN" AND procedures.long_title = "Coronary arteriography using two catheters" | mimicsql_data |
CREATE TABLE table_45732 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Date which has Opponents i... | SELECT "Date" FROM table_45732 WHERE "Opponents in the final" = 'patrick mcenroe tim wilkison' | wikisql |
CREATE TABLE table_name_26 (
pole INTEGER,
podium VARCHAR,
race VARCHAR,
flap VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
| SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11 | sql_create_context |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int... | SELECT DISTINCT city.city_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND airport.airport_name LIKE 'LESTER PEARSON' AND city.city_code = airport_service.city_code | atis |
CREATE TABLE table_name_87 (
date VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the home game for Hartford?
| SELECT date FROM table_name_87 WHERE home = "hartford" | sql_create_context |
CREATE TABLE table_204_876 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- w... | SELECT "ecclesiastical jurisdictions" FROM table_204_876 WHERE "ecclesiastical jurisdictions" IN ('ondjiva', 'dundo') ORDER BY "area (km2)" DESC LIMIT 1 | squall |
CREATE TABLE table_242785_1 (
date_disband VARCHAR,
main_legionary_base VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did svishtov , bulgaria disband?
| SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria" | sql_create_context |
CREATE TABLE table_41311 (
"Album" text,
"Release date" text,
"Label" text,
"Format" text,
"Covered Song" text,
"Original Song" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Release date for the Covered Song named ' sign o' the time... | SELECT "Release date" FROM table_41311 WHERE "Covered Song" = ' sign o'' the times " by prince .' | wikisql |
CREATE TABLE table_57330 (
"Council" text,
"2003 result" text,
"Notional control (based on 2003 results)" text,
"2007 result" text,
"Details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 2003 result for the falkirk council?
| SELECT "2003 result" FROM table_57330 WHERE "Council" = 'falkirk' | wikisql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3929) AND prescriptions.drug = 'insulin' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | mimic_iii |
CREATE TABLE participants_in_events (
event_id number,
participant_id number
)
CREATE TABLE participants (
participant_id number,
participant_type_code text,
participant_details text
)
CREATE TABLE events (
event_id number,
service_id number,
event_details text
)
CREATE TABLE services... | SELECT COUNT(*) FROM participants AS T1 JOIN participants_in_events AS T2 ON T1.participant_id = T2.participant_id WHERE T1.participant_details LIKE '%Dr.%' | spider |
CREATE TABLE table_40529 (
"Song" text,
"Artist" text,
"Album" text,
"Director" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average Year of release for the Album, 'Da Baddest Bitch'?
| SELECT AVG("Year") FROM table_40529 WHERE "Album" = 'da baddest bitch' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ... | css |
CREATE TABLE table_name_75 (
club VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the clubs had 556 points against?
| SELECT club FROM table_name_75 WHERE points_against = "556" | sql_create_context |
CREATE TABLE table_73864 (
"Constituency" text,
"Candidate" text,
"Affiliation" text,
"Result - votes" real,
"Result - %" text,
"Loss/gain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every affiliation for candidate Daren Ireland?
| SELECT "Affiliation" FROM table_73864 WHERE "Candidate" = 'Daren Ireland' | wikisql |
CREATE TABLE table_31238 (
"Programme" text,
"Date(s) of original removal" text,
"Original channel(s)" text,
"Date of return" text,
"New channel(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which programs were originally broadcast on CITV?
| SELECT "Programme" FROM table_31238 WHERE "Original channel(s)" = 'CITV' | wikisql |
CREATE TABLE table_39737 (
"DVD Season" text,
"Format" text,
"# Episodes" real,
"# Disc(s)" real,
"Region 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4... | SELECT "Format" FROM table_39737 WHERE "# Episodes" < '22' AND "# Disc(s)" = '4' AND "Region 4" = 'n/a' | wikisql |
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 demographic ... | SELECT demographic.insurance, demographic.expire_flag FROM demographic WHERE demographic.name = "Hector Blair" | mimicsql_data |
CREATE TABLE table_name_65 (
touchdowns VARCHAR,
yds_att VARCHAR,
net_yds VARCHAR,
long VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have?... | SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5 | sql_create_context |
CREATE TABLE table_name_19 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?
| SELECT AVG(2007) FROM table_name_19 WHERE 2009 > 2.8 AND 2010 = 4.9 AND 2006 < 2.5 | sql_create_context |
CREATE TABLE film (
Studio VARCHAR,
Director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the studios that have produced films with director 'Nicholas Meyer' and 'Walter Hill'.
| SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill" | sql_create_context |
CREATE TABLE table_22681 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When dydek (1... | SELECT "Date" FROM table_22681 WHERE "High rebounds" = 'Dydek (11)' | wikisql |
CREATE TABLE table_6152 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Pakistan win a Silver Medal in a Men's Competition?
| SELECT "Games" FROM table_6152 WHERE "Event" = 'men''s competition' AND "Medal" = 'silver' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE mzjybgb (
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 zyjybgb.SHRGH, zyjybgb.SHRXM FROM zyjybgb WHERE zyjybgb.JZLSH = '69185287770' GROUP BY zyjybgb.SHRGH HAVING COUNT(*) > 17 UNION SELECT mzjybgb.SHRGH, mzjybgb.SHRXM FROM mzjybgb WHERE mzjybgb.JZLSH = '69185287770' GROUP BY mzjybgb.SHRGH HAVING COUNT(*) > 17 | css |
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.diagnosis = "BOWEL OBSTRUCTION" AND demographic.age < "74" | mimicsql_data |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'phenytoin, percent free') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-4 year... | mimic_iii |
CREATE TABLE table_name_18 (
draws VARCHAR,
losses VARCHAR,
hampden_fl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?
| SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake" | sql_create_context |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match ORDER BY ACC_Regular_Season DESC | nvbench |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home | nvbench |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT_TIME(), ... | mimic_iii |
CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE ... | SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" | spider |
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 mzjzjlb 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 = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE person_info.XM = '陶梦秋'... | css |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Intravenous infusion of clofarabine" | mimicsql_data |
CREATE TABLE table_50312 (
"Name" text,
"Place of Birth" text,
"Date of Birth" text,
"Club Apps." text,
"Club Goals" text,
"Int. Caps" text,
"Int. Goals" text,
"Previous Club" text,
"Date Joined" text,
"End 1" real
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Name" FROM table_50312 WHERE "Place of Birth" = 'porsgrunn' | wikisql |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id num... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'colonoscopy') AND STRFTIME('%y', procedures_icd.char... | mimic_iii |
CREATE TABLE table_40260 (
"Season" real,
"Date" text,
"Venue" text,
"City" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Venue at Exhibition Stadium?
| SELECT "Date" FROM table_40260 WHERE "Venue" = 'exhibition stadium' | wikisql |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
instructo... | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'NERS' AND course.number = 544 AND semester.semester = 'WN' AND ... | advising |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
... | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-99708') AND NOT patient.admissionweight IS NULL AND patient.unitadmittime = '2105-12-25 19:39:00') - (SELECT patient.admissionweight FROM p... | eicu |
CREATE TABLE table_24799 (
"District" text,
"Municipalities" real,
"Parishes" real,
"Province of 1936" text,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most municipalities for alto alentejo province (partly ribatejo)
| SELECT MAX("Municipalities") FROM table_24799 WHERE "Province of 1936" = 'Alto Alentejo Province (partly Ribatejo)' | wikisql |
CREATE TABLE table_name_72 (
games VARCHAR,
standing VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the games with an Involuntary suspension of Season (hurricane Rita)?
| SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)" | sql_create_context |
CREATE TABLE table_name_75 (
opponent_in_the_final VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on May 8, 2006?
| SELECT opponent_in_the_final FROM table_name_75 WHERE date = "may 8, 2006" | sql_create_context |
CREATE TABLE table_204_402 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last ranking player ?
| SELECT "player" FROM table_204_402 ORDER BY "rank" DESC LIMIT 1 | squall |
CREATE TABLE Images (
image_id INTEGER,
image_alt_text VARCHAR(80),
image_name VARCHAR(40),
image_url VARCHAR(255)
)
CREATE TABLE Functional_Areas (
functional_area_code VARCHAR(15),
parent_functional_area_code VARCHAR(15),
functional_area_description VARCHAR(80)
)
CREATE TABLE Document_Fu... | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_203_192 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- david oliver made his debut in 2006 by placing 5th in what competition ?
| SELECT "competition" FROM table_203_192 WHERE "year" = 2006 AND "position" = 5 | squall |
CREATE TABLE table_25983027_1 (
rainfall_by_depth__mm_year_ VARCHAR,
infiltration__km_3__year_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many regions had rainfall infiltration (km 3/year) of 9.3?
| SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.3" | sql_create_context |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
r... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND date_day.day_number = 15 AND date_day.month_number = 10 A... | atis |
CREATE TABLE table_50130 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent that has a Week smaller than 7 on september 12, 1988?
| SELECT "Opponent" FROM table_50130 WHERE "Week" < '7' AND "Date" = 'september 12, 1988' | wikisql |
CREATE TABLE table_18022 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the game against San Diego Chargers played?
| SELECT "Date" FROM table_18022 WHERE "Opponent" = 'San Diego Chargers' | wikisql |
CREATE TABLE ftxmzjzjlb (
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 COUNT(*) FROM txmzjzjlb WHERE txmzjzjlb.YLJGDM = '8951695' AND txmzjzjlb.JZKSRQ BETWEEN '2000-12-30' AND '2020-10-26' AND txmzjzjlb.ZSEBZ > 0 UNION SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.YLJGDM = '8951695' AND ftxmzjzjlb.JZKSRQ BETWEEN '2000-12-30' AND '2020-10-26' AND ftxmzjzjlb.ZSEBZ > 0 | css |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGR... | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_inf... | css |
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(*) FROM zyb WHERE zyb.PERSON_SEX = '杨艳芳' AND zyb.IN_HOSP_DAYS BETWEEN '2017-04-12' AND '2018-08-25' | css |
CREATE TABLE table_name_45 (
athlete VARCHAR,
wind VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the athlete with a wind of 1.8?
| SELECT athlete FROM table_name_45 WHERE wind = "1.8" | 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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND procedures.icd9_code = "4575" | mimicsql_data |
CREATE TABLE table_203_834 (
id number,
"rank" number,
"census subdivision" text,
"province" text,
"type" text,
"land area\n(km2, 2011)" number,
"population 2011" number,
"population 2006" number,
"population 2001" number,
"population 1996" number,
"change in % 2006-2011" num... | SELECT "census subdivision" FROM table_203_834 WHERE "census subdivision" IN ('edmonton', 'winnipeg') ORDER BY "land area\n(km2, 2011)" DESC LIMIT 1 | squall |
CREATE TABLE table_name_3 (
result VARCHAR,
latin_commander VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the battle with Latin Commander Boniface of Montferrat?
| SELECT result FROM table_name_3 WHERE latin_commander = "boniface of montferrat" | sql_create_context |
CREATE TABLE table_38591 (
"Distance" text,
"Time" text,
"Date" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Distance has a Time of men's speed skating?
| SELECT "Distance" FROM table_38591 WHERE "Time" = 'men''s speed skating' | wikisql |
CREATE TABLE table_44354 (
"Game" real,
"Team" text,
"Score" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the team when the location attendace is boston garden and the series is 0-1?
| SELECT "Team" FROM table_44354 WHERE "Location Attendance" = 'boston garden' AND "Series" = '0-1' | wikisql |
CREATE TABLE table_40816 (
"1935" text,
"1936" text,
"1937" text,
"1938" text,
"1939" text,
"1940" text,
"1941" text,
"1943" text,
"1945" text,
"1946" text,
"1947" text,
"1948" text,
"1949" text,
"1950" text,
"1951" text,
"1952" text,
"1953" text
)
-... | SELECT "1953" FROM table_40816 WHERE "1947" = '2' AND "1938" = 'dne' | wikisql |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejectio... | SELECT Age, COUNT(*) AS freq FROM Users GROUP BY Age ORDER BY freq | sede |
CREATE TABLE table_name_97 (
away_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team that played at Princes Park?
| SELECT away_team FROM table_name_97 WHERE venue = "princes park" | 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 * FROM gwyjzb WHERE gwyjzb.PERSON_ID = '42289604' AND gwyjzb.MED_SER_ORG_NO = '9183421' AND NOT gwyjzb.MED_ORG_DEPT_NM LIKE '%内%' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '42289604' AND fgwyjzb.MED_SER_ORG_NO = '9183421' AND NOT fgwyjzb.MED_ORG_DEPT_NM LIKE '%内%' | css |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE a... | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-86136')) AND NOT vitalperiodic.respiration IS N... | eicu |
CREATE TABLE table_69529 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, a... | SELECT MIN("Silver") FROM table_69529 WHERE "Bronze" = '0' AND "Rank" = '14' AND "Gold" > '0' | wikisql |
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give me a histogram for ... | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name ORDER BY Name | nvbench |
CREATE TABLE table_20589703_2 (
college VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did Aaron Slegers attend?
| SELECT college FROM table_20589703_2 WHERE player = "Aaron Slegers" | sql_create_context |
CREATE TABLE table_37560 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Surface of clay, and a Score of 6 3, 5 7, 2 ... | SELECT "Date" FROM table_37560 WHERE "Surface" = 'clay' AND "Score" = '6–3, 5–7, 2–6' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '0036548' AND t_kc22.SOC_SRT_DIRE_CD = '6599-i' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO = '0036548' AND t_kc22.SOC_SRT_DIRE_CD = '6599-i' UN... | css |
CREATE TABLE table_name_59 (
player VARCHAR,
subtotal VARCHAR,
round_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a subtotal of more than 3 and more than 8 in round 1?
| SELECT player FROM table_name_59 WHERE subtotal > 3 AND round_1 > 8 | sql_create_context |
CREATE TABLE table_68975 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format is listed that has a Region of China?
| SELECT "Format" FROM table_68975 WHERE "Region" = 'china' | 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 jybgb (
BBCJBW text,
BBDM tex... | SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '褚丽姿' AND mzjzjlb.JZKSRQ BETWEEN '2008-08-18' AND '2020-08-18' AND mzjzjlb.YLJGDM = '3680245' | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.fluid = "Blood" | mimicsql_data |
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number... | SELECT Type, COUNT(*) FROM store GROUP BY Type | nvbench |
CREATE TABLE table_58749 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many byes has a draw larger than 0?
| SELECT COUNT("Byes") FROM table_58749 WHERE "Draws" > '0' | wikisql |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Kyger Lohmann%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.off... | advising |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1114 AND admissions.dischtime IS NULL) AND NOT transfers.careunit IS NULL ORDER BY transfers.intime LIMIT 1 | mimic_iii |
CREATE TABLE table_74270 (
"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.
-- What position does that draft pick play from Lake Superior Sta... | SELECT "Position" FROM table_74270 WHERE "College/junior/club team" = 'Lake Superior State University (NCAA)' | wikisql |
CREATE TABLE table_name_42 (
year_s__won VARCHAR,
total VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year(s) won has a Total smaller than 292, and a Player of hale irwin?
| SELECT year_s__won FROM table_name_42 WHERE total < 292 AND player = "hale irwin" | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Acute necrosis of liver" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_26084 (
"Rank" real,
"Rider" text,
"Mon 24 Aug" text,
"Tues 25 Aug" text,
"Wed 26 Aug" text,
"Thurs 27 Aug" text,
"Fri 28 Aug" text,
"Sat 29 Aug" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time was achieved on... | SELECT "Sat 29 Aug" FROM table_26084 WHERE "Tues 25 Aug" = '23'' 18.82 97.102mph' | wikisql |
CREATE TABLE table_27251 (
"Rank" real,
"WS Points" real,
"Name" text,
"Country" text,
"09-10 I/O best" real,
"09-10 GP/JGP best" real,
"09-10 GP/JGP 2nd" real,
"09-10 OI best" real,
"09-10 OI 2nd" real,
"08-09 I/O best" real,
"08-09 GP/JGP best" real,
"08-09 GP/JGP 2nd" ... | SELECT MIN("09-10 OI 2nd") FROM table_27251 | wikisql |
CREATE TABLE table_name_23 (
territory VARCHAR,
channel VARCHAR,
broadcaster VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which territory has a channel of 144 and a broadcaster of Astro?
| SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = "astro" | sql_create_context |
CREATE TABLE table_name_49 (
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When South Melbourne was the Away Team, what was their score?
| SELECT away_team AS score FROM table_name_49 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE table_54344 (
"Dismissals" text,
"Player" text,
"Versus" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Venue with a Date with 27-02-2003?
| SELECT "Venue" FROM table_54344 WHERE "Date" = '27-02-2003' | wikisql |
CREATE TABLE table_2369 (
"Rd." real,
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit did rick kelly win on?
| SELECT "Circuit" FROM table_2369 WHERE "Winner" = 'Rick Kelly' | wikisql |
CREATE TABLE table_name_35 (
host_city VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Host City that has the Games of vii?
| SELECT host_city FROM table_name_35 WHERE games = "vii" | sql_create_context |
CREATE TABLE table_18168 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the candidates in district Wisconsin 4?
| SELECT "Candidates" FROM table_18168 WHERE "District" = 'Wisconsin 4' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.