text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
... |
### Context: CREATE TABLE table_name_57 (
events INTEGER,
top_5 VARCHAR,
wins VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1?
#... |
### Context: CREATE TABLE table_name_63 (
kit_manufacturer VARCHAR,
shirt_sponsor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Kit manufacturer that was has shirts sponsored by Walkers?
### Query: SELECT kit_manufacturer FROM table_name_63 WHE... |
### Context: CREATE TABLE player (
name_first VARCHAR,
name_last VARCHAR,
death_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the players' first name and last name who have empty death record.
### Query: SELECT name_first, name_last FROM ... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_11191 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who retired at lap 77 and was grid 11?
### Query: SELECT "Time/Retired" FROM table_11... |
### Context: CREATE TABLE table_25042332_16 (
median_income___intl INTEGER,
below_60_percentage_of_median_income VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the median income for the region where 24.4% pf people make below 60% of the median income... |
### Context: CREATE TABLE table_74445 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"France air date" text,
"Canadian air date" text,
"US air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the canadian... |
### Context: CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description ... |
### Context: CREATE TABLE TRACK (
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of all the tracks that contain the word 'you'.
### Query: SELECT Name FROM TRACK WHERE Name LIKE '%you%' |
### Context: 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 p... |
### Context: CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
Sugg... |
### Context: CREATE TABLE table_67206 (
"Year" real,
"Denomination" text,
"Reverse" text,
"Weight" text,
"Diameter" text,
"Fineness" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What denomination was produced in 2006?
### Q... |
### Context: CREATE TABLE table_22950 (
"Round" real,
"Date" text,
"City and venue" text,
"Winner" text,
"Runner-up" text,
"3rd placed" text,
"4th placed" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who came in 3rd pla... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (... |
### Context: CREATE TABLE table_29619494_2 (
sake_tuyas VARCHAR,
denim_demons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did the Sake Tuyas come in when the Denim Demons were 4th?
### Query: SELECT sake_tuyas FROM table_29619494_2 WHERE denim... |
### Context: CREATE TABLE table_name_43 (
place VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place ranking for the player from Australia?
### Query: SELECT place FROM table_name_43 WHERE country = "australia" |
### Context: CREATE TABLE table_name_62 (
overall INTEGER,
position VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During round 8 when the Position being picked was rb, what was the highest overall pick?
### Query: SELECT MAX(overall) FRO... |
### Context: CREATE TABLE table_name_19 (
season INTEGER,
bachelor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had bachelor Byron Velvick?
### Query: SELECT MIN(season) FROM table_name_19 WHERE bachelor = "byron velvick" |
### Context: CREATE TABLE table_203_447 (
id number,
"constituency" number,
"region" text,
"name" text,
"party" text,
"last elected" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in years between constiuency 1 and 2 ?
... |
### Context: CREATE TABLE table_1140111_5 (
constructor VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed the Syracuse circuit?
### Query: SELECT constructor FROM table_1140111_5 WHERE circuit = "Syracuse" |
### Context: CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
b... |
### Context: CREATE TABLE table_79386 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the genre of The Sims before 2002?
### Query: SELECT "Genre" FROM table_79386 W... |
### Context: 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... |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### Context: CREATE TABLE table_71918 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owned winner Blueeyesintherein after 2009?
### Query: SELECT "Owner" FROM... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
... |
### Context: CREATE TABLE table_44572 (
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE THIRD WITH LEAD CINDY SIMMONS?
### Query: SELECT "Third" FROM table_44572 WHERE "Lead" ... |
### Context: CREATE TABLE table_name_77 (
set_1 VARCHAR,
set_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Set 1 has a Set 2 of 26 24?
### Query: SELECT set_1 FROM table_name_77 WHERE set_2 = "26–24" |
### Context: CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE table_45370 (
"Stage" text,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Sprints classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE table_69631 (
"Competition" text,
"Started Round" text,
"Final Position" text,
"Final Round" text,
"First Match" text,
"Last Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did the first match occur f... |
### Context: CREATE TABLE table_56709 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the guard who played for Florida Internat... |
### Context: CREATE TABLE table_name_25 (
draw INTEGER,
televoting INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Televoting smaller than 2 had what highest draw?
### Query: SELECT MAX(draw) FROM table_name_25 WHERE televoting < 2 |
### Context: CREATE TABLE table_61488 (
"Clubs" text,
"Seasons at this level" text,
"Settlements" text,
"Season joined league" text,
"Position in 1959\u20131960" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 'season joined league' for t... |
### Context: CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE universi... |
### Context: CREATE TABLE table_59054 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" text,
"Location of the Church" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which parish has a church named Vangsnes Ky... |
### Context: CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmitti... |
### Context: CREATE TABLE table_name_49 (
crimean_war INTEGER,
second_afghan_war VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and porter's scho... |
### 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,
admissi... |
### Context: CREATE TABLE departments (
department_id number,
dept_store_id number,
department_name text
)
CREATE TABLE department_stores (
dept_store_id number,
dept_store_chain_id number,
store_name text,
store_address text,
store_phone text,
store_email text
)
CREATE TABLE suppl... |
### Context: CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... |
### 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 ... |
### Context: CREATE TABLE table_22669044_9 (
team VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the team for united center 22,147
### Query: SELECT team FROM table_22669044_9 WHERE location_attendance = "United Center 22,1... |
### Context: CREATE TABLE table_63950 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp" text,
"TD-INT" text,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Att-Cmp has a GP-GS of 7-1?
### Query: SELECT "Att-Cmp" FROM table_6395... |
### Context: CREATE TABLE table_name_63 (
torque VARCHAR,
capacity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What torque does a 1905 cc capacity have?
### Query: SELECT torque FROM table_name_63 WHERE capacity = "1905 cc" |
### Context: CREATE TABLE table_74348 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player picked to... |
### Context: CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description t... |
### Context: CREATE TABLE Documents (
document_id VARCHAR,
receipt_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all document ids and receipt dates of documents.
### Query: SELECT document_id, receipt_date FROM Documents |
### Context: CREATE TABLE Skills_Required_To_Fix (
part_fault_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Engineer_Skills (
engineer_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
contact_staff_id INTEGER,
engineer_id INTEGER,
fault_log_entry_i... |
### Context: CREATE TABLE table_37930 (
"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 is the average Total for the Rank of 6, when Silver is smaller than 0?
##... |
### Context: CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outti... |
### Context: CREATE TABLE table_69206 (
"Year" real,
"Total Region" real,
"Rockhampton" real,
"Livingstone" real,
"Fitzroy" real,
"Mt Morgan" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people are in Livingstone when less than 6,406 ... |
### Context: CREATE TABLE table_name_72 (
icao VARCHAR,
iata VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO when the IATA shows cts?
### Query: SELECT icao FROM table_name_72 WHERE iata = "cts" |
### Context: CREATE TABLE table_8973 (
"Name" text,
"Seat" text,
"Population (2011)" real,
"Area (km 2 )" real,
"Density (inhabitants/km 2 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area in km2 for Cape Agulhas, whose density is l... |
### Context: CREATE TABLE table_29526 (
"Episode air date" text,
"Audition city" text,
"First audition date" text,
"Audition venue" text,
"Callback audition date" text,
"Callback venue" text,
"Golden tickets" text
)
-- Using valid SQLite, answer the following questions for the tables provi... |
### Context: CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE mzb (
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... |
### Context: 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... |
### Context: CREATE TABLE table_name_42 (
position VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Pick of 74?
### Query: SELECT position FROM table_name_42 WHERE pick = 74 |
### Context: CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_1341453_20 (
candidates VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many candidates were elected first in 1980?
### Query: SELECT COUNT(candidates) FROM table_1341453_20 WHERE first_elected = 198... |
### Context: CREATE TABLE table_1341395_44 (
district VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district has Ron Paul?
### Query: SELECT district FROM table_1341395_44 WHERE incumbent = "Ron Paul" |
### Context: 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,
JCZB... |
### Context: CREATE TABLE table_23095 (
"Districts of Bihar" text,
"Total Population 2001" real,
"Male Population 2001" real,
"Female Population 2001" real,
"Growth Rate 1981-91" text,
"Growth Rate 1991-01" text,
"Sex Ratio \u2021 1991" real,
"Sex Ratio \u2021 2001" real,
"Population... |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE... |
### Context: CREATE TABLE table_37297 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Home has a Visitor of quebec nordiques, and a Score of 3 4, and a Record of 8 8 1?
### Que... |
### Context: CREATE TABLE table_26881 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall FHT Points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Nam... |
### Context: CREATE TABLE table_name_12 (
relation VARCHAR,
year VARCHAR,
length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Relation has a Year larger than 2000, and a Length of 8 x 20 mins?
### Query: SELECT relation FROM table_name_12 WHERE ... |
### Context: CREATE TABLE table_name_40 (
season VARCHAR,
team VARCHAR,
champion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which season did Jimmy Eriksson win the championship for Team Lotus?
### Query: SELECT season FROM table_name_40 WHERE tea... |
### Context: CREATE TABLE table_16849531_2 (
ncbi_accession_number__mrna_protein_ VARCHAR,
species VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NCBI Accession Number of the Homo Sapiens species?
### Query: SELECT ncbi_accession_number__mrna_pr... |
### Context: CREATE TABLE table_72462 (
"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 abov... |
### Context: CREATE TABLE table_test_23 (
"id" int,
"previous_mi" bool,
"anemia" bool,
"left_ventricular_ejection_fraction_lvef" int,
"tolerate_gadolinium_contrast_media" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"to... |
### Context: CREATE TABLE table_26401898_2 (
attendance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most attendance
### Query: SELECT MIN(attendance) FROM table_26401898_2 |
### Context: CREATE TABLE table_23346983_1 (
record VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Orangemen record during game 3?
### Query: SELECT record FROM table_23346983_1 WHERE game = 3 |
### Context: CREATE TABLE table_name_32 (
total_atms VARCHAR,
off_site_atms VARCHAR,
number_of_branches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branch... |
### Context: CREATE TABLE table_22447251_2 (
height VARCHAR,
contestant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall is contestant Alexandra D az Bello?
### Query: SELECT height FROM table_22447251_2 WHERE contestant = "Alexandra Díaz Bello" |
### Context: CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_i... |
### Context: CREATE TABLE table_name_33 (
hometown VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the player who went to college at USC?
### Query: SELECT hometown FROM table_name_33 WHERE college = "usc" |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_ti... |
### Context: CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
-- Using valid SQLite, answer the following questions for the t... |
### Context: CREATE TABLE table_10416547_1 (
lyricist VARCHAR,
lyrics_theme_style VARCHAR,
duration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of lyricist where the lyrics theme is romance and the song lasts 3:50?
### Query:... |
### Context: CREATE TABLE table_15219 (
"Field" text,
"Geological Trend" text,
"Reserves" text,
"Discovery" text,
"Operator(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Field has a Discovery of na, and an Operator(s) of woc, and a Geolog... |
### Context: CREATE TABLE table_203_426 (
id number,
"year" number,
"title" text,
"peak chart positions\naus" number,
"peak chart positions\nnz" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... |
### Context: 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... |
### Context: CREATE TABLE table_name_55 (
year VARCHAR,
rank VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year's rank was #4 when the country was the US?
### Query: SELECT year FROM table_name_55 WHERE rank = "#4" AND country = ... |
### Context: CREATE TABLE table_name_44 (
february VARCHAR,
score VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much February has a Score of 5 2, and Points of 70?
### Query: SELECT COUNT(february) FROM table_name_44 WHERE score = "... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQ... |
### Context: CREATE TABLE table_name_95 (
ranking VARCHAR,
nationality VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ranking has the nationality of spain and the goals of 26?
### Query: SELECT ranking FROM table_name_95 WHERE nation... |
### Context: CREATE TABLE table_name_70 (
bronze VARCHAR,
rank VARCHAR,
silver VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Bronze has a Silver larger than 2, and a Nation of mixed team, and a Rank larger than 4?
### Query... |
### Context: CREATE TABLE table_name_31 (
cuts_made INTEGER,
top_5 INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cuts made when the top-5 is greater than 1?
### Query: SELECT AVG(cuts_made) FROM table_name_31 WHERE top_5 > 1 |
### Context: CREATE TABLE table_17090 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are all the players for st. thomas aquinas high school
### Query: SELECT "Player" F... |
### Context: CREATE TABLE stores (
store_id text,
address_id number,
marketing_region_code text,
store_name text,
store_phone text,
store_email_address text,
other_details text
)
CREATE TABLE invoices (
invoice_id number,
order_id number,
payment_method_code text,
product_id... |
### Context: CREATE TABLE table_38989 (
"Distance" text,
"10th" real,
"11th" real,
"12th" real,
"13th" real,
"14th" real,
"15th" real,
"16th" real,
"17th" real,
"18th" real,
"19th" real,
"20th" real,
"21st" real,
"22nd" real,
"23rd" real,
"24th" real,
... |
### Context: CREATE TABLE table_13843 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s... |
### Context: CREATE TABLE table_name_34 (
character VARCHAR,
actor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the character when Margot Boyd was acting?
### Query: SELECT character FROM table_name_34 WHERE actor = "margot boyd" |
### Context: CREATE TABLE table_name_22 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 2008 at the Shanghai tournament?
### Query: SELECT 2008 FROM table_name_22 WHERE tournament = "shanghai" |
### Context: CREATE TABLE table_31889 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent had a week of 14?
### Query: SELECT "Opponent" FROM table... |
### Context: CREATE TABLE table_1223 (
"Round #" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which college did Dean Kirkland go to
### Query: SELECT "College" FROM table_1223 WHERE "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.