sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT fate FROM table_name_20 WHERE date = "26 april 1942"
CREATE TABLE INST, Here is a database schema( table schema);
What is the fate of the ship on 26 April 1942?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_16 WHERE opponent = "minnesota vikings"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Week, when Opponent is Minnesota Vikings?It is not neccessary to use all the tables.
SELECT COUNT Dates administered FROM table WHERE Poll Source = Research 2000/Daily Kos
CREATE TABLE INST, Here is a database schema( table schema);
When the poll source is research 2000/daily kos, what is the total number of dates administered? .It is not neccessary to use all the tables.
SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title that was first published in February 2009 and is still ongoing?It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Catalog = y8hr 1006 AND Date = 1972
CREATE TABLE INST, Here is a database schema( table schema);
Which label has a catalog of y8hr 1006 in 1972?.It is not neccessary to use all the tables.
SELECT MIN 1st Prize( $ ) FROM table WHERE Location = New Mexico
CREATE TABLE INST, Here is a database schema( table schema);
What was the minimal amount ($) of the 1st prize in the tournaments in New Mexico?.It is not neccessary to use all the tables.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-17122')) AND intakeoutput.celllabel = 'i.v.' AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) <= DATETIME(CURRENT_TIME(), '-1621 day')
CREATE TABLE INST, Here is a database schema( table schema);
what was the total amount of i.v. that patient 035-17122 had received until 1621 days ago?It is not neccessary to use all the tables.
SELECT MIN(samples_taken) FROM table_18943444_1 WHERE product = "蒙牛牌嬰幼兒配方乳粉"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ?It is not neccessary to use all the tables.
SELECT prize FROM table_name_31 WHERE entrants = 453
CREATE TABLE INST, Here is a database schema( table schema);
What prize amount was awarded at the event with 453 entrants?It is not neccessary to use all the tables.
SELECT MAX(area_code), MIN(area_code) FROM area_code_state
CREATE TABLE INST, Here is a database schema( table schema);
What are the maximum and minimum values of area codes?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Release = August 27
CREATE TABLE INST, Here is a database schema( table schema);
What title was released on August 27?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LEFT COLON CANCER" AND procedures.short_title = "Temporary tracheostomy"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is left colon cancer and procedure short title is temporary tracheostomy?It is not neccessary to use all the tables.
SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67"
CREATE TABLE INST, Here is a database schema( table schema);
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?It is not neccessary to use all the tables.
SELECT "Class" FROM table_43400 WHERE "Livery" = 'wessex trains pink'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Class when Wessex Trains Pink is the Livery?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Catalog = 885 380-1
CREATE TABLE INST, Here is a database schema( table schema);
In what Region is Catalog number 885 380-1?.It is not neccessary to use all the tables.
SELECT COUNT(losses) FROM table_name_10 WHERE ballarat_fl = "melton south" AND against > 1468
CREATE TABLE INST, Here is a database schema( table schema);
How many Losses have a Ballarat FL of melton south and an Against larger than 1468?It is not neccessary to use all the tables.
SELECT dorm_name FROM dorm WHERE gender = 'F'
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of dorms only for female (F gender).It is not neccessary to use all the tables.
SELECT _m__finishing_position FROM table_name_44 WHERE president = "ray kaduck" AND _m__coach = "corey bowen"
CREATE TABLE INST, Here is a database schema( table schema);
What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?It is not neccessary to use all the tables.
SELECT Co-Drivers FROM table WHERE Year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
Who were the co-drivers in 2008?.It is not neccessary to use all the tables.
SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 7
CREATE TABLE INST, Here is a database schema( table schema);
what is the score for the 5th position and a score less than 7It is not neccessary to use all the tables.
SELECT result FROM table_name_95 WHERE date = "9 september 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the match on 9 September 2009?It is not neccessary to use all the tables.
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the station name with greatest number of trains.It is not neccessary to use all the tables.
SELECT cName, state, MIN(enr) FROM college GROUP BY state
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of school that has the smallest enrollment in each state?It is not neccessary to use all the tables.
SELECT blocks FROM table_13050003_2 WHERE points = "Zach Randolph (24)"
CREATE TABLE INST, Here is a database schema( table schema);
Who are the blockers where points are scored by Zach Randolph (24)?It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_22 WHERE date = "september 21, 1980"
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the September 21 1980 game?It is not neccessary to use all the tables.
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which template type code is used by most number of documents?It is not neccessary to use all the tables.
SELECT result FROM table_name_83 WHERE year < 2005
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for years prior to 2005?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Season = 2013 AND Result = 0–0
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team for the 2013 season and the result was 0–0?.It is not neccessary to use all the tables.
SELECT name, ID FROM swimmer ORDER BY ID
CREATE TABLE INST, Here is a database schema( table schema);
Draw a bar chart about the distribution of name and ID , and could you rank by the Y in ascending please?It is not neccessary to use all the tables.
SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Date and an Opponent which has a f Position and Career Games of 123 games?It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE Method = tko (punches) AND Time = 0:40
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of rounds when method is tko (punches) and time is 0:40?.It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Winning score = –10 (69-68-74-67=278)
CREATE TABLE INST, Here is a database schema( table schema);
Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?.It is not neccessary to use all the tables.
SELECT team FROM table_29398373_2 WHERE head_coach = "Javier Clemente"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for javier clementeIt is not neccessary to use all the tables.
SELECT location_attendance FROM table_23286112_8 WHERE date = "January 18"
CREATE TABLE INST, Here is a database schema( table schema);
Name the location attendance for january 18It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2009 = 2r AND Tournament = wimbledon
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2011 for 2009 being 2r at wimbledon.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_63 WHERE tie_no = "5"
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has a Tie number of 5?It is not neccessary to use all the tables.
SELECT catalogno FROM table_name_31 WHERE remark = "#160 us"
CREATE TABLE INST, Here is a database schema( table schema);
Which Catalogno was #160 us?It is not neccessary to use all the tables.
SELECT driver FROM table_name_43 WHERE team = "newman-haas racing" AND time_retired = "1:51:47.260"
CREATE TABLE INST, Here is a database schema( table schema);
Who drives for Newman-Haas Racing with a time of 1:51:47.260?It is not neccessary to use all the tables.
SELECT 2009 FROM table WHERE 2011 = a
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the 2009 that has the 2011 of A?.It is not neccessary to use all the tables.
SELECT t.TagName, COUNT(*) AS count FROM PostTags AS pt, Tags AS t, PostTags AS ptjs WHERE pt.TagId = t.Id AND pt.PostId = ptjs.PostId AND ptjs.TagId = (SELECT Id FROM Tags WHERE LOWER(TagName) = 'javascript') GROUP BY t.TagName ORDER BY Count DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top tags related to Java and SSH.It is not neccessary to use all the tables.
SELECT format FROM table_name_86 WHERE catalog = "2508668"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Format of the release with Catalog number 2508668?It is not neccessary to use all the tables.
SELECT Loser FROM table WHERE Time = 0:58
CREATE TABLE INST, Here is a database schema( table schema);
Who lost with a time of 0:58?.It is not neccessary to use all the tables.
SELECT AVG Game FROM table WHERE Date = october 16
CREATE TABLE INST, Here is a database schema( table schema);
What average game was played on October 16?.It is not neccessary to use all the tables.
SELECT Date and Opponent FROM table WHERE Position = f AND Career Games = 123 games
CREATE TABLE INST, Here is a database schema( table schema);
Name the Date and an Opponent which has a f Position and Career Games of 123 games?.It is not neccessary to use all the tables.
SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = "tunisia" AND average_relative_annual_growth___percentage_ < 1.03
CREATE TABLE INST, Here is a database schema( table schema);
What is the average % of population Tunisia which has an average relative annual growth smaller than 1.03?It is not neccessary to use all the tables.
SELECT pictorials FROM table_1566848_6 WHERE interview_subject = "Steve Jobs"
CREATE TABLE INST, Here is a database schema( table schema);
Name the pictorials when the interview subject is steve jobsIt is not neccessary to use all the tables.
SELECT player FROM table_name_61 WHERE tries = 23
CREATE TABLE INST, Here is a database schema( table schema);
What Player has 23 Tries?It is not neccessary to use all the tables.
SELECT share_of_votes FROM table_name_40 WHERE number_of_ndc_votes = "3,567,021"
CREATE TABLE INST, Here is a database schema( table schema);
What is the share of votes with 3567021 NDC votes?It is not neccessary to use all the tables.
SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996"
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of 000s from 1996?It is not neccessary to use all the tables.
SELECT COUNT(points_for) FROM table_14058433_5 WHERE points_against = "177"
CREATE TABLE INST, Here is a database schema( table schema);
how many points for with points against being 177It is not neccessary to use all the tables.
SELECT Role FROM table WHERE Genre = drama AND Year = 1973
CREATE TABLE INST, Here is a database schema( table schema);
What drama role does she play in 1973?.It is not neccessary to use all the tables.
SELECT Viewers (in millions) FROM table WHERE Run time = 23:25
CREATE TABLE INST, Here is a database schema( table schema);
How many millions viewers watched the episode that ran 23:25?.It is not neccessary to use all the tables.
SELECT origin FROM table_name_84 WHERE chart_no = 52
CREATE TABLE INST, Here is a database schema( table schema);
What is origin country for a title that charted at 52?It is not neccessary to use all the tables.
SELECT written_by FROM table_16432167_1 WHERE production_code = "942A"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode with the production code of 942A?It is not neccessary to use all the tables.
SELECT MIN Lane FROM table WHERE Country = france AND React < 0.14100000000000001
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001?.It is not neccessary to use all the tables.
SELECT i_o_bus FROM table_name_65 WHERE release_price___usd__ = "$657"
CREATE TABLE INST, Here is a database schema( table schema);
What is the I/O bus entry for the processor with a release price of $657?It is not neccessary to use all the tables.
SELECT finish FROM table_name_26 WHERE qual = "123.660"
CREATE TABLE INST, Here is a database schema( table schema);
What was the finish place with a qual of 123.660?It is not neccessary to use all the tables.
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem"
CREATE TABLE INST, Here is a database schema( table schema);
Capital of brześć nad bugiem has what population (1931) in 1000s?It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE District = south carolina 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the first elected date for the incumbent in the South Carolina 4 district?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Method = submission (armbar) AND Record = 9-3-1
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tie no = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when there were 7 ties?.It is not neccessary to use all the tables.
SELECT Credits, Instructor FROM Course ORDER BY Credits
CREATE TABLE INST, Here is a database schema( table schema);
Return a scatter chart about the correlation between Credits and Instructor .It is not neccessary to use all the tables.
SELECT latin FROM table_name_64 WHERE virtue = "temperance"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Virtue of Temperance in Latin?It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Primary Conference = Merged into the University of Massachusetts Boston
CREATE TABLE INST, Here is a database schema( table schema);
Which institutions primary conference is merged into the university of Massachusetts boston? .It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Title = "Ambush" (Part 1)
CREATE TABLE INST, Here is a database schema( table schema);
Who is the writer of the episode called "Ambush" (part 1)?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Laps = 116
CREATE TABLE INST, Here is a database schema( table schema);
What is the year with 116 laps?.It is not neccessary to use all the tables.
SELECT Laps FROM table WHERE Manufacturer = suzuki AND Time/Retired = +1:02.804
CREATE TABLE INST, Here is a database schema( table schema);
Name the laps for suzuki and time/retired of +1:02.804.It is not neccessary to use all the tables.
SELECT manner_of_departure FROM table_name_25 WHERE outgoing_manager = "luis fernando tena"
CREATE TABLE INST, Here is a database schema( table schema);
What is Manner of Departure when Outgoing Manager is "Luis Fernando Tena"?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home team = manchester united
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Home Team is "Manchester United"?.It is not neccessary to use all the tables.
SELECT MAX Run 2 FROM table WHERE Athlete = eric neilson AND Run 3 > 55.97
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest run 2 of athlete eric neilson, who has a run 3 larger than 55.97?.It is not neccessary to use all the tables.
SELECT MIN Internal Transfers FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least internal transfers.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Venue = windy hill
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the venue was Windy Hill?.It is not neccessary to use all the tables.
SELECT Writer(s) FROM table WHERE Airdate = October 14, 1968
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer of the episode that originally aired on October 14, 1968?.It is not neccessary to use all the tables.
SELECT date FROM table_name_99 WHERE record = "3-3"
CREATE TABLE INST, Here is a database schema( table schema);
When was the record 3-3?It is not neccessary to use all the tables.
SELECT player FROM table_14655985_1 WHERE college = "Penn State"
CREATE TABLE INST, Here is a database schema( table schema);
what's the player with college being penn stateIt is not neccessary to use all the tables.
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood"
CREATE TABLE INST, Here is a database schema( table schema);
What is 6-2 Martina Wood's Position?It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_22654073_13 WHERE date = "May 11"
CREATE TABLE INST, Here is a database schema( table schema);
List all high rebound entries from May 11.It is not neccessary to use all the tables.
SELECT MAX(gold) FROM table_name_19 WHERE silver < 2 AND total > 7 AND bronze < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the most gold medals a team with less than 2 silvers more than 7 total medals and less than 8 bronze medals has?It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Bronze = 2 AND Rank = 61 AND Total > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61?.It is not neccessary to use all the tables.
SELECT COUNT("Gold") FROM table_8304 WHERE "Bronze" = '1' AND "Total" < '1'
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal?It is not neccessary to use all the tables.
SELECT t568a_color FROM table_name_44 WHERE t568b_color = "white/orange stripe"
CREATE TABLE INST, Here is a database schema( table schema);
What is the T568A color for the cable with a white/orange stripe T568B color?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the driver who won $127541 driving car #31 get?It is not neccessary to use all the tables.
SELECT Co-presenter FROM table WHERE Series = Seven (2007)
CREATE TABLE INST, Here is a database schema( table schema);
Who is the co-presenter of the series Seven (2007)?.It is not neccessary to use all the tables.
SELECT Occupation FROM table WHERE Hometown = santa monica, california
CREATE TABLE INST, Here is a database schema( table schema);
What is listed under occupation for someone from Santa Monica, California?.It is not neccessary to use all the tables.
SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id
CREATE TABLE INST, Here is a database schema( table schema);
How many games has each stadium held?It is not neccessary to use all the tables.
SELECT years_in_toronto FROM table_name_87 WHERE nationality = "united states" AND school_club_team = "arkansas"
CREATE TABLE INST, Here is a database schema( table schema);
What year is United States school/club team from Arkansas play in TorontoIt is not neccessary to use all the tables.
SELECT COUNT("school") FROM table_203_721
CREATE TABLE INST, Here is a database schema( table schema);
what 's the number of schools represented in the table ?It is not neccessary to use all the tables.
SELECT date FROM table_27733909_1 WHERE game = 5
CREATE TABLE INST, Here is a database schema( table schema);
what are the times where the play is 5It is not neccessary to use all the tables.
SELECT runner_up FROM table_name_44 WHERE total = "£31,200"
CREATE TABLE INST, Here is a database schema( table schema);
Which Runner-Up has a Total of £31200?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 60072
CREATE TABLE INST, Here is a database schema( table schema);
What date did the episode with a production code of 60072 originally air?.It is not neccessary to use all the tables.
SELECT "AFC Championships" FROM table_23060 WHERE "Playoff Berths" = '17'
CREATE TABLE INST, Here is a database schema( table schema);
If the playoff berth is 17, what is the AFC championship number?It is not neccessary to use all the tables.
SELECT Conflict FROM table WHERE Location = Iraq
CREATE TABLE INST, Here is a database schema( table schema);
What is every conflict in Iraq?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Novelty = gen et sp nov
CREATE TABLE INST, Here is a database schema( table schema);
What name has gen et sp nov as the novelty?.It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Races = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the points with 7 races?.It is not neccessary to use all the tables.
SELECT SUM(grid) FROM table_name_34 WHERE driver = "jack brabham" AND laps > 65
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid for Jack Brabham with more than 65 laps?It is not neccessary to use all the tables.
SELECT score FROM table_name_22 WHERE venue = "riyadh, saudi arabia" AND result = "win"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Venue is Riyadh Saudi Arabia and when Result is "Win"?It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Date = march 13, 2002
CREATE TABLE INST, Here is a database schema( table schema);
What is the Catalog with a Date that is march 13, 2002?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_52 WHERE album = "remixes"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Year that has an Album of Remixes?It is not neccessary to use all the tables.
SELECT Bowl Game FROM table WHERE Matchup/Results = Oklahoma 31, Stanford 27
CREATE TABLE INST, Here is a database schema( table schema);
In what bowl game was the result Oklahoma 31, Stanford 27?.It is not neccessary to use all the tables.
SELECT glendale_principal FROM table_name_58 WHERE ms_principal = "greg smorel" AND hs_principal = "joleen reinholz" AND year = "2006-2007"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?It is not neccessary to use all the tables.