context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE time_interva... | show me all the flights on DL and TW that go to ATLANTA in the morning | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE (((flight.airline_code = 'DL') OR (flight.airline_code = 'TW')) AND city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight.to_airport = airport_service.airport_code) AND flight.departure_time BETWEEN 0 AND 1200 | atis |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text te... | Users by Badge and Votes. | SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS rank, Comments.UserId AS "user_link", COUNT(*) AS "Comments", Users.UpVotes AS "UpVotes", Users.DownVotes AS "DownVotes" FROM Comments INNER JOIN Users ON Users.Id = Comments.UserId GROUP BY Comments.UserId, Users.UpVotes, Users.DownVotes ORDER BY Comments DESC LIMIT... | sede |
CREATE TABLE table_name_44 (
released VARCHAR,
chinese_title VARCHAR
) | Chinese title of had what released? | SELECT released FROM table_name_44 WHERE chinese_title = "反正 卓文萱" | sql_create_context |
CREATE TABLE table_8075 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | What is the Home Team in Game 2? | SELECT "Home Team" FROM table_8075 WHERE "Game" = 'game 2' | wikisql |
CREATE TABLE table_name_23 (
birthdate VARCHAR,
height__cm_ VARCHAR,
weight__kg_ VARCHAR
) | What is the Birthdate for the person with a height less than 191, and weight of 84 kg? | SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84 | sql_create_context |
CREATE TABLE table_78702 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | What is the Party of District of Illinois 19 with an Incumbent First elected in 1996? | SELECT "Party" FROM table_78702 WHERE "First elected" = '1996' AND "District" = 'illinois 19' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM t... | 名为孔熠彤的患者在93164034335这次医疗就诊中做检验的科室和编码分别是什么 | SELECT JYKSBM, JYKSMC FROM jybgb WHERE JZLSH = '93164034335' | css |
CREATE TABLE table_77170 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What tie happened with Southampton? | SELECT "Tie no" FROM table_77170 WHERE "Away team" = 'southampton' | wikisql |
CREATE TABLE table_14432 (
"Estimate" text,
"Name" text,
"Nat." text,
"Ship Type" text,
"Principal victims" text,
"Where sunk" text,
"Date" text
) | What type of ship was the HMSST George? | SELECT "Ship Type" FROM table_14432 WHERE "Name" = 'hmsst george' | wikisql |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
C... | please list the flights from ONTARIO CALIFORNIA to ORLANDO FLORIDA | 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, state AS STATE_0, state AS STATE_1 WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ONTARIO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city... | atis |
CREATE TABLE table_name_22 (
series VARCHAR,
isbn VARCHAR
) | What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)? | SELECT series FROM table_name_22 WHERE isbn = "978-1-59582-523-0 (tpb)" | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Stack bar chart of team_id vs ACC_Home based on all home, and display by the x axis in asc. | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home | nvbench |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimme... | Find meter_300 and ID , and visualize them by a bar chart, list in descending by the y axis. | SELECT meter_300, ID FROM swimmer ORDER BY ID DESC | nvbench |
CREATE TABLE table_16623 (
"Rank ( WJC )" real,
"Rank (ARDA)" real,
"Metro area" text,
"Number of Jews (WJC)" real,
"Number of Jews (ASARB)" real
) | What is the number of jews asarb where the metro area is philadelphia? | SELECT "Number of Jews (ASARB)" FROM table_16623 WHERE "Metro area" = 'Philadelphia' | wikisql |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | Minecraft questions from the last ten days. | SELECT DISTINCT Posts.Id AS "post_link", Posts.CreationDate, Posts.ClosedDate, Score, Tags FROM Posts INNER JOIN PostTags ON (Posts.Id = PostTags.PostId) INNER JOIN Tags ON (PostTags.TagId = Tags.Id AND Tags.TagName LIKE 'minecraft%') WHERE Posts.PostTypeId = 1 AND Posts.CreationDate >= DATEADD(d, -10, GETDATE()) ORDER... | sede |
CREATE TABLE table_57951 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What were the lowest laps of Tarso Marques? | SELECT MIN("Laps") FROM table_57951 WHERE "Driver" = 'tarso marques' | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | how many patients aged below 83 years had the drug code cipr200pm? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "83" AND prescriptions.formulary_drug_cd = "CIPR200PM" | mimicsql_data |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id num... | what exactly does ileal conduitogram mean? | SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ileal conduitogram' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'ileal conduitogram' | mimic_iii |
CREATE TABLE exhibition (
YEAR VARCHAR
) | How many exhibition are there in year 2005 or after? | SELECT COUNT(*) FROM exhibition WHERE YEAR >= 2005 | sql_create_context |
CREATE TABLE school (
school_name VARCHAR,
school_id VARCHAR
)
CREATE TABLE budget (
budgeted VARCHAR,
invested VARCHAR,
school_id VARCHAR,
year VARCHAR
) | Show each school name, its budgeted amount, and invested amount in year 2002 or after. | SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002 | sql_create_context |
CREATE TABLE table_name_20 (
date VARCHAR,
competition VARCHAR
) | The 2002 African Cup of Nations was held on what date? | SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations" | sql_create_context |
CREATE TABLE table_name_68 (
position VARCHAR,
round INTEGER
) | What is the position when the round is less than 2? | SELECT position FROM table_name_68 WHERE round < 2 | sql_create_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_title text
)
... | what is the number of patients whose marital status is widowed and item id is 51069? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.itemid = "51069" | mimicsql_data |
CREATE TABLE table_name_64 (
poles INTEGER,
season VARCHAR,
podiums VARCHAR
) | What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1? | SELECT SUM(poles) FROM table_name_64 WHERE season < 2004 AND podiums < 1 | sql_create_context |
CREATE TABLE table_name_2 (
date VARCHAR,
week VARCHAR
) | what was the date of the game on week 2? | SELECT date FROM table_name_2 WHERE week = 2 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | provide the death status of stephanie suchan. | SELECT demographic.expire_flag FROM demographic WHERE demographic.name = "Stephanie Suchan" | mimicsql_data |
CREATE TABLE table_24704 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text
) | Who wrote the episode titled 'heroes'? | SELECT "Written by" FROM table_24704 WHERE "Title" = 'Heroes' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, give me the comparison about the sum of price over the founder , and group by attribute founder by a bar chart, rank by the y-axis from low to high please. | SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Price) | nvbench |
CREATE TABLE table_name_59 (
record VARCHAR,
game VARCHAR
) | What was the record when they played game 58? | SELECT record FROM table_name_59 WHERE game = 58 | sql_create_context |
CREATE TABLE table_8350 (
"Date" text,
"Region" text,
"Label" text,
"Catalogue" text,
"Format" text
) | What is the date for Bron 535 Catalog? | SELECT "Date" FROM table_8350 WHERE "Catalogue" = 'bron 535' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number... | what is the cost of a surgery called skin & subq incision nec? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'skin & subq incision nec')) | mimic_iii |
CREATE TABLE table_name_58 (
score VARCHAR,
opponent VARCHAR
) | What is the Score of the game against the boston celtics? | SELECT score FROM table_name_58 WHERE opponent = "boston celtics" | sql_create_context |
CREATE TABLE table_name_61 (
shuji_kondo VARCHAR,
mazada VARCHAR
) | Name the Shuji Kondo for MAZADA of hijikata (14:24) | SELECT shuji_kondo FROM table_name_61 WHERE mazada = "hijikata (14:24)" | sql_create_context |
CREATE TABLE table_15714 (
"Tournament" text,
"1996" text,
"1997" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2009" text,
"2010" text,
"2011" text
) | What is the 2004 tournament that has a Q1 of 2011? | SELECT "2004" FROM table_15714 WHERE "2011" = 'q1' | wikisql |
CREATE TABLE table_63517 (
"Year" real,
"Home Team" text,
"Away Team" text,
"Winner" text,
"Score" text
) | who is the home team when the away team is rivercity rage? | SELECT "Home Team" FROM table_63517 WHERE "Away Team" = 'rivercity rage' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE i... | how many days have passed since patient 42829 last took a creatinine lab test in this hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'creatinine') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42829 AND admissio... | mimic_iii |
CREATE TABLE table_name_59 (
tuesday VARCHAR,
wednesday VARCHAR
) | What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)? | SELECT tuesday FROM table_name_59 WHERE wednesday = "fox sports tonight (ends 1 am next day)" | sql_create_context |
CREATE TABLE table_6494 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | Which Tie # has an Away team of slough town? | SELECT "Tie no" FROM table_6494 WHERE "Away team" = 'slough town' | wikisql |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)... | In order to declare a major in REEES , which classes do I need to take ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%REEES%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | advising |
CREATE TABLE Department (
DNO INTEGER,
Division VARCHAR(2),
DName VARCHAR(25),
Room VARCHAR(5),
Building VARCHAR(13),
DPhone INTEGER
)
CREATE TABLE Member_of (
FacID INTEGER,
DNO INTEGER,
Appt_Type VARCHAR(15)
)
CREATE TABLE Course (
CID VARCHAR(7),
CName VARCHAR(40),
C... | Show me about the correlation between Instructor and DNO in a scatter chart. | SELECT Instructor, DNO FROM Course ORDER BY Credits | nvbench |
CREATE TABLE table_71779 (
"Date" text,
"Region" text,
"Label" text,
"Catalogue" text,
"Format" text
) | Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? | SELECT "Catalogue" FROM table_71779 WHERE "Region" = 'uk' AND "Format" = 'vinyl' AND "Date" = '1986' | wikisql |
CREATE TABLE course (
cid text,
cname text,
credits number,
instructor number,
days text,
hours text,
dno number
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE department (
dno number,
division text,
dname text,
room text,
bui... | Find the distinct student first names of all students that have grade point at least 3.8 in one course. | SELECT DISTINCT T3.fname FROM enrolled_in AS T1 JOIN gradeconversion AS T2 JOIN student AS T3 ON T1.grade = T2.lettergrade AND T1.stuid = T3.stuid WHERE T2.gradepoint >= 3.8 | spider |
CREATE TABLE table_57890 (
"Year" real,
"Association" text,
"Category" text,
"Nominated work" text,
"Result" text
) | Who won the most recent favorite rap/hip-hop new artist at the American music awards? | SELECT MAX("Year") FROM table_57890 WHERE "Association" = 'american music awards' AND "Category" = 'favorite rap/hip-hop new artist' | wikisql |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varch... | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of phone_number and commission_pct , list total number in descending order. | SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | nvbench |
CREATE TABLE Mailshot_Campaigns (
mailshot_id INTEGER,
product_category VARCHAR(15),
mailshot_name VARCHAR(80),
mailshot_start_date DATETIME,
mailshot_end_date DATETIME
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
customer_ph... | Give me a bar chart about the number of customer addresses in each premises type, display x-axis in descending order. | SELECT premises_type, COUNT(premises_type) FROM Customer_Addresses AS T1 JOIN Premises AS T2 ON T1.premise_id = T2.premise_id GROUP BY premises_type ORDER BY premises_type DESC | nvbench |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | how many hours has it been since the last time during this hospital encounter that erythromycin was prescribed to patient 49176? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49176 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'erythromycin' ORDER BY prescriptions.startda... | mimic_iii |
CREATE TABLE table_name_39 (
byes INTEGER,
against VARCHAR,
wins VARCHAR
) | How many Byes have an Against of 972, and more than 11 wins? | SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11 | sql_create_context |
CREATE TABLE table_name_97 (
named VARCHAR,
longitude VARCHAR,
diameter__km_ VARCHAR,
latitude VARCHAR
) | Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3 | SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3 | sql_create_context |
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_required varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_... | i would like information for flights from BALTIMORE to DALLAS on early tuesday morning | 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 = 'DALLAS' AND date_day.day_number = 22 AND date_day.month_number = 3 AND d... | atis |
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... | 患者王飞燕有哪些门诊就诊的检验报告日期在2020-10-11以后?查询这些门诊就诊的流水号 | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND pers... | css |
CREATE TABLE table_14991 (
"LT Nos" text,
"Year" real,
"Bldr" text,
"Type" text,
"Notes" text
) | Bldr of mcw&f, and a Notes of 'mv'; converted from steam stock, 1927, and a Year of 1920, and a LT Nos of 9716-9718 has what type? | SELECT "Type" FROM table_14991 WHERE "Bldr" = 'mcw&f' AND "Notes" = 'mv"; converted from steam stock, 1927' AND "Year" = '1920' AND "LT Nos" = '9716-9718' | wikisql |
CREATE TABLE table_4303 (
"Year" real,
"GDP at constant prices (THB trillions)" text,
"GDP at constant prices growth rate (percent change)" text,
"GDP at current prices (USD billions)" text,
"Export volume of goods and services (percent change)" text,
"Current account balance (percent of GDP)" t... | What is the current account balance for a GDP at current prices of 142.640? | SELECT "Current account balance (percent of GDP)" FROM table_4303 WHERE "GDP at current prices (USD billions)" = '142.640' | wikisql |
CREATE TABLE table_name_27 (
points_against VARCHAR,
club VARCHAR
) | Name the points against for cwmllynfell rfc | SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc" | sql_create_context |
CREATE TABLE table_77112 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | What is Country, when Year(s) Won is '1962'? | SELECT "Country" FROM table_77112 WHERE "Year(s) won" = '1962' | wikisql |
CREATE TABLE table_7009 (
"Order" real,
"Artist" text,
"Song" text,
"Lyrics (l) / Music (m)" text,
"Results" text
) | Who provided lyrics or music to the artist Cube? | SELECT "Lyrics (l) / Music (m)" FROM table_7009 WHERE "Artist" = 'cube' | wikisql |
CREATE TABLE table_53781 (
"Season" real,
"Premier" text,
"Runner Up" text,
"Score" text,
"Venue" text,
"Attendance" real,
"Margin" real
) | How many seasons feature essendon, and a Score of 15.12 (102) 9.14 (68)? | SELECT COUNT("Season") FROM table_53781 WHERE "Premier" = 'essendon' AND "Score" = '15.12 (102) – 9.14 (68)' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | count the number of patients whose admission type is urgent and admission location is phys referral/normal deli? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" | mimicsql_data |
CREATE TABLE table_train_268 (
"id" int,
"basal_rate" float,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"major_illness" bool,
"creatinine_clearance_cl" float,
"injury_to_body" bool,
"diastolic_blood_pressure_dbp" int,
"injury_to_limb" bool,
"hypertension" bool,
... | 18 _ 42 years of age | SELECT * FROM table_train_268 WHERE age >= 18 AND age <= 42 | criteria2sql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | how many patients whose gender is m and diagnoses long title is microscopic hematuria? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Microscopic hematuria" | mimicsql_data |
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,
MZZYZDZZMC ... | 哪些韩志明患者的检验报告单号对应的检验结果指标均异常和检验报告单号都是那个? | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ... | css |
CREATE TABLE table_187 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda? | SELECT "Grand Prix" FROM table_187 WHERE "Winning Constructor" = 'Jordan - Mugen-Honda' | wikisql |
CREATE TABLE table_name_67 (
bronze VARCHAR,
silver VARCHAR,
nation VARCHAR,
total VARCHAR,
rank VARCHAR
) | How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver? | SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5 | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | Tags without Tag Wikis (Unix & Linux). | SELECT TagName, Count, 'http://math.stackexchange.com/questions/tagged/' + TagName AS link_to_questions, 'http://math.stackexchange.com/edit-tag-wiki/' + CAST(Id AS TEXT) AS link_to_tagwiki FROM Tags WHERE ExcerptPostId IS NULL OR WikiPostId IS NULL ORDER BY Count DESC | sede |
CREATE TABLE table_28341 (
"Dates" text,
"Tournament" text,
"Location" text,
"Prize fund ( \uffe5 )" real,
"Winner" text,
"OWGR pts" real
) | What is the date of the tournament at Hokkaid with prize of 150000000? | SELECT "Dates" FROM table_28341 WHERE "Location" = 'Hokkaidō' AND "Prize fund ( \uffe5 )" = '150000000' | wikisql |
CREATE TABLE table_24889 (
"English short name (upper/lower case)" text,
"Alpha-2 code" text,
"Alpha-3 code" text,
"Numeric code" real,
"ISO 3166-2 codes" text
) | What is the Alpha 3 code for the area also known as FO? | SELECT "Alpha-3 code" FROM table_24889 WHERE "Alpha-2 code" = 'FO' | wikisql |
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... | 从03年1月23日至2006年7月17日之间何秀越病患所有检测结果指标记录的质检人为85147197的检验指标流水号是多少? | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jy... | css |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ tim... | 患者吕博涉的胸腹水白蛋白(白蛋白)什么情况在14年9月30日到20年8月11日期间 | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzb... | css |
CREATE TABLE table_27765443_2 (
no_of_processors VARCHAR,
period_of_operation VARCHAR
) | Name the number of processors for october 2006 - january 2010 | SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010" | sql_create_context |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE microbiologyevents (
row_i... | what was the first arterial bp [systolic] of patient 29309 since 09/18/2104. | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29309)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | mimic_iii |
CREATE TABLE behavior_incident (
incident_id number,
incident_type_code text,
student_id number,
date_incident_start time,
date_incident_end time,
incident_summary text,
recommendations text,
other_details text
)
CREATE TABLE ref_incident_type (
incident_type_code text,
incident... | What are the line 1 of addresses shared by some students and some teachers? | SELECT T1.line_1 FROM addresses AS T1 JOIN students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM addresses AS T1 JOIN teachers AS T2 ON T1.address_id = T2.address_id | spider |
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_i... | A bar chart for finding the number of the names of catalog entries with level number 8, and order names in ascending order. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name | nvbench |
CREATE TABLE products_in_events (
product_in_event_id number,
event_id number,
product_id number
)
CREATE TABLE assets (
asset_id number,
other_details text
)
CREATE TABLE finances (
finance_id number,
other_details text
)
CREATE TABLE addresses (
address_id number,
address_detail... | What is the average price for products? | SELECT AVG(product_price) FROM products | spider |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostHistoryTypes (
Id number,
... | The BIGGEST Post Body on Stack Overflow. | SELECT Id AS "post_link", LENGTH(Body) AS Size, CreationDate, LastEditDate FROM Posts ORDER BY LENGTH(Body) DESC LIMIT 1 | sede |
CREATE TABLE table_name_22 (
length VARCHAR,
class VARCHAR,
circuit VARCHAR
) | What was the length for GT class at Portland International Raceway? | SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents ... | what was the name of the drug prescription that patient 45601 was first prescribed in 05/last year? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 45601) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '05' ORD... | mimic_iii |
CREATE TABLE table_name_56 (
team__number2 VARCHAR
) | what's the first leg with gran canaria as team #2? | SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = "gran canaria" | sql_create_context |
CREATE TABLE table_204_664 (
id number,
"rank" number,
"bib" number,
"name" text,
"nationality" text,
"start" text,
"penalties (p+p+s+s)" text,
"time" text,
"deficit" text
) | between bjorn ferry , simon elder and erik lesser - who had the most penalties ? | SELECT "name" FROM table_204_664 WHERE "name" IN ('bjorn ferry', 'simon eder', 'erik lesser') ORDER BY "penalties (p+p+s+s)" DESC LIMIT 1 | squall |
CREATE TABLE table_73965 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
) | What is the production code for the episode where the patient portrayer is Kathy Lamkin? | SELECT "Production code" FROM table_73965 WHERE "Patient Portrayer" = 'Kathy Lamkin' | wikisql |
CREATE TABLE table_name_15 (
crowd INTEGER,
away_team VARCHAR
) | What is the crowd size when the away team was South Melbourne? | SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, find name and the sum of manufacturer , and group by attribute name, and visualize them by a bar chart, show in ascending by the sum manufacturer. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | nvbench |
CREATE TABLE pitching_postseason (
player_id TEXT,
year INTEGER,
round TEXT,
team_id TEXT,
league_id TEXT,
w INTEGER,
l INTEGER,
g INTEGER,
gs INTEGER,
cg INTEGER,
sho INTEGER,
sv INTEGER,
ipouts INTEGER,
h INTEGER,
er INTEGER,
hr INTEGER,
bb INTEGER,
... | Show me the trend about what is the number of wins the team Boston Red Stockings got in the postseasons each year in history?, and list from low to high by the X. | SELECT year, COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year ORDER BY year | nvbench |
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... | provide the number of patients whose procedure short title is opn/oth rep mtrl vlv-tis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Opn/oth rep mtrl vlv-tis" | mimicsql_data |
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,
Weight re... | What is the averag weights for people of each sex? Show a bar chart, and list bar in desc order. | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC | nvbench |
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,
Weight re... | Give me the comparison about Weight over the Date_of_Birth by a bar chart, and display by the x axis in desc please. | SELECT Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth DESC | nvbench |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE... | give me the difference between the total amount of input and the output for patient 21468 on 03/25/this year. | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21468)) AND DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT... | mimic_iii |
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE... | Create a bar chart showing total number of stu hrs across dept code, could you display Y-axis from high to low order please? | SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE ORDER BY SUM(STU_HRS) DESC | 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... | 从11年4月24日到2015年10月6日这一段时间,患者33303356被开出的所有检验报告单的检验报告单号都有哪些? | SELECT zyjybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN zyjybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '33303356' AND zyjybgb.BGRQ BETWEEN '2011-04-24' AND '2015-10... | css |
CREATE TABLE Ref_Payment_Methods (
payment_method_code CHAR(10),
payment_method_description VARCHAR(80)
)
CREATE TABLE Customer_Orders (
Order_ID INTEGER,
Customer_ID INTEGER,
Store_ID INTEGER,
Order_Date DATETIME,
Planned_Delivery_Date DATETIME,
Actual_Delivery_Date DATETIME,
Other... | List the order dates of all the bookings, and count them by a line chart | SELECT Order_Date, COUNT(Order_Date) FROM Bookings | nvbench |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
De... | Your Rank in Your Country or City. | SELECT COUNT(*) FROM Users WHERE Location LIKE '%##Location##%' AND Reputation >= (SELECT Reputation FROM Users WHERE Id = '##UserId##') | sede |
CREATE TABLE table_62419 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
) | Which Pick # has a Nationality of canada, and a Team from of sudbury wolves? | SELECT MIN("Pick #") FROM table_62419 WHERE "Nationality" = 'canada' AND "Team from" = 'sudbury wolves' | wikisql |
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... | 在医院2339646中,查出患者33997628在科室名不包括化疗的就诊科室的门诊就诊记录的流水号有哪些 | SELECT txmzjzjlb.JZLSH FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '33997628' AND hz_info.YLJGDM = '2339646' AND NOT txmzjzjlb.JZKSMC LIKE '%化疗%' UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOIN ftxmzjzjlb ON hz_info.... | css |
CREATE TABLE table_60079 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is Place, when Score is '69-69=138', and when Country is 'United States'? | SELECT "Place" FROM table_60079 WHERE "Score" = '69-69=138' AND "Country" = 'united states' | wikisql |
CREATE TABLE table_21838 (
"Season" real,
"Winners" text,
"Total wins" real,
"Runners-up" text,
"Third-place" text,
"Number of clubs" real
) | How many values for number of clubs have Shandong as the runner-up? | SELECT COUNT("Number of clubs") FROM table_21838 WHERE "Runners-up" = 'Shandong' | wikisql |
CREATE TABLE table_name_60 (
round INTEGER,
college VARCHAR,
overall VARCHAR
) | College of idaho, and an Overall smaller than 141 is what average round? | SELECT AVG(round) FROM table_name_60 WHERE college = "idaho" AND overall < 141 | sql_create_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,
MZZYZDZZMC ... | 自二零零五年八月四日开始,截止到二零一八年四月四日,来医疗机构7733540的小儿心理科看病的患者中,住院就诊的人数是多少 | SELECT COUNT(*) FROM zyjzjlb WHERE zyjzjlb.YLJGDM = '7733540' AND zyjzjlb.JZKSMC = '小儿心理科' AND zyjzjlb.RYDJSJ BETWEEN '2005-08-04' AND '2018-04-04' | css |
CREATE TABLE table_12192 (
"Rank 2014" real,
"Rank 2013" text,
"2009\u201310" text,
"2010\u201311" text,
"2011\u201312" text,
"2012\u201313" text,
"2013\u201314" text,
"Coeff." text,
"Teams" text,
"CL places" real,
"EL places" real,
"Total" real
) | Which EL places have a 2010 11 of 15.666? | SELECT MAX("EL places") FROM table_12192 WHERE "2010\u201311" = '15.666' | wikisql |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Show me about the distribution of ACC_Road and School_ID , and group by attribute ACC_Home in a bar chart, and show Y-axis in descending order. | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY School_ID DESC | nvbench |
CREATE TABLE table_14924 (
"Station" text,
"Frequency" real,
"Network Affiliation" text,
"Format" text,
"City of License" text,
"Status" text
) | Which format has a Station of kcbs? | SELECT "Format" FROM table_14924 WHERE "Station" = 'kcbs' | wikisql |
CREATE TABLE table_name_8 (
home_team VARCHAR,
road_team VARCHAR,
date VARCHAR
) | What is the Home Team on April 13 with a Road Team of St. Louis? | SELECT home_team FROM table_name_8 WHERE road_team = "st. louis" AND date = "april 13" | sql_create_context |
CREATE TABLE table_name_61 (
gold VARCHAR,
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR
) | How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank? | SELECT COUNT(gold) FROM table_name_61 WHERE bronze > 1 AND silver > 1 AND rank = "total" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.