instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.icd9_code = "6140" | mimicsql_data |
CREATE TABLE table_name_88 (
constructor VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built the car that has a Time/Retired of 1:34:12.912?
| SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912" | 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 lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "13" AND procedures.short_title = "Endosc destr stomach les" | mimicsql_data |
CREATE TABLE table_name_17 (
director VARCHAR,
gross VARCHAR,
rank VARCHAR,
studio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What director ranked higher than 1 from Universal Studios and grossed $201,957,688?
| SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688" | sql_create_context |
CREATE TABLE table_name_36 (
points INTEGER,
position INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points is the lowest one that has a Position larger than 5?
| SELECT MIN(points) FROM table_name_36 WHERE position > 5 | sql_create_context |
CREATE TABLE table_23248967_5 (
score VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score against New Orleans?
| SELECT score FROM table_23248967_5 WHERE team = "New Orleans" | sql_create_context |
CREATE TABLE table_8701 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the Team 1, where the Team 2 was Stade De Reims (d2)?
| SELECT "Team 1" FROM table_8701 WHERE "Team 2" = 'stade de reims (d2)' | 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 MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.insurance = "Self Pay" | mimicsql_data |
CREATE TABLE table_9709 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest shot % with ends won larger tha... | SELECT MIN("Shot Pct.") FROM table_9709 WHERE "Ends Won" > '29' AND "Ends Lost" < '26' | wikisql |
CREATE TABLE table_name_27 (
location VARCHAR,
established VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the school established in 2013?
| SELECT location FROM table_name_27 WHERE established = 2013 | 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 gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_NM, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '1150862' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_NM UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.IN_DIAG_DIS_NM, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '11508... | css |
CREATE TABLE table_34489 (
"Week 1 Sept 2" text,
"Week 2 Sept 7" text,
"Week 3 Sept 14" text,
"Week 5 Sept 28" text,
"Week 6 Oct 5" text,
"Week 7 Oct 12" text,
"Week 10 Nov 2" text,
"Week 13 Nov 23" text,
"Week 14 Nov 30" text,
"Week 15 Dec 7" text,
"Week 16 (Final) Jan 9" te... | SELECT "Week 7 Oct 12" FROM table_34489 WHERE "Week 6 Oct 5" = 'boise state (4-0)' | wikisql |
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many students does LORIA ONDERSMA teac... | SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA" | spider |
CREATE TABLE table_45111 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of Amenemhat I?
| SELECT "Title" FROM table_45111 WHERE "Name" = 'amenemhat i' | wikisql |
CREATE TABLE table_35513 (
"Manufacturer" text,
"Model" text,
"Quantity" real,
"Introduced" real,
"Retired" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of quantity when the introductory year was 1984?
| SELECT SUM("Quantity") FROM table_35513 WHERE "Introduced" = '1984' | wikisql |
CREATE TABLE table_31007 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people wr... | SELECT COUNT("Written by") FROM table_31007 WHERE "Directed by" = 'Ernest Dickerson' AND "No. in season" = '9' | wikisql |
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE sta... | SELECT Away_team, COUNT(Away_team) FROM game GROUP BY Home_team, Away_team ORDER BY COUNT(Away_team) | nvbench |
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 jybgb.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb 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 AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_... | css |
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer the following que... | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_204_267 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games had four total points scored or more ?
| SELECT COUNT(*) FROM table_204_267 WHERE "score" + "score" >= 4 | squall |
CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many swimmers had a time of at least 1:00
| SELECT COUNT("swimmer") FROM table_204_886 WHERE "time" <= 1 | squall |
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 COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0641182' AND t_kc21.IN_HOSP_DATE BETWEEN '2000-01-18' AND '2003-06-12' AND t_kc21.SERVANT_FLG = '公务员' | css |
CREATE TABLE table_57734 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where date is october 7 and game greater than 1, what is the highest attendance?
| SELECT MAX("Attendance") FROM table_57734 WHERE "Date" = 'october 7' AND "Game" > '1' | wikisql |
CREATE TABLE table_1213511_2 (
position VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions do the players of Chicago Black Hawks play in?
| SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks" | sql_create_context |
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.
-- What are the names of all people who do not have f... | SELECT name FROM person EXCEPT SELECT name FROM personfriend | spider |
CREATE TABLE table_20209 (
"#" real,
"Season" real,
"Bowl game" text,
"Result" text,
"Opponent" text,
"Stadium" text,
"Location" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values for result correspond to a... | SELECT COUNT("Result") FROM table_20209 WHERE "Attendance" = '74,111' | wikisql |
CREATE TABLE table_name_96 (
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank has 123 as the total?
| SELECT rank FROM table_name_96 WHERE total = 123 | sql_create_context |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT OUT_DIAG_DIS_CD, OUT_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_ID = '61340309' AND MED_SER_ORG_NO = '8931708' AND OUT_DIAG_DOC_NM LIKE '郑%' | css |
CREATE TABLE table_36806 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Olazabal's winning score in the German Masters?
| SELECT "Winning score" FROM table_36806 WHERE "Tournament" = 'german masters' | wikisql |
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE document_functional_areas (
document_code text,
functional_area_code text
)
CREATE TABLE users (
user_id number,
role_code text,
user_name text,
user_login text,
passw... | SELECT COUNT(*), role_code FROM users GROUP BY role_code | spider |
CREATE TABLE table_name_48 (
bike VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What bike does dean ellison ride?
| SELECT bike FROM table_name_48 WHERE rider = "dean ellison" | sql_create_context |
CREATE TABLE table_30005 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Current Conference" text,
"Pac-12 Sports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pac-12 sp... | SELECT COUNT("Pac-12 Sports") FROM table_30005 WHERE "Institution" = 'California Polytechnic State University' | 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 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '033-22108' AND patient.wardid = 1078 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | 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 = "Interstitial emphysema and related conditions" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_name_14 (
other INTEGER,
name VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?
| SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34 | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(*) FROM (SELECT qtb.MED_ORG_DEPT_CD FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '3026245' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2012-08-12' AND '2020-06-16' GROUP BY qtb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) < 82.99 UNION SELECT gyb.MED_ORG_DEPT_CD FROM ... | css |
CREATE TABLE table_1920271_2 (
opponents VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the score 6 7(5), 6 2, 6 3?
| SELECT COUNT(opponents) FROM table_1920271_2 WHERE score = "6–7(5), 6–2, 6–3" | sql_create_context |
CREATE TABLE table_47340 (
"Party" text,
"Previous council" real,
"Staying councillors" real,
"Seats up for election" real,
"Election result" real,
"New council" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which New council has an Election re... | SELECT AVG("New council") FROM table_47340 WHERE "Election result" > '24' | wikisql |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name te... | WITH migrations AS (SELECT PostId, Comment AS target, YEAR(CreationDate) AS yr, MONTH(CreationDate) AS m FROM PostHistory WHERE PostHistoryTypeId = 35) SELECT COUNT(PostId) AS M_Count, target, yr FROM migrations WHERE NOT target IS NULL GROUP BY yr, target ORDER BY yr, target, COUNT(PostId) | sede |
CREATE TABLE table_25352318_1 (
points INTEGER,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 3rd is the position what is the lowest amount of points?
| SELECT MIN(points) FROM table_25352318_1 WHERE position = "3rd" | sql_create_context |
CREATE TABLE table_name_61 (
horse VARCHAR,
athlete VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What horse was shown by with Britta N pel and got less than 71.909?
| SELECT horse FROM table_name_61 WHERE athlete = "britta näpel" AND result < 71.909 | sql_create_context |
CREATE TABLE table_name_52 (
nationality VARCHAR,
club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of a player from link pings hc (se)?
| SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)" | sql_create_context |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE cost (
row_id number,
... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 433) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.language FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT * FROM qtb WHERE qtb.PERSON_NM = '韩子安' AND qtb.MED_SER_ORG_NO = '1397845' AND qtb.MED_ORG_DEPT_NM LIKE '%普外科%' UNION SELECT * FROM gyb WHERE gyb.PERSON_NM = '韩子安' AND gyb.MED_SER_ORG_NO = '1397845' AND gyb.MED_ORG_DEPT_NM LIKE '%普外科%' UNION SELECT * FROM zyb WHERE zyb.PERSON_NM = '韩子安' AND zyb.MED_SER_ORG_NO = '... | css |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CRE... | SELECT u.DisplayName, u.Reputation, u.UpVotes, u.DownVotes, q.QuestionsCount, a.AnswersCount, u.Reputation / a.AnswersCount AS RepPerAnswer FROM Users AS u JOIN (SELECT COUNT(1) AS QuestionsCount, OwnerUserId FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId) AS q ON u.Id = q.OwnerUserId JOIN (SELECT COUNT(1) AS Ans... | sede |
CREATE TABLE table_15088 (
"Tournament" 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 2012 value at the Grand Slam Tournaments?
| SELECT "2012" FROM table_15088 WHERE "Tournament" = 'grand slam tournaments' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_i... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE... | mimic_iii |
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 diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.icd9_code = "34830" | mimicsql_data |
CREATE TABLE table_15025 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the women's singles for glenn macfarlane mark... | SELECT "Women's singles" FROM table_15025 WHERE "Men's doubles" = 'glenn macfarlane mark leadbeater' | wikisql |
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
-- Using valid SQLite, answer the follo... | SELECT DISTINCT T2.name FROM climber AS T1 JOIN mountain AS T2 ON T1.mountain_id = T2.mountain_id WHERE T1.country = "West Germany" | spider |
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program (
program_id int,
name varchar,
... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_cour... | advising |
CREATE TABLE table_62297 (
"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 name of the cornerback from Wisconsin college?
| SELECT "Name" FROM table_62297 WHERE "Position" = 'cornerback' AND "College" = 'wisconsin' | wikisql |
CREATE TABLE table_9234 (
"Club" text,
"Location" text,
"Manager" text,
"Kit maker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the manager of club fc twente?
| SELECT "Manager" FROM table_9234 WHERE "Club" = 'fc twente' | wikisql |
CREATE TABLE table_name_42 (
year INTEGER,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year has a Winning score of 4 (69-72-70-69=280)?
| SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280) | sql_create_context |
CREATE TABLE table_name_70 (
result VARCHAR,
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Result of the game after Week 9 with an Attendance of 69,714?
| SELECT result FROM table_name_70 WHERE week > 9 AND attendance = "69,714" | sql_create_context |
CREATE TABLE table_name_49 (
points VARCHAR,
team VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For Team AJS, what is the total number of points for drivers with 0 wins?
| SELECT COUNT(points) FROM table_name_49 WHERE team = "ajs" AND wins < 0 | sql_create_context |
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2123" AND lab.itemid = "51143" | mimicsql_data |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'GTBOOKS' AND semester.semester = 'Winter' | advising |
CREATE TABLE table_name_39 (
result_f___a VARCHAR,
group_position VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score agains Dynamo Kyiv, when the group position was 1st?
| SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv" | sql_create_context |
CREATE TABLE table_1127 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of played for 16... | SELECT COUNT("Played") FROM table_1127 WHERE "Scored" = '16' | wikisql |
CREATE TABLE table_8526 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for Aprilia and their driver Casey Stoner, before gird 9, and less than 26 laps?
| SELECT "Time/Retired" FROM table_8526 WHERE "Manufacturer" = 'aprilia' AND "Grid" < '9' AND "Laps" < '26' AND "Rider" = 'casey stoner' | wikisql |
CREATE TABLE table_49879 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winning Team has the Fastest Lap of br... | SELECT "Winning Team" FROM table_49879 WHERE "Fastest Lap" = 'brendon hartley' AND "Pole Position" = 'oliver turvey' AND "Circuit" = 'spa-francorchamps' AND "Winning Driver" = 'brendon hartley' | wikisql |
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT COUNT(*) FROM tryout WHERE decision = 'yes' | spider |
CREATE TABLE table_26473176_1 (
podiums VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of podiums in 12th position?
| SELECT podiums FROM table_26473176_1 WHERE position = "12th" | sql_create_context |
CREATE TABLE table_67881 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is on tv at 9:30 on the same channel that had e2 on at 7:30?
| SELECT "9:30" FROM table_67881 WHERE "7:30" = 'e2' | wikisql |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insuranc... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | mimic_iii |
CREATE TABLE table_13147 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which To par has a Country of united states, and a Player of dave stockton?
| SELECT "To par" FROM table_13147 WHERE "Country" = 'united states' AND "Player" = 'dave stockton' | wikisql |
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE t... | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY Location | nvbench |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TAB... | WITH texts_cte AS (SELECT DISTINCT c2.Text AS Text FROM Comments AS c1 JOIN Comments AS c2 ON (c1.PostId = c2.PostId) AND (c1.UserId = '##UserId##') AND (c1.CreationDate < c2.CreationDate) WHERE (c2.Text LIKE '%@%')), substrings_cte AS (SELECT SUBSTRING(Text, STR_POSITION(Text, '@'), LENGTH(Text)) AS TextFrom FROM text... | sede |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,... | SELECT YEAR(CreationDate), MONTH(CreationDate), COUNT(Id), SUM(CommentCount) FROM Posts WHERE CreationDate >= '01/01/2014' AND PostTypeId = 1 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY YEAR(CreationDate), MONTH(CreationDate) | sede |
CREATE TABLE table_6918 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most games when the points are 10... | SELECT MAX("Games") FROM table_6918 WHERE "Points" = '100' AND "Goals for" < '356' | wikisql |
CREATE TABLE table_203_496 (
id number,
"pos" number,
"country" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country earned at least 2 gold medals and 2 silver medals i... | SELECT "country" FROM table_203_496 WHERE "gold" > 2 AND "silver" > 2 | squall |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '010-21105' AND STRFTIME('%y', patient.hospitaladmittime) = '2105' | eicu |
CREATE TABLE table_name_8 (
championship VARCHAR,
opponent_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which championship had an oppenent of mario an i in the final?
| SELECT championship FROM table_name_8 WHERE opponent_in_the_final = "mario ančić" | sql_create_context |
CREATE TABLE Department (
DNO INTEGER,
Division VARCHAR(2),
DName VARCHAR(25),
Room VARCHAR(5),
Building VARCHAR(13),
DPhone INTEGER
)
CREATE TABLE Gradeconversion (
lettergrade VARCHAR(2),
gradepoint FLOAT
)
CREATE TABLE Enrolled_in (
StuID INTEGER,
CID VARCHAR(7),
Grade V... | SELECT Days, SUM(Instructor) FROM Course GROUP BY Days ORDER BY Credits | nvbench |
CREATE TABLE table_63498 (
"Year" real,
"1st Place Team" text,
"2nd Place Team" text,
"3rd Place Team" text,
"4th Place Team" text,
"Host Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Clark-Smith Autos, Phoenix, AZ in 2n... | SELECT "Year" FROM table_63498 WHERE "2nd Place Team" = 'clark-smith autos, phoenix, az' | wikisql |
CREATE TABLE table_204_639 (
id number,
"poll company" text,
"source" text,
"publication date" text,
"psuv" number,
"opposition" number,
"undecided" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different poll companies are liste... | SELECT COUNT(DISTINCT "poll company") FROM table_204_639 | squall |
CREATE TABLE table_228973_7 (
written_by VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 129 is the number in the series who is the writer?
| SELECT written_by FROM table_228973_7 WHERE no_in_series = 129 | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jy... | 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 t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '33874140' AND t_kc22.STA_DATE BETWEEN '2015-12-26' AND '2016-02-29' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_204_781 (
id number,
"name(s)" text,
"yard no." number,
"type (as built)" text,
"owner" text,
"imo number" number,
"laid down" text,
"launched" text,
"delivered/\ncommissioned" text,
"fate/\ndecommissioned" text,
"notes" text
)
-- Using valid SQLite, answ... | SELECT "name(s)" FROM table_204_781 WHERE "type (as built)" = 'bainbridge-class destroyer' AND "launched" < 12 | squall |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Unspecified congenital anomaly of heart" | mimicsql_data |
CREATE TABLE table_23871828_1 (
week__number VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what week was the original singer Whitney Houston.
| SELECT week__number FROM table_23871828_1 WHERE original_artist = "Whitney Houston" | sql_create_context |
CREATE TABLE table_name_95 (
head_coach VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the head coach when the opponent was Arsenal?
| SELECT head_coach FROM table_name_95 WHERE opponent = "arsenal" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost numb... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2489) AND DATETIME(procedures_icd.charttime, 'start of year') = DATE... | mimic_iii |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_cour... | advising |
CREATE TABLE table_20161 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How heavy were the players who attended Arkansas?
| SELECT "Weight" FROM table_20161 WHERE "College" = 'Arkansas' | wikisql |
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 COUNT(DISTINCT hz_info.RYBH) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE zyjzjlb.YLJGDM = '4226388' AND DATEDIFF(zyjzjlb.CYSJ, zyjzjlb.RYSJ) > 30 | css |
CREATE TABLE table_79880 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For events with values of exactly 1, and 0 cuts made, what is the fewest number of top-10s?
| SELECT MIN("Top-10") FROM table_79880 WHERE "Events" = '1' AND "Cuts made" > '0' | wikisql |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREA... | 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.departure_time BETWEEN 0 AND 1200) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_na... | atis |
CREATE TABLE table_19193 (
"s Car plate (starting 1937)" text,
"Voivodeship or city" text,
"Capital" text,
"Area (1930) in 1,000skm 2" text,
"Population (1931) in 1,000s" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the s car starting 1937 wh... | SELECT "s Car plate (starting 1937)" FROM table_19193 WHERE "Area (1930) in 1,000skm 2" = '16.5' | wikisql |
CREATE TABLE table_57323 (
"Rank" real,
"Name" text,
"Nation" text,
"Placings" real,
"Figures" real,
"Free" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Placings that hasthe Free smaller than 524.3, and th... | SELECT "Placings" FROM table_57323 WHERE "Free" < '524.3' AND "Total" < '1170.1' AND "Name" = 'per cock-clausen' | wikisql |
CREATE TABLE table_204_794 (
id number,
"iec\nworld plugs\nType" text,
"standard" text,
"power\nrating" text,
"earthed" text,
"polarised" text,
"fused" text,
"insulated\npins" text,
"europlug\ncompatible" text
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT COUNT("standard") FROM table_204_794 WHERE "iec\nworld plugs\nType" = 'b' | 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 * 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 table_67266 (
"Title" text,
"Studio" text,
"Role" text,
"Leading lady" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?
| SELECT "Role" FROM table_67266 WHERE "Leading lady" = 'sheila terry' AND "Title" = 'the lawless frontier' | wikisql |
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_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY AVG(ID) | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE table_name_4 (
quantity_made VARCHAR,
fleet_numbers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the quantity of the fleet information for DWWR 50 and 51?
| SELECT quantity_made FROM table_name_4 WHERE fleet_numbers = "dwwr 50 and 51" | sql_create_context |
CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TAB... | SELECT stuid FROM student WHERE sex = 'F' INTERSECT SELECT stuid FROM sportsinfo WHERE sportname = "Football" | spider |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.