instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_64 (
round INTEGER,
pick__number VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the round when the pick # is less than 236 and the position is offensive guard?
| SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard" | sql_create_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,
MZZYZDZZBM... | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM txmzjzjlb JOIN jybgb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE txmzjzjlb.YLJGDM = '5023348' AND jybgb.BGRQ BETWEEN '2003-04-11' AND '2012-01-23' GROUP BY jybgb.KSBM HAVING COUNT(*) >= 19 UNION SELECT jybgb.KSBM FROM ftxmzjzjlb... | css |
CREATE TABLE table_23274514_6 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the record 14-27?
| SELECT date FROM table_23274514_6 WHERE record = "14-27" | sql_create_context |
CREATE TABLE table_name_81 (
agg VARCHAR,
team_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team 1 Al-Hilal's Agg.?
| SELECT agg FROM table_name_81 WHERE team_1 = "al-hilal" | sql_create_context |
CREATE TABLE table_name_22 (
grid INTEGER,
manufacturer VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?
| SELECT MAX(grid) FROM table_name_22 WHERE manufacturer = "aprilia" AND time_retired = "+1.660" | sql_create_context |
CREATE TABLE customer_orders (
order_id number,
customer_id number,
store_id number,
order_date time,
planned_delivery_date time,
actual_delivery_date time,
other_order_details text
)
CREATE TABLE customers (
customer_id text,
address_id number,
customer_name text,
customer_... | SELECT payment_method_code FROM invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_name_6 (
swim__15km_ VARCHAR,
event VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Daniela Ryf who competes in the women's even had what swim (1.5km)?
| SELECT swim__15km_ FROM table_name_6 WHERE event = "women's" AND athlete = "daniela ryf" | sql_create_context |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instruc... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ROMLING' AND course.number = 450 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 22 AND date_day.month_number = 3 AND da... | atis |
CREATE TABLE table_64315 (
"Name" text,
"Geographic code" text,
"Type" text,
"Households" real,
"Population (2004)" real,
"Foreign population" real,
"Moroccan population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Population (2004)... | SELECT AVG("Population (2004)") FROM table_64315 WHERE "Moroccan population" > '234506' | wikisql |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND ... | atis |
CREATE TABLE table_67766 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the film that Avie Luthra received an award for?
| SELECT "Director(s)" FROM table_67766 WHERE "Recipient" = 'avie luthra' | wikisql |
CREATE TABLE table_name_27 (
location VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game against the buffalo sabres?
| SELECT location FROM table_name_27 WHERE opponent = "buffalo sabres" | sql_create_context |
CREATE TABLE table_name_91 (
length_fuel VARCHAR,
floor_styling VARCHAR,
year_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling?
| SELECT length_fuel FROM table_name_91 WHERE floor_styling = "high" AND year_built = "2000-2003" | sql_create_context |
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Eve... | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY COUNT(Event_Details) DESC | nvbench |
CREATE TABLE table_70074 (
"Goal" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Assist/pass has a Score of 1-0, and a Goal of 5?
| SELECT "Assist/pass" FROM table_70074 WHERE "Score" = '1-0' AND "Goal" = '5' | wikisql |
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_PLACE_FLG numb... | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM, MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '1120246' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM ORDER BY MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) D... | css |
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE aircraft (
aircraft_code varc... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI... | atis |
CREATE TABLE table_74492 (
"Year" text,
"Competition" text,
"Opponent" text,
"Score" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?
| SELECT "Venue" FROM table_74492 WHERE "Score" = '7.14 (56) - 4.5 (29)' | wikisql |
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 diagnoses (
... | SELECT demographic.ethnicity FROM demographic WHERE demographic.name = "Stephanie Suchan" | mimicsql_data |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 41014 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii |
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,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Calcium, Urine" | mimicsql_data |
CREATE TABLE table_name_95 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Attendance, when Week is 5?
| SELECT attendance FROM table_name_95 WHERE week = 5 | sql_create_context |
CREATE TABLE table_2328113_1 (
percentage__2006_ VARCHAR,
mother_tongue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percentage in 2006 whose natives is Polish?
| SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" | sql_create_context |
CREATE TABLE table_name_54 (
starts INTEGER,
avg_finish INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many starts for an average finish greater than 43?
| SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43 | sql_create_context |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '姜新蕾' AND hz_info.YLJGDM = '4680590' AND zyjzjlb.CYKSMC LIKE '%免疫病%' | css |
CREATE TABLE table_name_22 (
winner VARCHAR,
prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Winner had a Prize of z 2,153,999?
| SELECT winner FROM table_name_22 WHERE prize = "zł2,153,999" | sql_create_context |
CREATE TABLE table_47082 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers?
| SELECT "Record" FROM table_47082 WHERE "Game" > '15' AND "Opponent" = 'edmonton oilers' | wikisql |
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE dom... | SELECT COUNT(DISTINCT (publication.title)) FROM author, journal, organization, publication, writes WHERE journal.name = 'PVLDB' AND organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.jid = journal.jid AND publication.year > 2000 AND writes.aid = author.aid AND writes.pid = pu... | academic |
CREATE TABLE manufacturers (
name VARCHAR,
revenue INTEGER,
headquarter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
| SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | sql_create_context |
CREATE TABLE table_47432 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tournament's Score was 6 2, 4 6, 6 4?
| SELECT "Tournament" FROM table_47432 WHERE "Score" = '6–2, 4–6, 6–4' | wikisql |
CREATE TABLE table_name_10 (
loss INTEGER,
name VARCHAR,
gain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Loss with Gain larger than 319 for derrick locke?
| SELECT MIN(loss) FROM table_name_10 WHERE name = "derrick locke" AND gain > 319 | sql_create_context |
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
-- Using valid SQLite, answer the follo... | SELECT country FROM mountain WHERE height > 5000 | spider |
CREATE TABLE table_50489 (
"Position" real,
"Equipment" text,
"Points" real,
"Wins" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Equipment, when Points is less than 6, and when Position is 53?
| SELECT "Equipment" FROM table_50489 WHERE "Points" < '6' AND "Position" = '53' | wikisql |
CREATE TABLE table_76049 (
"Round" text,
"Main date" text,
"Number of fixtures" real,
"Clubs" text,
"New entries this round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Number of fixtures when the rounds shows quarter-finals?
| SELECT SUM("Number of fixtures") FROM table_76049 WHERE "Round" = 'quarter-finals' | wikisql |
CREATE TABLE table_26736 (
"Series No." real,
"Episode No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"UK Ratings (BBC2 Rank)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the written by for ... | SELECT "Written by" FROM table_26736 WHERE "Directed by" = 'John Trefor' | 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 All_Games, School_ID FROM basketball_match | nvbench |
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
... | SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 | spider |
CREATE TABLE table_58004 (
"Singular abbreviation" text,
"Singular Word" text,
"Plural abbreviation" text,
"Plural Word" text,
"Discipline" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- A singular abbreviation of p. is used for what singular word?
| SELECT "Singular Word" FROM table_58004 WHERE "Singular abbreviation" = 'p.' | wikisql |
CREATE TABLE table_80294 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Chart Peak" text,
"Song Title" text,
"Writer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of songs that... | SELECT "Time" FROM table_80294 WHERE "Writer(s)" = 'aaron schroeder and wally gold' | wikisql |
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,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.route = "BUCCAL" | mimicsql_data |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId... | SELECT Id AS "post_link" FROM Posts WHERE NOT Title LIKE '%Who%' AND NOT Title LIKE '%What%' AND NOT Title LIKE '%When%' AND NOT Title LIKE '%Where%' AND NOT Title LIKE '%Why%' AND NOT Title LIKE '%How%' AND NOT Title LIKE '%Can%' AND NOT Title LIKE '%Is%' AND NOT Title LIKE '%Which%' AND NOT Title LIKE '%Was%' AND NOT... | sede |
CREATE TABLE university (
school VARCHAR,
founded VARCHAR,
affiliation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the schools that were either founded after 1850 or public.
| SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public' | sql_create_context |
CREATE TABLE table_62448 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the 2nd member of the parliament that was assembled on 3 november 1529?
| SELECT "2nd member" FROM table_62448 WHERE "Assembled" = '3 november 1529' | wikisql |
CREATE TABLE table_name_21 (
pick INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Lowest pick for mike flater?
| SELECT MIN(pick) FROM table_name_21 WHERE name = "mike flater" | sql_create_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 number
)
CRE... | SELECT p.Id AS "post_link", COUNT(v.Id) FROM Votes AS v JOIN Posts AS p ON v.PostId = p.Id WHERE (p.OwnerUserId = '##id?210401##') AND (v.VoteTypeId = 3) GROUP BY p.Id ORDER BY p.Id | sede |
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,
admission_location t... | SELECT demographic.name, demographic.dod FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_1009 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Prior experience" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the weight for the pla... | SELECT MAX("Weight") FROM table_1009 WHERE "Height" = '6'' 2' | wikisql |
CREATE TABLE table_23412 (
"No. overall" text,
"No. in series" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least number in series
| SELECT MIN("No. in series") FROM table_23412 | wikisql |
CREATE TABLE table_33072 (
"Lecturers" real,
"Associate professors" real,
"Assistant professors" real,
"Professors" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total in the case when there are more than 4 associate profe... | SELECT COUNT("Total") FROM table_33072 WHERE "Associate professors" > '4' AND "Lecturers" = '5' AND "Professors" < '40' | wikisql |
CREATE TABLE table_23915_4 (
translation VARCHAR,
ipa___rio_de_janeiro__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original of the ipa ( rio de janeiro )translation ki mo t a w n t t i t n ?
| SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə" | sql_create_context |
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CH... | SELECT apt_type_code, COUNT(apt_type_code) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = "Kyle" GROUP BY apt_type_code ORDER BY COUNT(apt_type_code) | nvbench |
CREATE TABLE table_25740548_4 (
title VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode had 2.75 million viewers in the U.S.?
| SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75" | sql_create_context |
CREATE TABLE Songs (
SongId VARCHAR,
Title VARCHAR
)
CREATE TABLE Performance (
bandmate VARCHAR,
SongId VARCHAR,
StagePosition VARCHAR
)
CREATE TABLE Band (
firstname VARCHAR,
lastname VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back" | sql_create_context |
CREATE TABLE table_50829 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has *alanaz as Part 4?
| SELECT "Class" FROM table_50829 WHERE "Part 4" = '*alanaz' | wikisql |
CREATE TABLE table_name_77 (
score VARCHAR,
money___$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which score has a prize of $400?
| SELECT score FROM table_name_77 WHERE money___$__ = 400 | sql_create_context |
CREATE TABLE table_7911 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is team 2 when team 1 is fc rouen (d1)?
| SELECT "Team 2" FROM table_7911 WHERE "Team 1" = 'fc rouen (d1)' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT" | mimicsql_data |
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 number
)
CRE... | SELECT PostTypeId, COUNT(PostTypeId) FROM Posts GROUP BY PostTypeId | sede |
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 jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb 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 = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_... | css |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requi... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE program_course.course_id = course.course_id AND program_course.course_id = course.course_id AND program.name LIKE '%CS%' AND program.program_id = program_course.program_id AND semester.sem... | advising |
CREATE TABLE table_76109 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"FPU width" text,
"Multi 1" text,
"Socket" text,
"Release date" text,
"Order part number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the socke... | SELECT "Socket" FROM table_76109 WHERE "Release date" = 'september 10, 2009' AND "Order part number" = 'amm300dbo22gq' | wikisql |
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Worki... | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population) DESC | nvbench |
CREATE TABLE table_61197 (
"Date" text,
"Year" real,
"Location" text,
"Country" text,
"Killed" text,
"Injured" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the injured that has skierlik as the location?
| SELECT "Injured" FROM table_61197 WHERE "Location" = 'skierlik' | wikisql |
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 text,
CYBQMC... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDSM = '谵妄' AND jyjgzbb.JCZBDM = '97671... | css |
CREATE TABLE table_18480 (
"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.
-- Who is the incumbent first elected in 1944?
| SELECT "Incumbent" FROM table_18480 WHERE "First elected" = '1944' | wikisql |
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_PLACE_FLG numb... | SELECT OUT_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '8978261' GROUP BY OUT_DIAG_DIS_CD | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.short_title = "Sm-to-sm bowel anastom" | mimicsql_data |
CREATE TABLE constructors (
constructorId INTEGER,
constructorRef TEXT,
name TEXT,
nationality TEXT,
url TEXT
)
CREATE TABLE circuits (
circuitId INTEGER,
circuitRef TEXT,
name TEXT,
location TEXT,
country TEXT,
lat REAL,
lng REAL,
alt TEXT,
url TEXT
)
CREATE TA... | SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name ORDER BY COUNT(name) DESC | nvbench |
CREATE TABLE table_109 (
"Track #" real,
"Song" text,
"Singers" text,
"Picturization" text,
"Length" text,
"Lyricist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lyricist has a song with a length of 6:14?
| SELECT "Lyricist" FROM table_109 WHERE "Length" = '6:14' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id nu... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'excise lg intestine les') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83466) AND DATETIME(pro... | mimic_iii |
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 t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND STRFTIME('%y', treatment.treatmenttime) = '2102' GROUP BY treatment.treatmentname... | eicu |
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 number,
F... | SELECT * FROM qtb WHERE qtb.MED_SER_ORG_NO = '0795185' AND qtb.IN_HOSP_DATE BETWEEN '2005-08-27' AND '2019-02-22' UNION SELECT * FROM gyb WHERE gyb.MED_SER_ORG_NO = '0795185' AND gyb.IN_HOSP_DATE BETWEEN '2005-08-27' AND '2019-02-22' UNION SELECT * FROM zyb WHERE zyb.MED_SER_ORG_NO = '0795185' AND zyb.IN_HOSP_DATE BETW... | css |
CREATE TABLE table_48061 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the game with a price ... | SELECT "Home" FROM table_48061 WHERE "Decision" = 'price' AND "Visitor" = 'new jersey devils' | wikisql |
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 microlab (
microl... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-35642')) AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CU... | eicu |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 1 AND date_day.month_number = 1 ... | atis |
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 allergy (
allergy... | 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 = '030-53717' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime ... | eicu |
CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
date_account_opened DATETIME,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE... | SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details ORDER BY COUNT(date_account_opened) | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.expire_flag, demographic.admission_location FROM demographic WHERE demographic.subject_id = "42067" | mimicsql_data |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE airline (
airline_code varc... | SELECT DISTINCT aircraft.aircraft_code, flight.flight_number FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (((flight.arrival_time <= 2030 AND flight.arrival_time >= 1930) AND CITY_1.city_code = AIRPORT_SERVICE_... | atis |
CREATE TABLE table_name_33 (
player VARCHAR,
pick VARCHAR,
new_wnba_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?
| SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = "minnesota lynx" | sql_create_context |
CREATE TABLE table_203_611 (
id number,
"player" text,
"hr" number,
"date reached 500 hr" text,
"team" text,
"seasons played" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which member of the 500 club has the least amount of home runs ?
| SELECT "player" FROM table_203_611 ORDER BY "hr" LIMIT 1 | squall |
CREATE TABLE table_name_85 (
rank_points VARCHAR,
event VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The event WC Rio De Janeiro with a total of 16 has what as rank points?
| SELECT rank_points FROM table_name_85 WHERE event = "wc rio de janeiro" AND total = "16" | sql_create_context |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.MED_ORG_DEPT_NM FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '1368313' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-02-22' AND '2005-11-03' GROUP BY t_kc21.MED_ORG_DEPT_CD ORDER BY SUM(t_kc24.OVE_PAY) DESC LIMIT 26 | css |
CREATE TABLE table_11960944_11 (
location_attendance VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game played when the high assists were scored by billups , stuckey (4)?
| SELECT location_attendance FROM table_11960944_11 WHERE high_assists = "Billups , Stuckey (4)" | sql_create_context |
CREATE TABLE mzb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.MED_SER_ORG_NO = '6439728' AND qtb.IN_DIAG_DIS_NM = '颅脑外伤所致的精神障碍' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.MED_SER_ORG_NO = '6439728' AND gyb.IN_DIAG_DIS_NM = '颅脑外伤所致的精神障碍'... | css |
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_PLACE_FLG numb... | SELECT HOSP_DOC_CD, HOSP_DOC_NM FROM t_kc22 WHERE MED_EXP_DET_ID = '37322993985' | css |
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_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND diagnoses.long_title = "Other abnormal blood chemistry" | mimicsql_data |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_re... | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na... | atis |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 903... | mimic_iii |
CREATE TABLE table_70314 (
"No.1" text,
"No.2" text,
"No.3" text,
"No.4" text,
"No.5" text,
"No.6" text,
"No.7" text,
"No.8" text,
"No.9" text,
"No.10" text,
"No.11" text,
"No.12" text,
"No.13" text,
"No.14" text,
"No.15" text,
"FINAL" text
)
-- Using va... | SELECT "No.10" FROM table_70314 WHERE "No.8" = 'diana' | wikisql |
CREATE TABLE table_name_9 (
score VARCHAR,
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for t9 place for Harold Mcspaden?
| SELECT score FROM table_name_9 WHERE place = "t9" AND player = "harold mcspaden" | sql_create_context |
CREATE TABLE table_name_63 (
record VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the Loss of Plesac (1-5), what is the Record?
| SELECT record FROM table_name_63 WHERE loss = "plesac (1-5)" | sql_create_context |
CREATE TABLE table_34964 (
"Season" text,
"Champions" text,
"Runners-up" text,
"Promotion Playoff" text,
"Standings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Standings of Eintracht Braunschweig?
| SELECT "Standings" FROM table_34964 WHERE "Champions" = 'eintracht braunschweig' | wikisql |
CREATE TABLE table_10888 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the least amount of goals for a gam... | SELECT MIN("Goals for") FROM table_10888 WHERE "Tied" > '15' | wikisql |
CREATE TABLE table_43912 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" real,
"Profits (billion $)" real,
"Assets (billion $)" real,
"Market Value (billion $)" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT AVG("Rank") FROM table_43912 WHERE "Sales (billion $)" > '146.56' AND "Profits (billion $)" = '11.68' | wikisql |
CREATE TABLE table_18569389_1 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name who directed the episode that was viewed by 4.22 million
| SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22" | sql_create_context |
CREATE TABLE table_55870 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position does Robert Nkemdiche play?
| SELECT "Position" FROM table_55870 WHERE "Player" = 'robert nkemdiche' | wikisql |
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Buildin... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings ORDER BY COUNT(booking_start_date) DESC | nvbench |
CREATE TABLE table_48899 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Date of september 3, 2000?
| SELECT "Result" FROM table_48899 WHERE "Date" = 'september 3, 2000' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.