text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_47378 (
"Rank" real,
"Mountain Peak" text,
"Region" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the region when the location is 49.7462 n 117.1419 w?
### Query: SELE... |
### Context: CREATE TABLE table_25563779_4 (
champion VARCHAR,
third VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the third name is Bruno Bonifacio, what is the champion?
### Query: SELECT champion FROM table_25563779_4 WHERE third = "Bruno Bonifacio" |
### Context: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResults (
Id numbe... |
### Context: CREATE TABLE table_32900 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Browns' game that over 36,796 attended?
### Query: SELECT "Date" FROM table_3... |
### Context: CREATE TABLE table_31641 (
"Census year" real,
"Total" real,
"Macedonians" real,
"Albanians" real,
"Turks" real,
"Roma" real,
"Vlachs" real,
"Serbs" real,
"Bosniaks" real,
"Other" real
)
-- Using valid SQLite, answer the following questions for the tables provided ... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age tex... |
### Context: CREATE TABLE table_name_72 (
top_5 INTEGER,
tournament VARCHAR,
cuts_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?
### Query: SELECT AVG(t... |
### Context: CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided abov... |
### 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 city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE restriction (
restriction_code text,
... |
### Context: CREATE TABLE table_11058 (
"Year" real,
"Competition" text,
"Date" text,
"Surface" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition has a Year of 2008, a Surface of c... |
### Context: CREATE TABLE table_name_18 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest crowd that Melbourne played for at home?
### Query: SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne" |
### Context: CREATE TABLE table_68979 (
".308 Winchester cartridge type" text,
"100 m group (mm)" text,
"100 m group ( MOA )" text,
"300 m group (mm)" text,
"300 m group ( MOA )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the .308 Winch... |
### Context: CREATE TABLE table_1745843_7 (
part_4 VARCHAR,
part_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the part 4 for the verb whose part 3 is borgen?
### Query: SELECT part_4 FROM table_1745843_7 WHERE part_3 = "borgen" |
### Context: CREATE TABLE table_name_18 (
width INTEGER,
frame_size VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest width for a frame size of 5k and a height shorter than 2700?
### Query: SELECT MIN(width) FROM table_... |
### Context: CREATE TABLE table_63918 (
"Rank" real,
"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 Total number of medals for the Nation with 7 or less Bronze medals ... |
### 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_65441 (
"Position" text,
"Drivers" text,
"Entrant" text,
"Class" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For what class is the laps 66?
### Query: SELECT "Class" FROM table_65441 WHERE "Laps" = '6... |
### Context: CREATE TABLE manufacturers (
code VARCHAR,
name VARCHAR
)
CREATE TABLE products (
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find number of products which Sony does not make.
### Query: SELECT COUNT(DISTINCT name) FROM products WH... |
### Context: CREATE TABLE table_203_506 (
id number,
"opponent" text,
"played" number,
"won" number,
"lost" number,
"drawn" number,
"% won overall" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name two countries that the england women 's r... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput ... |
### Context: CREATE TABLE table_73783 (
"Song" text,
"Singer" text,
"Co-Singers" text,
"Music Director" text,
"Lyricist" text,
"Co-Stars" text,
"Movie/Album" text,
"Year" real,
"Additional Info" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... |
### Context: CREATE TABLE table_36730 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Incumbent that has a District of ohio 13 in Democratic Party?
### Quer... |
### Context: CREATE TABLE table_69011 (
"Year" text,
"Venue" text,
"Winners" text,
"Runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 3rd place when Runner-up shows as runner-up?
### Query: SELECT "3rd place... |
### Context: CREATE TABLE table_name_96 (
fifth VARCHAR,
sixth VARCHAR,
second VARCHAR,
first VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Austr... |
### Context: CREATE TABLE table_18620 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the first elected with candidates being joe starnes ... |
### Context: CREATE TABLE table_67936 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2009 result asso... |
### 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_name_24 (
away_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What away team played at Kardinia Park?
### Query: SELECT away_team FROM table_name_24 WHERE venue = "kardinia park" |
### Context: CREATE TABLE table_1602858_1 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory with the winning score '63-68-68-68=267'?
### Query: SELECT margin_of_victory FROM table_16028... |
### Context: CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE photos (
id int,
camera_lens_id int,
... |
### Context: CREATE TABLE table_54857 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the college that paul davis went to
### Query: SELECT "Coll... |
### Context: CREATE TABLE table_76671 (
"Driver" text,
"Team" text,
"Race 1" text,
"Race 2" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team received 4 in race 1?
### Query: SELECT "Team" FROM table_76671 WHERE "Race 1" = '4... |
### Context: CREATE TABLE table_44781 (
"Year" real,
"Month" text,
"Single" text,
"Album" text,
"Record label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the earliest year listed for 'where are you going to my love' from the album united ... |
### Context: CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
... |
### Context: CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int... |
### Context: CREATE TABLE table_name_16 (
member VARCHAR,
electorate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which member has Cook as the electorate?
### Query: SELECT member FROM table_name_16 WHERE electorate = "cook" |
### Context: CREATE TABLE table_name_4 (
soap_opera VARCHAR,
duration VARCHAR,
character VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the soap opera when the duration is 18 years and the character is miley byrne?
### Query: SELECT soap_opera F... |
### 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 ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
... |
### Context: 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTME... |
### Context: CREATE TABLE table_12496 (
"Lexton Plains" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which against has 14 losses?
### Query: SELECT "Against" FROM table_12... |
### Context: CREATE TABLE table_7184 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is HDTV, when Content is Cinema, when Package/Op... |
### Context: CREATE TABLE table_59052 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To Par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a To Par of 1?
### Query: SELECT MIN("Score") FROM table_59052 WHERE "To Par"... |
### Context: CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
... |
### 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_name_20 (
fumble_force VARCHAR,
solo VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many forced fumbles for jim laney with under 2 solo tackles?
### Query: SELECT COUNT(fumble_force) FROM table_name_20... |
### 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.
-- what is the name of the top hor... |
### Context: CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has friend... |
### Context: CREATE TABLE table_name_98 (
nation VARCHAR,
rank VARCHAR,
gold VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nation when gold is 0, bronze is more than 0 and rank is 16?
### Query: SELECT nation FROM table_... |
### Context: CREATE TABLE table_name_42 (
location VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location of the fight when Sara McMann's record was 1-0?
### Query: SELECT location FROM table_name_42 WHERE record = "1-0" |
### 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 table_35272 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 9:00 show that will be aired on the st... |
### Context: CREATE TABLE table_29106 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote 'Monica's bad day'?
### Query: SELECT "Writer" ... |
### Context: CREATE TABLE table_203_250 (
id number,
"name" text,
"type" text,
"r.a. (j2000)" text,
"dec. (j2000)" text,
"redshift (km/s)" text,
"apparent magnitude" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of irregular t... |
### 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
cos... |
### Context: CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round... |
### 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 table_26448179_4 (
title VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode with production code 305?
### Query: SELECT title FROM table_26448179_4 WHERE production_code = 305 |
### Context: CREATE TABLE organizations (
organization_id number,
date_formed time,
organization_name text,
uk_vat_number text
)
CREATE TABLE organization_contact_individuals (
individual_id number,
organization_id number,
date_contact_from time,
date_contact_to time
)
CREATE TABLE add... |
### Context: CREATE TABLE table_58211 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NBA draft result of the player from Dunbar High School?
... |
### 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_34 (
player VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player belongs to Northwestern College?
### Query: SELECT player FROM table_name_34 WHERE college = "northwestern" |
### Context: CREATE TABLE table_204_881 (
id number,
"round" number,
"date" text,
"score" text,
"opponent" text,
"opponent's score" text,
"result" text,
"venue" text,
"attendance" number,
"best on ground" text,
"team" text
)
-- Using valid SQLite, answer the following quest... |
### Context: CREATE TABLE table_16891 (
"Name of ground" text,
"Location" text,
"First-class span" text,
"Worcs f-c matches" real,
"List A span" text,
"Worcs LA matches" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- There were 68 worcs f-c matc... |
### Context: CREATE TABLE table_204_558 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of locations in the city of algonac ?
### Query: SELECT COUNT("lo... |
### 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
se... |
### Context: CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fa... |
### 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_4223 (
"Quartier" text,
"% 0-19 years" text,
"% 20-39 years" text,
"% 40-59 years" text,
"% 60-74 years" text,
"% 75 years and +" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many o-19% are where the quartie... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many singles did kitty wel... |
### Context: CREATE TABLE table_name_74 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is Jeff Brown?
### Query: SELECT position FROM table_name_74 WHERE player = "jeff brown" |
### Context: CREATE TABLE table_name_54 (
goals VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the goals for score of 38-28
### Query: SELECT goals FROM table_name_54 WHERE score = "38-28" |
### Context: CREATE TABLE table_204_48 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" text,
"winner" text,
"team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won more races , the usa or canada ?
### Query: ... |
### Context: CREATE TABLE table_26758 (
"Player" text,
"Group Legs won" real,
"Play-Off Legs won" real,
"Winners Group Legs won" real,
"Winners Play-Off Legs won" real,
"Final position money won*" text,
"Total money won" text
)
-- Using valid SQLite, answer the following questions for the ... |
### Context: CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
Cr... |
### 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_name_12 (
gold VARCHAR,
total VARCHAR,
silver VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the number of gold for albania with a silver of 1 and total less than 1
### Query: SELECT COUNT(gold... |
### 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_55082 (
"Season" text,
"Club" text,
"National League" text,
"National Cup" text,
"European Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club that has the turkish basketball cup and fiba eurochalleng... |
### 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_38 (
population INTEGER,
name_of_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population of Chimbote?
### Query: SELECT SUM(population) FROM table_name_38 WHERE name_of_city = "chimbote" |
### Context: CREATE TABLE table_name_51 (
winning_score VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score in 1980?
### Query: SELECT winning_score FROM table_name_51 WHERE year = 1980 |
### Context: CREATE TABLE premises (
premises_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show each premise type and the number of premises in that type.
### Query: SELECT premises_type, COUNT(*) FROM premises GROUP BY premises_type |
### Context: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistoryTypes (
Id number... |
### Context: CREATE TABLE table_14062 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total ... |
### Context: CREATE TABLE table_3594 (
"Team" text,
"Manager" text,
"Chairman" text,
"Team captain" text,
"Kit maker" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the chairman of Mark Robins team?
### Query: SELECT "Cha... |
### Context: CREATE TABLE table_62794 (
"Name" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" real,
"Land area (km\u00b2)" real,
"Population density (per km\u00b2)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Lan... |
### Context: CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime... |
### Context: CREATE TABLE table_name_14 (
record VARCHAR,
location VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has montreal, qc as the location, with boston bruins as the visitor?
### Query: SELECT record FROM table_name_... |
### Context: CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
Ow... |
### 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_21020 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release pr... |
### Context: CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM 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 ... |
### Context: CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_G... |
### 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.