text stringlengths 197 8.39k |
|---|
### 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_76 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Score of 2 3 ot on what date?
### Query: SELECT date FROM table_name_76 WHERE score = "2–3 ot" |
### 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 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 prescriptions (
subject_id text... |
### Context: CREATE TABLE table_name_29 (
type VARCHAR,
locomotive_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type is locomotive CTN 1364?
### Query: SELECT type FROM table_name_29 WHERE locomotive_number = "ctn 1364" |
### 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 demographic (
subject_id text,
... |
### Context: CREATE TABLE table_name_47 (
league VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the league name that has a Games listing of 10?
### Query: SELECT league FROM table_name_47 WHERE games = "10" |
### Context: CREATE TABLE table_1939235_1 (
playoffs VARCHAR,
open_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When it's the 2nd round of the open cup what is the playoffs?
### Query: SELECT playoffs FROM table_1939235_1 WHERE open_cup = "2nd Round" |
### Context: CREATE TABLE table_39197 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the newest Season in which had 0 Podiums, and having... |
### Context: CREATE TABLE table_10884 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has the Event, Strikeforce, and Method, ... |
### Context: CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABL... |
### Context: CREATE TABLE table_name_55 (
american_labor_ticket VARCHAR,
socialist_ticket VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
### Query: SELECT american_lab... |
### 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_85 (
rank INTEGER,
name VARCHAR,
lane VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Meagen Nay's rank with a lane greater than 5?
### Query: SELECT SUM(rank) FROM table_name_85 WHERE name = "meagen nay" AND ... |
### Context: CREATE TABLE table_16586 (
"Country" text,
"Carbon dioxide emissions per year (10 6 Tons) (2006)" real,
"Percentage of global total" text,
"Avg. emission per km 2 of its land (tons)" real,
"Carbon dioxide emissions per year (Tons per person) (2007)" text
)
-- Using valid SQLite, answe... |
### Context: CREATE TABLE table_204_622 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did piotr place 1st in the 4x400m rela... |
### Context: CREATE TABLE table_73384 (
"S No" real,
"Team (A)" text,
"Team (B)" text,
"Winner" text,
"Margin" text,
"Match Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games were won by a margin of 131 runs?
### Query: SELECT ... |
### Context: CREATE TABLE table_51131 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team nickname of university of wisconsin-pl... |
### Context: CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
... |
### Context: CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (... |
### Context: CREATE TABLE table_43059 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Centerfold model when O.J. Simpson was the Intervie... |
### Context: CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
-- Using valid S... |
### Context: CREATE TABLE table_4155 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team drafted a player from Sweden?
### Que... |
### Context: CREATE TABLE table_name_37 (
election VARCHAR,
total_seats VARCHAR,
seats VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the total number of seats is under 144, and the seats won is 32, which election is this?
### Query: SELECT election ... |
### Context: CREATE TABLE table_15829 (
"Ranking" real,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had fewer goals than 4 during the years of 1996 13?
### Query: SELECT MIN("Goals") FRO... |
### Context: CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY ... |
### Context: CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Pr... |
### Context: CREATE TABLE table_1825751_14 (
delegate VARCHAR,
pageant VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
### Query: SELECT delegate FROM ta... |
### 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 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 Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_coun... |
### Context: CREATE TABLE table_24563 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... |
### Context: CREATE TABLE table_name_94 (
rounds VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds did Nil Montserrat drive in?
### Query: SELECT rounds FROM table_name_94 WHERE driver = "nil montserrat" |
### Context: CREATE TABLE table_40735 (
"Year" real,
"Chart" text,
"Track" text,
"Peak" real,
"Weeks on Chart" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Peak with fewer than 8 Weeks on Chart?
### Query: SELECT MIN("Peak") FR... |
### Context: CREATE TABLE table_203_137 (
id number,
"title" text,
"album details" text,
"peak chart positions\nus" number,
"peak chart positions\nus r&b" number,
"certifications" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what albume peaked... |
### Context: CREATE TABLE table_name_66 (
overall INTEGER,
name VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Overall has a Name of bob anderson, and a Round smaller than 9?
### Query: SELECT AVG(overall) FROM table_name_66 WHERE n... |
### Context: CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15)... |
### Context: CREATE TABLE table_name_94 (
away_team VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team goes against the home team Mauritius?
### Query: SELECT away_team FROM table_name_94 WHERE home_team = "mauritius" |
### Context: CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmitti... |
### Context: CREATE TABLE table_12658 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power at Baguio where the frequency is 102.3mhz?
### Query: SELECT ... |
### Context: CREATE TABLE table_name_14 (
constructor VARCHAR,
grid VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constructor has a Grid smaller than 18, and a Driver of mika h kkinen?
### Query: SELECT constructor FROM table_name... |
### Context: CREATE TABLE table_33210 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who from Conquest Racing had the best time of 1:34.748 in Qual 1?
### Query: SELECT "Best" FROM ta... |
### Context: CREATE TABLE table_name_20 (
constructor VARCHAR,
country VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constructor is from ITA with a rank less than 13?
### Query: SELECT constructor FROM table_name_20 WHERE country = ... |
### Context: CREATE TABLE table_203_793 (
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 is the total number of fifa world... |
### Context: CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide... |
### 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_99 (
opponent VARCHAR,
type_of_game VARCHAR,
results¹ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent played a 1990 wcq type of game, where the results were 0:0?
### Query: SELECT opponent FROM table_na... |
### Context: CREATE TABLE table_20217811_1 (
electorate VARCHAR,
united_future VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the electoraate for united future being 4.47%
### Query: SELECT electorate FROM table_20217811_1 WHERE united_future = "4.47%" |
### Context: CREATE TABLE table_52973 (
"Goalkeeper" text,
"Goals" real,
"Matches" real,
"Average" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For averages of 1.58 and matches under 38, what is the average number of goals?
### Query... |
### Context: CREATE TABLE table_76385 (
"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 manufacturer (
Manufacturer_ID int,
Open_Year real,
Name text,
Num_of_Factories int,
Num_of_Shops int
)
CREATE TABLE furniture (
Furniture_ID int,
Name text,
Num_of_Component int,
Market_Rate real
)
CREATE TABLE furniture_manufacte (
Manufacturer_ID in... |
### Context: CREATE TABLE table_40144 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were driven when the time/retired is +44.284?
### Query: SELECT COUNT("... |
### Context: CREATE TABLE table_3525 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the theme for Audition week?
### Query: SELECT "Them... |
### 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutp... |
### Context: CREATE TABLE table_name_61 (
joined INTEGER,
nickname VARCHAR,
enrollment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?
### Query: SELECT SUM(joined) FROM table_n... |
### Context: CREATE TABLE table_19317 (
"Barangay" text,
"Population (2010)" real,
"Economic Class" text,
"Land Area (In sqm.)" real,
"Punong Barangay (Term 2010-2013)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the economic class for punon... |
### Context: CREATE TABLE customers (
country VARCHAR,
first_name VARCHAR,
last_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country does Roberto Almeida live?
### Query: SELECT country FROM customers WHERE first_name = "Roberto" AND last_na... |
### Context: CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
... |
### Context: CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE repair_assignment (
technician_id int,
repair_ID int,
Machine_ID int
)
CREATE TABLE repair (
repair_ID int,
... |
### Context: CREATE TABLE table_204_51 (
id number,
"week #" text,
"theme" text,
"song choice" text,
"original artist" text,
"order #" number,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs was claudio zoli the origin... |
### Context: CREATE TABLE table_55317 (
"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 is Home team Venue for the haw... |
### Context: CREATE TABLE table_46139 (
"Title" text,
"Author" text,
"ISBN UK" text,
"ISBN US" text,
"TV companions featured" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ISBN UK, when Author is 'Dave Martin', and when ISBN US is 'N/A'?
#... |
### 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 table_3325 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name... |
### Context: CREATE TABLE table_name_59 (
opponent VARCHAR,
week VARCHAR,
stadium VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opposing team at Schaefer Stadium later in the season than week 7?
### Query: SELECT opponent FROM table_name_59... |
### Context: CREATE TABLE table_name_29 (
grid INTEGER,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest grid for Prince bira?
### Query: SELECT MIN(grid) FROM table_name_29 WHERE driver = "prince bira" |
### Context: CREATE TABLE table_203_125 (
id number,
"club" text,
"winners" number,
"runner-ups" number,
"winning years" text,
"runner-up years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last year that fk austria wien won the a... |
### Context: CREATE TABLE table_34752 (
"Rank" real,
"Name" text,
"Headquarters" text,
"Primary industry" text,
"Market value ( USD million)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest rank of Deutsche Telekom with a market va... |
### Context: CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
... |
### Context: CREATE TABLE table_54886 (
"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 table_name_15 (
winning_driver VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winning driver for havana
### Query: SELECT winning_driver FROM table_name_15 WHERE circuit = "havana" |
### 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMEN... |
### Context: CREATE TABLE table_name_26 (
agricultural_panel INTEGER,
nominated_by_the_taoiseach VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger tha... |
### 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 mzjzjlb (
YLJGDM tex... |
### Context: CREATE TABLE table_62147 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Lee Trevino of the United States with a total greater than 294 had wh... |
### Context: CREATE TABLE table_name_83 (
years VARCHAR,
nationality VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Years, when Nationality is United States, and when Position is PG / SG?
### Query: SELECT years FROM table_name... |
### Context: CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcode text,
emp_hiredate time,
emp_dob time
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_73878 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Station Type" text,
"Power kW (ERP)" text,
"Location (Transmitter Site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The location (transmitter site) San ... |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
A... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### Context: CREATE TABLE table_name_87 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the manner of departure for date of appointment being 12 october 2007
### Query: SELECT manner_of_departure FROM... |
### Context: CREATE TABLE table_name_45 (
penalties INTEGER,
points_total VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least number of penalties he got when his point total was over 1419 in more than 98 games?
### Query: SE... |
### Context: CREATE TABLE table_31464 (
"Rank" real,
"Rider" text,
"Sat 20 Aug" text,
"Mon 22 Aug" text,
"Tues 23 Aug" text,
"Wed 24 Aug" text,
"Thurs 25 Aug" text,
"Fri 26 Aug" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is show... |
### 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_204_342 (
id number,
"#" number,
"player" text,
"span" text,
"caps" number,
"total caps" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players have spans above three years ?
### Quer... |
### Context: CREATE TABLE table_13665809_2 (
byu_uu_score VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many byu-uu score with winner being utah state (2 1) won over byu by media vote
### Query: SELECT COUNT(byu_uu_score) FROM table_136... |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 departments (
DEPARTME... |
### Context: CREATE TABLE table_41303 (
"Team" text,
"University" text,
"Location" text,
"Year entered league" real,
"2013\u201314 division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had a year entering the league under 2009, located... |
### Context: CREATE TABLE table_name_68 (
year INTEGER,
position VARCHAR,
class VARCHAR,
stages_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that has a car that won 0 stages with a position of DNF?
### Query: SELECT AV... |
### Context: CREATE TABLE table_67636 (
"Prod. No." text,
"Title" text,
"Written by" text,
"Directed by" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode originally aired on February 2, 2008?
... |
### 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10... |
### Context: CREATE TABLE table_2394 (
"District" text,
"Capital City" text,
"Area (km\u00b2)" real,
"Area (sq.mi)" real,
"Population (2005 est)" real,
"2-letter abbreviation" text,
"3-letter abbreviation" text
)
-- Using valid SQLite, answer the following questions for the tables provided... |
### Context: CREATE TABLE fgwyjzb (
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,
INSUR... |
### Context: CREATE TABLE table_63191 (
"Year" real,
"Title" text,
"Billboard Hot 100" text,
"UK Singles Chart" text,
"Album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the UK singles chart for the album psychotic supper, in the year 199... |
### 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 ReviewRejectionReasons (
Id number,
Name te... |
### 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.