text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_52253 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the pol... |
### 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 table_55675 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the time/retired with Laps of 47 and driver of ren arnoux
### Query: SELECT "... |
### Context: CREATE TABLE table_31661 (
"Date" text,
"Result" text,
"Opponent" text,
"Method" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What resulted after 4 rounds with Ed Mahone?
### Query: SELECT "Result" FROM table_31661 WHER... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE... |
### Context: CREATE TABLE table_16422 (
"Location" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the tuesday time wi... |
### Context: CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
... |
### Context: CREATE TABLE table_204_641 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the... |
### Context: CREATE TABLE diagnoses (
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,
reli... |
### Context: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time... |
### Context: CREATE TABLE table_1500 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Victory Margin (in lengths)" text,
"Runner up" text,
"Track" text,
"Surface" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables... |
### Context: CREATE TABLE table_name_60 (
year INTEGER,
chassis VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year with a mp4-17d chassis and less than 142 points.
### Query: SELECT MIN(year) FROM table_name_60 WHER... |
### Context: CREATE TABLE table_name_16 (
regular_season_champion_s_ VARCHAR,
record VARCHAR,
tournament_champion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Regular Season Champion(s) has a Record of 9 0, and a Tournament Champion of north caro... |
### Context: CREATE TABLE table_name_44 (
tickets_sold___available VARCHAR,
gross_revenue__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were sold/available when the gross revenue (2011) was $366,916?
### Query: SELECT tickets_sold__... |
### Context: CREATE TABLE table_name_74 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what place has score 66-74-68-73=281
### Query: SELECT place FROM table_name_74 WHERE score = 66 - 74 - 68 - 73 = 281 |
### 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_16388478_4 (
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team score where the home team is Fremantle?
### Query: SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle" |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
... |
### Context: CREATE TABLE gyb (
CLINIC_ID 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,
INSURED_STS text,
INSU_TYPE... |
### Context: CREATE TABLE table_name_82 (
acquisition_via VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the acquisition via that has a school or club team of state?
### Query: SELECT acquisition_via FROM table_name_82 WHE... |
### Context: CREATE TABLE table_40981 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank for Viktors Dobrecovs with less than 325 Matches?
### Query: SELECT AVG("Rank") ... |
### Context: CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit i... |
### Context: CREATE TABLE table_47383 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Term Start date of the Progressive Party Prime Minister?
### Que... |
### Context: CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDis... |
### Context: CREATE TABLE table_66073 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text,
"Mobile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of... |
### Context: CREATE TABLE table_66747 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with the time 3:59?
### Query: SELECT "O... |
### Context: CREATE TABLE table_73724 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Youth Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Most Courageous" text,
"Team Classification" text
)
-- Using valid SQLite, answer the followi... |
### 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_42497 (
"Year" real,
"Winner" text,
"School" text,
"Position" text,
"Points" text,
"% of Points Possible" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year of the winner from the army school, plays t... |
### Context: CREATE TABLE table_name_94 (
romaji_title VARCHAR,
japanese_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which romaji title, has Japanese title of 3?
### Query: SELECT romaji_title FROM table_name_94 WHERE japanese_title = "菊次郎とさき 3" |
### Context: CREATE TABLE table_49456 (
"Year" real,
"Album" text,
"Artist" text,
"Song" text,
"Note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist was 2003?
### Query: SELECT "Artist" FROM table_49456 WHERE "Year" = '2003' |
### Context: CREATE TABLE table_36337 (
"ISSN" text,
"Language" text,
"Country" text,
"Frequency" text,
"Publication range" text,
"Status" text,
"Document Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the language for a journa... |
### Context: CREATE TABLE table_name_14 (
tournament VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament on august 17, 2008?
### Query: SELECT tournament FROM table_name_14 WHERE date = "august 17, 2008" |
### Context: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDat... |
### Context: CREATE TABLE table_25549 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Margin of victory" text,
"Tournament location" text,
"Purse ( $ )" real,
"Winners share ($)" real
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
... |
### Context: CREATE TABLE table_name_35 (
call_sign VARCHAR,
frequency_mhz VARCHAR,
erp_w VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?
### Query: SELECT call_sign FROM tabl... |
### Context: CREATE TABLE table_name_39 (
michelle INTEGER,
discipline VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did michelle do in archery?
### Query: SELECT AVG(michelle) FROM table_name_39 WHERE discipline = "archery" |
### Context: CREATE TABLE table_28498999_6 (
reset_points VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of pieces where the person is charley hoffman
### Query: SELECT COUNT(reset_points) FROM table_28498999_6 WHERE playe... |
### 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
... |
### Context: CREATE TABLE table_name_28 (
to_par VARCHAR,
finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the finish was t31 what was the To par?
### Query: SELECT to_par FROM table_name_28 WHERE finish = "t31" |
### Context: CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold and silver medals in total did china r... |
### 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 Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIM... |
### Context: CREATE TABLE mzb (
CLINIC_ID 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,
INSURED_STS text,
INSU_TYPE... |
### 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_52319 (
"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 the score of the Home team ... |
### Context: CREATE TABLE table_name_32 (
number VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number has 2002-2003 as the season?
### Query: SELECT number FROM table_name_32 WHERE season = "2002-2003" |
### 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_59996 (
"Election" text,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first party with second member Hon. Rowland Hill, in th... |
### Context: CREATE TABLE table_12094300_1 (
interview VARCHAR,
preliminaries VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the interview score when the preliminaries score is 8.400?
### Query: SELECT interview FROM table_12094300_1 WHERE prelimina... |
### Context: CREATE TABLE table_25061 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many height entries are there f... |
### Context: CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostL... |
### Context: CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
... |
### Context: CREATE TABLE table_name_10 (
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date is Hawthorn the home team?
### Query: SELECT date FROM table_name_10 WHERE home_team = "hawthorn" |
### Context: CREATE TABLE table_16519 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest attendance that East End Park has ever had?
### Que... |
### Context: CREATE TABLE table_20730 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many days was... |
### Context: CREATE TABLE table_name_60 (
rank INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's jim colbert's highest rank?
### Query: SELECT MAX(rank) FROM table_name_60 WHERE player = "jim colbert" |
### Context: CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active te... |
### Context: CREATE TABLE table_name_94 (
partner VARCHAR,
score_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Partner has a Score in Final of 6 1, 6 2?
### Query: SELECT partner FROM table_name_94 WHERE score_in_final = "6–1, 6–2" |
### 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 table_64018 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of golds for teams with 1 bronze, less than 3 silver... |
### 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_16341 (
"Model" text,
"RU" real,
"Max processors" text,
"Processor frequency" text,
"Max memory" text,
"Max disk capacity" text,
"GA Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ga date do the mod... |
### Context: CREATE TABLE table_29046 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result in th... |
### Context: CREATE TABLE table_38173 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament had a 2009 result of 1R?
### Query: SELECT "Tournament" FROM table_38173 WHERE ... |
### Context: CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only year that did not qualif... |
### Context: CREATE TABLE table_7779 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition took place in a year later than 2009 with team notes?
### Query: SELECT "... |
### 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_name_64 (
race INTEGER,
flap VARCHAR,
podium VARCHAR,
pole VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many races had 4 podiums, 5 poles and more than 3 Flaps?
### Query: SELECT SUM(race) FROM table_name_64 WHE... |
### 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_74416 (
"Name" text,
"Country" text,
"Years" text,
"Games" real,
"Minutes" real,
"Conceded" real,
"Shutouts" real,
"Int. caps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest overall amou... |
### Context: CREATE TABLE table_name_41 (
previous_conference VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The school of Portage was in what conference previous?
### Query: SELECT previous_conference FROM table_name_41 WHERE school = "port... |
### Context: CREATE TABLE table_name_12 (
channel INTEGER,
aspect VARCHAR,
psip_short_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest Channel with an Aspect of 4:3, and a PSIP Short Name of ibc-tv?
### Query: SELECT MAX(channel) FRO... |
### Context: CREATE TABLE table_65125 (
"Player" text,
"Int'l Debut" text,
"Year" text,
"Cross Code Debut" text,
"Date" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Coenraad Breytenbach have their Int'l Debut?
#... |
### Context: CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABL... |
### Context: CREATE TABLE table_38292 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?
### Query: SELECT COU... |
### Context: CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
... |
### 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 PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Comments (
Id number,
PostId number,
... |
### Context: CREATE TABLE table_12834315_5 (
name VARCHAR,
barrel_profile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What models have an a2 barrel profile?
### Query: SELECT name FROM table_12834315_5 WHERE barrel_profile = "A2" |
### 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_36553 (
"Year" real,
"Title" text,
"Format" text,
"Label" text,
"Catalogno" text,
"Remark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What catalogno was in 1971 and had a remark of #27 us?
### Query: SELECT "... |
### Context: CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDis... |
### Context: CREATE TABLE table_26173063_2 (
× VARCHAR,
faisaly VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is x when faisaly is 0-0?
### Query: SELECT × FROM table_26173063_2 WHERE faisaly = "0-0" |
### Context: CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icusta... |
### Context: CREATE TABLE table_24786958_2 (
attendance INTEGER,
game_site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game at Jahn-sportpark?
### Query: SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = "Jahn-Sp... |
### 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 table_40464 (
"Rank by average" text,
"Place" text,
"Perfect 40s" text,
"Total" text,
"Number of dances" text,
"Season" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place in season 8 w... |
### Context: CREATE TABLE table_19475 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Peoples Party" text,
"Green-Communist" text,
"Left Bloc" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provide... |
### Context: CREATE TABLE table_name_67 (
bob_dole VARCHAR,
george_hw_bush VARCHAR,
pat_robertson VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?
### Query: SELECT bob_dole ... |
### Context: CREATE TABLE table_31873 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- 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_31873 WHERE "Date" ... |
### Context: CREATE TABLE table_204_228 (
id number,
"year" number,
"title" text,
"credit" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was released in 2011 , undefeated or freakonomics ?
### Query: SELECT "ti... |
### Context: CREATE TABLE table_name_11 (
team VARCHAR,
year VARCHAR,
versus VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team played against zimbabwe in 1999?
### Query: SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe" |
### Context: CREATE TABLE table_43402 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Skip for Germany?
### Query: SELECT "Skip" FR... |
### Context: CREATE TABLE table_7750 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Gold, when Total is less than 1?
### Query: SELECT SUM("Gold... |
### Context: CREATE TABLE table_69574 (
"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.
-- What is the highest total with a t12 finish?
### Query: SELECT MAX("... |
### Context: CREATE TABLE table_12454 (
"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 is the result week 1?
### Query: SELECT "Res... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.