text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_24566 (
"Country" text,
"% of imports from Russia" text,
"% cut" text,
"Diversification" text,
"Gas storage" text,
"Alternative fuel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percent cunt for th... |
### Context: CREATE TABLE table_name_58 (
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that was directed by Terry Ingram?
### Query: SELECT written_by FROM table_name_58 WHERE directed_by = "terry ingr... |
### Context: CREATE TABLE table_name_48 (
city___state VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city was the circuit of mallala motor sport park?
### Query: SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sp... |
### Context: CREATE TABLE table_204_567 (
id number,
"team" text,
"location" text,
"stadium" text,
"capacity" number,
"manager" text,
"captain" text,
"kit manufacturer" text,
"shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... |
### Context: CREATE TABLE table_name_79 (
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the away team of north melbourne?
### Query: SELECT away_team AS score FROM table_name_79 WHERE away_team = "north melbourne" |
### Context: CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
bluetooth text
)
CREATE TABLE screen_mode (
graphics_mode number,
char_cells text,
pixels text,
hardware_colours number,
used_kb number,
... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
JCZB... |
### Context: CREATE TABLE table_26904 (
"Team" text,
"Slogan" text,
"Match1" real,
"Match2" real,
"Match3" real,
"Match4" real,
"Match5" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest score for match 2 w... |
### Context: CREATE TABLE table_15038 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest year that has no more than 0 points?
### Query: SELECT MAX("Year") FROM ... |
### Context: CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
ME... |
### Context: CREATE TABLE table_56614 (
"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 did the home team score when t... |
### Context: CREATE TABLE table_46206 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To Par, when Year(s) Won is '1968 , 1971'?
### Query: SELECT "To par" FROM tabl... |
### Context: CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
... |
### 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 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 table_9542 (
"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.
-- Where did the player who won in 1965 finish?
### Query: SELECT "Finis... |
### Context: CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major nu... |
### Context: CREATE TABLE table_72050 (
"Year" real,
"Office" text,
"Candidate" text,
"Popular Votes" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes did candice sjostrom receive?
### Query: SELECT AVG("Popular Vote... |
### 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_68550 (
"Wrestlers" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the wrestlers with days held of 428
### Query: SELECT "Wrestlers" FROM table_6855... |
### Context: CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE universi... |
### Context: CREATE TABLE table_name_26 (
chassis VARCHAR,
tyres VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Chassis has g Tyres before 1987?
### Query: SELECT chassis FROM table_name_26 WHERE tyres = "g" AND year < 1987 |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE... |
### Context: CREATE TABLE table_68548 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Entrant" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chassis for offy engine and 25th finish?
### Query: SELECT "Ch... |
### Context: CREATE TABLE table_18085 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, ans... |
### Context: CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar... |
### Context: CREATE TABLE table_name_52 (
college_junior_club_team__league_ VARCHAR,
nationality VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What College/Junior/Club Team (League) from Canada has a round smaller than 3?
### Query: SELE... |
### Context: CREATE TABLE aircraft (
aircraft_id number,
aircraft text,
description text,
max_gross_weight text,
total_disk_area text,
max_disk_loading text
)
CREATE TABLE pilot (
pilot_id number,
name text,
age number
)
CREATE TABLE airport (
airport_id number,
airport_nam... |
### Context: CREATE TABLE table_name_69 (
losses INTEGER,
wins VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of losses for entries with 15 wins and a position larger than 3?
### Query: SELECT SUM(losses) FROM ... |
### Context: CREATE TABLE table_24288 (
"Day" text,
"Stage" text,
"Time (GMT)" text,
"Name" text,
"Length" text,
"Winner" text,
"Time" text,
"Avg. spd." text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sta... |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
C... |
### Context: CREATE TABLE table_41636 (
"Driver" text,
"NOR 1" text,
"NOR 2" text,
"ZAN 1" text,
"ZAN 2" text,
"N\u00dcR 1" text,
"N\u00dcR 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What driver has 19 as the zan 1?
### Query: SELECT... |
### Context: CREATE TABLE table_3109 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode with a product... |
### Context: CREATE TABLE table_65951 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the athlete from Germany with notes of Q?
### Query: SELECT "Athlete" FROM table_65951 ... |
### Context: CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class tex... |
### Context: CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(15),
product_name VARCHAR(80),
product_price DOUBLE
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county... |
### Context: CREATE TABLE table_22771048_3 (
transit_connections VARCHAR,
station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the transit connections for capitol hill u
### Query: SELECT transit_connections FROM table_22771048_3 WHERE station = "Cap... |
### Context: CREATE TABLE table_51540 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks went to College of Letran?
### Query: SELECT COUNT("Pick") FROM ... |
### Context: CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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... |
### Context: CREATE TABLE table_16834 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from Marshall and played 1974-75?
#... |
### Context: CREATE TABLE table_4568 (
"Higher harmonics" text,
"Darwin" text,
"Period" text,
"Speed" text,
"Doodson coefficients" text,
"NOAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NOAA of the higher harmonics that have a D... |
### Context: CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerD... |
### Context: CREATE TABLE table_name_72 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the score for 30 april 1977
### Query: SELECT score FROM table_name_72 WHERE date = "30 april 1977" |
### 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 assignedto (
scientist number,
project text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE scientists (
ssn number,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the nam... |
### Context: CREATE TABLE table_name_79 (
event VARCHAR,
year VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event is before 1964 and has an athlete of l szl t bori gunnar nielsen?
### Query: SELECT event FROM table_name_79 WHERE y... |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_11891841_2 (
type VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type where the country is esp?
### Query: SELECT type FROM table_11891841_2 WHERE country = "ESp" |
### Context: CREATE TABLE table_67201 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country for the player Tiger Woods?
### Query: SELECT "Country" FROM table_67201 ... |
### Context: CREATE TABLE table_name_47 (
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average first prize of the tournament with a score of 279 ( 9)?
### Query: SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = "279 (–9)" |
### Context: CREATE TABLE table_20466963_4 (
date VARCHAR,
presenter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the episode in which the presenter is Johnny Vaughan?
### Query: SELECT date FROM table_20466963_4 WHERE presenter = "Joh... |
### Context: CREATE TABLE table_34063 (
"Name" text,
"Years" text,
"Seasons" real,
"Lost" real,
"Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons did Charles C. Farrell coach?
### Query: SELECT COUNT("Seasons") FROM table_34063... |
### Context: CREATE TABLE table_59830 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total attendance with a 1-0 result, at Venue H, and Round SF... |
### Context: CREATE TABLE table_name_84 (
record VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Laker's record when they played against Kansas City Kings?
### Query: SELECT record FROM table_name_84 WHERE opponent = "kansas cit... |
### Context: CREATE TABLE table_name_13 (
time VARCHAR,
local_networked VARCHAR,
ad_freq VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time that is networked has an ad freq of 20 minutes until 7pm?
### Query: SELECT time FROM table_name_13 WHERE l... |
### Context: CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
... |
### Context: CREATE TABLE table_204_589 (
id number,
"season" text,
"tier" number,
"division" text,
"pos." text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which division is listed only once ?
### Query: SELECT "division" FROM table... |
### Context: CREATE TABLE table_225099_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the state for reason for change is resigned may 15, 1820?
### Query: SELECT state__class_ FROM table_225099_3 WHERE re... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospital... |
### Context: CREATE TABLE table_name_97 (
date VARCHAR,
pilot VARCHAR,
type VARCHAR,
record_description VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Type of mi-10r, and a Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfy... |
### Context: CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- Using... |
### 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_ti... |
### Context: CREATE TABLE table_17880 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the player born who is 2.02m tall?
### Query: SELECT... |
### 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_57254 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for 21 january 2008
### Query:... |
### Context: CREATE TABLE table_204_210 (
id number,
"rnd" number,
"circuit" text,
"lmp1 winning team\nlmp1 winning drivers" text,
"lmp2 winning team\nlmp2 winning drivers" text,
"gt1 winning team\ngt1 winning drivers" text,
"gt2 winning team\ngt2 winning drivers" text,
"results" text
)
... |
### Context: CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
... |
### 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 zyjzjlb (
CYBQDM tex... |
### Context: CREATE TABLE table_name_12 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of attendance for week of 16
### Query: SELECT COUNT(attendance) FROM table_name_12 WHERE week = 16 |
### Context: CREATE TABLE table_30599 (
"No. in series" real,
"No. in season" 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.
-- Who wr... |
### Context: CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy... |
### Context: CREATE TABLE table_14345690_2 (
entered VARCHAR,
finished VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the 4th finisher enter?
### Query: SELECT entered FROM table_14345690_2 WHERE finished = "4th" |
### Context: CREATE TABLE table_2668336_19 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the candidates in the election where william wilson was the incumbent?
### Query: SELECT candidates FROM table_2668336_19 WHER... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (... |
### Context: CREATE TABLE table_54870 (
"Party" text,
"Results 2004" text,
"Ifop 11/12/08" text,
"Ifop 1/9/09" text,
"Ipsos 3/14/09" text,
"CSA 4/16/09" text,
"OpinionWay 4/17/09" text,
"Ifop 4/24/09" text,
"Ipsos 5/2/09" text,
"Ifop 5/11/09" text,
"OpinionWay 5/11/09" text
)... |
### Context: CREATE TABLE institution (
TYPE VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all the distinct institution types.
### Query: SELECT DISTINCT TYPE FROM institution |
### 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 PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS v... |
### Context: CREATE TABLE Customer_Address_History (
customer_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Contacts (
contact_id INTEGER,
customer_id INTEGER,
gender VARCHAR(1),
first_name VARCHAR(80),
last_name VARCHAR(50),
contact_phone V... |
### Context: CREATE TABLE table_73161 (
"Rnd" real,
"Race Name" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the report of the race... |
### 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 hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program (
program_id in... |
### 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_61 (
as_of_september_1 VARCHAR,
_2012 VARCHAR,
vs_all VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?
### Query: SELECT as_of_september_1, _20... |
### Context: CREATE TABLE table_11340432_1 (
information VARCHAR,
shadow_ridge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many informations does Michael Hawkins have?
### Query: SELECT COUNT(information) FROM table_11340432_1 WHERE shadow_ridge = "M... |
### Context: CREATE TABLE Project_Staff (
date_from VARCHAR,
date_to VARCHAR,
role_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When do all the researcher role staff start to work, and when do they stop working?
### Query: SELECT date_from, date_... |
### Context: CREATE TABLE table_name_4 (
opponent VARCHAR,
game VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent has a game less than 6, and april 17 as the date?
### Query: SELECT opponent FROM table_name_4 WHERE game < 6 AND ... |
### Context: CREATE TABLE room (
blockfloor VARCHAR,
blockcode VARCHAR
)
CREATE TABLE BLOCK (
blockfloor VARCHAR,
blockcode VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of rooms located on each block floor.
### Query: SELECT COUNT... |
### Context: CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text,
From text,
Arrival text,
Railway_ID int
)
CREATE TABLE railway_m... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER,
product_quantity VARCHAR(50),
other_order_item_details VARCHAR(255)
)
CREATE TABLE Product_Categories (
production_type_code VARCHAR(15),
product_type_description VARCHAR(80),
vat_rating... |
### Context: CREATE TABLE table_39680 (
"Year" text,
"Title" text,
"Role" text,
"Language" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title had Notes of 8 episodes?
### Query: SELECT "Title" FROM table_39680 WHERE "Notes" = ... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE table_5007 (
"Designation" text,
"Type" text,
"Length overall" text,
"Launch weight" text,
"Warhead weight" text,
"Range" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall length with a designation of s... |
### 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 table_name_63 (
city VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is in the country of Mayotte?
### Query: SELECT city FROM table_name_63 WHERE country = "mayotte" |
### 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 wdmzjzjlb (
CYBQDM t... |
### Context: CREATE TABLE table_71804 (
"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.
-- What Player has a To par of +1 and the Score 75-70-71-73=289?
### Que... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.