instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepi... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'glucocorticoid administration - oral' AND DATETIME... | eicu |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | 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 = '035-166')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.... | eicu |
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 jybgb.SQRGH, jybgb.SQRXM FROM jybgb WHERE jybgb.JZLSH = '60273857020' GROUP BY jybgb.SQRGH HAVING COUNT(*) > 23 | css |
CREATE TABLE table_name_59 (
number_of_cpus VARCHAR,
memory__gb_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number of CPUs has a Memory (GB) of 0.5 16?
| SELECT number_of_cpus FROM table_name_59 WHERE memory__gb_ = "0.5–16" | sql_create_context |
CREATE TABLE table_19035 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the follo... | SELECT "Tries against" FROM table_19035 WHERE "Try bonus" = '10' | wikisql |
CREATE TABLE table_69939 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has 5:00 as the time, jess liaudin as ... | SELECT "Record" FROM table_69939 WHERE "Time" = '5:00' AND "Opponent" = 'jess liaudin' AND "Location" = 'england' | wikisql |
CREATE TABLE table_254776_1 (
type VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of school is in swarthmore, pennsylvania?
| SELECT type FROM table_254776_1 WHERE location = "Swarthmore, Pennsylvania" | sql_create_context |
CREATE TABLE table_69799 (
"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 nation has the most bronze medals with over 11 total medals?
| SELECT MAX("Bronze") FROM table_69799 WHERE "Total" > '11' | wikisql |
CREATE TABLE table_5042 (
"Score" real,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the opposition was sussex after 1890?
| SELECT "Score" FROM table_5042 WHERE "Opposition" = 'sussex' AND "Year" > '1890' | wikisql |
CREATE TABLE table_12340907_1 (
crime_rate_per_1 INTEGER,
cost_per_capita VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which crime rate per 1,000 people is associated with a cost per capita of $152?
| SELECT MAX(crime_rate_per_1), 000 AS _people FROM table_12340907_1 WHERE cost_per_capita = "$152" | sql_create_context |
CREATE TABLE table_51320 (
"Draw" real,
"Song" text,
"Artist" text,
"Jury (Points)" text,
"Televotes (Points)" text,
"Total Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest total points Karine Tr cy has... | SELECT MIN("Total Points") FROM table_51320 WHERE "Draw" < '4' AND "Artist" = 'karine trécy' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT * FROM 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 AND jybgb.BGDH ... | css |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE l... | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-6959' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bedside g... | eicu |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | (SELECT jyjgzbb.YQBH, jyjgzbb.YQMC 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 AND jyb... | css |
CREATE TABLE table_13053 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total against on 15/10/1999?
| SELECT SUM("Against") FROM table_13053 WHERE "Date" = '15/10/1999' | wikisql |
CREATE TABLE table_name_6 (
laps INTEGER,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of laps that has a time/retired that is +19.475?
| SELECT SUM(laps) FROM table_name_6 WHERE time_retired = "+19.475" | sql_create_context |
CREATE TABLE table_name_35 (
matches INTEGER,
average VARCHAR,
best_bowling VARCHAR,
wickets VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of matches for Australia when the wickets are more than 13, the a... | SELECT MAX(matches) FROM table_name_35 WHERE wickets > 13 AND team = "australia" AND best_bowling = "5/36" AND average < 23.33 | sql_create_context |
CREATE TABLE table_12441518_1 (
main_cast_seasons VARCHAR,
portrayed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What seasons does Kevin Jonas appear?
| SELECT main_cast_seasons FROM table_12441518_1 WHERE portrayed_by = "Kevin Jonas" | sql_create_context |
CREATE TABLE table_19477 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Peoples Party" text,
"Green-Communist" text,
"Left Bloc" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Left Bloc" FROM table_19477 WHERE "Social Democratic" = '28.7%' | wikisql |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
d... | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 ORDER BY COUNT(date) | nvbench |
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 cost (
costid num... | SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-203413' AND patient.hospitaldischargetime IS NULL)) AND diagn... | eicu |
CREATE TABLE table_name_65 (
outcome VARCHAR,
partner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the outcome of the tournament with partner ilie n stase?
| SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase" | sql_create_context |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABL... | 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 = 'CHARLOTTE' AND date_day.day_number = 27 AND date_day.month_number = 8 AN... | atis |
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.age < "58" AND procedures.short_title = "Atrial cardioversion" | mimicsql_data |
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_d... | SELECT MAX(account_details) FROM accounts UNION SELECT account_details FROM accounts WHERE account_details LIKE "%5%" | spider |
CREATE TABLE table_49716 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attended during the game with a score of 80-94?
| SELECT SUM("Attendance") FROM table_49716 WHERE "Score" = '80-94' | wikisql |
CREATE TABLE table_55679 (
"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.
-- How many votes did 3rd ranking candidate Mary Louise Lorefice... | SELECT COUNT("Votes") FROM table_55679 WHERE "Rank" = '3rd' AND "Candidate" = 'mary louise lorefice' | wikisql |
CREATE TABLE table_33571 (
"Type" text,
"Suffix" text,
"Valency change" text,
"Example" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Suffix of the intensive and valency change of 0?
| SELECT "Suffix" FROM table_33571 WHERE "Valency change" = '0' AND "Type" = 'intensive' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'renal ultrasound' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start o... | eicu |
CREATE TABLE table_7768 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player from the United States with a score of 70-70-71=211?
| SELECT "Player" FROM table_7768 WHERE "Country" = 'united states' AND "Score" = '70-70-71=211' | wikisql |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "55" | mimicsql_data |
CREATE TABLE table_68282 (
"Representative" text,
"Title" text,
"Presentation of credentials" text,
"Termination of mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the representative appointed by george w. bush with... | SELECT "Representative" FROM table_68282 WHERE "Appointed by" = 'george w. bush' AND "Presentation of credentials" = '9 november 2007' | wikisql |
CREATE TABLE table_17323042_5 (
record VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team's record when they faced orlando?
| SELECT record FROM table_17323042_5 WHERE team = "Orlando" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "76" AND prescriptions.drug = "Heparin Flush PICC (100 units/ml)" | mimicsql_data |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id num... | SELECT COUNT(Id) FROM Users | sede |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
ins... | SELECT DISTINCT course.department, course.name, course.number, instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.name LIKE '%The Holocaust%' AND NOT instructor.name LIKE '%Sheffield%' AND offering_instructor.instructor_id = instru... | advising |
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 MED_ORG_DEPT_CD, OUT_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '9480840' GROUP BY MED_ORG_DEPT_CD, OUT_DIAG_DIS_CD | css |
CREATE TABLE table_22479 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Township" FROM table_22479 WHERE "Longitude" = '-100.680772' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "D-Dimer" | mimicsql_data |
CREATE TABLE table_name_65 (
wins INTEGER,
losses INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest win for losses less than 2?
| SELECT MAX(wins) FROM table_name_65 WHERE losses < 2 | sql_create_context |
CREATE TABLE table_24029 (
"Ep." real,
"Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the production code for november 08, 1985
| SELECT "Prod. Code" FROM table_24029 WHERE "Original air date" = 'November 08, 1985' | wikisql |
CREATE TABLE table_27418 (
"Club" text,
"Location" text,
"Stadium" text,
"Capacity" real,
"Manager" text,
"Kitmaker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many capacities are given for FF Jaro club?
| SELECT COUNT("Capacity") FROM table_27418 WHERE "Club" = 'FF Jaro' | wikisql |
CREATE TABLE table_58037 (
"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 week 3?
| SELECT "Opponent" FROM table_58037 WHERE "Week" = '3' | wikisql |
CREATE TABLE table_23882 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Bruins points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game did the Bruins have 56 points?
| SELECT MAX("Game") FROM table_23882 WHERE "Bruins points" = '56' | wikisql |
CREATE TABLE table_68287 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par that has jimmy hines as the player?
| SELECT "To par" FROM table_68287 WHERE "Player" = 'jimmy hines' | wikisql |
CREATE TABLE table_name_20 (
city___state VARCHAR,
winner VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is City / State, when Winner is 'Rohan Onslow', and when Circuit is 'Oran Park Raceway'?
| SELECT city___state FROM table_name_20 WHERE winner = "rohan onslow" AND circuit = "oran park raceway" | sql_create_context |
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = "food") GROUP BY LName ORDER BY LName | nvbench |
CREATE TABLE fzzmzjzjlb (
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 * FROM person_info JOIN hz_info JOIN zzmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE person_info.XM = '蒋清淑' AND hz_info.YLJGDM = '6779932' AND NOT zzmzjzjlb.JZZDSM LIKE '%维生素%' UNION SELECT * FROM person_info J... | css |
CREATE TABLE table_name_75 (
score INTEGER,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score is the lowest one that has a Year of 1868?
| SELECT MIN(score) FROM table_name_75 WHERE year = 1868 | sql_create_context |
CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"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
)
-- U... | SELECT "township" FROM table_204_616 ORDER BY "land area\nkm2 (sq mi)" DESC LIMIT 1 | squall |
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 (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 Students_in_Detention (
student_id INTEGER,
detention_id INTEGER,
incident_id INTEGER
)
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 TAB... | SELECT date_address_to, SUM(monthly_rental) FROM Student_Addresses ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_500 | nvbench |
CREATE TABLE policies (
start_date INTEGER
)
CREATE TABLE customers (
customer_details VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which customer is associated with the latest policy?
| SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT MAX(start_date) FROM policies) | sql_create_context |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airp... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEWARK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CLEVELA... | atis |
CREATE TABLE table_35892 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Team classification" text,
"Combativity award" text
)
-- Using valid SQLite, answer the following qu... | SELECT "Winner" FROM table_35892 WHERE "Mountains classification" = 'franco pellizotti' AND "Combativity award" = 'martijn maaskant' | wikisql |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
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 equipment_sequence (
aircr... | 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 (((flight.arrival_time <= 1830 AND flight.arrival_time >= 1730) AND date_day.day_number = 22 AND date_day.month_number = 3 AND date_day.year = 19... | atis |
CREATE TABLE table_203_804 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what driver completed the least number of lap... | SELECT "driver" FROM table_203_804 ORDER BY "laps" LIMIT 1 | squall |
CREATE TABLE table_12722302_2 (
original_air_date VARCHAR,
no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date for no. 2?
| SELECT original_air_date FROM table_12722302_2 WHERE no = 2 | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT mzjzjlb.SG, mzjzjlb.TZ 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 = '赵婉仪' | css |
CREATE TABLE Drama_Workshop_Groups (
Store_Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all the Store_Name of drama workshop groups.
| SELECT Store_Name FROM Drama_Workshop_Groups | sql_create_context |
CREATE TABLE table_name_81 (
year INTEGER,
engine VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e?
| SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e" | sql_create_context |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_co... | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, equipment_sequence, flight WHERE equipment_sequence.aircraft_code = aircraft.aircraft_code AND flight.aircraft_code_sequence = equipment_sequence.aircraft_code_sequence AND flight.airline_code = 'UA' | atis |
CREATE TABLE table_name_31 (
attendance VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were in attendance on March 4?
| SELECT attendance FROM table_name_31 WHERE date = "march 4" | sql_create_context |
CREATE TABLE table_name_23 (
round INTEGER,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round of a player with an overall of 138?
| SELECT AVG(round) FROM table_name_23 WHERE overall = "138" | sql_create_context |
CREATE TABLE table_65625 (
"Club" text,
"Total points" text,
"Bonus points" text,
"Match points" text,
"Games" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Bonus points" FROM table_65625 WHERE "Points against" = '448' | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4300893' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM HAVING AVG(t_kc21.PERSON_AGE) < 17 | css |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
P... | SELECT COUNT(*) AS PostCount, YEAR(P.CreationDate), MONTH(P.CreationDate) 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 T.TagName LIKE ('%android%') GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORDER BY 2 DESC, 3 DESC | sede |
CREATE TABLE table_74791 (
"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 was the crowd size when there was a home te... | SELECT "Crowd" FROM table_74791 WHERE "Home team score" = '10.13 (73)' | 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 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 '2002-07-14' AND '2014-08-18' AND t_kc21.MED_SER_ORG_NO = '5350296' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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 employees (
EMPLOYE... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_25561038_1 (
races VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many series awarded 15 points?
| SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15" | sql_create_context |
CREATE TABLE table_name_83 (
attendance VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of attendance for games where buffalo was the home team?
| SELECT COUNT(attendance) FROM table_name_83 WHERE home = "buffalo" | sql_create_context |
CREATE TABLE table_name_84 (
royal_house VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which royal house corresponds to Polyxenos Epiphanes Soter?
| SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes soter" | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subj... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52598) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') AND labevents.charttime = '2104-01-09 03:26:00') < (SELECT la... | mimic_iii |
CREATE TABLE table_name_31 (
company_name VARCHAR,
hardware_model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company makes the Nokia 700?
| SELECT company_name FROM table_name_31 WHERE hardware_model = "nokia 700" | sql_create_context |
CREATE TABLE table_21593 (
"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.
-- Who ha... | SELECT "High assists" FROM table_21593 WHERE "Date" = 'January 2' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY SUM(SALARY) | nvbench |
CREATE TABLE table_14562 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Record of 7-9?
| SELECT "Date" FROM table_14562 WHERE "Record" = '7-9' | wikisql |
CREATE TABLE table_285 (
"Stage (Winner)" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Combination classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Stage (Winner)" FROM table_285 WHERE "General classification" = 'Alexander Vinokourov' | wikisql |
CREATE TABLE classroom (
building text,
room_number text,
capacity number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE course (... | SELECT COUNT(*), semester, year FROM section GROUP BY semester, year | spider |
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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "34" AND prescriptions.drug = "NEO*PO*MCT Oil" | mimicsql_data |
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 WHERE demographic.ethnicity = "ASIAN" AND demographic.dob_year < "1850" | mimicsql_data |
CREATE TABLE table_25938117_1 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 1st prize for senior pga championship
| SELECT 1 AS st_prize___$__ FROM table_25938117_1 WHERE tournament = "Senior PGA Championship" | 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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM 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 = '2488172' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 20 | css |
CREATE TABLE table_21313498_1 (
title VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the episode which the production code is 62015-08-162
| SELECT title FROM table_21313498_1 WHERE production_code = "62015-08-162" | sql_create_context |
CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of people w... | SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY COUNT(*) | nvbench |
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayNa... | SELECT CASE WHEN (P.PostTypeId = 1) THEN P.Title ELSE (SELECT Title FROM Posts WHERE Posts.Id = P.ParentId LIMIT 1) END AS "question_title", PHT.Name + CASE WHEN P.PostTypeId = 1 THEN ' of question' ELSE ' of answer' END AS "edit_type", PH.CreationDate AS "edit_date", 'site://questions/' + CAST(P.Id AS TEXT(30)) + '|Po... | sede |
CREATE TABLE table_17894 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the height with position being forward and current club being real madrid... | SELECT "Height" FROM table_17894 WHERE "Position" = 'Forward' AND "Current Club" = 'Real Madrid' | wikisql |
CREATE TABLE table_204_658 (
id number,
"week" number,
"date" text,
"kickoff" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"game site" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT(*) FROM table_204_658 WHERE "attendance" > 18000 | squall |
CREATE TABLE table_203_549 (
id number,
"player" text,
"team" text,
"date" text,
"opponent" text,
"venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on what date did the detroit tigers play the cleveland indians ?
| SELECT "date" FROM table_203_549 WHERE "team" = 'detroit tigers' AND "opponent" = 'cleveland indians' | squall |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | nvbench |
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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE wdmzjzjlb.JZZDSM = '2型糖尿病' AND jyjgzbb.JCZBMC = '游离... | css |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADE... | atis |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_care... | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21454 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartev... | mimic_iii |
CREATE TABLE table_71487 (
"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.
-- For an aggregate of 1-3, what was the 2nd leg?
| SELECT "2nd leg" FROM table_71487 WHERE "Agg." = '1-3' | wikisql |
CREATE TABLE roller_coaster (
LENGTH VARCHAR,
Height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lengths and heights of roller coasters?
| SELECT LENGTH, Height FROM roller_coaster | sql_create_context |
CREATE TABLE table_24082 (
"Medal of Honor" text,
"Coast Guard Cross" text,
"Navy Cross" text,
"Distinguished Service Cross" text,
"Air Force Cross" text,
"Homeland Security Distinguished Service Medal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Distinguished Service Cross" FROM table_24082 WHERE "Navy Cross" = 'Coast Guard Commendation Medal' | wikisql |
CREATE TABLE table_79334 (
"Country" text,
"Total Drivers" real,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT MIN("Fastest Laps") FROM table_79334 WHERE "Race entries (Starts)" = '32 (30)' AND "Podiums" < '2' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.