text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_name_33 (
prize__ INTEGER,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average prize for the Buttercross Limited Stakes?
### Query: SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = "buttercross l... |
### 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 INVESTORS (
Investor_details VARCHAR,
investor_id VARCHAR
)
CREATE TABLE TRANSACTIONS (
investor_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the id and details for the investors who have the top 3 number of transacti... |
### Context: CREATE TABLE table_46761 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round of pick 63?
### Query: SELECT "Round" FROM table_46761 WHERE "Pic... |
### Context: CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust number
)
CREATE TABLE item (
i_id number,
title te... |
### Context: CREATE TABLE table_name_4 (
name VARCHAR,
position VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is a tight end with a round higher than 3?
### Query: SELECT name FROM table_name_4 WHERE position = "tight end" A... |
### Context: CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplay... |
### Context: CREATE TABLE table_44447 (
"Designation" text,
"Name" text,
"Launch date" text,
"ISS docking date" text,
"Deorbit date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the atv-002 launch?
### Query: SELECT "Launch date" FROM ta... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... |
### Context: CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instruct... |
### Context: CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total numbe... |
### Context: CREATE TABLE Employees (
employee_name VARCHAR,
role_code VARCHAR,
date_of_birth VARCHAR,
employee_Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name, role code, and date of birth for the employee with name 'Armani'.
### ... |
### Context: CREATE TABLE table_22993636_2 (
overall_record VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's LSU's overall record/
### Query: SELECT overall_record FROM table_22993636_2 WHERE team = "LSU" |
### Context: CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
-- Using valid SQLite, answer the following quest... |
### Context: CREATE TABLE table_51007 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Japan place?
### Query: SELECT "Place" FROM table_51007 WHE... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE... |
### Context: CREATE TABLE table_name_36 (
opponent VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent of the match on 3 December 1898 in venue h?
### Query: SELECT opponent FROM table_name_36 WHERE venue = "h... |
### Context: CREATE TABLE table_204_906 (
id number,
"#" number,
"title" text,
"songwriters" text,
"producer(s)" text,
"performer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of titles listed ?
### Query: SELECT COUN... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity tex... |
### Context: CREATE TABLE table_name_96 (
record VARCHAR,
score VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Score of 6 4, and a Opponent of @ marlins had what record?
### Query: SELECT record FROM table_name_96 WHERE score = "6–4" A... |
### 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 checking (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE savings (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE accounts (
custid VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the checking ba... |
### Context: CREATE TABLE table_name_20 (
winners_club VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winners club has a Week of 4.5?
### Query: SELECT winners_club FROM table_name_20 WHERE week = 4.5 |
### Context: CREATE TABLE table_11762 (
"Name" text,
"Location" text,
"Elevation + Height" text,
"Delivery" text,
"Purpose" text,
"Yield" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Purpose has a Location of enewetak, runit (yvonne) and... |
### Context: CREATE TABLE table_name_35 (
wins INTEGER,
rank VARCHAR,
top_fives VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of wins for casey mears when the player ranked 22nd and was in teh top fives 3 times?
### Query: SELECT SUM(wi... |
### Context: CREATE TABLE table_name_82 (
goals_against VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals against have 58 points?
### Query: SELECT goals_against FROM table_name_82 WHERE points = 58 |
### Context: CREATE TABLE table_24865763_2 (
lmp2_winning_team VARCHAR,
gt1_winning_team VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the G... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
... |
### Context: CREATE TABLE table_24222929_3 (
original_airdate VARCHAR,
live VARCHAR,
sd_total_viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?
### Que... |
### Context: CREATE TABLE table_name_90 (
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the match with west bromwich albion as the home team?
### Query: SELECT date FROM table_name_90 WHERE home_team = "west brom... |
### 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_name_46 (
drawn INTEGER,
lost VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Drawn has a Lost of 2, and Played smaller than 14?
### Query: SELECT SUM(drawn) FROM table_name_46 WHERE lost = 2 AND p... |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
... |
### Context: 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,
insurance text,
language text,
marital_status text,
ethnicity text,
age numb... |
### Context: CREATE TABLE table_name_38 (
rank VARCHAR,
nationality VARCHAR,
heat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Serbia has a heat less than 2 and what sum of rank?
### Query: SELECT COUNT(rank) FROM table_name_38 WHERE nationality = "se... |
### Context: CREATE TABLE table_name_4 (
number_of_districts__kecamatan_ INTEGER,
villages VARCHAR,
geographical_unit VARCHAR,
number_of_regencies__kabupaten_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the number of districts (... |
### Context: CREATE TABLE table_24193 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tabl... |
### Context: CREATE TABLE table_4178 (
"Position" real,
"Top MC" text,
"Year inducted" real,
"Appearances" real,
"Peak ranking" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the MCs with peak ranking of 6 who were inducted in 2007.
### Qu... |
### Context: CREATE TABLE table_name_21 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low grid total for a retired due to steering in under 15 laps?
### Query: SELECT MIN(grid) FROM table_name_21 W... |
### Context: CREATE TABLE table_69590 (
"Model" text,
"Graded Hammer (Non GH3)" text,
"Graded Hammer Three (GH3)" text,
"Natural Wood Keyboard" text,
"Synthetic Ivory Keytops" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Graded Hammer (Non G... |
### Context: CREATE TABLE table_76716 (
"Week" text,
"Theme" text,
"Artist" text,
"Order sung" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What artist's song was performed in the week with theme of Billboard #1?
### Query: SELECT ... |
### Context: CREATE TABLE table_name_97 (
other_mozilla VARCHAR,
opera VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Opera?
### Query: SELECT other_mozil... |
### Context: CREATE TABLE table_29361707_2 (
circuit VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Valmir Benavides won pole position at which circuit?
### Query: SELECT circuit FROM table_29361707_2 WHERE pole_position = "Valmir Ben... |
### Context: CREATE TABLE table_19386 (
"Region" text,
"Capital" text,
"Area (km\u00b2)" real,
"Area (sq mi)" real,
"Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capital of Umbria?
### Query: SELECT "Capital" FROM table_19... |
### 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 mzjzjlb (
HXPLC numb... |
### Context: CREATE TABLE table_23221 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" text,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... |
### Context: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniv... |
### Context: CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... |
### 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_203_14 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the date of the first internat... |
### Context: CREATE TABLE table_26727 (
"Country or region" text,
"Highest point" text,
"Maximum elevation" text,
"Lowest point" text,
"Minimum elevation" text,
"Elevation span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what country is m... |
### Context: CREATE TABLE table_name_98 (
catalog VARCHAR,
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the catalog with the region of the United States?
### Query: SELECT catalog FROM table_name_98 WHERE region = "united states" |
### Context: CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_... |
### 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 mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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,
... |
### Context: CREATE TABLE table_name_21 (
liberal_ticket VARCHAR,
free_libertarian_ticket VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket?
### Query: SELE... |
### Context: CREATE TABLE table_31567 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was there an attendance of 51,342?
### Query: SELECT "Date" FROM table_31567 WHERE "A... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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,
... |
### Context: CREATE TABLE table_44698 (
"Name" text,
"Location" text,
"Format" text,
"Record Label" text,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release date when the location is Europe?
### Query: SELECT "Release... |
### Context: CREATE TABLE table_204_553 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provide... |
### Context: CREATE TABLE table_52020 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Melbourne play as the awa... |
### Context: CREATE TABLE table_69098 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome on May 18, 2008?
### Query: SELEC... |
### Context: CREATE TABLE table_16067 (
"Round" real,
"Choice" real,
"Overall" real,
"Player name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was Steve Stonebreaker drafted?
### Query: SELECT MAX(... |
### Context: CREATE TABLE table_204_761 (
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.
-- how many countries received more bronze medals than ... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
K... |
### Context: CREATE TABLE table_203_473 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of times tha... |
### Context: CREATE TABLE table_name_9 (
time___gmt__ VARCHAR,
serial VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time (GMT) for the 12A Serial?
### Query: SELECT time___gmt__ FROM table_name_9 WHERE serial = "12a" |
### Context: CREATE TABLE table_name_84 (
date VARCHAR,
partner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did Lori McNeil play as a partner with a score of 6 7(6), 5 7?
### Query: SELECT date FROM table_name_84 WHERE par... |
### Context: CREATE TABLE table_54054 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the away team o... |
### Context: CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
... |
### Context: CREATE TABLE table_20654 (
"Name of county" text,
"County seat" text,
"Area (km\u00b2)" real,
"Population" real,
"Population density" real,
"Towns/ villages" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least area for vas... |
### Context: CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
I... |
### Context: CREATE TABLE table_12750 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Winner's share ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, w... |
### Context: CREATE TABLE table_16460 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What w... |
### Context: CREATE TABLE table_17356106_1 (
original_air_date VARCHAR,
series__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For series number 256, what was the original air date?
### Query: SELECT original_air_date FROM table_17356106_1 WHERE seri... |
### Context: CREATE TABLE table_29476 (
"Team" text,
"Outgoing head coach" text,
"Manner of departure" text,
"Date of vacancy" text,
"Position in table" real,
"Incoming head coach" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provi... |
### Context: CREATE TABLE table_38105 (
"Orbital regime" text,
"Launches" real,
"Successes" real,
"Failures" real,
"Accidentally Achieved" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of medium earth orbital regime, accidentally ... |
### Context: 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID d... |
### 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_2186 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest division number of the 6th, Great Lakes seaso... |
### Context: CREATE TABLE table_15211468_1 (
episode_title VARCHAR,
episode_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode title for the episode numbered #1.4?
### Query: SELECT episode_title FROM table_15211468_1 WHERE episode_no = "... |
### Context: CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROV... |
### Context: CREATE TABLE table_name_36 (
race_name VARCHAR,
sanctioning VARCHAR,
city_location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?
### Query: SELEC... |
### Context: CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id... |
### Context: CREATE TABLE table_name_92 (
player VARCHAR,
place VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?
### Query: SELECT player FROM table_name_92 WHERE place = "t7" AND country = "... |
### Context: CREATE TABLE table_46345 (
"City" text,
"Mongolian" text,
"Mongolian script" text,
"Province" text,
"Population (2008)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city has the mongolian script of ?
### Query: SELECT "City" FR... |
### Context: CREATE TABLE table_80270 (
"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.
-- Give the earliest year that featured ... |
### Context: CREATE TABLE table_name_13 (
to_par INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average to par for lee trevino?
### Query: SELECT AVG(to_par) FROM table_name_13 WHERE player = "lee trevino" |
### Context: CREATE TABLE table_name_71 (
points INTEGER,
wins VARCHAR,
class VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest points value for the 500cc class in years after 1962 with 0 wins?
### Query: SELECT MAX(po... |
### Context: CREATE TABLE table_28046929_2 (
car VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the type of vehicle driven by mark higgins
### Query: SELECT car FROM table_28046929_2 WHERE driver = "Mark Higgins" |
### Context: CREATE TABLE table_17688 (
"Quattroporte IV" text,
"Units Produced" real,
"Production Period" text,
"Engine Capacity" text,
"Power" text,
"Max Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power of the 3.2i v8 32... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE ... |
### Context: CREATE TABLE table_name_85 (
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Dave Hill's score?
### Query: SELECT score FROM table_name_85 WHERE player = "dave hill" |
### Context: CREATE TABLE table_57238 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pole po... |
### Context: CREATE TABLE table_33093 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest crowd for a g... |
### Context: CREATE TABLE gwyjzb (
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,
INSURE... |
### 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
... |
### 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_66496 (
"Position" text,
"Country" text,
"Floor" real,
"Pommel Horse" real,
"Rings" real,
"Vault" real,
"Parallel Bars" real,
"Horizontal Bar" real,
"Team Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided abo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.