text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEG... |
### Context: CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate... |
### Context: CREATE TABLE Person (
age INTEGER,
job VARCHAR
)
CREATE TABLE person (
age INTEGER,
job VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of people whose age is greater than all engineers.
### Query: SELECT COUNT(*) FROM P... |
### Context: CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConc... |
### 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 t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE 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 jyjgzbb (
BGDH text,... |
### Context: CREATE TABLE qtb (
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 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 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 pilot_record (
Record_ID int,
Pilot_ID int,
Aircraft_ID int,
Date text
)
CREATE TABLE pilot (
Pilot_ID int,
Pilot_name text,
Rank int,
Age int,
Nationality text,
Position text,
Join_Year int,
Team text
)
CREATE TABLE aircraft (
Aircraft_ID ... |
### Context: CREATE TABLE table_203_158 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which game did the op... |
### Context: CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
-- Using valid SQLite... |
### Context: CREATE TABLE table_44711 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the best time for a team with a first-qualifying time of 59.448?
### Query: SELECT "Best" ... |
### 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 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 course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
ha... |
### Context: CREATE TABLE table_20396_1 (
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team scored 4 points?
### Query: SELECT team FROM table_20396_1 WHERE points = "4" |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
v... |
### Context: CREATE TABLE table_name_69 (
driver VARCHAR,
zan_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What driver has 5 as the zan 2?
### Query: SELECT driver FROM table_name_69 WHERE zan_2 = "5" |
### Context: CREATE TABLE table_54722 (
"Superlative" text,
"Actress" text,
"Record Set" text,
"Year" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the last year when Katharine Hepburn won?
### Query: SELECT MAX("Year") FROM... |
### 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_name_71 (
home_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team's venue is junction oval?
### Query: SELECT home_team FROM table_name_71 WHERE venue = "junction oval" |
### Context: CREATE TABLE table_name_82 (
attendance__away_ INTEGER,
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average attendance with result of won 2-0 on 2 november 2007
### Query: SELECT AVG(attendance__away_) FROM ... |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
### Context: CREATE TABLE table_name_26 (
wins INTEGER,
loses VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Wins have Losses larger than 2, and an Against of 73.3?
### Query: SELECT SUM(wins) FROM table_name_26 WHERE loses > 2... |
### Context: CREATE TABLE table_2597 (
"Market Rank & City of license /Market" text,
"Station" text,
"Channel TV / DT" text,
"Owned since" real,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the station WLS-TV owned since?
#... |
### Context: CREATE TABLE table_name_89 (
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Geelong play as the home team?
### Query: SELECT date FROM table_name_89 WHERE home_team = "geelong" |
### Context: CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text... |
### Context: CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased bool... |
### Context: CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_tr... |
### 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_47901 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
)
CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year ... |
### Context: CREATE TABLE table_33801 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the medal named fatuma roba category:articles with hcards for?
### Query: SELECT "Medal" F... |
### Context: CREATE TABLE table_74677 (
"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.
-- On what date does Essendon play as ... |
### 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_name_90 (
pick VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the pick from the Purdue College?
### Query: SELECT pick FROM table_name_90 WHERE college = "purdue" |
### Context: CREATE TABLE table_23332 (
"District" real,
"Representative" text,
"Party" text,
"Residence" text,
"Counties represented" text,
"Term ends" real,
"First Elected" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the party for ... |
### Context: CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Eve... |
### Context: CREATE TABLE fzzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM tex... |
### Context: CREATE TABLE table_name_24 (
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Away Team score of North Melbourne?
### Query: SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne" |
### Context: CREATE TABLE table_42169 (
"Date" text,
"Opponent" text,
"Score" text,
"Site/Stadium" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game played at Harmon Stadium on February 24?
### Query: SELE... |
### 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_45320 (
"Year" real,
"Program Title" text,
"Placement" text,
"Score" real,
"Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest score for a year before 2008 and had 3rd place?
### Query: SELECT M... |
### Context: CREATE TABLE table_train_111 (
"id" int,
"mini_mental_state_examination_mmse" int,
"liver_disease" bool,
"geriatric_depression_scale_gds" int,
"rosen_modified_hachinski_ischemic_score" int,
"plasma_creatinine" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following ... |
### Context: CREATE TABLE table_56059 (
"\\theta_i" real,
"Simulated datasets (step 2)" text,
"Summary statistic \\omega_{S,i} (step 3)" real,
"Distance \\rho(\\omega_{S,i}, \\omega_E) (step 4)" real,
"Outcome (step 4)" text
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### Context: CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name a horse that placed after ... |
### Context: CREATE TABLE table_name_46 (
terms VARCHAR,
left_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many terms did the governor that left office on August 4, 1825 serve?
### Query: SELECT terms FROM table_name_46 WHERE left_office = "aug... |
### Context: CREATE TABLE table_6607 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which visitor has detroit as the home, and february 24 as the date?
### Query: SELECT "Visitor" F... |
### Context: CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTE... |
### Context: CREATE TABLE table_25103 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the vacator for resigned february 26, 1836 because of il... |
### Context: CREATE TABLE table_train_57 (
"id" int,
"bleeding" int,
"in_another_study" bool,
"hiv_infection" bool,
"hepatitis_c_infection" bool,
"receiving_vasopressor" bool,
"hypotension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provi... |
### 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_4 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament has a 2010 of 1r, and a 2008 of 1r?
### Query: SELECT tournament FROM table_name_4 WHERE 2010 = "1r" AND 2008 = "1r" |
### Context: CREATE TABLE table_2215159_2 (
outcome VARCHAR,
partner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the game when the partner is Rafael Osuna?
### Query: SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osu... |
### Context: CREATE TABLE table_11111116_8 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episodes that were viewed by 2.12 million viewers?
### Query: SELECT written_by FROM table_11111116_8 WHERE us... |
### 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_28585 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many elected catagories are there for the district with Saxby Cha... |
### Context: CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
... |
### Context: CREATE TABLE table_name_1 (
quantity INTEGER,
class_from_1928 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of Quantity for the Class of 1928 of CI-30?
### Query: SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "c... |
### Context: CREATE TABLE table_name_14 (
selsdon VARCHAR,
coombe_road VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Selsdon for the 17:19 Coombe Road?
### Query: SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19" |
### 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_39389 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release Date for the Region in New Zealand ?
### Query: SELECT "Date" FROM table... |
### Context: CREATE TABLE table_25750 (
"Position" real,
"Driver" text,
"Points" real,
"Starts" real,
"Wins" real,
"Top 5s" real,
"Top 10s" real,
"Winnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many drivers have 1942 po... |
### Context: CREATE TABLE table_204_530 (
id number,
"type" text,
"stage" number,
"cyclist" text,
"team" text,
"reason" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- daniel martin and joost posthuma both withdrew from the race because of what r... |
### Context: CREATE TABLE table_52552 (
"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.
-- Where did Carlton play as the home ... |
### 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_name_95 (
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2013 BAFA adult flag division in Aylesbury?
### Query: SELECT 2013 AS _bafa_adult_flag_division FROM table_name_95 WHERE location = "aylesbury" |
### Context: CREATE TABLE table_55084 (
"Series ^" text,
"Model" text,
"CPU clock ( MHz )" text,
"CPU cores" real,
"TDP ( W )" text,
"L2 cache (KiB)" text,
"Radeon cores" real,
"DDR3 speed" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... |
### Context: CREATE TABLE table_66142 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s... |
### 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_89 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the Indians play on April 23?
### Query: SELECT opponent FROM table_name_89 WHERE date = "april 23" |
### Context: CREATE TABLE table_76045 (
"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 bronze medals for total of all nations?
### Quer... |
### 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_30711 (
"Sl. No" real,
"Category wise" text,
"Single lane" real,
"Intermediate lane" real,
"Double lane" real,
"Multi lane" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least total?... |
### Context: CREATE TABLE table_74518 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average bronze for total less than 1
### Query: SELECT AVG("Bronze") ... |
### Context: CREATE TABLE vocals (
bandmate VARCHAR
)
CREATE TABLE band (
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which vocal type has the band mate with first name 'Solveig' played the most?
### Query: SELECT TYPE FROM vocals AS T1 JOIN band AS ... |
### Context: CREATE TABLE table_name_28 (
title VARCHAR,
language VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title is in Portuguese?
### Query: SELECT title FROM table_name_28 WHERE language = "portuguese" |
### Context: CREATE TABLE table_23640 (
"County" text,
"Obama %" text,
"Obama #" real,
"McCain %" text,
"McCain #" real,
"Others %" text,
"Others #" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of voters chose McCain in the... |
### Context: CREATE TABLE table_10333757_1 (
branding VARCHAR,
calls VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Branding does WRKO calls use?
### Query: SELECT branding FROM table_10333757_1 WHERE calls = "WRKO" |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... |
### Context: CREATE TABLE table_name_71 (
lecturers VARCHAR,
total VARCHAR,
associate_professors VARCHAR,
assistant_professors VARCHAR,
professors VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How may lecturers are there in the case when there a... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microl... |
### Context: CREATE TABLE table_2169966_2 (
avg_finish VARCHAR,
avg_start VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was his average finish when his average start was 27.7?
### Query: SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7" |
### Context: CREATE TABLE procedures (
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_... |
### Context: CREATE TABLE table_34831 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what series was on may 14
### Query: SELECT "Series" FROM table_34831 WHERE "Date" = 'may 14' |
### Context: CREATE TABLE table_1383 (
"Year" real,
"January" text,
"February" text,
"March" text,
"April" text,
"May" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text,
"Annual Additions(in millions)... |
### 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_25565 (
"R" real,
"Player" text,
"Position" text,
"League" real,
"Champions League" real,
"Copa del Rey" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most copa del rey for karim benzem... |
### Context: CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
... |
### 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medicati... |
### 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 table_48884 (
"Team" text,
"Make" text,
"Drivers" text,
"Tyre" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyot... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE ... |
### Context: CREATE TABLE table_65876 (
"World record" text,
"Snatch" text,
"Andrei Rybakou ( BLR )" text,
"187kg" text,
"Chiang Mai , Thailand" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has 187kg and a Snatch of Clean & Jerk?
### Query: S... |
### Context: CREATE TABLE table_203_165 (
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 more medals did india earn compared to paki... |
### Context: CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed in... |
### Context: CREATE TABLE table_50534 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?
### Query: SELECT "Seas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.