text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_21187 (
"Episode number" real,
"Episode" text,
"Rating" text,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" text,
"Rank (Overall)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much were... |
### 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_name_70 (
championships VARCHAR,
league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Championships have a League of ontario australian football league?
### Query: SELECT championships FROM table_name_70 WHERE league =... |
### Context: CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int... |
### Context: CREATE TABLE table_42969 (
"City of License /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city contains the KPIX station?
### Que... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
ha... |
### Context: CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc ... |
### Context: CREATE TABLE table_63520 (
"Year" real,
"Home Team" text,
"Away Team" text,
"Winner" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score when the away team is rivercity rage?
### Query: SELECT "Score" FROM ta... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalpe... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE prescriptions (
... |
### Context: CREATE TABLE table_name_89 (
issue_price VARCHAR,
year VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the issue price of a voyageur before 2006?
### Query: SELECT issue_price FROM table_name_89 WHERE year < 2006 AND t... |
### Context: CREATE TABLE table_44309 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, an... |
### Context: CREATE TABLE table_4591 (
"Name" text,
"Bullet" text,
"Length" text,
"Base" text,
"Shoulder" text,
"Neck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which name is 51.89 (2.043) long?
### Query: SELECT "Name" FROM table_4591 WHE... |
### Context: CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
... |
### Context: CREATE TABLE table_9236 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team on January 4?... |
### 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 table_name_5 (
location VARCHAR,
manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location of the Stadium where Job Dragtsma is Manager?
### Query: SELECT location FROM table_name_5 WHERE manager = "job dragtsma" |
### Context: CREATE TABLE table_name_92 (
area_km_2 INTEGER,
population VARCHAR,
status VARCHAR,
census_ranking VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area of the village with a census ranking of 1,442 of 5,008 and a population le... |
### Context: CREATE TABLE table_name_47 (
genes VARCHAR,
species VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many genes in the species Rubrobacter Xylanophilus?
### Query: SELECT genes FROM table_name_47 WHERE species = "rubrobacter xylanophilus" |
### Context: CREATE TABLE table_name_9 (
set_3 VARCHAR,
set_1 VARCHAR,
set_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25?
### Query: SELECT set_3 FROM table_name_9 WHERE set_1 = "19-25" AND set_2... |
### Context: CREATE TABLE table_name_75 (
runner_s__up VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Runner(s)-up, when Tournament is MCI Classic?
### Query: SELECT runner_s__up FROM table_name_75 WHERE tournament = "mci classic... |
### Context: CREATE TABLE roller_coaster (
roller_coaster_id number,
name text,
park text,
country_id number,
length number,
height number,
speed text,
opened text,
status text
)
CREATE TABLE country (
country_id number,
name text,
population number,
area number,
... |
### Context: CREATE TABLE invoices (
billing_city VARCHAR,
billing_state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the number of invoices from Chicago, IL.
### Query: SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state =... |
### Context: CREATE TABLE table_18795125_6 (
date_of_appointment VARCHAR,
position_in_table VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of appointment for the manager of the 23rd team?
### Query: SELECT date_of_appointment FROM table_18... |
### Context: CREATE TABLE table_28835 (
"Rnd" real,
"Circuit" text,
"Lites 1 Race One Winning Team" text,
"Lites 2 Race One Winning Team" text,
"Lites 1 Race Two Winning Team" text,
"Lites 2 Race Two Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables prov... |
### Context: CREATE TABLE Staff (
staff_id INTEGER,
staff_name VARCHAR(255),
gender VARCHAR(1),
other_staff_details VARCHAR(255)
)
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
contact_staff_id INTEGER,
engineer_id INTEGER,
fault_log_entry_id INTEGER,
fault_status VARCHA... |
### Context: CREATE TABLE table_name_55 (
miss_maja_pilipinas VARCHAR,
second_runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?
### Query: SELECT miss_maja_pilipinas FR... |
### 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 bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text... |
### Context: CREATE TABLE table_name_77 (
away_team VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team when the home team was South Melbourne?
### Query: SELECT away_team FROM table_name_77 WHERE home_team = "south melb... |
### Context: CREATE TABLE features (
feature_id number,
feature_details text
)
CREATE TABLE royal_family (
royal_family_id number,
royal_family_details text
)
CREATE TABLE visitors (
tourist_id number,
tourist_details text
)
CREATE TABLE shops (
shop_id number,
shop_details text
)
CR... |
### Context: CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
)
CREATE TABLE ref_colors (
color_code text,
colo... |
### Context: CREATE TABLE table_23501776_18 (
points INTEGER,
seed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If seed number is 2, what is the maximum amount of points?
### Query: SELECT MAX(points) FROM table_23501776_18 WHERE seed = 2 |
### Context: CREATE TABLE table_name_11 (
format VARCHAR,
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Format, when Region is United States?
### Query: SELECT format FROM table_name_11 WHERE region = "united states" |
### Context: CREATE TABLE table_64720 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of oct... |
### 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 game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Perce... |
### Context: CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE T... |
### Context: 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,
... |
### Context: CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
... |
### 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 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 table_1342359_2 (
district VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many districts does william b. oliver represent?
### Query: SELECT COUNT(district) FROM table_1342359_2 WHERE incumbent = "William B. ... |
### Context: CREATE TABLE table_47877 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had a grid of 2?
### Query: SELECT "Driver" FROM table_47877... |
### 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost ... |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_... |
### Context: CREATE TABLE table_21346767_3 (
age INTEGER,
geographical_regions VARCHAR,
hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least age for cibao central and santo domingo
### Query: SELECT MIN(age) FROM table_21346767_3 WHERE... |
### Context: CREATE TABLE table_name_58 (
district VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the district for the parish, Brough?
### Query: SELECT district FROM table_name_58 WHERE name = "brough" |
### Context: CREATE TABLE table_26222468_1 (
wins INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of wins?
### Query: SELECT MAX(wins) FROM table_26222468_1 |
### Context: CREATE TABLE table_25686 (
"Episode Number" text,
"Title" text,
"Villains" text,
"Director" text,
"Writer" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the writer of 'Face Off'?
### Query: SELECT ... |
### Context: CREATE TABLE table_29243 (
"Train No." real,
"Train Name" text,
"Arrival" text,
"Departure" text,
"Days" text,
"Platform No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many trains arrive at 11:00?
### Query: SELECT COUNT("... |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
rout... |
### Context: CREATE TABLE table_name_89 (
year_left VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did a team from North Dearborn leave?
### Query: SELECT year_left FROM table_name_89 WHERE school = "north dearborn" |
### Context: CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
... |
### Context: CREATE TABLE table_2668416_18 (
incumbent VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the district is Virginia 8, who is the Incumbent?
### Query: SELECT incumbent FROM table_2668416_18 WHERE district = "Virginia 8" |
### Context: CREATE TABLE table_69158 (
"Club" text,
"Sport" text,
"Began play" text,
"League" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the Club of western new york flash begin to play?
### Query: SELECT "Began play" FR... |
### Context: CREATE TABLE table_71575 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played on clay on 3 march 2012?
### Query: SELECT "Opponent" FROM table_71575 WHERE ... |
### Context: CREATE TABLE table_name_77 (
player VARCHAR,
years_in_orlando VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Player for Orlando in 1989 1991?
### Query: SELECT player FROM table_name_77 WHERE years_in_orlando = "1989–1991" |
### Context: CREATE TABLE table_47252 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### Context: CREATE TABLE table_203_803 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime... |
### Context: CREATE TABLE table_70493 (
"Venue" text,
"City" text,
"Tickets Sold / Available" text,
"Gross Revenue (1986)" text,
"Gross Revenue (2011)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were there sold/available in Barc... |
### Context: CREATE TABLE table_203_214 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the first member to be elected ?
### Query: SELECT "member... |
### Context: 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... |
### Context: CREATE TABLE table_80043 (
"Units" text,
"Type" text,
"Period used" text,
"Formed from" text,
"Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the trailers for formed from pan/pul/res cars
### Query: SELECT "Trailers" FRO... |
### Context: CREATE TABLE table_71473 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What label released a record on December 19, 2001?
### Query: SELECT "Label" FROM table_71473 ... |
### Context: CREATE TABLE table_18590048_1 (
rank INTEGER,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is Super Mario Land 2: 6 Golden Coins?
### Query: SELECT MIN(rank) FROM table_18590048_1 WHERE title = "Super Mario Land 2: 6 Golden Co... |
### Context: CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
-- Using valid SQLite, answer the following question... |
### 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,
... |
### Context: CREATE TABLE table_name_42 (
location VARCHAR,
college_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the location of the coimbatore medical college?
### Query: SELECT location FROM table_name_42 WHERE college_name = "coimbatore m... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE ... |
### Context: CREATE TABLE products (
product_name VARCHAR,
color_code VARCHAR
)
CREATE TABLE ref_colors (
color_code VARCHAR,
color_description VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the product names with the color description 'whi... |
### Context: CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatmen... |
### Context: CREATE TABLE table_name_89 (
nationality VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nation had 14 goals?
### Query: SELECT nationality FROM table_name_89 WHERE goals = 14 |
### Context: 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,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
YLJGDM tex... |
### Context: CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_... |
### Context: CREATE TABLE table_15824796_3 (
season__number INTEGER,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season began on december 5, 1953?
### Query: SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date ... |
### Context: CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(10),
most_popular_in varchar2(50)
)
CREATE TABLE song (
song_name varchar2(50... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
d... |
### Context: CREATE TABLE table_test_22 (
"id" int,
"ejection_fraction_ef" int,
"pregnancy_or_lactation" bool,
"child_pugh_class" string,
"hbv" bool,
"systolic_blood_pressure_sbp" int,
"active_infection" bool,
"leukocyte_count" int,
"hiv_infection" bool,
"left_ventricular_dysfunc... |
### Context: CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID 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,
meter_700 text,
... |
### 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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
di... |
### Context: CREATE TABLE table_14332822_1 (
coding VARCHAR,
genbank_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coding for hq021442 genbankid?
### Query: SELECT coding FROM table_14332822_1 WHERE genbank_id = "HQ021442" |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
C... |
### Context: CREATE TABLE table_name_53 (
attendance VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for the game that has a record of 1-1?
### Query: SELECT attendance FROM table_name_53 WHERE record = "1-1" |
### Context: CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE SuggestedEdits (
Id... |
### Context: CREATE TABLE table_78203 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did they play before week 2?
### Query: SELECT "Date" FROM ... |
### Context: CREATE TABLE Accounts (
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all customer ids and the number of accounts for each customer.
### Query: SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id |
### Context: CREATE TABLE table_train_170 (
"id" int,
"alt" float,
"hemoglobin_a1c_hba1c" float,
"ast" float,
"allergy_to_peanuts" bool,
"a1c" float,
"bilirubin" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- hba1c > 5.9 ... |
### Context: CREATE TABLE table_27094070_4 (
overall_total INTEGER,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall total for the Omaha Nighthawks?
### Query: SELECT MIN(overall_total) FROM table_27094070_4 WHERE team = "Omaha Nighth... |
### Context: CREATE TABLE table_25000 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which province is Villa Bison in?
### Query... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug... |
### Context: CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
d... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age tex... |
### Context: CREATE TABLE table_1507 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what date is the opponent is chicago bears?
### Qu... |
### Context: CREATE TABLE table_9795 (
"Actor" text,
"Role" text,
"Status" text,
"Number Of Episodes" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Number Of Episodes, when Notes is 'Moved to run a farm with boyfriend Jake.'?
... |
### Context: CREATE TABLE table_50908 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the location where justin robbins fought agai... |
### 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (... |
### Context: CREATE TABLE Assets (
asset_id INTEGER,
maintenance_contract_id INTEGER,
supplier_company_id INTEGER,
asset_details VARCHAR(255),
asset_make VARCHAR(20),
asset_model VARCHAR(20),
asset_acquired_date DATETIME,
asset_disposed_date DATETIME,
other_asset_details VARCHAR(255)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.