text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
lon... |
### 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_43567 (
"Year" text,
"Matches" real,
"Wins" real,
"Losses" real,
"No Result" real,
"Win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of matches when the wins are less than 8, and losses of ... |
### 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 PostTags (
PostId number,
TagId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,... |
### Context: CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURE... |
### Context: CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE cite (
cite... |
### Context: CREATE TABLE table_72794 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school/club team did blue edwards play fo... |
### Context: CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
... |
### Context: CREATE TABLE region (
region_id number,
region_name text,
date text,
label text,
format text,
catalogue text
)
CREATE TABLE party (
party_id number,
minister text,
took_office text,
left_office text,
region_id number,
party_name text
)
CREATE TABLE party_ev... |
### Context: CREATE TABLE table_15887683_1 (
package_option VARCHAR,
television_service VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the package/options when the TV service is rai 3?
### Query: SELECT package_option FROM table_15887683_1 WHERE te... |
### 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 hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
... |
### Context: CREATE TABLE table_80451 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a finish of 19?
### Query: SELECT "Year" FROM table_80451 WHERE "Fin... |
### Context: CREATE TABLE table_name_94 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest crowd when north melbourne is the home side?
### Query: SELECT MAX(crowd) FROM table_name_94 WHERE home_team = "north melbo... |
### 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_67447 (
"Date" text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the game on 13 May?
### Query: SELECT "Record" FROM table_67447 WHE... |
### 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_11958 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when a save of ||25,354||63 43 occurred?
### Query: SELECT "Score" FROM table_... |
### 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_35957 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 1993\u201394" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team scored in gomel
### Query: SELECT "Team" FROM table_35957 WHERE... |
### Context: CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0... |
### 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_64912 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest rank of the United States with a time less than 24.63?
### Query: SELECT MIN(... |
### 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 patient ... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text... |
### Context: CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text... |
### Context: CREATE TABLE table_17319 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... |
### Context: CREATE TABLE table_68926 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chas... |
### 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid numb... |
### Context: CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId ... |
### 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 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_49035 (
"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 Name when Qual 2 is 1:15.582?
### Query: SELECT "Name" FROM table_49035 WHERE "Qual 2" = '... |
### Context: CREATE TABLE table_68387 (
"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.
-- In 2007, what player won player of the year?
### Query: SELECT "Play... |
### Context: CREATE TABLE table_36770 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid for the +2.2 secs time/retired?
### Query: SELECT AVG("Grid") FROM ... |
### 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 restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days te... |
### Context: CREATE TABLE table_name_96 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 1995 Grand Slam Tournament if 1990 is LQ?
### Query: SELECT 1995 FROM table_name_96 WHERE 1990 = "lq" |
### 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_54251 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance on august 15?
### Query: SELECT "Attendance" FROM... |
### Context: CREATE TABLE table_26590 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player for 22 events
### Query: SELECT "Player" FROM table_265... |
### Context: CREATE TABLE table_74821 (
"Rank" real,
"Name" text,
"Location" text,
"Height Metres / feet" text,
"Floors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank is the lowest one that has a Name of maribor cathedral?
### Query: SE... |
### Context: CREATE TABLE table_65324 (
"Year" real,
"Artist" text,
"Song" text,
"UK Chart" text,
"At Eurovision" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Song of the Year was 42 on the UK charts prior to 1994?
### Query: SELECT "Song" ... |
### 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_5558 (
"Election" text,
"Date" text,
"Mayor" text,
"Ward seats" text,
"Votes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Election of 1953?
### Query: SELECT "Date" FROM table_5558 WHERE "Election" = ... |
### Context: CREATE TABLE table_name_23 (
place VARCHAR,
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what place did Des Smyth, who scored less than 71, finish?
### Query: SELECT place FROM table_name_23 WHERE score < 71 AND p... |
### Context: CREATE TABLE table_16863 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position for player Blue Edwards?
### Q... |
### Context: CREATE TABLE table_name_59 (
agricultural_panel VARCHAR,
national_university_of_ireland INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of agriculatural panels of the composition with more than 3 National Universities of ... |
### 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 table_17057 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the school for the player who's hometown was Irvine, CA?
### Query: SELECT "S... |
### Context: CREATE TABLE table_36975 (
"Club" text,
"Played" 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, answer the followin... |
### 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_52689 (
"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.
-- How many people were in the crowd w... |
### Context: CREATE TABLE table_61592 (
"Province, Community" text,
"Contestant" text,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the geographical region for hometown Imbert?
### Qu... |
### 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 shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version... |
### Context: CREATE TABLE table_37492 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home has Philadelphia as the visitor, and decemb... |
### Context: CREATE TABLE table_train_257 (
"id" int,
"serum_bicarbonate" int,
"plasma_glucose_concentration" int,
"hemoglobin_a1c_hba1c" float,
"platelets" int,
"visual_impairment" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### 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_63991 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Serial numbers" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) retired" text
)
-- Using valid SQLite, answer the followin... |
### Context: CREATE TABLE table_name_62 (
category VARCHAR,
label VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What category did MCG get a nominee in?
### Query: SELECT category FROM table_name_62 WHERE label = "mcg" AND result = "nomi... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME ... |
### Context: CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subj... |
### 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,... |
### Context: CREATE TABLE table_32887 (
"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 team is travelling to play Haw... |
### Context: CREATE TABLE table_name_21 (
production_number VARCHAR,
series VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production number for Bell Hoppy in the MM Series?
### Query: SELECT COUNT(production_number) FROM tabl... |
### 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 table_32136 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of total for rank of 1
### Query: SELECT SUM("Total") FROM tab... |
### Context: CREATE TABLE table_name_95 (
worst_score VARCHAR,
best_score VARCHAR,
worst_dancer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the worst score for the worst dancer(s) john barnes, with a best score of 36?
### Query: SELECT wors... |
### 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_22410 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is episode 2 of garfield when episode 1 i... |
### Context: CREATE TABLE table_53133 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which constructor does Juan Manuel Fangio drive?
### Query: SELECT "Constructor" ... |
### Context: CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id number,
id number,
l... |
### Context: CREATE TABLE table_78379 (
"Season" text,
"1st Division" text,
"Relegated" text,
"2nd Division" text,
"Promoted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season was Norwich Union League promoted?
### Query: SELECT "Season" F... |
### Context: CREATE TABLE table_7780 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position in 2010 with team notes?
### Query: SELECT "Position" FROM table_778... |
### Context: CREATE TABLE table_name_4 (
silver INTEGER,
rank VARCHAR,
gold VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, an... |
### 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_name_8 (
opponents VARCHAR,
venue VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent at the League Play Offs at home?
### Query: SELECT opponents FROM table_name_8 WHERE venue = "hom... |
### 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_79 (
type VARCHAR,
faith VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Faith of , and a Name of greenway has what type?
### Query: SELECT type FROM table_name_79 WHERE faith = "–" AND name = "greenway" |
### Context: CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
... |
### Context: CREATE TABLE table_name_16 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2007 of the Grand Slam Tournaments in 2008?
### Query: SELECT 2007 FROM table_name_16 WHERE 2008 = "grand slam tournaments" |
### Context: CREATE TABLE table_52156 (
"Rank" real,
"List" text,
"Candidate name" text,
"Gender" text,
"Religion" text,
"Votes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank for antun salman?
### Query: SELECT AVG("Ra... |
### Context: CREATE TABLE table_20935 (
"Year (January)" real,
"Population (000)" real,
"Rural, %" real,
"Urban, %" real,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For how many years was the urban population 57%?
### Query: SELECT COU... |
### Context: CREATE TABLE table_27203 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many field goals had 59... |
### Context: CREATE TABLE table_203_711 (
id number,
"name" text,
"age" number,
"hometown" text,
"occupation" text,
"culinary p.o.v." text,
"eliminated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which contestant is the same age as chris... |
### Context: CREATE TABLE table_8333 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which studio grossed $83,531,958 and ranked lower than 13?
### Query: SELECT "Studio" FROM t... |
### Context: CREATE TABLE table_2841865_2 (
representative VARCHAR,
congress VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name is listed under representative for the 112th congress?
### Query: SELECT representative FROM table_2841865_2 WHERE congress... |
### Context: CREATE TABLE table_203_47 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"ot" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the scor... |
### Context: CREATE TABLE table_44878 (
"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 Justin Wilson's Team?
### Query: SELECT "Team" FROM table_44878 WHERE "Name" = 'justin wil... |
### Context: CREATE TABLE table_67799 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what venue was the result a draw?
### Query: SELECT "Venue" FROM table_67799 WHE... |
### Context: CREATE TABLE table_3808 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many new points were ea... |
### Context: CREATE TABLE table_name_72 (
draws INTEGER,
against VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of draws for against larger than 1228 with fewer than 1 wins?
### Query: SELECT SUM(draws) FROM table_name_72 WH... |
### Context: CREATE TABLE table_12294 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tabl... |
### Context: CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)... |
### Context: CREATE TABLE school (
TYPE VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the types of schools that have two schools.
### Query: SELECT TYPE FROM school GROUP BY TYPE HAVING COUNT(*) = 2 |
### Context: CREATE TABLE table_10028 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponent, when Record is 17-44?
### Query: SELECT "Opponent" FROM table_10028 WHERE "R... |
### Context: CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.