sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT AVG Points FROM table WHERE Field goals = 0 AND Touchdowns > 9 AND Extra points = 0 AND Player = duncan thompson | CREATE TABLE INST, Here is a database schema( table schema); | While Duncan Thompson played, how many points did he have where there were 0 field goals, 0 extra points, and more than 9 touchdowns?.It is not neccessary to use all the tables. |
SELECT COUNT Pick FROM table WHERE Player = danny green AND Round < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the pick number for Danny Green in a round less than 2?.It is not neccessary to use all the tables. |
SELECT state FROM table_name_76 WHERE region = "mideast" AND city = "knoxville" | CREATE TABLE INST, Here is a database schema( table schema); | What state is Knoxville and the mideast region located in?It is not neccessary to use all the tables. |
SELECT award FROM table_name_62 WHERE nominated_work = "flare path" AND category = "best featured actress in a play" | CREATE TABLE INST, Here is a database schema( table schema); | What ward was she nominated at for her work Flare Path for the category of best featured actress in a play?It is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_name_46 WHERE game = 68 | CREATE TABLE INST, Here is a database schema( table schema); | What is the high rebounds of game 68?It is not neccessary to use all the tables. |
SELECT Departure FROM table WHERE Arrival = 11.45 AND Going to = Stamford East | CREATE TABLE INST, Here is a database schema( table schema); | when does the train arriving at stamford east at 11.45 departure .It is not neccessary to use all the tables. |
SELECT "Loss" FROM table_75985 WHERE "Name" = 'boris picano-nacci' | CREATE TABLE INST, Here is a database schema( table schema); | What was the loss for Boris Picano-Nacci?It is not neccessary to use all the tables. |
SELECT MAX(week) FROM table_name_93 WHERE opponent = "los angeles rams" AND attendance > 37 OFFSET 382 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest Week when the opponent was the los angeles rams with more than 37382 in Attendance?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_96 WHERE date = "sep 12, 1976" | CREATE TABLE INST, Here is a database schema( table schema); | What is Tournament when Date is "Sep 12 1976"?It is not neccessary to use all the tables. |
SELECT gpu_frequency FROM table_name_18 WHERE model_number = "atom n435" | CREATE TABLE INST, Here is a database schema( table schema); | What is GPU Frequency when Model Number is Atom N435?It is not neccessary to use all the tables. |
SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open" | CREATE TABLE INST, Here is a database schema( table schema); | What was the winning score of the Buy.com Siouxland Open?It is not neccessary to use all the tables. |
SELECT AVG(points) FROM table_name_64 WHERE goals_conceded > 23 AND position > 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?It is not neccessary to use all the tables. |
SELECT county FROM table_1304443_2 WHERE kerry_number = 29231 | CREATE TABLE INST, Here is a database schema( table schema); | In what county did 29231 people vote for Kerry?It is not neccessary to use all the tables. |
SELECT player FROM table_name_37 WHERE pick > 2 AND position = "forward" | CREATE TABLE INST, Here is a database schema( table schema); | Which Player has a Pick larger than 2, and a Position of forward?It is not neccessary to use all the tables. |
SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos | CREATE TABLE INST, Here is a database schema( table schema); | what is minimum hours of the students playing in different position?It is not neccessary to use all the tables. |
SELECT nhl_team FROM table_1473672_6 WHERE player = "Rob Palmer" | CREATE TABLE INST, Here is a database schema( table schema); | What NHL team drafted Rob Palmer?It is not neccessary to use all the tables. |
SELECT COUNT Number FROM table WHERE Registration = F-BVFF | CREATE TABLE INST, Here is a database schema( table schema); | how many number is located at registration f-bvff?.It is not neccessary to use all the tables. |
SELECT AVG(gold) FROM table_name_64 WHERE bronze = 1 AND type = "winter" AND silver < 3 AND total < 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average gold of the winter athlete with 1 bronze, less than 3 silver, and less than 4 total medals?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Attendance = 34,063 | CREATE TABLE INST, Here is a database schema( table schema); | Who did the Chiefs play at the game attended by 34,063?.It is not neccessary to use all the tables. |
SELECT Middle School Principal FROM table WHERE Year = 2010-2011 | CREATE TABLE INST, Here is a database schema( table schema); | Who were the middle school principal(s) in 2010-2011?.It is not neccessary to use all the tables. |
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cardiac tamponade')) | CREATE TABLE INST, Here is a database schema( table schema); | how much do patients pay to get a diagnosis of cardiac tamponade?It is not neccessary to use all the tables. |
SELECT COUNT("Location") FROM table_24292 WHERE "Big Ten Team" = '#12 Michigan State' | CREATE TABLE INST, Here is a database schema( table schema); | How many locations have #12 Michigan State as the big ten team?It is not neccessary to use all the tables. |
SELECT current_country_of_location FROM table_10335_1 WHERE operational = "Summer of 1941 to 28 June 1944" | CREATE TABLE INST, Here is a database schema( table schema); | what's the current country of location with operational period of summer of 1941 to 28 june 1944It is not neccessary to use all the tables. |
SELECT notes FROM table_name_48 WHERE rank < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What were the notes for the player who finished with a rank smaller than 2?It is not neccessary to use all the tables. |
SELECT second_year FROM table_12148147_2 WHERE first_year = "Pag-unawa" | CREATE TABLE INST, Here is a database schema( table schema); | What is the second year class following pag-unawa?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Winning score = –16 (67-70-69-66=272) | CREATE TABLE INST, Here is a database schema( table schema); | What day was the winning score –16 (67-70-69-66=272)?.It is not neccessary to use all the tables. |
SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202" | CREATE TABLE INST, Here is a database schema( table schema); | If the grand average is 12.76-202 who is the player?It is not neccessary to use all the tables. |
SELECT original_team FROM table_12286195_1 WHERE result = "08 Fired in week 10 (2008-03-06)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06)It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Score = 4-1 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Venue of the Competition with a Score of 4-1?.It is not neccessary to use all the tables. |
SELECT MIN(year) FROM table_name_56 WHERE power = "90kw (121hp) @ 4000" | CREATE TABLE INST, Here is a database schema( table schema); | When is the earliest year with a Power of 90kw (121hp) @ 4000?It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_49 WHERE finalist = "monica seles" | CREATE TABLE INST, Here is a database schema( table schema); | What tournament had finalist Monica Seles?It is not neccessary to use all the tables. |
SELECT windows FROM table_1322914_1 WHERE title = "Icewind Dale" | CREATE TABLE INST, Here is a database schema( table schema); | Is icewind dale available for windowsIt is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Visitor = vancouver AND Date = april 29 | CREATE TABLE INST, Here is a database schema( table schema); | What was the home team that played Vancouver on April 29?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_36 WHERE home_team = "collingwood" | CREATE TABLE INST, Here is a database schema( table schema); | When did Collingwood play?It is not neccessary to use all the tables. |
SELECT COUNT("2010-11") FROM table_9465 WHERE "Rank" > '11' | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of 2010-11 when the rank is greater than 11?It is not neccessary to use all the tables. |
SELECT COUNT(pl_gp) FROM table_name_13 WHERE pick__number = 178 AND rd__number > 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum number of Pl GP when the pick number is 178 and the road number is bigger than 9?It is not neccessary to use all the tables. |
SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher" | CREATE TABLE INST, Here is a database schema( table schema); | What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?It is not neccessary to use all the tables. |
SELECT COUNT Winnings FROM table WHERE Year = 1995 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of winnings for 1995.It is not neccessary to use all the tables. |
SELECT owner_s_ FROM table_name_60 WHERE date < 1940 AND number_ & _name = "no. 1222" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the owner before 1940 who had a number and name of no. 1222?It is not neccessary to use all the tables. |
SELECT SUM Crowd FROM table WHERE Venue = windy hill | CREATE TABLE INST, Here is a database schema( table schema); | What was the crowd when the VFL played Windy Hill?.It is not neccessary to use all the tables. |
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65309) AND prescriptions.route = 'tp' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '10' ORDER BY prescriptions.startdate DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | when was patient 65309 for the last time prescribed a medication via the tp route in 10/last year?It is not neccessary to use all the tables. |
SELECT MIN Draws FROM table WHERE Byes < 1 | CREATE TABLE INST, Here is a database schema( table schema); | For the teams that had fewer than 1 Byes, what was the lowest number of Draws?.It is not neccessary to use all the tables. |
SELECT transcription FROM table_180802_3 WHERE sanskrit_word = "Chandra" | CREATE TABLE INST, Here is a database schema( table schema); | What is the transcription of the sanskrit word chandra?It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Loss = crabtree (0-1) | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance at the game that had a loss of Crabtree (0-1)?.It is not neccessary to use all the tables. |
SELECT no_8 FROM table_name_29 WHERE no_4 = "matthew" AND no_7 = "anthony" | CREATE TABLE INST, Here is a database schema( table schema); | What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony?It is not neccessary to use all the tables. |
SELECT Away team score FROM table WHERE Home team score = 16.26 (122) | CREATE TABLE INST, Here is a database schema( table schema); | When the home team scored 16.26 (122) what was the opposing score?.It is not neccessary to use all the tables. |
SELECT nickname FROM table_1973816_1 WHERE founded = 1933 | CREATE TABLE INST, Here is a database schema( table schema); | What's the nickname of the students of the school founded in 1933?It is not neccessary to use all the tables. |
SELECT COUNT Gold FROM table WHERE Bronze < 3 AND Rank < 11 AND Silver > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?.It is not neccessary to use all the tables. |
SELECT High points FROM table WHERE Game = 30 | CREATE TABLE INST, Here is a database schema( table schema); | What are the high points from a game of 30?.It is not neccessary to use all the tables. |
SELECT SUM(enr) FROM College | CREATE TABLE INST, Here is a database schema( table schema); | What is the total enrollment number of all colleges?It is not neccessary to use all the tables. |
SELECT Death/2012 FROM table WHERE Death/2013 = 140 AND January–September 2013 = Moscow Oblast | CREATE TABLE INST, Here is a database schema( table schema); | What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Heat < 3 AND Nationality = south korea | CREATE TABLE INST, Here is a database schema( table schema); | Who is from south korea and has a heat less than 3?.It is not neccessary to use all the tables. |
SELECT MAX Col (m) FROM table WHERE Prominence (m) = 3,046 | CREATE TABLE INST, Here is a database schema( table schema); | What is the maximum Col (m) when 3,046 is the Prominence (m)?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_75 WHERE result = "7–6 (7–5) , 6–3" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent when the result was 7–6 (7–5) 6–3?It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Championship = palermo, italy | CREATE TABLE INST, Here is a database schema( table schema); | What is the surface of the palermo, italy championship?.It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Score = W 115–104 (OT) | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for w 115–104 (ot).It is not neccessary to use all the tables. |
SELECT 2nd Party FROM table WHERE 1st Member = hedworth hylton jolliffe AND 2nd Member = william goodenough hayter | CREATE TABLE INST, Here is a database schema( table schema); | What's the 2nd party of 2nd member william goodenough hayter when the 1st member is hedworth hylton jolliffe?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Home = boston bruins AND Date = april 11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the Boston Bruins game from April 11?.It is not neccessary to use all the tables. |
SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time" | CREATE TABLE INST, Here is a database schema( table schema); | If Wed Aug 25 is —— no time what is Sat aug 21?It is not neccessary to use all the tables. |
SELECT Arabic capital name FROM table WHERE English capital name = n'djamena | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the capital, in Arabic, that is called n'djamena in English?.It is not neccessary to use all the tables. |
SELECT MAX(total) FROM table_name_60 WHERE gold = 2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has Gold of 2?It is not neccessary to use all the tables. |
SELECT Wednesday FROM table WHERE Thursday = 438 Magic: The Gathering Mini Masters Tournament | CREATE TABLE INST, Here is a database schema( table schema); | which episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday? .It is not neccessary to use all the tables. |
SELECT Geographical Regions FROM table WHERE Contestant = Cristina Peña Garzon | CREATE TABLE INST, Here is a database schema( table schema); | When cristina peña garzon is the contestant what is the geographical region?.It is not neccessary to use all the tables. |
SELECT COUNT("team") FROM table_204_722 WHERE "position" = 3 | CREATE TABLE INST, Here is a database schema( table schema); | how many teams came in 3rd ?It is not neccessary to use all the tables. |
SELECT winning_score FROM table_name_21 WHERE to_par = "−21" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Winning score when the To par was −21?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team = richmond | CREATE TABLE INST, Here is a database schema( table schema); | What date was Richmond the home team?.It is not neccessary to use all the tables. |
SELECT COUNT Week FROM table WHERE Date = September 29 | CREATE TABLE INST, Here is a database schema( table schema); | What week did September 29 fall in?.It is not neccessary to use all the tables. |
SELECT "Republican ticket" FROM table_39754 WHERE "Socialist ticket" = 'louis waldman' | CREATE TABLE INST, Here is a database schema( table schema); | What is the name on the Republican ticket when the Socialist ticket was louis waldman?It is not neccessary to use all the tables. |
SELECT score FROM table_name_82 WHERE game > 66 AND march = 28 | CREATE TABLE INST, Here is a database schema( table schema); | what is the score when the game is higher than 66 on march 28?It is not neccessary to use all the tables. |
SELECT COUNT(area__acres__) FROM table_30120556_1 WHERE townland = "Glasvaunta" | CREATE TABLE INST, Here is a database schema( table schema); | How many items appear in the area column when Glasvaunta is the townland?It is not neccessary to use all the tables. |
SELECT MAX Rank FROM table WHERE Gold < 3 AND Silver > 2 AND Total < 5 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?.It is not neccessary to use all the tables. |
SELECT "Leading scorer" FROM table_51864 WHERE "Date" = '20 february 2008' | CREATE TABLE INST, Here is a database schema( table schema); | Who was the leading scorer of the game on 20 February 2008?It is not neccessary to use all the tables. |
SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York" | CREATE TABLE INST, Here is a database schema( table schema); | What was the weight in kg when the jockey was B. York?It is not neccessary to use all the tables. |
SELECT pole_position FROM table_name_87 WHERE race = "belgian grand prix" | CREATE TABLE INST, Here is a database schema( table schema); | What was the pole position for the belgian grand prix?It is not neccessary to use all the tables. |
SELECT outgoing_manager FROM table_26976615_3 WHERE team = "Târgu Mureş" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the outgoing manager for the team of târgu mureş?It is not neccessary to use all the tables. |
SELECT English Title (Chinese title) FROM table WHERE Number of episodes = 20 AND Airing date = 11 jun- 6 jul | CREATE TABLE INST, Here is a database schema( table schema); | Which title had 20 episodes and aired on 11 jun- 6 jul?.It is not neccessary to use all the tables. |
SELECT Committee FROM table WHERE District = 46 | CREATE TABLE INST, Here is a database schema( table schema); | What committees do the district 46 members serve on?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE H/A/N = neutral AND Pos. < 3 AND Score = 141 | CREATE TABLE INST, Here is a database schema( table schema); | Which venue has a neutral H/A/N, lower than position 3 and a score of 141?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_33 WHERE attendance = "17,015" | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has an attendance of 17015?It is not neccessary to use all the tables. |
SELECT open_date FROM church GROUP BY open_date HAVING COUNT(*) >= 2 | CREATE TABLE INST, Here is a database schema( table schema); | Show the opening year in whcih at least two churches opened.It is not neccessary to use all the tables. |
SELECT Surface FROM table WHERE Date = june 13, 1983 | CREATE TABLE INST, Here is a database schema( table schema); | Which Surface had a Date of june 13, 1983?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Result = w 17-0 | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent has w 17-0 as the result?.It is not neccessary to use all the tables. |
SELECT MAX(december) FROM table_name_9 WHERE record = "11-13-5" | CREATE TABLE INST, Here is a database schema( table schema); | What is the December game that led to an 11-13-5 record?It is not neccessary to use all the tables. |
SELECT MIN Bronze FROM table WHERE Rank = 3 AND Total < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the fewest bronzes for ranks of 3 with totals under 2?.It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_22834834_12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the latest year that data is available for?It is not neccessary to use all the tables. |
SELECT Category FROM music_festival WHERE RESULT = "Awarded" | CREATE TABLE INST, Here is a database schema( table schema); | What are the category of music festivals with result "Awarded"?It is not neccessary to use all the tables. |
SELECT origin FROM train GROUP BY origin HAVING COUNT(*) > 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find the origins from which more than 1 train starts.It is not neccessary to use all the tables. |
SELECT Method FROM table WHERE Date of Execution = december 27, 1827 AND Name = kewaubis | CREATE TABLE INST, Here is a database schema( table schema); | In what way was Kewaubis executed on December 27, 1827?.It is not neccessary to use all the tables. |
SELECT COUNT Crowd FROM table WHERE Away team = essendon | CREATE TABLE INST, Here is a database schema( table schema); | What is the listed crowd when essendon is the away squad?.It is not neccessary to use all the tables. |
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | List the record company shared by the most number of orchestras.It is not neccessary to use all the tables. |
SELECT date__from_ FROM table_name_18 WHERE traction_type = "electric" AND location = "calgary" | CREATE TABLE INST, Here is a database schema( table schema); | what is the date for traction type electric with calgary location?It is not neccessary to use all the tables. |
SELECT team FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" | CREATE TABLE INST, Here is a database schema( table schema); | Name the team for copa conmebol 1992 is round of 16It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE Player = sue bird | CREATE TABLE INST, Here is a database schema( table schema); | What is Sue Bird's position?.It is not neccessary to use all the tables. |
SELECT "Competition" FROM table_47612 WHERE "Date" = '28/04/1906' | CREATE TABLE INST, Here is a database schema( table schema); | What competition took place on 28/04/1906?It is not neccessary to use all the tables. |
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.54" | CREATE TABLE INST, Here is a database schema( table schema); | Who directed the episode that had 0.54 million U.S. viewers?It is not neccessary to use all the tables. |
SELECT date FROM table_name_17 WHERE record = "46-22" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date of the Game with a Record of 46-22?It is not neccessary to use all the tables. |
SELECT "name" FROM table_204_618 WHERE "cfu club championship" >= 3 | CREATE TABLE INST, Here is a database schema( table schema); | tell me a scorer that had at least 3 scores in cfu club championships .It is not neccessary to use all the tables. |
SELECT AVG Crude death rate (per 1,000) FROM table WHERE Migration (per 1,000) > -5.06 AND Natural change (per 1,000) > 7.06 | CREATE TABLE INST, Here is a database schema( table schema); | How many Crude death rate (per 1,000) has a Migration (per 1,000) larger than -5.06, and a Natural change (per 1,000) larger than 7.06? Question 1.It is not neccessary to use all the tables. |
SELECT transfer_window FROM table_name_30 WHERE transfer_fee = "free" AND moving_to = "norwich city" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Transfer window when the Transfer fee is "free" and when the item "Moving to" is Norwich City?It is not neccessary to use all the tables. |
SELECT finish FROM table_name_79 WHERE country = "australia" | CREATE TABLE INST, Here is a database schema( table schema); | What is Australia´s finish?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.