instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | mimicsql_data |
CREATE TABLE table_20674 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the preliminary average for the one who had ... | SELECT "Preliminary Average" FROM table_20674 WHERE "Semifinal Average" = '8.966 (3)' | wikisql |
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction... | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code | nvbench |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Ventricl shunt tube punc" | 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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Incisional ventral hernia with obstruction" | mimicsql_data |
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real... | SELECT Name, Age FROM artist ORDER BY Age DESC | nvbench |
CREATE TABLE table_70165 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player for 68-68-75-74=285
| SELECT "Player" FROM table_70165 WHERE "Score" = '68-68-75-74=285' | wikisql |
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 BGDH FROM jyjgzbb WHERE JYZBLSH = '94916575110' | css |
CREATE TABLE table_19704392_1 (
modified_speed__6th_gear_ INTEGER,
standard_speed__6th_gear_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98
| SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "98" | sql_create_context |
CREATE TABLE table_2144389_9 (
episodes_used VARCHAR,
_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1 is the number what episodes were used?
| SELECT episodes_used FROM table_2144389_9 WHERE _number = 1 | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob... | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id W... | mimic_iii |
CREATE TABLE table_name_64 (
rider VARCHAR,
bike VARCHAR,
time VARCHAR,
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, ... | SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r" | 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 intakeoutput (
in... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'piperacillin-tazobactam 3.375 g ivpb') | eicu |
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 demographic.admittime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "813" | mimicsql_data |
CREATE TABLE table_25882 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where ... | SELECT "Location Attendance" FROM table_25882 WHERE "Game" = '5' | wikisql |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE... | SELECT DISTINCT CONCAT('https://worldbuilding.stackexchange.com/questions/', Posts.ParentId, '/', CommentsAboutOntopic.PostId, '#comment', CommentsAboutOntopic.Id, '_', CommentsAboutOntopic.PostId) AS Link, CommentsAboutOntopic.Text, CommentsAboutOntopic.CreationDate FROM (SELECT * FROM Comments WHERE LOWER(Text) LIKE ... | sede |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '46226661513' AND t_kc22.HOSP_DOC_NM LIKE '昌%' | css |
CREATE TABLE table_24111 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of date for 1-0 record
| SELECT COUNT("Date") FROM table_24111 WHERE "Record" = '1-0' | wikisql |
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 AVG(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '3795332' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2007-03-16' AND '2007-04-28' | css |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)... | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND flight.departure_time = 645 AND flight.to_airport = AIRPORT_SERVICE_1.air... | atis |
CREATE TABLE table_19425 (
"State/UT Code" real,
"India/State/UT" text,
"Literate Persons (%)" text,
"Males (%)" text,
"Females (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of females where the state code is a 4?
| SELECT "Females (%)" FROM table_19425 WHERE "State/UT Code" = '4' | wikisql |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TAB... | SELECT TIME_TO_STR(Posts.CreationDate, '%h') AS Hour, COUNT(Posts.Id) AS Questions FROM Posts WHERE PostTypeId = 2 GROUP BY TIME_TO_STR(Posts.CreationDate, '%h') ORDER BY TIME_TO_STR(Posts.CreationDate, '%h') | sede |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id num... | SELECT A.Id AS "post_link", A.Score, (CASE WHEN Q.AcceptedAnswerId = A.Id THEN 1 ELSE 0 END) AS Accepted, A.OwnerUserId AS "user_link" FROM Posts AS A INNER JOIN Posts AS Q ON A.ParentId = Q.Id WHERE A.CreationDate BETWEEN @StartTime AND @EndTime AND Q.PostTypeId = 1 AND Q.ClosedDate IS NULL AND Q.CreationDate < @AskTi... | sede |
CREATE TABLE table_41124 (
"Rank" real,
"Municipality" text,
"Population (2010 Census)" real,
"Population (2005 Census)" real,
"Population (2000 Census)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest population (2000 Census) that... | SELECT MIN("Population (2000 Census)") FROM table_41124 WHERE "Municipality" = 'suwon' AND "Population (2010 Census)" > '1,071,913' | wikisql |
CREATE TABLE table_name_36 (
census_ranking VARCHAR,
population VARCHAR,
area_km_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
| SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62 | sql_create_context |
CREATE TABLE table_69657 (
"Player" text,
"Score" text,
"Balls" real,
"Opponent" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played on waca ground and scored 79 points?
| SELECT "Opponent" FROM table_69657 WHERE "Ground" = 'waca ground' AND "Score" = '79' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'delayed clos abd wound') AND STRFTIME('%y', procedur... | mimic_iii |
CREATE TABLE customer (
state VARCHAR,
acc_type VARCHAR,
credit_score VARCHAR,
no_of_loans VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the state, account type, and credit score of the customer whose number of loan is 0.
| SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0 | sql_create_context |
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_AMOUT FROM t_kc21 WHERE MED_CLINIC_ID = '98859690285' | css |
CREATE TABLE table_name_51 (
finish VARCHAR,
country VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the finish when the country is united states and the player is tiger woods?
| SELECT finish FROM table_name_51 WHERE country = "united states" AND player = "tiger woods" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'lt heart angiocardiogram') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26469) | mimic_iii |
CREATE TABLE table_17053 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the pitcher who's school was Saint Joseph Regional High School?
| SELECT "Hometown" FROM table_17053 WHERE "Position" = 'Pitcher' AND "School" = 'Saint Joseph Regional High School' | wikisql |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Retained plastic fragments" | mimicsql_data |
CREATE TABLE table_2856 (
"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 led... | SELECT "High points" FROM table_2856 WHERE "Team" = 'Indiana' | wikisql |
CREATE TABLE table_39493 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick # is the lowest one that has a College of troy state, and a Name of reggie ... | SELECT MIN("Pick #") FROM table_39493 WHERE "College" = 'troy state' AND "Name" = 'reggie dwight' AND "Overall" < '217' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Diabetes with ketoacidosis, type I [juvenile type], not stated as uncontrolled" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_13619053_8 (
high_points VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players led Game #66 in scoring?
| SELECT COUNT(high_points) FROM table_13619053_8 WHERE game = 66 | sql_create_context |
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 COUNT(*) FROM txmzjzjlb WHERE txmzjzjlb.JZKSMC = '头颈肿瘤科' AND txmzjzjlb.JZKSRQ BETWEEN '2014-12-31' AND '2021-01-18' UNION SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.JZKSMC = '头颈肿瘤科' AND ftxmzjzjlb.JZKSRQ BETWEEN '2014-12-31' AND '2021-01-18' | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "17787" | mimicsql_data |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int... | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 451 AND NOT instructor.name LIKE '%Mark Oyen%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering... | advising |
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 '2015-07-20' AND '2019-03-28' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Report the number of students in each clas... | SELECT classroom, COUNT(*) FROM list GROUP BY classroom | spider |
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 ftxmzjzjlb (
HXPLC number,
HZ... | SELECT txmzjzjlb.YLJGDM 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 = '韩依然' UNION SELECT ftxmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN ftxmzjzjlb ON person_... | css |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM (SELECT MED_ORG_DEPT_CD FROM t_kc21 WHERE MED_SER_ORG_NO = '9144989' GROUP BY MED_ORG_DEPT_CD HAVING MAX(IN_HOSP_DAYS) < 20) AS T | css |
CREATE TABLE table_203_651 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times after the year 1989 did she come in 1st position ?
| SELECT COUNT(*) FROM table_203_651 WHERE "position" = 1 AND "year" > 1989 | squall |
CREATE TABLE table_13568 (
"Year" real,
"Stage" real,
"Start of stage" text,
"Distance (km)" text,
"Category of climb" text,
"Stage winner" text,
"Yellow jersey" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the Stage winner when th... | SELECT "Stage winner" FROM table_13568 WHERE "Stage" < '16' AND "Year" < '1986' AND "Distance (km)" = '19.6' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.PERSON_ID = '30681273' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2008-07-13' AND '2016-09-05' | css |
CREATE TABLE table_37810 (
"Tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2012 with 2013 of 2r and 2009 of 3r
| SELECT "2012" FROM table_37810 WHERE "2013" = '2r' AND "2009" = '3r' | wikisql |
CREATE TABLE table_25068 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The successor for the Massachusetts 20th district was seated on what date?... | SELECT "Date successor seated" FROM table_25068 WHERE "District" = 'Massachusetts 20th' | wikisql |
CREATE TABLE table_47826 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest To Par, when Score is '72-73=145'?
| SELECT MAX("To par") FROM table_47826 WHERE "Score" = '72-73=145' | wikisql |
CREATE TABLE table_26967 (
"Season" real,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text,
"CONCACAF" text,
"Final Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many time is the final record is 9 16 5?
| SELECT COUNT("Season") FROM table_26967 WHERE "Final Record" = '9–16–5' | wikisql |
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 code_description (
code varchar,
description text
)
CREATE TABLE month (
... | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE airport.airport_code = 'DAL' AND city.city_code = airport_service.city_code AND flight.from_airport = airport_service.airport_code AND flight.to_airport = airport.airport_code | atis |
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the pro... | SELECT T2.Name, COUNT(T2.Name) FROM AssignedTo AS T1 JOIN Projects AS T2 ON T1.Project = T2.Code JOIN Scientists AS T3 ON T1.Scientist = T3.SSN WHERE T3.Name LIKE '%Smith%' GROUP BY T2.Name ORDER BY T2.Name DESC | nvbench |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time... | SELECT DISTINCT transport_type FROM ground_service WHERE (airport_code IN (SELECT AIRPORTalias0.airport_code FROM airport AS AIRPORTalias0 WHERE AIRPORTalias0.airport_code = 'LGA') AND city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'NEW YORK')) | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "0" AND procedures.long_title = "Intravenous infusion of clofarabine" | mimicsql_data |
CREATE TABLE table_name_13 (
total INTEGER,
floor_exercise VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest total when the floor exercise is less than 36.724 and the rank is lower than 8?
| SELECT MIN(total) FROM table_name_13 WHERE floor_exercise < 36.724 AND rank < 8 | sql_create_context |
CREATE TABLE table_203_536 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"crowd" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total amoun... | SELECT COUNT(*) FROM table_203_536 WHERE "opponent" = '@min' | squall |
CREATE TABLE table_36902 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Attendance of 23,150 had what opponent?
| SELECT "Opponent" FROM table_36902 WHERE "Attendance" = '23,150' | wikisql |
CREATE TABLE table_3517 (
"Episode #" text,
"Season Episode #" text,
"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.
-- What is the number of production ... | SELECT COUNT("Prod. code") FROM table_3517 WHERE "Episode #" = '73' | wikisql |
CREATE TABLE table_34866 (
"Year" text,
"Title" text,
"Role" text,
"Producer" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Director has a Role of melissa?
| SELECT "Director" FROM table_34866 WHERE "Role" = 'melissa' | wikisql |
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.JZZDBM = 'K19.872' AND jyjgzbb.JCZBDM = '... | css |
CREATE TABLE table_13836704_9 (
airport VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many airport with rank being 4
| SELECT COUNT(airport) FROM table_13836704_9 WHERE rank = 4 | sql_create_context |
CREATE TABLE table_51891 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was terry cook picked?
| SELECT AVG("Pick") FROM table_51891 WHERE "Player" = 'terry cook' | wikisql |
CREATE TABLE table_18662026_10 (
parallel_bars VARCHAR,
floor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the floor number is 14.200, what is the number for the parallel bars?
| SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.200" | sql_create_context |
CREATE TABLE table_52073 (
"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 home team played against Richmond?
| SELECT "Home team" FROM table_52073 WHERE "Away team" = 'richmond' | 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_jyjgzbb (
JYZBLSH number,
... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id ... | css |
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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.icd9_code = "8968" | mimicsql_data |
CREATE TABLE table_name_22 (
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for Ky Laffoon?
| SELECT score FROM table_name_22 WHERE player = "ky laffoon" | sql_create_context |
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag | nvbench |
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_ID = '12483440' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 5529.18) | css |
CREATE TABLE table_name_17 (
laps INTEGER,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are Perkins Engineering's fewest laps?
| SELECT MIN(laps) FROM table_name_17 WHERE team = "perkins engineering" | sql_create_context |
CREATE TABLE table_39024 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue #" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the label for December 2004?
| SELECT "Label" FROM table_39024 WHERE "Date" = 'december 2004' | wikisql |
CREATE TABLE table_name_9 (
period VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which period did Stanislav Chistov get a penalty?
| SELECT period FROM table_name_9 WHERE player = "stanislav chistov" | sql_create_context |
CREATE TABLE table_name_23 (
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home country of the player who placed t5 and had a score of 69-71=140?
| SELECT country FROM table_name_23 WHERE place = "t5" AND score = 69 - 71 = 140 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "LOPE2" | mimicsql_data |
CREATE TABLE table_13378 (
"Position" text,
"Name" text,
"Party" text,
"First Election" text,
"District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
| SELECT "Position" FROM table_13378 WHERE "First Election" = '1988 as vice mayor 2009' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-1629')) AND intakeoutput.cellpath LI... | eicu |
CREATE TABLE table_52538 (
"Competition" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Position" text,
"Coach" text,
"Captain" text,
"Main Article" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Drawn did Coach Francis Cummin... | SELECT SUM("Drawn") FROM table_52538 WHERE "Lost" < '4' AND "Coach" = 'francis cummins' | wikisql |
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.
-- how old is the youngest per... | SELECT job, MIN(age) FROM Person GROUP BY job | nvbench |
CREATE TABLE table_21194 (
"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.
-- For Hi... | SELECT "High rebounds" FROM table_21194 WHERE "High assists" = 'Raymond Felton (12)' | wikisql |
CREATE TABLE table_204_713 (
id number,
"rank" number,
"bib" number,
"athlete" text,
"country" text,
"time" text,
"deficit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many rankings are there ?
| SELECT MAX("rank") FROM table_204_713 | squall |
CREATE TABLE table_51172 (
"Season" text,
"Races" real,
"Podiums" real,
"Pole" real,
"FLaps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?
| SELECT MIN("Races") FROM table_51172 WHERE "Pole" < '2' AND "Season" = '2007' | wikisql |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-33922')) AND STRFTIME('%y', medication.drugstarttime) <= '2104' | eicu |
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 ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(School_ID) DESC | nvbench |
CREATE TABLE school (
county VARCHAR,
enrollment INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show each county along with the number of schools and total enrollment in each county.
| SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county | sql_create_context |
CREATE TABLE table_8154 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer fee for Jimmy Gibson?
| SELECT "Transfer fee" FROM table_8154 WHERE "Name" = 'jimmy gibson' | wikisql |
CREATE TABLE table_75884 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Philoxenus Anicetus begin to hold power?
| SELECT "From" FROM table_75884 WHERE "Name" = 'philoxenus anicetus' | wikisql |
CREATE TABLE table_9247 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area (in km2) for the town of lam que, with a population of less than 4,3... | SELECT AVG("Area km 2") FROM table_9247 WHERE "Status" = 'town' AND "Population" < '4,351' AND "Official Name" = 'lamèque' | wikisql |
CREATE TABLE table_41806 (
"Country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real,
... | SELECT MAX("2006") FROM table_41806 WHERE "2002" < '0' | wikisql |
CREATE TABLE table_name_94 (
team VARCHAR,
podiums VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has Podiums of 0, and a Position of nc ?
| SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" | sql_create_context |
CREATE TABLE table_76967 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE WITH A RECORD OF 1-0?
| SELECT "Score" FROM table_76967 WHERE "Record" = '1-0' | wikisql |
CREATE TABLE country (
country_id number,
country text,
last_update time
)
CREATE TABLE category (
category_id number,
name text,
last_update time
)
CREATE TABLE language (
language_id number,
name text,
last_update time
)
CREATE TABLE address (
address_id number,
address ... | SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS' | spider |
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 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.JZZDBM = 'P75.635' AND jyjgzbb.JCZBDM = '... | css |
CREATE TABLE table_name_90 (
outcome VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Outcome, when Tournament is 'Chiang Mai , Thailand'?
| SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand" | sql_create_context |
CREATE TABLE table_13176 (
"Ranking" text,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nationality for the player with 33 goals?
| SELECT "Nationality" FROM table_13176 WHERE "Goals" = '33' | wikisql |
CREATE TABLE table_43646 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number that is the lowest overall for the College of Baylor?
| SELECT MIN("Overall") FROM table_43646 WHERE "College" = 'baylor' | wikisql |
CREATE TABLE table_name_68 (
manufacturer VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manucfaturer's type was 2-6-0?
| SELECT manufacturer FROM table_name_68 WHERE type = "2-6-0" | sql_create_context |
CREATE TABLE table_35769 (
"Name" text,
"Goals" real,
"Apps" real,
"Avge" real,
"Career" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of apps of the player with more than 63 goals and an avge of 0.45?
| SELECT MAX("Apps") FROM table_35769 WHERE "Goals" > '63' AND "Avge" = '0.45' | wikisql |
CREATE TABLE table_25042332_27 (
fixed_telephone_line VARCHAR,
vehicle VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the fixed telephone line for 25.6% vehicle
| SELECT fixed_telephone_line FROM table_25042332_27 WHERE vehicle = "25.6%" | sql_create_context |
CREATE TABLE table_27982 (
"No. in series" 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.
-- Who directed epis... | SELECT "Directed by" FROM table_27982 WHERE "No. in series" = '18' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.