text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_name_93 (
player VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from south africa?
### Query: SELECT player FROM table_name_93 WHERE country = "south africa" |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gende... |
### Context: CREATE TABLE laptimes (
raceid number,
driverid number,
lap number,
position number,
time text,
milliseconds number
)
CREATE TABLE results (
resultid number,
raceid number,
driverid number,
constructorid number,
number number,
grid number,
position numbe... |
### 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 icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id... |
### 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 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_76792 (
"Pick" real,
"Pos." text,
"Nationality" text,
"Team" text,
"Previous team" text,
"NBA years [a ]" text,
"Career with the franchise [b ]" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many NBA year... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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_... |
### 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 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
... |
### Context: CREATE TABLE match (
Round real,
Location text,
Country text,
Date text,
Fastest_Qualifying text,
Winning_Pilot text,
Winning_Aircraft text
)
CREATE TABLE aircraft (
Aircraft_ID int(11),
Aircraft varchar(50),
Description varchar(50),
Max_Gross_Weight varchar(50)... |
### Context: CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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,
... |
### Context: CREATE TABLE table_24673 (
"State Rank by Revenue" real,
"Company Name" text,
"National Rank" real,
"Revenue ($billions) 2012 estimate" text,
"Headquarters City" text,
"Known for" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
rel... |
### Context: CREATE TABLE table_28972 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE appointment (
appointmentid VARCHAR,
START VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the id of the appointment with the most recent start date?
### Query: SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1 |
### Context: CREATE TABLE table_69962 (
"Season" text,
"Team" text,
"Racing team" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Drivers" text,
"Wins" text,
"Sprints wins" text,
"Main wins" text,
"Poles" text,
"Fastest Laps" text,
"Points" text
)
-- Using valid... |
### Context: CREATE TABLE table_25369796_1 (
position VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many team position scored 56 points?
### Query: SELECT COUNT(position) FROM table_25369796_1 WHERE points = "56" |
### Context: CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid in... |
### Context: CREATE TABLE table_26464364_1 (
us_viewers__million_ VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many million U.S. viewers watched the episode with the production code 3x6004?
### Query: SELECT us_viewers__millio... |
### Context: CREATE TABLE table_2570269_3 (
episode_title VARCHAR,
original_air_date__uk_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that aired on 13 august 1981?
### Query: SELECT episode_title FROM table_2570269_3 WHER... |
### Context: CREATE TABLE table_name_40 (
laps VARCHAR,
qual VARCHAR,
rank VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
##... |
### Context: CREATE TABLE table_21481 (
"Year" real,
"West Manila" text,
"East Manila" text,
"Consumer Price Index (2005=100)" text,
"West Manila as a share of 1996 real tariff" text,
"East Manila as a share of 1996 real tariff" text
)
-- Using valid SQLite, answer the following questions for ... |
### Context: CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
m... |
### Context: CREATE TABLE table_name_86 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has 12/1 as the date?
### Query: SELECT score FROM table_name_86 WHERE date = "12/1" |
### 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 jobs (
JO... |
### Context: CREATE TABLE table_34202 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the visitor chicago black hawks, and a Record of 1-1?
### Query: SELECT "Date" FRO... |
### Context: CREATE TABLE table_24301 (
"Census division" text,
"Area (km\u00b2)" text,
"Pop. (2011)" real,
"Pop. (2006)" real,
"Pop. (2001)" real,
"Pop. (1996)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different results of the po... |
### Context: CREATE TABLE table_23248910_6 (
high_points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who scored the highest points and how much against the raptors?
### Query: SELECT high_points FROM table_23248910_6 WHERE team = "Raptors" |
### Context: CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name ... |
### Context: CREATE TABLE table_name_26 (
january VARCHAR,
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the January climate figure for Eastman?
### Query: SELECT january FROM table_name_26 WHERE region = "eastman" |
### Context: CREATE TABLE table_name_89 (
points VARCHAR,
engine VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points for maserati v12 engines in 1968?
### Query: SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v... |
### Context: CREATE TABLE table_name_2 (
no_result VARCHAR,
wins VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?
### Query: SELECT no_result FROM table_name_2 WHERE... |
### Context: CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment... |
### Context: CREATE TABLE table_9404 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403?
### Query: SELECT "Count... |
### Context: CREATE TABLE table_42547 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent in the final when the outcome was r... |
### Context: CREATE TABLE table_203_663 (
id number,
"country" text,
"zone" text,
"national federation" text,
"#gm" number,
"#fide" number,
"national championship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of co... |
### 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 ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE PROFESSO... |
### Context: CREATE TABLE table_50414 (
"City" text,
"State" text,
"2010 population" text,
"Peak population (year)" text,
"Numeric decline from peak population" text,
"Percent decline from peak population" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... |
### Context: CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
dr... |
### Context: CREATE TABLE party (
Party VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE election (
Party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name of the party that has the most delegates.
### Query: SELECT T2.Party FROM election AS T1 JOIN... |
### 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 prescriptions (
subject_id text... |
### Context: CREATE TABLE table_31061 (
"Character" text,
"Original Cast, 2009" text,
"Revival Cast, 2010" text,
"Wales Cast, 2012" text,
"New Zealand Cast, 2012" text,
"Australian Cast, 2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In th... |
### 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 transfers (
row_id number,
subject_id nu... |
### Context: CREATE TABLE table_13259034_2 (
week INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what week was November 27, 1977?
### Query: SELECT MAX(week) FROM table_13259034_2 WHERE date = "November 27, 1977" |
### 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_63171 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Romaji Title has 11 Episodes, and a TV Station of fuji tv,... |
### Context: CREATE TABLE table_31262 (
"Name" text,
"Number" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Hometown" text,
"Last School/College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year is chris mcna... |
### Context: CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
me... |
### Context: CREATE TABLE table_name_55 (
event VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event had Edson Claas Vieira as an opponent?
### Query: SELECT event FROM table_name_55 WHERE opponent = "edson claas vieira" |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### 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 jybgb (
BBCJBW text,... |
### Context: CREATE TABLE table_22052 (
"# s Dam and GNIS query Link" real,
"# s Lake and GNIS query Link" real,
"# s Reservoir and GNIS query Link" real,
"Borough or Census area" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... |
### Context: CREATE TABLE table_name_64 (
silver INTEGER,
nation VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the silver for Germany and less than 2?
### Query: SELECT AVG(silver) FROM table_name_64 WHERE nation = "germany" AND r... |
### 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_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number... |
### 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 Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
... |
### 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 cost (
... |
### Context: CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE COURSE (... |
### Context: CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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... |
### Context: CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TA... |
### Context: CREATE TABLE table_38581 (
"Designation HD" text,
"Constellation" text,
"Date sent" text,
"Arrival date" text,
"Message" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date sent has cygnus as a constellation, and hd 190360 as a des... |
### Context: CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE photos (
id int,
camera_lens_id int,
... |
### 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 CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE VoteTypes (
Id number,
... |
### Context: CREATE TABLE table_name_78 (
species VARCHAR,
length__bp_aa_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Species has a Length (bp/aa) of 1154bp/358aa?
### Query: SELECT species FROM table_name_78 WHERE length__bp_aa_ = "1154bp/358aa" |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### 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_82 (
driver VARCHAR,
sponsor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drives for the sponsor w.h. bolin?
### Query: SELECT driver FROM table_name_82 WHERE sponsor = "w.h. bolin" |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALA... |
### Context: CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)... |
### Context: CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varch... |
### Context: CREATE TABLE web_client_accelerator (
name VARCHAR,
operating_system VARCHAR,
CONNECTION VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the name and os of web client accelerators that do not work with only a 'Broadband' type connect... |
### Context: CREATE TABLE table_16799784_12 (
year_named INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest year named for the name Tie Fluctus?
### Query: SELECT MAX(year_named) FROM table_16799784_12 WHERE name = "Tie Fluctus... |
### Context: CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
La... |
### Context: CREATE TABLE table_60240 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the 42 Against?
### Query: SELECT "Date" FROM table_60240 WHERE "A... |
### Context: CREATE TABLE table_73891 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the first episode in this season had what... |
### Context: 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,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM tex... |
### 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_25468 (
"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_name_74 (
high_rebounds VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the most rebounds in the game against New York?
### Query: SELECT high_rebounds FROM table_name_74 WHERE opponent = "new york" |
### Context: CREATE TABLE table_name_48 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory when the runner-up was Janet Coles?
### Query: SELECT margin_of_victory FROM table_name_48 WHERE ... |
### Context: CREATE TABLE table_48549 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team against the away team Norwich City?
### Query: SELECT "Home team" F... |
### Context: CREATE TABLE table_204_56 (
id number,
"year" number,
"song" text,
"us r&b" number,
"us rap" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- songs by del the funky homosapien that were within the top 30 rap singles ch... |
### Context: CREATE TABLE table_43870 (
"Score" text,
"Batsmen" text,
"Against" text,
"Location" text,
"Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score in 1929?
### Query: SELECT "Score" FROM table_43870 WHERE "Year" = '1929' |
### Context: CREATE TABLE table_name_26 (
country VARCHAR,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country is Player Sam Snead with a To par of less than 5 from?
### Query: SELECT country FROM table_name_26 WHERE to_pa... |
### Context: CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE ... |
### Context: CREATE TABLE table_12995531_3 (
episode_number INTEGER,
total_viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the episode number where the total viewers is 614000?
### Query: SELECT MIN(episode_number) FROM table_12995531_3 WHERE... |
### Context: CREATE TABLE table_name_32 (
total VARCHAR,
nation VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Greece, which is placed below 8?
### Query: SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece"... |
### Context: CREATE TABLE table_26736342_1 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the eposide that was watched by 1.95 million US viewers?
### Query: SELECT directed_by FROM table_26736342_1 ... |
### Context: CREATE TABLE table_name_19 (
elected INTEGER,
incumbent VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Incumbent Ed Towns elected with a district smaller than 10?
### Query: SELECT AVG(elected) FROM table_nam... |
### Context: CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
... |
### Context: CREATE TABLE table_name_13 (
league VARCHAR,
position VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Position of 7th of 24, and a Goals smaller than 24 is what league?
### Query: SELECT league FROM table_name_13 WHERE positio... |
### 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.
-- which animal type has th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.