instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_25181 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Ho...
SELECT COUNT("Tournament Venue (City)") FROM table_25181 WHERE "Conference" = 'Big 12 Conference'
wikisql
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '4883889' AND IN_HOSP_DATE BETWEEN '2004-08-03' AND '2009-12-16' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2')
css
CREATE TABLE table_18710512_3 ( record_label VARCHAR, single VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record label corresponds to the single 'I can't stay'?
SELECT record_label FROM table_18710512_3 WHERE single = "I Can't Stay"
sql_create_context
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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 29741 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
mimic_iii
CREATE TABLE table_204_986 ( id number, "#" number, "event year" number, "season" text, "flag bearer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many athletes have been flag bearers for samoa at the olympic games ?
SELECT COUNT(DISTINCT "flag bearer") FROM table_204_986
squall
CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER, Customer_Policy_ID INTEGER ) CREATE TABLE Customers ( Customer_ID INTEGER, Customer_Details VARCHAR(255) ) CREATE TABLE...
SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY SUM(Amount_Payment) DESC
nvbench
CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.MED_SER_ORG_NO = '5715997' AND t_kc22.SOC_SRT_DIRE_NM = '盐酸倍他司汀片(糖衣)'
css
CREATE TABLE zzmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZ...
SELECT zzmzjzjlb.YLJGDM 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 = '赵芳荃' UNION SELECT fzzmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN fzzmzjzjlb ON person_...
css
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 aircraft ( aircraft_code varchar, aircraft_description varchar, manufac...
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, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MONTREAL' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit...
atis
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 hz_info ( KH text, KLX number...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jyb...
css
CREATE TABLE table_20181270_3 ( landesliga_mitte VARCHAR, bayernliga VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the landesliga mitte sv t rk g c m nchen
SELECT landesliga_mitte FROM table_20181270_3 WHERE bayernliga = "SV Türk Gücü München"
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '3461022' AND wdmzjzjlb.RYDJSJ > '2003-06-23' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '3461022' AND bdmzjzjlb.RYDJSJ > '2003-06-23'
css
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.drug = "Glipizide"
mimicsql_data
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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...
SELECT txmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '许元驹' AND hz_info.YLJGDM = '9825569' AND txmzjzjlb.JZKSMC LIKE '%性病%' UNION SELECT ftxmzjzjlb....
css
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, h...
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-221...
eicu
CREATE TABLE table_53110 ( "Riding" text, "Candidate" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Riding of the candidate Patricia Cordner who gain...
SELECT "Riding" FROM table_53110 WHERE "Votes" > '7,190' AND "Candidate" = 'patricia cordner'
wikisql
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE airport ( ...
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 (((date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_tim...
atis
CREATE TABLE table_name_20 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the 2010 result when 2006 is a?
SELECT 2010 FROM table_name_20 WHERE 2006 = "a"
sql_create_context
CREATE TABLE table_6122 ( "Processor Speed (MHz)" real, "Input Clock (MHz)" text, "Voltage Center (V)" text, "Voltage Range (V)" text, "Part Number" text, "Clock Multiplier" text, "S-Spec Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "Voltage Center (V)" FROM table_6122 WHERE "S-Spec Number" = 'sk096'
wikisql
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype tex...
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi...
mimic_iii
CREATE TABLE wdmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZ...
SELECT wdmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '水慧颖' AND hz_info.YLJGDM = '1586101' AND wdmzjzjlb.JZKSMC LIKE '%急诊%' UNION SELECT bdmzjzjlb.J...
css
CREATE TABLE table_68552 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogot ...
SELECT "Opponent" FROM table_68552 WHERE "Surface" = 'clay' AND "Outcome" = 'winner' AND "Tournament" = 'bogotá' AND "Score" = '6–0, 6–4'
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = j...
css
CREATE TABLE table_58723 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home team played against Fleetwood Town?
SELECT "Home team" FROM table_58723 WHERE "Away team" = 'fleetwood town'
wikisql
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE fare_basis ( fare_basis_code text, ...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((((flight.departure_time <= 1715 AND flight.departure_time >= 1645) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AN...
atis
CREATE TABLE table_204_260 ( id number, "date" text, "venue" text, "opponent" text, "result" text, "tournament" text, "scored" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many matches were in may 2010 ?
SELECT COUNT(*) FROM table_204_260 WHERE "date" = 5 AND "date" = 2010
squall
CREATE TABLE table_name_15 ( thursday VARCHAR, wednesday VARCHAR, sunday VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the presenter on Thursday of the series in which Emma Willis was the presenter on Wednesday, and Alice Levine Jamie East was t...
SELECT thursday FROM table_name_15 WHERE wednesday = "emma willis" AND sunday = "alice levine jamie east"
sql_create_context
CREATE TABLE table_9028 ( "Name" text, "GP-GS" text, "Effic" real, "Att-Cmp-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the att-cmp-int for the qb with an effic of 127.89?
SELECT "Att-Cmp-Int" FROM table_9028 WHERE "Effic" = '127.89'
wikisql
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following questions for the...
SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
nvbench
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 diagnoses ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.icd9_code = "99813"
mimicsql_data
CREATE TABLE table_name_68 ( driver VARCHAR, team VARCHAR, laps VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?
SELECT driver FROM table_name_68 WHERE laps < 84 AND points > 9 AND team = "rocketsports racing"
sql_create_context
CREATE TABLE table_203_672 ( id number, "week" number, "date" text, "opponent" text, "result" text, "venue" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which had greater attendance , solider field or lambeau field ?
SELECT "venue" FROM table_203_672 WHERE "venue" IN ('soldier field', 'lambeau field') ORDER BY "attendance" DESC LIMIT 1
squall
CREATE TABLE person ( name text, age number, city text, gender text, job text ) CREATE TABLE personfriend ( name text, friend text, year number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is the average person for each job?
SELECT AVG(age), job FROM person GROUP BY job
spider
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 MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '1027298' AND t_kc21.OUT_DIAG_DIS_CD = 'J20.239')
css
CREATE TABLE table_name_84 ( year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team was in 1st plate in a year later than 1956?
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
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 t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '83841154' AND t_kc21.MED_SER_ORG_NO = '4429415' AND NOT t_kc21.IN_DIAG_DIS_NM LIKE '%鼻炎%'
css
CREATE TABLE table_name_71 ( converted VARCHAR, number VARCHAR, withdrawn VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Converted has a Number of 35, and a Withdrawn smaller than 1952?
SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952
sql_create_context
CREATE TABLE table_name_13 ( location_attendance VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the location of the game with a score of 113-106?
SELECT location_attendance FROM table_name_13 WHERE score = "113-106"
sql_create_context
CREATE TABLE table_name_94 ( round INTEGER, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Round that lasted 1:44?
SELECT MAX(round) FROM table_name_94 WHERE time = "1:44"
sql_create_context
CREATE TABLE table_51370 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week had an attendance of 27,262?
SELECT "Week" FROM table_51370 WHERE "Attendance" = '27,262'
wikisql
CREATE TABLE table_name_2 ( total INTEGER, silver VARCHAR, gold VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?
SELECT AVG(total) FROM table_name_2 WHERE silver > 4 AND gold > 16
sql_create_context
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ( uniquep...
SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-23004') AND NOT patient.unitdischargetime IS NUL...
eicu
CREATE TABLE farm ( Farm_ID int, Year int, Total_Horses real, Working_Horses real, Total_Cattle real, Oxen real, Bulls real, Cows real, Pigs real, Sheep_and_Goats real ) CREATE TABLE farm_competition ( Competition_ID int, Year int, Theme text, Host_city_ID int, ...
SELECT Official_Name, COUNT(Official_Name) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY Official_Name ORDER BY COUNT(Official_Name) DESC
nvbench
CREATE TABLE table_29218221_2 ( fri_3_june VARCHAR, wed_1_june VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph?
SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = "18' 22.66 123.182mph"
sql_create_context
CREATE TABLE table_8201 ( "Team" text, "Head coach" text, "Team captain" text, "Kitmaker" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the team captain for the team with sparkasse (d sseldorf) as the shirt sponsor?
SELECT "Team captain" FROM table_8201 WHERE "Shirt sponsor" = 'sparkasse (düsseldorf)'
wikisql
CREATE TABLE table_25500 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What w...
SELECT "Location Attendance" FROM table_25500 WHERE "Team" = 'Golden State'
wikisql
CREATE TABLE table_203_471 ( id number, "#" number, "date" text, "opponent" text, "score" text, "site/stadium" text, "win" text, "loss" text, "save" text, "attendance" number, "overall record" text, "ncaat record" text ) -- Using valid SQLite, answer the following quest...
SELECT COUNT("date") FROM table_203_471 WHERE "site/stadium" = 'rosenblatt stadium'
squall
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellv...
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.cultur...
eicu
CREATE TABLE table_40370 ( "Year" real, "Wins" real, "Earnings ($)" real, "Money list rank" text, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount of earnings for years under 2004 and money list rankings of 6?
SELECT AVG("Earnings ($)") FROM table_40370 WHERE "Money list rank" = '6' AND "Year" < '2004'
wikisql
CREATE TABLE student_course_enrolment ( registration_id number, student_id number, course_id number, date_of_enrolment time, date_of_completion time ) CREATE TABLE students ( student_id number, date_of_registration time, date_of_latest_logon time, login_name text, password text,...
SELECT login_name, family_name FROM course_authors_and_tutors
spider
CREATE TABLE table_11883 ( "Date" text, "Opponent" text, "Score" text, "Site/Stadium" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was Kentucky the opponent, and Ragle lost?
SELECT "Date" FROM table_11883 WHERE "Opponent" = 'kentucky' AND "Loss" = 'ragle'
wikisql
CREATE TABLE table_68578 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which event is a win by an opponent of Nicolas Smith, with the round marked n/a?
SELECT "Event" FROM table_68578 WHERE "Res." = 'win' AND "Round" = 'n/a' AND "Opponent" = 'nicolas smith'
wikisql
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varch...
SELECT DISTINCT advisory_requirement FROM course WHERE name LIKE '%Interdisciplinary Environmental Topics%'
advising
CREATE TABLE table_23292220_17 ( first_broadcast VARCHAR, seans_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the first broadcast for tina malone and joe wilkinson
SELECT first_broadcast FROM table_23292220_17 WHERE seans_team = "Tina Malone and Joe Wilkinson"
sql_create_context
CREATE TABLE table_name_85 ( front_row_starts INTEGER, pole_positions VARCHAR, entries VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?
SELECT AVG(front_row_starts) FROM table_name_85 WHERE pole_positions < 68 AND entries < 52
sql_create_context
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellv...
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypothyroidism - primary' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2102') AS t1 JOIN (SELECT patient....
eicu
CREATE TABLE building ( building_id text, Name text, Street_address text, Years_as_tallest text, Height_feet int, Floors int ) CREATE TABLE protein ( common_name text, protein_name text, divergence_from_human_lineage real, accession_number text, sequence_length real, seq...
SELECT Type, COUNT(*) FROM Institution GROUP BY Type ORDER BY Type
nvbench
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age te...
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 = '002-25577')) AND vitalperiodic.systemicmean > 115.0...
eicu
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, ...
SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10407')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu...
eicu
CREATE TABLE table_56596 ( "Season" real, "Driver" text, "Co-Driver" text, "Team" text, "Tuner" text, "Governing Body" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, an...
SELECT "Tuner" FROM table_56596 WHERE "Season" > '2004' AND "Driver" = 'gaurav gill' AND "Team" = 'team mrf' AND "Governing Body" = 'mai'
wikisql
CREATE TABLE Assessment_Notes ( notes_id INTEGER, student_id INTEGER, teacher_id INTEGER, date_of_notes DATETIME, text_of_notes VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Behavior_Incident ( incident_id INTEGER, incident_type_code VARCHAR(10), student_id INTEGER, da...
SELECT date_address_from, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC
nvbench
CREATE TABLE table_50697 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?
SELECT "2011" FROM table_50697 WHERE "2007" = 'q3'
wikisql
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname var...
SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, course_offering AS COURSE_OFFERING_0, course_offering AS COURSE_OFFERING_1, course_prerequisite WHERE COURSE_OFFERING_1.semester = COURSE_OFFERING_0.semester AND COURSE_0.course_id = COURSE_OFFERING_0.course_id AND COURSE_0.department = 'CAAS' AND COURSE_...
advising
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND procedures.short_title = "Oth uni salpingo-oophor"
mimicsql_data
CREATE TABLE table_22384475_1 ( margin VARCHAR, match_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the margin of the match on 19 Jan 2002?
SELECT margin FROM table_22384475_1 WHERE match_date = "19 Jan 2002"
sql_create_context
CREATE TABLE table_23563375_11 ( result VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score against Loic Didavi?
SELECT result FROM table_23563375_11 WHERE opponent = "Loic Didavi"
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 patient ( uniquepid text, patientheal...
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-151154')) AND intakeoutput.cellpath LIKE '%intake...
eicu
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 ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid 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 = 25951)) AND DATETIME(inputevents_cv....
mimic_iii
CREATE TABLE table_57552 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position has a School of petal high school?
SELECT "Position" FROM table_57552 WHERE "School" = 'petal high school'
wikisql
CREATE TABLE table_16831 ( "Player" text, "No." text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is player number 51?
SELECT "Player" FROM table_16831 WHERE "No." = '51'
wikisql
CREATE TABLE table_24699 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the ...
SELECT "Original air date" FROM table_24699 WHERE "U.S. viewers (million)" = '1.76'
wikisql
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, s...
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73652) AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-141 month')
mimic_iii
CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM text, SHRGH ...
SELECT zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM person_info JOIN hz_info JOIN zyjzjlb 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 WHERE person_info.XM = '钱景福'
css
CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM text, SHRGH ...
SELECT (SELECT COUNT(*) 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 = '13575056' AND jybgb.BGRQ BETWEEN '2007-10-20' AND '2013-04-24'...
css
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 hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = '...
css
CREATE TABLE table_4817 ( "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 team plays at home at Lake Oval?
SELECT "Home team" FROM table_4817 WHERE "Venue" = 'lake oval'
wikisql
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '施方方' AND t_kc21.MED_SER_ORG_NO = '4248222' AND t_kc21.OUT_DIAG_DOC_NM LIKE '陈%'
css
CREATE TABLE table_name_96 ( runner_up VARCHAR, semi_finalist__number1 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up at the South Florida Semi-Finalist #1?
SELECT runner_up FROM table_name_96 WHERE semi_finalist__number1 = "south florida"
sql_create_context
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost numbe...
SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-13376') AND treatment.treatme...
eicu
CREATE TABLE table_name_72 ( set_3 VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Set 3 when the Total was 62 - 75?
SELECT set_3 FROM table_name_72 WHERE total = "62 - 75"
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 WHERE diagnoses.icd9_code = "42789"
mimicsql_data
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 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 diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'coronary artery disease - of vein graft')) G...
eicu
CREATE TABLE table_name_92 ( type VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the type of sco country?
SELECT type FROM table_name_92 WHERE country = "sco"
sql_create_context
CREATE TABLE table_203_67 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number ) -- Using valid SQLite, answer the following questions for the t...
SELECT "team" FROM table_203_67 ORDER BY "goals\nconceded" LIMIT 1
squall
CREATE TABLE table_name_79 ( power_output__kw_ VARCHAR, model VARCHAR, total_production VARCHAR, builder__family_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the power output (kw) of builder zhuzhou, model hxd1d, with a total production of...
SELECT power_output__kw_ FROM table_name_79 WHERE total_production = "2" AND builder__family_ = "zhuzhou" AND model = "hxd1d"
sql_create_context
CREATE TABLE table_15075 ( "Position" real, "Artist" text, "Song" text, "Points" real, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the place with 90 point total but a position less than 5?
SELECT "Place" FROM table_15075 WHERE "Position" < '5' AND "Points" = '90'
wikisql
CREATE TABLE table_name_5 ( year VARCHAR, tournament VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the year of the World Half Marathon Championships with a result of 3rd?
SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"
sql_create_context
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE T...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS seqnum, Id AS "userid", DisplayName, Reputation, WebsiteUrl FROM Users WHERE LOWER(Location) LIKE '%romania%'
sede
CREATE TABLE table_train_132 ( "id" int, "loss_of_consciousness" bool, "deep_venous_thrombosis" bool, "unstable_angina" bool, "thromboembolic_vascular_disease" bool, "head_injury" bool, "stroke" bool, "cerebrovascular_disease" bool, "mental_retardation" bool, "psychiatric_disease...
SELECT * FROM table_train_132 WHERE modified_hachinski_ischemia_scale > 4 OR cerebrovascular_disease = 1
criteria2sql
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREAT...
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.cultur...
eicu
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number...
SELECT t.TagName AS Tag, ROUND(SUM(CASE WHEN NOT AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) * 100.0 / COUNT(1), 2) AS "percent_answered" FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE p.PostTypeId = 1 AND t.TagName = 'cmake' GROUP BY t.Id, t.TagName
sede
CREATE TABLE table_name_54 ( round INTEGER, position VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest round number for the dt position when the pick number is bigger than 181?
SELECT MAX(round) FROM table_name_54 WHERE position = "dt" AND pick > 181
sql_create_context
CREATE TABLE Customer_Addresses ( customer_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Department_Stores ( dept_store_id INTEGER, dept_store_chain_id INTEGER, store_name VARCHAR(80), store_address VARCHAR(255), store_phone VARCHAR(80), sto...
SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code DESC
nvbench
CREATE TABLE table_name_91 ( loss VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the loss of the Mariners game that had an attendance of 9,065?
SELECT loss FROM table_name_91 WHERE attendance = "9,065"
sql_create_context
CREATE TABLE table_name_6 ( first_elected VARCHAR, member VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the year First elected when the Member is John Armitage?
SELECT first_elected FROM table_name_6 WHERE member = "john armitage"
sql_create_context
CREATE TABLE table_name_39 ( social_ao VARCHAR, external_co VARCHAR, president VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Social AO has an External CO of elena buscher, and a President of harm van leeuwen?
SELECT social_ao FROM table_name_39 WHERE external_co = "elena buscher" AND president = "harm van leeuwen"
sql_create_context
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY ...
SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC
nvbench
CREATE TABLE table_36711 ( "Editor" text, "Site" text, "Style, clone of" text, "Cost ( US$ )" text, "Open source" text, "Activity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which source has a Cost free, and an Activity of some, and an Edito...
SELECT "Open source" FROM table_36711 WHERE "Cost ( US$ )" = 'free' AND "Activity" = 'some' AND "Editor" = 'markitup'
wikisql
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE date_day ...
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight.airline_code = 'AA' AND flight.to_airport = airport_service.airport_code
atis
CREATE TABLE table_name_28 ( longi__tude VARCHAR, date_³ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Longi- tude is on jun 6?
SELECT longi__tude FROM table_name_28 WHERE date_³ = "jun 6"
sql_create_context