instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE employment (
Company_ID int,
People_ID int,
Year_working int
)
CREATE TABLE company (
Company_ID real,
Name text,
Headquarters text,
Industry text,
Sales_in_Billion real,
Profits_in_Billion real,
Assets_in_Billion real,
Market_Value_in_Billion real
)
CREATE TAB... | SELECT Industry, COUNT(Industry) FROM company GROUP BY Industry ORDER BY COUNT(Industry) | nvbench |
CREATE TABLE table_80314 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year with alfredo salazar fina... | SELECT AVG("Year") FROM table_80314 WHERE "Mixed doubles" = 'alfredo salazar fina salazar' | wikisql |
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_C... | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY EMP_FNAME, CRS_DESCRIPTION | nvbench |
CREATE TABLE table_name_80 (
date VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the week 6 game played on?
| SELECT date FROM table_name_80 WHERE week = 6 | sql_create_context |
CREATE TABLE Residents (
resident_id INTEGER,
property_id INTEGER,
date_moved_in DATETIME,
date_moved_out DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Timed_Locations_of_Things (
thing_id INTEGER,
Date_and_Time DATETIME,
Location_Code CHAR(15)
)
CREATE TABLE Properties (
pro... | SELECT Type_of_Thing_Code, COUNT(Type_of_Thing_Code) FROM Things GROUP BY Type_of_Thing_Code ORDER BY COUNT(Type_of_Thing_Code) DESC | nvbench |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
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,
tes... | SELECT DISTINCT name FROM instructor WHERE NOT name IN (SELECT INSTRUCTORalias1.name FROM course AS COURSEalias0 INNER JOIN course_offering AS COURSE_OFFERINGalias0 ON COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id INNER JOIN offering_instructor AS OFFERING_INSTRUCTOR ON OFFERING_OFFERING_ID = COURSE_OFFERING... | advising |
CREATE TABLE table_64516 (
"Shirt No" real,
"Nationality" text,
"Player" text,
"Birth Date" text,
"Height" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Shirt No for the person whose height is 188?
| SELECT SUM("Shirt No") FROM table_64516 WHERE "Height" = '188' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,... | (SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb... | css |
CREATE TABLE table_name_32 (
goals INTEGER,
competition VARCHAR,
apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals did he have in the bundesliga with under 7 appearances?
| SELECT AVG(goals) FROM table_name_32 WHERE competition = "bundesliga" AND apps < 7 | sql_create_context |
CREATE TABLE table_74637 (
"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 large was the crowd at Brunswick Street Oval... | SELECT "Crowd" FROM table_74637 WHERE "Venue" = 'brunswick street oval' | wikisql |
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 university (
Scho... | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID DESC | nvbench |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25... | SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_16320 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the pick number of the player from Toronto Argonauts?
| SELECT MIN("Pick #") FROM table_16320 WHERE "CFL Team" = 'Toronto Argonauts' | wikisql |
CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE album (
albumid number,
title text,
artistid number
)
CREATE TABLE playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
uni... | SELECT DISTINCT T1.firstname FROM customer AS T1 JOIN invoice AS T2 ON T1.customerid = T2.customerid WHERE T1.country = "Brazil" | spider |
CREATE TABLE table_1901751_1 (
original_australian_performer VARCHAR,
original_west_end_performer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Original Australian performer when the Original West End Performer is Linzi Hateley?
| SELECT original_australian_performer FROM table_1901751_1 WHERE original_west_end_performer = "Linzi Hateley" | sql_create_context |
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
... | SELECT dept_name, AVG(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name ORDER BY dept_name DESC | nvbench |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CRE... | SELECT * FROM TagSynonyms WHERE (CreationDate > '01-12-2008') AND (CreationDate < '01-02-2018') | sede |
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,
INSURED_STS text,
... | SELECT t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_NM = '苗梦菡' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_NM = '速效救心丸') | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.icd9_code = "78057" | mimicsql_data |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-19333')) AND medication.drugname IN ('cordarone', 'lactated ringers', ... | eicu |
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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "TRIA.1/80C" | mimicsql_data |
CREATE TABLE table_54328 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the captain for team Norwich City?
| SELECT "Captain" FROM table_54328 WHERE "Team" = 'norwich city' | wikisql |
CREATE TABLE table_39908 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Type of 4-6-0, and a Number larger than 11?
| SELECT "Date" FROM table_39908 WHERE "Type" = '4-6-0' AND "Number" > '11' | wikisql |
CREATE TABLE table_16278894_1 (
population_census_2009 VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the population in Kisumu county as of 2009?
| SELECT population_census_2009 FROM table_16278894_1 WHERE county = "Kisumu" | sql_create_context |
CREATE TABLE table_name_31 (
second_party VARCHAR,
first_member VARCHAR,
second_member VARCHAR,
first_party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the second parties has second member Charles Robert Colvile, a conservative first part... | SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy" | sql_create_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 text,
JY... | SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = ... | css |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABL... | SELECT COUNT(*) AS "all", SUM(CASE WHEN CreationDate BETWEEN DATEADD(yy, -1, GETDATE()) AND GETDATE() THEN 1 ELSE 0 END) AS "year", SUM(CASE WHEN CreationDate BETWEEN DATEADD(m, -1, GETDATE()) AND GETDATE() THEN 1 ELSE 0 END) AS "month", SUM(CASE WHEN CreationDate BETWEEN DATEADD(wk, -1, GETDATE()) AND GETDATE() THEN 1... | sede |
CREATE TABLE competition (
competition_id number,
year number,
competition_type text,
country text
)
CREATE TABLE player (
player_id number,
name text,
position text,
club_id number,
apps number,
tries number,
goals text,
points number
)
CREATE TABLE competition_result ... | SELECT name FROM player WHERE points > (SELECT AVG(points) FROM player) | spider |
CREATE TABLE table_24822 (
"Episode number" real,
"Title" text,
"Original airing" text,
"Timeslot" text,
"Viewers" real,
"Top 50 Ranking" real,
"Scripted Show Ranking" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episodes originally ... | SELECT "Title" FROM table_24822 WHERE "Original airing" = 'April 19, 2010' | wikisql |
CREATE TABLE table_45914 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Attendance, when Date is 1 October 1998?
| SELECT AVG("Attendance") FROM table_45914 WHERE "Date" = '1 october 1998' | wikisql |
CREATE TABLE table_50259 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" 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 ab... | SELECT "2004" FROM table_50259 WHERE "2009" = 'grand slam tournaments' | wikisql |
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,
KLX number,... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE person_info.XM = '任同和'... | css |
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,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Continuous intra-arterial blood gas monitoring" | mimicsql_data |
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 stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT meter_500, ID FROM swimmer ORDER BY meter_500 | nvbench |
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,
JYZBLSH text,
... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybg... | css |
CREATE TABLE table_37741 (
"Name" text,
"Hanzi" text,
"Language" text,
"Launch" real,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian genera... | SELECT "Hanzi" FROM table_37741 WHERE "Launch" < '2009' AND "Language" = 'tibetan' AND "Name" = 'qinghai tibetian general channel' | wikisql |
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,
MZZYZDZZBM... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jy... | css |
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real... | SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id | nvbench |
CREATE TABLE table_30980 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Regular Season Winner" FROM table_30980 WHERE "Conference Tournament" = '1999 Big Sky Men''s Basketball Tournament' | wikisql |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.end_time <= '12:00:00' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semest... | advising |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-20482')) AND lab.labname = 'alkaline phos.' AND DATETIME(lab.labresulttime) <= DATETIME(... | eicu |
CREATE TABLE table_33153 (
"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 day is south melbourne away?
| SELECT "Date" FROM table_33153 WHERE "Away team" = 'south melbourne' | wikisql |
CREATE TABLE table_67318 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the record was 28 19?
| SELECT "Score" FROM table_67318 WHERE "Record" = '28–19' | wikisql |
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,
LastEditorDisplayName text... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN... | sede |
CREATE TABLE table_5862 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when St. Louis was the visiting team?
| SELECT "Date" FROM table_5862 WHERE "Visitor" = 'st. louis' | wikisql |
CREATE TABLE table_13432 (
"Non-dictatorship" text,
"Pareto efficiency" text,
"Majority" text,
"Monotone" text,
"Consistency & Participation" text,
"Condorcet" text,
"Condorcet loser" text,
"Clone independence" text,
"Reversal symmetry" text
)
-- Using valid SQLite, answer the foll... | SELECT "Reversal symmetry" FROM table_13432 WHERE "Non-dictatorship" = 'no' AND "Pareto efficiency" = 'no' | wikisql |
CREATE TABLE table_56301 (
"Model" text,
"Years" text,
"Engine code" text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During which years was the model with the Engine code of m54b25 manufactured?
| SELECT "Years" FROM table_56301 WHERE "Engine code" = 'm54b25' | wikisql |
CREATE TABLE table_405 (
"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.
-- What number (#) is associated with the Name Ron Ba... | SELECT COUNT("#") FROM table_405 WHERE "Name" = 'Ron Baxter' | wikisql |
CREATE TABLE table_name_92 (
entrant VARCHAR,
constructor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team used the BRM built car?
| SELECT entrant FROM table_name_92 WHERE constructor = "brm" | sql_create_context |
CREATE TABLE table_1602620_1 (
type VARCHAR,
office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type are State Assemblyman
| SELECT type FROM table_1602620_1 WHERE office = "State Assemblyman" | sql_create_context |
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
-- Using valid SQLite, answer the following questions ... | SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country | nvbench |
CREATE TABLE table_name_99 (
week INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most recent week for the day of November 5, 1978?
| SELECT MAX(week) FROM table_name_99 WHERE date = "november 5, 1978" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patientheal... | SELECT AVG(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-17122') AND NOT patient.unitdischargetime IS N... | eicu |
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE status (
station_i... | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 | nvbench |
CREATE TABLE table_70269 (
"Name" text,
"League" real,
"Play-offs" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook... | SELECT COUNT("FA Cup") FROM table_70269 WHERE "Play-offs" = '3' AND "Name" = 'mitch cook category:articles with hcards' AND "Total" < '11' | wikisql |
CREATE TABLE table_204_772 (
id number,
"team" text,
"county" text,
"wins" number,
"years won" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team won previous to crettyard ?
| SELECT "team" FROM table_204_772 WHERE "years won" < (SELECT "years won" FROM table_204_772 WHERE "team" = 'crettyard') ORDER BY "years won" DESC LIMIT 1 | squall |
CREATE TABLE written_by (
id int,
msid int,
wid int
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE director (
did int,
gender text,
name text,
nat... | SELECT actor.name FROM actor, cast, movie WHERE cast.aid = actor.aid AND cast.role = 'Alan Turing' AND movie.mid = cast.msid AND movie.title = 'The Imitation Game' | imdb |
CREATE TABLE table_2273738_1 (
type VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The city of Birmingham is what type of location?
| SELECT type FROM table_2273738_1 WHERE city = "Birmingham" | sql_create_context |
CREATE TABLE table_1517 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"W/L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all the opponents o... | SELECT "Opponents" FROM table_1517 WHERE "Against" = 'Slovakia' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-10080')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | eicu |
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 treatment (
treat... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaldischargetime IS NULL | eicu |
CREATE TABLE table_train_260 (
"id" int,
"leukocyte_deficiencies" bool,
"bleeding" int,
"hemoglobin_a1c_hba1c" float,
"leukocyte_dysfunction" bool,
"renal_disease" bool,
"hba1c" float,
"serum_creatinine" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions f... | SELECT * FROM table_train_260 WHERE bleeding = 1 | criteria2sql |
CREATE TABLE table_dev_11 (
"id" int,
"pregnancy_or_lactation" bool,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"diastolic_blood_pressure_dbp" int,
"smoking" bool,
"donated_plasma" bool,
"coronary_artery_disease_cad" bool,
"donated_blood" bool,
"hypertension" bool,
... | SELECT * FROM table_dev_11 WHERE donated_blood = 1 OR donated_plasma = 1 | criteria2sql |
CREATE TABLE table_name_30 (
finalist VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Finalist, when Year is '2008'?
| SELECT finalist FROM table_name_30 WHERE year = 2008 | sql_create_context |
CREATE TABLE table_73631 (
"Institution" text,
"Location" text,
"Team Name" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Year Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the affiliation when the institutio... | SELECT "Affiliation" FROM table_73631 WHERE "Institution" = 'Ohio Christian University' | wikisql |
CREATE TABLE table_name_11 (
country VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is Istanbul in?
| SELECT country FROM table_name_11 WHERE city = "istanbul" | sql_create_context |
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CR... | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY CRS_DESCRIPTION ORDER BY COUNT(CRS_DESCRIPTION) DESC | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
... | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'meperidine 25 mg/1 ml 1 ml syr' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-1 year') | eicu |
CREATE TABLE table_15988037_24 (
total INTEGER,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum total in which the average is 28.5?
| SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5" | sql_create_context |
CREATE TABLE table_train_269 (
"id" int,
"pregnancy_or_lactation" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"hba1c" float,
"prisoners" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- prisoners
| SELECT * FROM table_train_269 WHERE prisoners = 1 | criteria2sql |
CREATE TABLE Ref_Shipping_Agents (
shipping_agent_code CHAR(15),
shipping_agent_name VARCHAR(255),
shipping_agent_description VARCHAR(255)
)
CREATE TABLE Employees (
employee_id INTEGER,
role_code CHAR(15),
employee_name VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Draft_Copies ... | SELECT T1.role_code, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code | nvbench |
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,
MZZYZDZZBM... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '18416093' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgzbb WH... | css |
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)
)
CREATE T... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) | nvbench |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationD... | SELECT COUNT(*) FROM Votes JOIN Posts ON Votes.PostId = Posts.Id WHERE Votes.VoteTypeId IN (2) AND Votes.CreationDate >= DATEADD(DAY, -30, GETDATE()) AND Posts.PostTypeId IN (1) | sede |
CREATE TABLE table_64449 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than... | SELECT COUNT("Col (m)") FROM table_64449 WHERE "Elevation (m)" < '3,187' AND "Prominence (m)" < '1,570' | wikisql |
CREATE TABLE table_name_44 (
locomotive VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the locomotive for the city of Benalla?
| SELECT locomotive FROM table_name_44 WHERE name = "city of benalla" | sql_create_context |
CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text... | SELECT * FROM basketball_match | spider |
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | nvbench |
CREATE TABLE table_76263 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ... | SELECT AVG("Game") FROM table_76263 WHERE "Team" = 'portland trail blazers' | wikisql |
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
... | SELECT Committee, COUNT(Committee) FROM election GROUP BY Committee ORDER BY COUNT(Committee) | nvbench |
CREATE TABLE table_33789 (
"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 was the home team that played Geelong?
| SELECT "Home team score" FROM table_33789 WHERE "Away team" = 'geelong' | wikisql |
CREATE TABLE table_204_156 (
id number,
"year" number,
"crystal bicycle\n(best professional cyclist)" text,
"best young rider" text,
"best manager" text,
"crystal drop of sweat\n(best helper)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who w... | SELECT "crystal bicycle\n(best professional cyclist)" FROM table_204_156 WHERE "crystal bicycle\n(best professional cyclist)" IN ('tom boonen', 'sven nys') ORDER BY "year" LIMIT 1 | squall |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
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... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN cou... | advising |
CREATE TABLE table_59165 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team has a Tie no of 14?
| SELECT "Away team" FROM table_59165 WHERE "Tie no" = '14' | wikisql |
CREATE TABLE table_2562572_54 (
population__2011_ VARCHAR,
settlement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many items appear in the population 2011 column for the kr edin settlement?
| SELECT COUNT(population__2011_) FROM table_2562572_54 WHERE settlement = "Krčedin" | sql_create_context |
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
-- Using valid SQLite... | SELECT COUNT(*) FROM has_allergy WHERE allergy = "Cat" | spider |
CREATE TABLE table_48853 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tournament, when Date is '6 April 1992'?
| SELECT "Tournament" FROM table_48853 WHERE "Date" = '6 april 1992' | wikisql |
CREATE TABLE table_name_6 (
position VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player for the Baltimore Orioles?
| SELECT position FROM table_name_6 WHERE team = "baltimore orioles" | sql_create_context |
CREATE TABLE table_27734769_8 (
date VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date the high assists was andre miller (7)?
| SELECT date FROM table_27734769_8 WHERE high_assists = "Andre Miller (7)" | sql_create_context |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
H... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '37643909503' AND NOT t_kc22.SOC_SRT_DIRE_NM LIKE '%补肺%' | css |
CREATE TABLE table_name_59 (
goal_difference INTEGER,
club VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest goal difference for the club ud alzira, with a played larger than 38?
| SELECT MIN(goal_difference) FROM table_name_59 WHERE club = "ud alzira" AND played > 38 | sql_create_context |
CREATE TABLE table_name_56 (
player VARCHAR,
conf VARCHAR,
pos VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a conference of PAC-10 and position of G?
| SELECT player FROM table_name_56 WHERE conf = "pac-10" AND pos = "g" | sql_create_context |
CREATE TABLE table_203_763 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the competitions in which ramon gonzales came in 1st position .
| SELECT "competition" FROM table_203_763 WHERE "position" = 1 | squall |
CREATE TABLE table_6237 (
"Designation" text,
"Bus width (bits)" real,
"Channels" text,
"Clock rate (MHz)" real,
"Bandwidth (MB/s)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Designation of pc800 has which highest Bus width (bits)?
| SELECT MAX("Bus width (bits)") FROM table_6237 WHERE "Designation" = 'pc800' | wikisql |
CREATE TABLE table_3060 (
"Name of Award" text,
"Name of Film" text,
"Language" text,
"Awardee(s)" text,
"Cash Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the name of award for marathi
| SELECT "Name of Award" FROM table_3060 WHERE "Language" = 'Marathi' | wikisql |
CREATE TABLE table_name_62 (
rank_by_average INTEGER,
competition_finish VARCHAR,
number_of_dances VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least rank by average for number of dances less than 9 and competition finish of 5
| SELECT MIN(rank_by_average) FROM table_name_62 WHERE competition_finish = 5 AND number_of_dances < 9 | sql_create_context |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
... | SELECT q.Title, a.Body FROM Posts AS a INNER JOIN Posts AS q ON a.Id = q.AcceptedAnswerId WHERE q.Id = 6277606 | sede |
CREATE TABLE table_name_91 (
serial VARCHAR,
outcome VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 1959-01-27 when outcome was failure, what is the serial?
| SELECT serial FROM table_name_91 WHERE outcome = "failure" AND date = "1959-01-27" | sql_create_context |
CREATE TABLE table_20664 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capital of Uasin Gishu county?
| SELECT "Capital" FROM table_20664 WHERE "County" = 'Uasin Gishu' | wikisql |
CREATE TABLE table_60426 (
"map#" real,
"County" text,
"Capital" text,
"Population (2008)" real,
"Area" text,
"Created" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest population (2008) created earlier than 1857, and the count... | SELECT MAX("Population (2008)") FROM table_60426 WHERE "Created" < '1857' AND "County" = 'sinoe' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.