text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
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,
meter_700 text,
Time t... |
### Context: CREATE TABLE table_name_40 (
lost VARCHAR,
try_bonus VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lost when the try bonus is 5, and points against is 298?
### Query: SELECT lost FROM table_name_40 WHERE... |
### Context: CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
... |
### Context: CREATE TABLE table_45758 (
"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_17593 (
"Season" text,
"Serbian League Belgrade" text,
"Serbian League East" text,
"Serbian League Vojvodina" text,
"Serbian League West" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was promoted in the Se... |
### Context: CREATE TABLE table_2102714_1 (
archive VARCHAR,
run_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is he archive for the episode with a run time of 24:05?
### Query: SELECT archive FROM table_2102714_1 WHERE run_time = "24:05" |
### Context: CREATE TABLE table_66228 (
"!Event" real,
"Round" text,
"Surface" text,
"Winner" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many events did clay win?
### Query: SELECT COUNT("!Event") FROM ta... |
### Context: CREATE TABLE table_17456 (
"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.
-- How many teams did Bob Peppler play for?
### Q... |
### 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_... |
### Context: CREATE TABLE table_22076 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... |
### Context: CREATE TABLE table_40581 (
"Spoofed Title" text,
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Writer with a Date that is january 1975?
### Query:... |
### Context: CREATE TABLE table_47310 (
"Year" text,
"Indians admitted" real,
"Pakistanis admitted" real,
"Sri Lankans admitted" real,
"Bangladeshis admitted" real,
"Nepalis admitted" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the m... |
### Context: CREATE TABLE table_16136 (
"Sepal length" text,
"Sepal width" text,
"Petal length" text,
"Petal width" text,
"Species" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of species with sepal width of 3.4 and sepal length of... |
### Context: CREATE TABLE Fault_Log (
fault_log_entry_id INTEGER,
asset_id INTEGER,
recorded_by_staff_id INTEGER,
fault_log_entry_datetime DATETIME,
fault_description VARCHAR(255),
other_fault_details VARCHAR(255)
)
CREATE TABLE Skills_Required_To_Fix (
part_fault_id INTEGER,
skill_id I... |
### Context: CREATE TABLE Allergy_type (
allergytype VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different allergy types exist?
### Query: SELECT COUNT(DISTINCT allergytype) FROM Allergy_type |
### Context: CREATE TABLE table_name_6 (
attendance INTEGER,
away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average attendance when marathon was the away team?
### Query: SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon" |
### Context: CREATE TABLE table_53800 (
"Conference" text,
"Division" text,
"Appearances" real,
"Wins" real,
"Losses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses did the division who appeared less than 16 times have?
### Query: S... |
### Context: CREATE TABLE table_1658 (
"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... |
### Context: CREATE TABLE table_name_46 (
title VARCHAR,
artist VARCHAR,
cat__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the record with an artist of Tangorodrim, category number FSR006?
### Query: SELECT title FROM table... |
### Context: CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
N... |
### Context: CREATE TABLE table_name_40 (
result VARCHAR,
record VARCHAR,
game VARCHAR,
streak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9?
### Query: SELECT res... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration n... |
### Context: CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId ... |
### Context: CREATE TABLE table_19870086_24 (
rank VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rank of adam gilchrist
### Query: SELECT COUNT(rank) FROM table_19870086_24 WHERE player = "Adam Gilchrist" |
### Context: CREATE TABLE table_20545 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written By" text,
"Originalairdate" text,
"TV Broadcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title was No... |
### Context: CREATE TABLE table_61653 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE 2011 WITH 2007 AT... |
### 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 table_11654169_1 (
area_in_1000km²__1930_ VARCHAR,
voivodeship_separate_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all areas within 1000 km in the city of Lubelskie?
### Query: SELECT area_in_1000km²__1930_ FROM table... |
### Context: CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_I... |
### Context: CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId n... |
### Context: CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
... |
### Context: CREATE TABLE table_203_61 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the total number of medals won by south africa was ho... |
### 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 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 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_name_19 (
silver INTEGER,
nation VARCHAR,
total VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
### Q... |
### Context: 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 lab (
subject_id text,
hadm... |
### Context: CREATE TABLE table_3563 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ho... |
### Context: CREATE TABLE table_53835 (
"Year" text,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Distance" text,
"Time" text,
"Purse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the owner of the Raglan Road win... |
### Context: CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy V... |
### Context: CREATE TABLE table_name_18 (
code__iata_icao_ VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the code for rank 10?
### Query: SELECT code__iata_icao_ FROM table_name_18 WHERE rank = 10 |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
V... |
### Context: CREATE TABLE table_24208 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Scoreboard" text,
"Song" text,
"Public Vote %" text,
"Result" text
)
-- Using valid SQLite, answer the following qu... |
### Context: 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_... |
### 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,
ME... |
### Context: CREATE TABLE table_10757 (
"Year" real,
"Location" text,
"Champion" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Winterberg, who was 3rd the year that Monique Riekewald was 2nd?
### Query: SELECT "Thir... |
### Context: CREATE TABLE airports (
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the cities which have more than one airport and number of airports.
### Query: SELECT city, COUNT(*) FROM airports GROUP BY city HAVING COUNT(*) > 1 |
### Context: CREATE TABLE table_72258 (
"Year" real,
"Premier One" text,
"Premier Two" text,
"Bristol & Somerset" text,
"Glos & Wilts" text,
"Bristol & N. Som" text,
"Somerset" text,
"Gloucestershire" text,
"Wiltshire" text
)
-- Using valid SQLite, answer the following questions fo... |
### Context: CREATE TABLE table_19160 (
"Year" real,
"1st District" text,
"2nd District" text,
"3rd District" text,
"4th District" text,
"5th District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last year that Howard A. Wassum wa... |
### Context: CREATE TABLE table_name_69 (
margin_of_victory VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory on Mar 18, 1979?
### Query: SELECT margin_of_victory FROM table_name_69 WHERE date = "mar 18, 1979" |
### Context: CREATE TABLE HOTELS (
price_range INTEGER,
star_rating_code VARCHAR,
pets_allowed_yn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the average price range of hotels that have 5 star ratings and allow pets.
### Query: SELECT AVG(price_... |
### Context: CREATE TABLE table_25561560_3 (
yacht VARCHAR,
skipper VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What yacht did Andrew Saies sail on?
### Query: SELECT yacht FROM table_25561560_3 WHERE skipper = "Andrew Saies" |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... |
### Context: CREATE TABLE table_65323 (
"Year" real,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a Year larger than 1974, and a Finish of 3rd?
### Query: SELECT "Record" F... |
### Context: CREATE TABLE table_743 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the election of the incumbent clyde do... |
### Context: CREATE TABLE table_53089 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the home team score when the away team is south ... |
### Context: CREATE TABLE table_8228 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the whole of Drawn that has a Played larger than 14?
### Query: SELEC... |
### Context: CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- year with largest... |
### Context: CREATE TABLE table_train_178 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"hiv_infection" bool,
"hepatitis_c" bool,
"renal_disease" bool,
"hypoglycemia" bool,
"serum_creatinine" float,
"seizure_disorder" bool,
"body_mass_index_bmi" float,
"NOUSE" f... |
### Context: CREATE TABLE table_name_13 (
tournament VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tournament had a Score of 6 3, 2 6, 6 3?
### Query: SELECT tournament FROM table_name_13 WHERE score = "6–3, 2–6, 6–3" |
### Context: CREATE TABLE table_54887 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" 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.
-- Which tourna... |
### Context: CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
ha... |
### Context: CREATE TABLE table_name_33 (
band INTEGER,
power__w_ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Band's Power (W) is 400 or less?
### Query: SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400 |
### Context: CREATE TABLE table_name_47 (
drawn VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the drawn value for furnace united rfc?
### Query: SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc" |
### 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 table_39299 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has Opponents in the fin... |
### Context: CREATE TABLE table_name_16 (
money___ INTEGER,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most money for the score 75-74-72-67=288?
### Query: SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 ... |
### Context: CREATE TABLE month (
month_number int,
month_name text
)
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 time_zone (
time_zone_code text,
time_zone_name text,
hours_from... |
### Context: CREATE TABLE table_name_73 (
team__number1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team Unics Kazan's 1st leg score?
### Query: SELECT 1 AS st_leg FROM table_name_73 WHERE team__number1 = "unics kazan" |
### Context: CREATE TABLE table_name_62 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1... |
### Context: CREATE TABLE table_15717093_1 (
title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title when there were 14.39 million viewers?
### Query: SELECT title FROM table_15717093_1 WHERE us_viewers__millio... |
### Context: CREATE TABLE table_name_98 (
league_cup_goals INTEGER,
total_apps VARCHAR,
fa_cup_apps VARCHAR,
league_cup_apps VARCHAR,
league_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average league cup goals when the league... |
### Context: CREATE TABLE table_69607 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament has a 2007 of 2r, and a 2011 ... |
### Context: CREATE TABLE table_name_69 (
position VARCHAR,
team_from VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the team player from Aik?
### Query: SELECT position FROM table_name_69 WHERE team_from = "aik" |
### Context: CREATE TABLE table_name_93 (
year_born__age_ VARCHAR,
height VARCHAR,
current_club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clip... |
### Context: CREATE TABLE table_name_70 (
games VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game is named tsegay kebede category:articles with hcards?
### Query: SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:art... |
### Context: 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 Accounts (
account_id I... |
### Context: CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVIN... |
### Context: CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE dorm_amenity (
ameni... |
### Context: CREATE TABLE table_16244 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Featured character(s)" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the... |
### Context: CREATE TABLE table_17323042_11 (
high_assists VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the High Assist in game 1?
### Query: SELECT high_assists FROM table_17323042_11 WHERE game = 1 |
### Context: CREATE TABLE VOTING_RECORD (
Secretary_Vote VARCHAR,
ELECTION_CYCLE VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the distinct secretary votes in the fall election cycle?
### Query: SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WH... |
### Context: CREATE TABLE table_name_98 (
first_elected VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first elected date for the incumbent in the South Carolina 4 district?
### Query: SELECT first_elected FROM table_name_98 WH... |
### Context: CREATE TABLE table_1849243_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewers in millions watched the episode 23:55 minutes long?
### Query: SELECT viewers__in_millions_ FROM table_184924... |
### Context: CREATE TABLE table_name_53 (
district VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What District has a Location of villupuram?
### Query: SELECT district FROM table_name_53 WHERE location = "villupuram" |
### Context: CREATE TABLE table_name_80 (
silver INTEGER,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low silver medal total for nations with over 1 bronze ranked above 11?
### Query: SELECT MIN(silver) FROM table_nam... |
### Context: CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE student_record (
student_id int,
course_id in... |
### Context: CREATE TABLE table_71735 (
"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 at 9:30 on the channel of dancing with the stars?
### Qu... |
### Context: CREATE TABLE region (
region_name VARCHAR,
Label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all distinct region names ordered by their labels.
### Query: SELECT DISTINCT region_name FROM region ORDER BY Label |
### Context: CREATE TABLE table_19482 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number of the player whose college is Florida State?
### Query: SELECT... |
### Context: CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBL... |
### Context: CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE... |
### Context: CREATE TABLE table_name_88 (
grid INTEGER,
laps VARCHAR,
time_retired VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is sma... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
... |
### Context: CREATE TABLE table_name_87 (
round VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of rounds of the player with a pick of 20?
### Query: SELECT COUNT(round) FROM table_name_87 WHERE pick = 20 |
### Context: 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 Users (
Id number,
Reput... |
### Context: CREATE TABLE table_name_13 (
points VARCHAR,
tries_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Points with a Tries For that is 21?
### Query: SELECT points FROM table_name_13 WHERE tries_for = "21" |
### Context: CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId nu... |
### Context: CREATE TABLE table_1733457_1 (
kerry_number INTEGER,
others_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the maximum kerry # for where others is 47
### Query: SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.