instruction
stringlengths
0
1.06k
input
stringlengths
33
7.14k
response
stringlengths
2
4.44k
source
stringclasses
25 values
prompt
listlengths
1
1
input_ids
listlengths
1
1
label_ids
listlengths
1
1
What is the total number of against when they had 14 losses and more than 0 byes?
CREATE TABLE table_name_34 ( against INTEGER, losses VARCHAR, byes VARCHAR )
SELECT SUM(against) FROM table_name_34 WHERE losses = 14 AND byes > 0
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What did the golfer from Australia score?
CREATE TABLE table_name_13 ( score VARCHAR, country VARCHAR )
SELECT score FROM table_name_13 WHERE country = "australia"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
List of all tagnames (each with one post).
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 t.TagName, MIN(q.Id) AS "post_link" FROM Tags AS t INNER JOIN PostTags AS pt ON t.Id = pt.TagId INNER JOIN Posts AS q ON q.Id = pt.PostId GROUP BY t.TagName ORDER BY t.TagName
sede
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many bids does Atlantic 10 have?
CREATE TABLE table_name_98 ( _number_of_bids VARCHAR, conference VARCHAR )
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 10"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total number of years Andy Murray was at Wimbledon?
CREATE TABLE table_45484 ( "Year" real, "Australian Open" text, "French Open" text, "Wimbledon" text, "US Open" text )
SELECT COUNT("Year") FROM table_45484 WHERE "Wimbledon" = 'andy murray'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
CREATE TABLE table_name_64 ( laps INTEGER, constructor VARCHAR, grid VARCHAR )
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
When will EECS 582 be offered ?
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 )...
SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 582 AND course_offering.semester = semester.semester_id AND semester.semester_id > (SELECT SEMESTERalias1.semester_id FROM semeste...
advising
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What episode number is presented by Ben Okri ?
CREATE TABLE table_1208 ( "Episode No." text, "Episode Title" text, "UK Broadcast Date" text, "Presenter" text, "Countries Visited" text )
SELECT "Episode No." FROM table_1208 WHERE "Presenter" = 'Ben Okri'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4?
CREATE TABLE table_51322 ( "Episode" text, "Air Date" text, "Timeslot (EST)" text, "Season" real, "Rating" real, "Share" real, "18\u201349" real, "Viewers (m)" real, "Rank (#)" text )
SELECT AVG("18\u201349") FROM table_51322 WHERE "Viewers (m)" = '3.93' AND "Share" < '4'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who were the candidates for election that had a result of a retired jacksonian gain?
CREATE TABLE table_2668264_8 ( candidates VARCHAR, result VARCHAR )
SELECT candidates FROM table_2668264_8 WHERE result = "Retired Jacksonian gain"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who is the Runner-up that has a Season less than 2005?
CREATE TABLE table_39340 ( "Season" real, "Winner" text, "Score" text, "Runner-up" text, "Venue" text )
SELECT "Runner-up" FROM table_39340 WHERE "Season" < '2005'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama?
CREATE TABLE table_66527 ( "Airing date" text, "English title (Chinese title)" text, "Number of episodes" real, "Theme song (T) Sub-theme song (ST)" text, "Genre" text )
SELECT "Airing date" FROM table_66527 WHERE "Number of episodes" > '20' AND "Genre" = 'modern drama'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show me about the distribution of All_Games and Team_ID in a bar chart, display in desc by the y-axis.
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, Team_ID FROM basketball_match ORDER BY Team_ID DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the birth date for Mervyn Dillon?
CREATE TABLE table_name_11 ( date_of_birth VARCHAR, player VARCHAR )
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what were the four most commonly given microbiology tests a year before for patients who had previously undergone packed cell transfusion within the same hospital visit?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, ...
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_pro...
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the analog type for cw on digital 26?
CREATE TABLE table_15352 ( "Media market name" text, "Callsign" text, "Analog" text, "Digital" text, "Affiliation" text )
SELECT "Analog" FROM table_15352 WHERE "Affiliation" = 'cw' AND "Digital" = '26'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Display a bar chart for the names and the ages of editors, list by the bar from low to high.
CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) CREATE TABLE editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text )
SELECT Name, Age FROM editor ORDER BY Name
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find All_Road and Team_ID , and visualize them by a bar chart.
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...
SELECT All_Road, Team_ID FROM basketball_match
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are the top three most frequent procedures among the patients who have 20s since 3 years ago?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, ...
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, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B...
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many captains with younger than 50 are in each rank. Visualize by pie chart.
CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text )
SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which home team scored 18.11 (119)?
CREATE TABLE table_56456 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_56456 WHERE "Home team score" = '18.11 (119)'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who was hired before 2002-06-21, a line chart shows the change of manager_id over hire_date, display X-axis in descending order.
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 varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), ...
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what were the number of times patient 015-56390 produced a nephrostomy right output on the last icu visit?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ...
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-56390') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.uni...
eicu
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of times patient 27703's rbc, csf test has been taken last month.
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose...
SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'rbc, csf') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27703) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), ...
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the Rider which has a Time of +59.304?
CREATE TABLE table_59207 ( "Rider" text, "Bike" text, "Laps" real, "Time" text, "Grid" real )
SELECT "Rider" FROM table_59207 WHERE "Time" = '+59.304'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are the three most common drugs prescribed until 1 year ago for patients of 40s?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose...
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 40 AND 49) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY pres...
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many points does catcat have with more than 2 draws?
CREATE TABLE table_13981 ( "Draw" real, "Language" text, "Artist" text, "Song" text, "English translation" text, "Place" real, "Points" real )
SELECT AVG("Points") FROM table_13981 WHERE "Artist" = 'catcat' AND "Draw" > '2'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the bowling score of season 1907?
CREATE TABLE table_name_23 ( bowling VARCHAR, season VARCHAR )
SELECT bowling FROM table_name_23 WHERE season = "1907"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Position has a Competition of world championships, and a Year larger than 1997?
CREATE TABLE table_name_27 ( position VARCHAR, competition VARCHAR, year VARCHAR )
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
For those employees who did not have any job in the past, what is the relationship between salary and manager_id ?
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
SELECT SALARY, MANAGER_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What courses are required as a prerequisite to LATINOAM 204 ?
CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program ( program_id int, name varchar, ...
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT...
advising
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?
CREATE TABLE table_name_19 ( height__cm_ VARCHAR, jersey__number VARCHAR, name VARCHAR )
SELECT COUNT(height__cm_) FROM table_name_19 WHERE jersey__number < 16 AND name = "mark fusco"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the highest Super G, when Season is later than 1996?
CREATE TABLE table_7716 ( "Season" real, "Overall" real, "Slalom" text, "Super G" real, "Downhill" text, "Combined" text )
SELECT MAX("Super G") FROM table_7716 WHERE "Season" > '1996'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the name of drug patient 015-1581 has been prescribed two or more times until 57 months ago?
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.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015...
eicu
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many students are affected by each allergy type Visualize by bar chart, order by the X-axis in ascending.
CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER...
SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY AllergyType
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the seasons and winners that airs 28 january 2007
CREATE TABLE table_16884579_1 ( seasons_and_winners VARCHAR, premiere VARCHAR )
SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is minimum age of patients whose primary disease is gangrene and days of hospital stay is 27?
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 MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "GANGRENE" AND demographic.days_stay = "27"
mimicsql_data
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?
CREATE TABLE table_name_35 ( score VARCHAR, december VARCHAR, points VARCHAR, game VARCHAR )
SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the dose of phenylephrine hcl, that patient 12274 was first prescribed in 01/2105?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_i...
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12274) AND prescriptions.drug = 'phenylephrine hcl' AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-01' ORDER BY prescriptions.startdate LIMIT 1
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how long did it take for jan urfer to complete run 2 ?
CREATE TABLE table_203_358 ( id number, "pos." number, "athlete" text, "run 1" number, "run 2" number, "total" text )
SELECT "run 2" FROM table_203_358 WHERE "athlete" = 'jan urfer'
squall
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which game has an opponent of Phoenix Coyotes and was before Dec 9?
CREATE TABLE table_39366 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text )
SELECT AVG("Game") FROM table_39366 WHERE "Opponent" = 'phoenix coyotes' AND "December" < '9'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what are all the date for gt3 winner oliver bryant matt harris
CREATE TABLE table_13079788_3 ( date VARCHAR, gt3_winner VARCHAR )
SELECT date FROM table_13079788_3 WHERE gt3_winner = "Oliver Bryant Matt Harris"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Visualize a bar chart about the distribution of Time and meter_100 , could you display in descending by the x-axis?
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 swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_40...
SELECT Time, meter_100 FROM swimmer ORDER BY Time DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Original NFL team of the CB Player?
CREATE TABLE table_name_31 ( original_nfl_team VARCHAR, pos VARCHAR )
SELECT original_nfl_team FROM table_name_31 WHERE pos = "cb"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the 2007 value with 2r in 2011 and 2r in 2008?
CREATE TABLE table_68651 ( "Tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text )
SELECT "2007" FROM table_68651 WHERE "2011" = '2r' AND "2008" = '2r'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many matches were held in the netherlands ?
CREATE TABLE table_204_53 ( id number, "date" text, "result" text, "opponent" text, "event" text, "location" text, "method" text, "round" number, "time" text )
SELECT COUNT("event") FROM table_204_53 WHERE "location" = 'netherlands'
squall
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
who is ranked before delhi ?
CREATE TABLE table_203_860 ( id number, "rank" number, "city" text, "population (2011)" number, "population (2001)" number, "state/territory" text )
SELECT "city" FROM table_203_860 WHERE "rank" = (SELECT "rank" FROM table_203_860 WHERE "city" = 'delhi') - 1
squall
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what is the perfect of mass when the molecules is 1.74e14*?
CREATE TABLE table_name_58 ( percent_of_mass VARCHAR, molecules VARCHAR )
SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Tournament had a Winning score of 6 (73-68-72-69=282)?
CREATE TABLE table_name_49 ( tournament VARCHAR, winning_score VARCHAR )
SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282)
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Lost with Against smaller than 25, and Played smaller than 1?
CREATE TABLE table_name_93 ( lost INTEGER, against VARCHAR, played VARCHAR )
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the names of catalog entries with level number 8.
CREATE TABLE Catalog_Contents_Additional_Attributes ( catalog_entry_id VARCHAR, catalog_level_number VARCHAR ) CREATE TABLE Catalog_Contents ( catalog_entry_name VARCHAR, catalog_entry_id VARCHAR )
SELECT t1.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"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
what flights leave from CHICAGO to SEATTLE on saturday
CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturd...
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 = 'SEATTLE' AND date_day.day_number = 26 AND date_day.month_number = 7 AND d...
atis
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many production codes are there for the episode that had 4.36 million u.s. viewers?
CREATE TABLE table_30247 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (million)" text )
SELECT COUNT("Production code") FROM table_30247 WHERE "U.S. viewers (million)" = '4.36'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Loss of wilcox, and a Date of jun 18 had what opponent?
CREATE TABLE table_name_95 ( opponent VARCHAR, loss VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_95 WHERE loss = "wilcox" AND date = "jun 18"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who directed k0122?
CREATE TABLE table_2618113_1 ( directed_by VARCHAR, production_code VARCHAR )
SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the link abilities when the predecessors is ti-85?
CREATE TABLE table_11703336_1 ( link_abilities VARCHAR, predecessors VARCHAR )
SELECT link_abilities FROM table_11703336_1 WHERE predecessors = "TI-85"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the finish with less than 200 laps in 1953?
CREATE TABLE table_14816 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT "Finish" FROM table_14816 WHERE "Laps" < '200' AND "Year" = '1953'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Result with a Venue that is n?
CREATE TABLE table_7187 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
SELECT "Result" FROM table_7187 WHERE "Venue" = 'n'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many papers are in emnlp ?
CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE writes ( paperid int, ...
SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'emnlp'
scholar
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many companies that are not headquartered in the United States for each main industry? Show me a bar chart, and could you display by the total number from high to low?
CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int ) CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE company ( Company_ID int, Rank i...
SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE Headquarters <> 'USA' GROUP BY Main_Industry ORDER BY COUNT(Main_Industry) DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?
CREATE TABLE table_name_33 ( tournament VARCHAR, partner VARCHAR, opponent_in_the_final VARCHAR )
SELECT tournament FROM table_name_33 WHERE partner = "nicole thijssen" AND opponent_in_the_final = "nina bratchikova & frederica piedade"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
If the games played are smaller than 18, what are the lowest goals conceded?
CREATE TABLE table_name_72 ( goals_conceded INTEGER, played INTEGER )
SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total medal count for the nation that has 5 gold?
CREATE TABLE table_name_91 ( total VARCHAR, gold VARCHAR )
SELECT total FROM table_name_91 WHERE gold = "5"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3
CREATE TABLE table_59964 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text, "Week 6" text, "Week 7" text, "Week 8" text, "Week 9" text, "Week 10 FINAL" text )
SELECT "Week 1" FROM table_59964 WHERE "Week 8" = 'not eligible' AND "Week 9" = 'no nominations' AND "Week 3" = 'cyril'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the naems of all the projects, and how many scientists were assigned to each of them.
CREATE TABLE Projects ( Code Char(4), Name Char(50), Hours int ) CREATE TABLE AssignedTo ( Scientist int, Project char(4) ) CREATE TABLE Scientists ( SSN int, Name Char(30) )
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many destinations have a weekly frequency and are named AC Express?
CREATE TABLE table_24575 ( "Train No." text, "Train Name" text, "Destination" text, "Category" text, "Frequency" text )
SELECT COUNT("Destination") FROM table_24575 WHERE "Frequency" = 'Weekly' AND "Train Name" = 'AC Express'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which team plays home at Princes Park?
CREATE TABLE table_74799 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_74799 WHERE "Venue" = 'princes park'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the average losses for team with points larger than 3 and played larger thna 14?
CREATE TABLE table_49511 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real )
SELECT AVG("Lost") FROM table_49511 WHERE "Points" > '3' AND "Played" > '14'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
show me the flights from DENVER to PHILADELPHIA again
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE airport ( airport_code 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADE...
atis
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Bar chart of minimal price from each name
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 )
SELECT Name, MIN(Price) FROM Products GROUP BY Name
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the sum of To Par, when Country is 'United States', and when Year(s) Won is '1973'?
CREATE TABLE table_name_23 ( to_par INTEGER, country VARCHAR, year_s__won VARCHAR )
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630?
CREATE TABLE table_5195 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text )
SELECT "Qual 2" FROM table_5195 WHERE "Qual 1" = '1:01.630'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many longitudes have a diameter of 224.0?
CREATE TABLE table_21059 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter" text, "Year named" real, "Namesake" text )
SELECT COUNT("Longitude") FROM table_21059 WHERE "Diameter" = '224.0'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
when was the first time that patient 31696 has been prescribed medication via td route in 07/last year?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime ...
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31696) AND prescriptions.route = 'td' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m',...
mimic_iii
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Emacs questions across Stack Exchange, per month. Number of questions posted each month about Emacs across Stack Exchange. All questions from Emacs Stack Exchange are included, as well as questions tagged [emacs*], [elisp] or [org-mode] on other sites.
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) ...
SELECT so.month AS "month", emacs.count AS "emacs", so.count AS "so" FROM (SELECT CAST(YEAR(p.CreationDate) AS TEXT(4)) + '-' + CAST(MONTH(p.CreationDate) AS TEXT(2)) AS "month", COUNT(*) AS "count" FROM "stackexchange.emacs".dbo.Posts AS p GROUP BY YEAR(p.CreationDate), MONTH(p.CreationDate)) AS emacs JOIN (SELECT CAS...
sede
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the away team when bournemouth was the home team?
CREATE TABLE table_8021 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Away team" FROM table_8021 WHERE "Home team" = 'bournemouth'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
With a per capita income of $30,298, what was the total number of households?
CREATE TABLE table_1840495_2 ( number_of_households VARCHAR, per_capita_income VARCHAR )
SELECT COUNT(number_of_households) FROM table_1840495_2 WHERE per_capita_income = "$30,298"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
count the number of patients whose admission year is less than 2198 and diagnoses short title is aftrcre traum fx low leg?
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2198" AND diagnoses.short_title = "Aftrcre traum fx low leg"
mimicsql_data
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
of the flights available from DALLAS to BALTIMORE on 8 3 which airline has the least expensive flight
CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, m...
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, date_day, days, fare, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 3 A...
atis
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
is joseph dillman single, married, or widowed?
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 demographic.marital_status FROM demographic WHERE demographic.name = "Joseph Dillman"
mimicsql_data
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show all calendar dates and day Numbers in a line chart, sort in desc by the x axis.
CREATE TABLE Document_Locations ( Document_ID INTEGER, Location_Code CHAR(15), Date_in_Location_From DATETIME, Date_in_Locaton_To DATETIME ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE...
SELECT Calendar_Date, Day_Number FROM Ref_Calendar ORDER BY Calendar_Date DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Visualize a scatter chart about the correlation between Clean_Jerk and Total .
CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Birth_Date text, Birth_Place text ) CREATE TABLE body_builder ( Body_Builder_ID int, People_ID int, Snatch real, Clean_Jerk real, Total real )
SELECT Clean_Jerk, Total FROM body_builder
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
how many games had an attendance of more than 30,000 ?
CREATE TABLE table_204_147 ( id number, "#" number, "date" text, "opponent" text, "score" text, "win" text, "loss" text, "save" text, "attendance" number, "record" text )
SELECT COUNT(*) FROM table_204_147 WHERE "attendance" > 30000
squall
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?
CREATE TABLE table_49940 ( "Player" text, "Team" text, "Matches" real, "Wickets" real, "Average" real, "Best Bowling" text )
SELECT COUNT("Average") FROM table_49940 WHERE "Team" = 'england' AND "Wickets" < '18' AND "Best Bowling" = '4/138' AND "Matches" < '3'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Do Questions Get Answers on Math.StackExchange?.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE FlagTypes ( Id number, Name text, Des...
SELECT q1."# ans", q1."ct" AS "#q", q2."ct" AS "#q score>5" FROM (SELECT Posts.AnswerCount AS "# ans", COUNT(*) AS "ct" FROM Posts WHERE Posts.AnswerCount >= -1 AND Posts.AnswerCount < 10 AND Posts.Score > 0 GROUP BY Posts.AnswerCount) AS q1 INNER JOIN (SELECT Posts.AnswerCount AS "# ans", COUNT(*) AS "ct" FROM Posts W...
sede
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return the number of the claim start date for the claims whose claimed amount is no more than the average, could you show by the Y-axis in ascending?
CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER,...
SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made)
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Date has a Score of 2 3, a Time of 20:30, and a Set 3 of 16 25?
CREATE TABLE table_name_38 ( date VARCHAR, set_3 VARCHAR, score VARCHAR, time VARCHAR )
SELECT date FROM table_name_38 WHERE score = "2–3" AND time = "20:30" AND set_3 = "16–25"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the Film title used in nomination of the Film with a Serbian title of ?
CREATE TABLE table_name_49 ( film_title_used_in_nomination VARCHAR, serbian_title VARCHAR )
SELECT film_title_used_in_nomination FROM table_name_49 WHERE serbian_title = "бело одело"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return a bar chart about the distribution of All_Road and School_ID , could you list by the names in asc please?
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_Road, School_ID FROM basketball_match ORDER BY All_Road
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Find the number of students for the cities where have more than one student, and sort by the X-axis from high to low.
CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenity ( ameni...
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Which Website has a Frequency smaller than 760 and a Callsign of kkyx?
CREATE TABLE table_name_85 ( website VARCHAR, frequency VARCHAR, callsign VARCHAR )
SELECT website FROM table_name_85 WHERE frequency < 760 AND callsign = "kkyx"
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal?
CREATE TABLE table_6567 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Bronze") FROM table_6567 WHERE "Silver" = '0' AND "Rank" = '3' AND "Total" < '1'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the score for game 5
CREATE TABLE table_29612 ( "Game" real, "October" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real )
SELECT "Score" FROM table_29612 WHERE "Game" = '5'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Name the being qualities for having things of friendships, family, relationships with nature
CREATE TABLE table_68450 ( "Need" text, "Being (qualities)" text, "Having (things)" text, "Doing (actions)" text, "Interacting (settings)" text )
SELECT "Being (qualities)" FROM table_68450 WHERE "Having (things)" = 'friendships, family, relationships with nature'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the weights of entrepreneurs in descending order of money requested?
CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text )
SELECT T2.weight FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id ORDER BY T1.money_requested DESC
spider
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
among patients who were prescribed with atropine 0.1 mg/ml syringe : 10 ml syringe, what is the three most frequently prescribed drug at the same time, until 1 year ago?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, d...
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'atropine 0.1 mg/ml syringe : 10 ml syringe' AND DAT...
eicu
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who was the opponent in Game 27?
CREATE TABLE table_name_94 ( opponent VARCHAR, game VARCHAR )
SELECT opponent FROM table_name_94 WHERE game = 27
sql_create_context
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Show all payment method codes and the number of orders for each code Show bar chart, order from high to low by the Y.
CREATE TABLE Services ( Service_ID INTEGER, Service_Type_Code CHAR(15), Workshop_Group_ID INTEGER, Product_Description VARCHAR(255), Product_Name VARCHAR(255), Product_Price DECIMAL(20,4), Other_Product_Service_Details VARCHAR(255) ) CREATE TABLE Order_Items ( Order_Item_ID INTEGER, ...
SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC
nvbench
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?
CREATE TABLE table_77069 ( "Name of System" text, "Location" text, "Traction Type" text, "Date (From)" text, "Date (To)" text )
SELECT "Date (To)" FROM table_77069 WHERE "Traction Type" = 'electric' AND "Name of System" = 'yarmouth light and power company'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?
CREATE TABLE table_19282 ( "Series" text, "Main presenter" text, "Co-presenter" text, "Comedian" text, "UK co-presenter" text )
SELECT COUNT("UK co-presenter") FROM table_19282 WHERE "Co-presenter" = 'Joe Swash' AND "Comedian" = 'Russell Kane'
wikisql
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ 128000, 128006, 9125, 128007, 271, 38766, 1303, 33025, 2696, 25, 6790, 220, 2366, 18, 198, 15724, 2696, 25, 220, 1721, 4723, 220, 2366, 20, 271, 2675, 527, 264, 7941, 1887, 28175, 304, ...
[ [ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...