instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_date time,
order_status_code text
)
CREATE TABLE customers (
customer_id number,
payment_method_code text,
customer_number text,
customer_name text,
customer_address text,
customer_phone text,
customer... | SELECT COUNT(*) FROM addresses WHERE country = 'USA' | spider |
CREATE TABLE table_58227 (
"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.
-- When melbourne was the home team what was their ... | SELECT "Home team score" FROM table_58227 WHERE "Home team" = 'melbourne' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | nvbench |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW te... | SELECT jybgb.JYLX FROM jybgb WHERE jybgb.BGDH = '15477952642' | css |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypertension' A... | eicu |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
... | 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 = '006-99708')) AND intakeoutput.cellpath LIKE '%output%' AND D... | eicu |
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 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.person_info_XM = '云鸿运' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2009-07-30') | css |
CREATE TABLE table_name_83 (
format VARCHAR,
code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format of code 9 40231-2 (us only)?
| SELECT format FROM table_name_83 WHERE code = "9 40231-2 (us only)" | sql_create_context |
CREATE TABLE table_52713 (
"Name" text,
"Took Office" text,
"Left Office" text,
"Party" text,
"District Residence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name of choice b. Randell is the name of which District Residence?
| SELECT "District Residence" FROM table_52713 WHERE "Name" = 'choice b. randell' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microl... | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime, t1.patienthealthsystemstayid FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = ... | eicu |
CREATE TABLE table_17941032_1 (
lost VARCHAR,
tries_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 55 is the tries for what is the lost?
| SELECT lost FROM table_17941032_1 WHERE tries_for = "55" | sql_create_context |
CREATE TABLE table_66667 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time of the Rowers in Rank 1?
| SELECT "Time" FROM table_66667 WHERE "Rank" = '1' | wikisql |
CREATE TABLE table_name_53 (
director_s_ VARCHAR,
rank VARCHAR,
film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the nominated film, Badmouth?
| SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth" | sql_create_context |
CREATE TABLE table_name_54 (
results¹ VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game against Hungary?
| SELECT results¹ FROM table_name_54 WHERE opponent = "hungary" | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', treatment.treatmenttime) >= '2104' GROUP BY treatment.... | eicu |
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 city_code, COUNT(*) FROM Student GROUP BY city_code | nvbench |
CREATE TABLE table_name_30 (
year INTEGER,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year in which the finish position was 13th?
| SELECT AVG(year) FROM table_name_30 WHERE position = "13th" | sql_create_context |
CREATE TABLE table_name_44 (
party VARCHAR,
representative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party has Peter A. Quinn as a representative?
| SELECT party FROM table_name_44 WHERE representative = "peter a. quinn" | sql_create_context |
CREATE TABLE table_35907 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of vic... | SELECT "Date" FROM table_35907 WHERE "Margin of victory" = '1 stroke' AND "Runner(s)-up" = 'carole charbonnier' | 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.PERSON_NM = '云莹琇' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_25019 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times has Aaron Ogden (f), been a successor... | SELECT COUNT("Date of successors formal installation") FROM table_25019 WHERE "Successor" = 'Aaron Ogden (F)' | wikisql |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN... | sede |
CREATE TABLE table_74121 (
"Program" text,
"Exercise" text,
"Week" text,
"Muscles Worked" text,
"Type" text,
"Ab Ripper X" text,
"Length" text,
"Equipment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ab ripper x when exerc... | SELECT "Ab Ripper X" FROM table_74121 WHERE "Exercise" = 'X Stretch' | wikisql |
CREATE TABLE table_46472 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit was the race named international trophy raced at by the winning d... | SELECT "Circuit" FROM table_46472 WHERE "Winning driver" = 'eliseo salazar' AND "Name" = 'international trophy' | wikisql |
CREATE TABLE table_name_87 (
segment_a VARCHAR,
episode VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the segment A in episode 42?
| SELECT segment_a FROM table_name_87 WHERE episode = 42 | sql_create_context |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2518 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'bupropion' ORDER BY prescriptions.startdate L... | mimic_iii |
CREATE TABLE table_1342315_12 (
district VARCHAR,
party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which district has a Republican elected?
| SELECT district FROM table_1342315_12 WHERE party = "Republican" | sql_create_context |
CREATE TABLE table_25226 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name t... | SELECT "Location Attendance" FROM table_25226 WHERE "Score" = 'L 83–118 (OT)' | wikisql |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT name, ID FROM swimmer ORDER BY ID | nvbench |
CREATE TABLE table_name_29 (
year INTEGER,
final_position___tour VARCHAR,
final_position___giro VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the rider with a final position-tour of 88 and less than 11 final position-giros?
| SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AND final_position___giro < 11 | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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... | css |
CREATE TABLE table_75138 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which third did angel garcia lead?
| SELECT "Third" FROM table_75138 WHERE "Lead" = 'angel garcia' | wikisql |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | 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-08-29' AND '2011-07-14' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_34727 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which skip's second is Martin Hejhal?
| SELECT "Skip" FROM table_34727 WHERE "Second" = 'martin hejhal' | wikisql |
CREATE TABLE table_27712702_11 (
team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the other team on march 27?
| SELECT team FROM table_27712702_11 WHERE date = "March 27" | 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 person_info.XM FROM person_info JOIN hz_info JOIN zyjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND zyjzjlb.YLJGDM = jybgb.YLJGDM_ZYJZJLB AND zyjzjlb.JZLSH = jybgb.JZLSH_ZYJZJLB WHERE jybgb.BGDH = '44927016411' | css |
CREATE TABLE table_name_3 (
result VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Category of the best costume design?
| SELECT result FROM table_name_3 WHERE category = "best costume design" | sql_create_context |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id 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,
JSBBRQSJ tim... | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON 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_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM A... | css |
CREATE TABLE table_203_777 (
id number,
"years" text,
"building" text,
"city" text,
"height (ctbuh)" text,
"floors" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many floors are there in the tallest building in canada ?
| SELECT "floors" FROM table_203_777 WHERE "years" = present_ref | squall |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC | nvbench |
CREATE TABLE table_4267 (
"Material" text,
"Type" text,
"Geometry" text,
"Output voltage" text,
"Output power" text,
"Synthesis" text,
"Researched at" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was d: ~100nm, l: 1 m geometry resear... | SELECT "Researched at" FROM table_4267 WHERE "Geometry" = 'D: ~100nm, L: 1 μm' | wikisql |
CREATE TABLE table_203_350 (
id number,
"team #1" text,
"agg." text,
"team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the score 1-0 in the 1st leg ?
| SELECT COUNT(*) FROM table_203_350 WHERE "1st leg" = '1-0' | squall |
CREATE TABLE table_name_49 (
name VARCHAR,
year_at_cu VARCHAR,
alma_mater VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has the alma mater of Dayton ('07), and was in their 1st year at CU?
| SELECT name FROM table_name_49 WHERE year_at_cu = "1st" AND alma_mater = "dayton ('07)" | sql_create_context |
CREATE TABLE table_43513 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has a January larger than 18, and a Decision of valiquette?
| SELECT MAX("Game") FROM table_43513 WHERE "January" > '18' AND "Decision" = 'valiquette' | wikisql |
CREATE TABLE table_26187 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the final score when 22210 is the attendance?
| SELECT "Final Score" FROM table_26187 WHERE "Attendance" = '22210' | wikisql |
CREATE TABLE table_name_52 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grid average with a +1 lap time and more than 27 laps?
| SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 27 | sql_create_context |
CREATE TABLE table_25401_15 (
italian VARCHAR,
english VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for Italian when the part is English?
| SELECT italian FROM table_25401_15 WHERE english = "part" | sql_create_context |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX ... | SELECT * FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX 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_info_mzjzjlb.mzjzjlb... | css |
CREATE TABLE table_32613 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many totals are there for players with an average under 8 and less... | SELECT COUNT("Total") FROM table_32613 WHERE "Average" < '8' AND "Matches" < '4' | wikisql |
CREATE TABLE table_name_92 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for the Wimbledon tournament in 1996?
| SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon" | sql_create_context |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEP... | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
... | 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 = 'anemia - iron deficiency anemia secondar... | eicu |
CREATE TABLE table_name_88 (
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?
| SELECT AVG(2002) FROM table_name_88 WHERE country = "peru" AND 2007 > 1 OFFSET 200 | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT COUNT(mzjzjlb.ZZYSGH) 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 ... | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'metronidazole')) AND DATETIME(cost.chargetime)... | eicu |
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 jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDSM = '多动性障碍' AND jyjgzbb.JCZBMC = '甲胎蛋白' UNION SELECT jyjgzbb.CKZFWXX, j... | css |
CREATE TABLE table_name_49 (
ratt VARCHAR,
comp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the RAtt when the comp is 48?
| SELECT ratt FROM table_name_49 WHERE comp = "48" | sql_create_context |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,... | SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-154299')) AND treatment.treatmentname = 'analgesics - narcotic analgesic' AN... | eicu |
CREATE TABLE gyb (
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 qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '马嘉胜' AND qtb.MED_SER_ORG_NO = '0046679' AND qtb.IN_DIAG_DIS_NM LIKE '%增生%' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '马嘉胜' AND gyb.MED_SER_ORG_NO = '0046679' AND gyb.IN_DIAG_DIS_NM LIKE '%增生%' UNION SELECT zyb.MED_CLINIC_ID FROM zyb WHERE zyb.... | css |
CREATE TABLE table_42952 (
"Year" real,
"Actor" text,
"Award" text,
"Motion Picture" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?
| SELECT "Motion Picture" FROM table_42952 WHERE "Award" = 'best supporting actor' AND "Actor" = 'samuel l. jackson' AND "Year" < '1997' | wikisql |
CREATE TABLE table_3599 (
"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.
-- How many first elected years are provided for Thomas P. Moore?
| SELECT COUNT("First elected") FROM table_3599 WHERE "Incumbent" = 'Thomas P. Moore' | wikisql |
CREATE TABLE table_79824 (
"Nat." text,
"Name" text,
"Since" text,
"Goals" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What the since year of the player with a transfer fee of 75k?
| SELECT "Since" FROM table_79824 WHERE "Transfer fee" = '£ 75k' | wikisql |
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,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | SELECT DISTINCT fare_id FROM fare WHERE (fare_id IN (SELECT FLIGHT_FAREalias1.fare_id FROM flight_fare AS FLIGHT_FAREalias1 WHERE FLIGHT_FAREalias1.flight_id IN (SELECT FLIGHTalias1.flight_id FROM flight AS FLIGHTalias1 WHERE (FLIGHTalias1.from_airport IN (SELECT AIRPORT_SERVICEalias2.airport_code FROM airport_service ... | atis |
CREATE TABLE table_name_50 (
grand_prix VARCHAR,
fastest_lap VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?
| SELECT grand_prix FROM table_name_50 WHERE fastest_lap = "gerhard berger" AND pole_position = "michael schumacher" | sql_create_context |
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 AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10266 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.labe... | mimic_iii |
CREATE TABLE table_10698 (
"Party" text,
"1999 Election" real,
"2003 Election" real,
"2007 Election" real,
"May 2010" real,
"2011 Election" real,
"May 2012" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average election in 2003 had an ... | SELECT AVG("2003 Election") FROM table_10698 WHERE "1999 Election" > '6' AND "2007 Election" < '7' | wikisql |
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed... | SELECT Date_Claim_Settled, COUNT(Date_Claim_Settled) FROM Settlements | nvbench |
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON 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_MZJZJLB AND jybgb.YLJGDM... | css |
CREATE TABLE table_63102 (
"Rank" text,
"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 least bronze number when the silver is less than 0?
| SELECT MIN("Bronze") FROM table_63102 WHERE "Silver" < '0' | wikisql |
CREATE TABLE table_45232 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of state did the ruler have a title?
| SELECT "Type" FROM table_45232 WHERE "Title" = 'ruler' | wikisql |
CREATE TABLE table_name_68 (
propulsion VARCHAR,
order_year VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Propulsion for the model offered in 2003-2004 by neoplan usa?
| SELECT propulsion FROM table_name_68 WHERE order_year = "2003-2004" AND manufacturer = "neoplan usa" | sql_create_context |
CREATE TABLE club (
name VARCHAR,
Club_ID VARCHAR
)
CREATE TABLE player (
Player_id VARCHAR,
Club_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Please show the names and the players of clubs.
| SELECT T1.name, T2.Player_id FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID | sql_create_context |
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 "opponent" FROM table_204_623 WHERE id = (SELECT id FROM table_204_623 WHERE "opponent" = 'ks tomori') - 1 | squall |
CREATE TABLE table_name_57 (
shooter VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the shooter with a total of 25?
| SELECT shooter FROM table_name_57 WHERE total = "25" | sql_create_context |
CREATE TABLE table_27615445_1 (
audition_venue VARCHAR,
guest_fourth_judge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the audition venue where Peninha was the guest fourth judge?
| SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha" | sql_create_context |
CREATE TABLE table_name_89 (
release_date VARCHAR,
english_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Release date of the Album Your Friend?
| SELECT release_date FROM table_name_89 WHERE english_title = "your friend" | sql_create_context |
CREATE TABLE table_3689 (
"Model" text,
"Speed (GHz)" text,
"L3 Cache (MB)" real,
"QPI speed (GT/s)" text,
"DDR3 Clock (MHz)" real,
"TDP (W)" real,
"Cores" real,
"Threads" real,
"Turbo-Boost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Turbo-Boost" FROM table_3689 WHERE "Model" = 'E5504' | wikisql |
CREATE TABLE table_204_322 (
id number,
"township" text,
"fips" number,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
)
-- Using valid SQLite, answer the f... | SELECT "township" FROM table_204_322 ORDER BY "population\ndensity\n/km2 (/sq mi)" DESC LIMIT 1 | squall |
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 admissions.admission_type FROM admissions WHERE admissions.subject_id = 86744 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE table_name_31 (
nationality VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player from round 5?
| SELECT nationality FROM table_name_31 WHERE round = 5 | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | 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 = '017-20711')) AND intakeoutput.cellpath LIKE '%output%' AND D... | eicu |
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 AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.age >= "43" | mimicsql_data |
CREATE TABLE table_40676 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Television Service offering Cartomanzia?
| SELECT "Television service" FROM table_40676 WHERE "Content" = 'cartomanzia' | wikisql |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY COUNT(roomName) | nvbench |
CREATE TABLE table_62219 (
"Name" text,
"Area (km\u00b2)" real,
"Pop." real,
"Pop/Area (1/km\u00b2)" real,
"No P." real,
"No C./No T." text,
"Subregion" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Subregion has a No P. of 4, and a P... | SELECT "Subregion" FROM table_62219 WHERE "No P." = '4' AND "Pop/Area (1/km\u00b2)" = '534' | wikisql |
CREATE TABLE table_name_40 (
time VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fastest time for the Kentucky Derby race?
| SELECT time FROM table_name_40 WHERE race = "kentucky derby" | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ulcer of heel & midfoot" AND prescriptions.drug_type = "BASE" | mimicsql_data |
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 lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50802" | mimicsql_data |
CREATE TABLE table_5337 (
"Metro Vincity" text,
"Venue Location" text,
"Address" text,
"Opened" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total capacity of venues that opened in 1999?
| SELECT COUNT("Capacity") FROM table_5337 WHERE "Opened" = '1999' | wikisql |
CREATE TABLE table_name_92 (
name VARCHAR,
license VARCHAR,
current_version VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a licence of gpl v2 and a current version of 0.9.9?
| SELECT name FROM table_name_92 WHERE license = "gpl v2" AND current_version = "0.9.9" | sql_create_context |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE diagnoses_i... | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5887) AND STRFTIME('%y', labevents.charttime) = '2105' | mimic_iii |
CREATE TABLE table_39430 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the bubbles for onscroll
| SELECT "Bubbles" FROM table_39430 WHERE "Attribute" = 'onscroll' | wikisql |
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
reg... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE restaurant.city_name IN (SELECT GEOGRAPHICalias0.city_name FROM geographic AS GEOGRAPHICalias0 WHERE GEOGRAPHICalias0.region = 'bay area') AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | restaurants |
CREATE TABLE table_name_69 (
socket VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Socket, when Part Number(s) is au80610003495aa?
| SELECT socket FROM table_name_69 WHERE part_number_s_ = "au80610003495aa" | 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.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-62783' | eicu |
CREATE TABLE table_40554 (
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Losing Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Winner when the Runner-up was Real Salt Lake?
| SELECT "Winner" FROM table_40554 WHERE "Runner-up" = 'real salt lake' | wikisql |
CREATE TABLE table_261941_1 (
location VARCHAR,
joined VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the University that joined in 1926, 1996 2?
| SELECT location FROM table_261941_1 WHERE joined = "1926, 1996 2" | sql_create_context |
CREATE TABLE table_18686 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties were represented for Charles R. Crisp?
| SELECT COUNT("Party") FROM table_18686 WHERE "Incumbent" = 'Charles R. Crisp' | wikisql |
CREATE TABLE table_41265 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which package/option has sky wwe 24/7 television service?
| SELECT "Package/Option" FROM table_41265 WHERE "Television service" = 'sky wwe 24/7' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.