sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Founded FROM table WHERE Suburb = nerang
CREATE TABLE INST, Here is a database schema( table schema);
What year did the Nerang Suburb get founded?.It is not neccessary to use all the tables.
SELECT season FROM table_name_31 WHERE rank = "4"
CREATE TABLE INST, Here is a database schema( table schema);
Which season is rank 4?It is not neccessary to use all the tables.
SELECT written_by FROM table_28561455_1 WHERE directed_by = "Peter O'Fallon"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episodes that were directed by Peter O'Fallon?It is not neccessary to use all the tables.
SELECT "8:30" FROM table_71738 WHERE "7:00" = 'etalk'
CREATE TABLE INST, Here is a database schema( table schema);
What is on at 8:30 when etalk is on at 7:00 on that channel?It is not neccessary to use all the tables.
SELECT COUNT(lyricist) FROM table_10416547_1 WHERE lyrics_theme_style = "Romance" AND duration = "3:50"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of lyricist where the lyrics theme is romance and the song lasts 3:50?It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE ICAO = wmkp
CREATE TABLE INST, Here is a database schema( table schema);
What is the airport with ICAO code of WMKP?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production Number = 1039
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the production with a number of 1039?.It is not neccessary to use all the tables.
SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Entrant with a Engine of talbot l6 and Eugène Chaboud was the driver?It is not neccessary to use all the tables.
SELECT place FROM table_name_88 WHERE event = "half marathon"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the half marathon Event?It is not neccessary to use all the tables.
SELECT SUM Avg/G FROM table WHERE Gain < 1,276 AND Loss > 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of all average yards gained when the gained yards is under 1,276 and lost more than 3 yards?.It is not neccessary to use all the tables.
SELECT * FROM table_train_228 WHERE body_weight >= 110
CREATE TABLE INST, Here is a database schema( table schema);
must weigh a minimum of 110 poundsIt is not neccessary to use all the tables.
SELECT coach FROM table_27069503_2 WHERE overall = "20-6-2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the coach of the Pandas when their overall record was 20-6-2?It is not neccessary to use all the tables.
SELECT Stain FROM table WHERE Common use = Elastic fibers
CREATE TABLE INST, Here is a database schema( table schema);
What stain is used commonly for elastic fibers?.It is not neccessary to use all the tables.
SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli"
CREATE TABLE INST, Here is a database schema( table schema);
How many mixed doubles were there in the year that Olga Koseli won the women's singles?It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_name_1 WHERE year > 2008 AND championship = "paul hunter classic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Opponent in the final after 2008 at the Paul Hunter Classic?It is not neccessary to use all the tables.
SELECT date FROM table_name_81 WHERE competition = "british home championship"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a competition type of British home championship?It is not neccessary to use all the tables.
SELECT party FROM table_2668264_8 WHERE incumbent = "Robert P. Letcher"
CREATE TABLE INST, Here is a database schema( table schema);
What party did robert p. letcher represent?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Outcome = behind AND Opponent = brisbane bears
CREATE TABLE INST, Here is a database schema( table schema);
Which team got a Behind outcome and had an opponent of Brisbane Bears?.It is not neccessary to use all the tables.
SELECT MAX Average Attendance FROM table WHERE # of Home Games = 9
CREATE TABLE INST, Here is a database schema( table schema);
What was the Average Attendance during the Year in which there were 9 Home Games?.It is not neccessary to use all the tables.
SELECT engine_type FROM table_name_45 WHERE model = "2.3 v5"
CREATE TABLE INST, Here is a database schema( table schema);
Which engine type was used in the model 2.3 v5?It is not neccessary to use all the tables.
SELECT Set 3 FROM table WHERE Total = 62 - 75
CREATE TABLE INST, Here is a database schema( table schema);
What is the Set 3 when the Total was 62 - 75?.It is not neccessary to use all the tables.
SELECT MAX Total Seats FROM table WHERE PR seats = 48 AND District seats > 73
CREATE TABLE INST, Here is a database schema( table schema);
Who had the highest total PR seats of 48 with a District seat larger than than 73?.It is not neccessary to use all the tables.
SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2
CREATE TABLE INST, Here is a database schema( table schema);
Which nation won 1 gold medal and 1 bronze for a total of 2 medals?It is not neccessary to use all the tables.
SELECT SUM Ast. Avg. FROM table WHERE Rank = 5 AND Games > 108
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?.It is not neccessary to use all the tables.
SELECT year FROM table_name_70 WHERE label = "latenight weeknight" AND release_title = "neverchanger"
CREATE TABLE INST, Here is a database schema( table schema);
What year was Neverchanger with the label of Latenight weeknight?It is not neccessary to use all the tables.
SELECT club FROM table_name_8 WHERE nation = "mexico" AND year = 2010 AND competition = "preseason" AND result = "w 0–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Club of mexico Year of 2010 and a Competition of preseason and a Result of w 0–1?It is not neccessary to use all the tables.
SELECT Prize FROM table WHERE Country/Region = belgium
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the prize for belgium.It is not neccessary to use all the tables.
SELECT Area FROM table WHERE Name = morven school
CREATE TABLE INST, Here is a database schema( table schema);
In what area is Morven School?.It is not neccessary to use all the tables.
SELECT MIN(games) FROM table_name_88 WHERE debut_year = 1936 AND player = "jack gaudion"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of games Jack Gaudion who debut in 1936 played?It is not neccessary to use all the tables.
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on January 2 with 23 points?It is not neccessary to use all the tables.
SELECT SUM("Drawn") FROM table_53853 WHERE "Goals" = '274-357'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of draws with 274-357 goals?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest crowd when Collingwood was the away team?.It is not neccessary to use all the tables.
SELECT owner FROM table_name_8 WHERE format = "adult hits"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the owner of the radio station that plays adult hits?It is not neccessary to use all the tables.
SELECT year FROM table_name_61 WHERE qual = "totals"
CREATE TABLE INST, Here is a database schema( table schema);
The qual of totals took place during what year?It is not neccessary to use all the tables.
SELECT OWNER_DESCR FROM Fires GROUP BY OWNER_DESCR ORDER BY count(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( fires);
On what type of land (public or private) do more wildfires occur?. It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_27721131_10 WHERE team = "@ Detroit"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the high rebounds of team @ Detroit?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Name = fifth third center
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest rank for Fifth third center?.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = "Diana Koleva Emilia Dimitrova" AND mens_singles = "Jeliazko Valkov"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkovIt is not neccessary to use all the tables.
SELECT Played FROM table WHERE Lost = 2
CREATE TABLE INST, Here is a database schema( table schema);
What play has a loss of 2?.It is not neccessary to use all the tables.
SELECT Goals FROM table WHERE Latest cap = september 5, 2011
CREATE TABLE INST, Here is a database schema( table schema);
Latest cap of september 5, 2011 had how many goals?.It is not neccessary to use all the tables.
SELECT build_date FROM table_name_65 WHERE total_produced = 146
CREATE TABLE INST, Here is a database schema( table schema);
Name the build date for total produced of 146It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What away team did Melbourne play as the home team?.It is not neccessary to use all the tables.
SELECT p.Id, p.PostTypeId, p.OwnerUserId, p.CreationDate, p.Body, p.Title, p.ClosedDate FROM Posts AS p WHERE p.CreationDate >= '2018-11-01 00:00:00' AND p.PostTypeId = 1 AND p.ClosedDate IS NULL
CREATE TABLE INST, Here is a database schema( table schema);
A glance at Posts table.It is not neccessary to use all the tables.
SELECT MAX Against FROM table WHERE Wins < 3 AND Losses < 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number listed under against when there were less than 3 wins and less than 15 losses?.It is not neccessary to use all the tables.
SELECT distance__miles_ FROM table_27833186_1 WHERE horse_name = "Koona"
CREATE TABLE INST, Here is a database schema( table schema);
What was the distance (in miles) of the championship were the winning horse was Koona?It is not neccessary to use all the tables.
SELECT AVG Against FROM table WHERE Drawn < 7 AND Points > 22 AND Played = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?.It is not neccessary to use all the tables.
SELECT winner FROM table_name_65 WHERE third_place = "goran ivanišević"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the winner when Goran Ivanišević was in third place?It is not neccessary to use all the tables.
SELECT event FROM table_name_16 WHERE inductee_s_ = "jerry lynn"
CREATE TABLE INST, Here is a database schema( table schema);
What even was Jerry Lynn the inductee?It is not neccessary to use all the tables.
SELECT "Country" FROM table_76215 WHERE "To par" < '5' AND "Player" = 'sam snead'
CREATE TABLE INST, Here is a database schema( table schema);
What Country is Player Sam Snead with a To par of less than 5 from?It is not neccessary to use all the tables.
SELECT AVG(sample_size) FROM table_name_5 WHERE republican = "mike huckabee" AND margin_of_error > 4 AND date = "dec 13-15, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sample size of the poll taken on Dec 13-15 2007 that had a margin of error of more than 4 and resulted with Republican Mike Huckabee?It is not neccessary to use all the tables.
SELECT Jockey FROM table WHERE Position = 10th
CREATE TABLE INST, Here is a database schema( table schema);
who isthe jockey in 10th position?.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 = '009-5001')) AND intakeoutput.celllabel = 'urine' AND intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) >= '2103-03-26'
CREATE TABLE INST, Here is a database schema( table schema);
what is the total amount of urine production patient 009-5001 had since 03/26/2103?It is not neccessary to use all the tables.
SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-232560' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY medication.drugstarttime LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the drug prescribed for patient 006-232560 for the first time on their last hospital encounter?It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Game > 4 AND Date = may 27
CREATE TABLE INST, Here is a database schema( table schema);
Which High rebounds have a Game larger than 4, and a Date of may 27?.It is not neccessary to use all the tables.
SELECT COUNT(latin_americans_2001) FROM table_1939405_2 WHERE province = "Yukon"
CREATE TABLE INST, Here is a database schema( table schema);
How many results of the count of Latin Americans in Yukon in 2001 are there?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Round > 3 AND Nationality = united states AND Player = nick pryor
CREATE TABLE INST, Here is a database schema( table schema);
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?.It is not neccessary to use all the tables.
SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and id of the top 3 expensive rooms.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Director = erik clausen AND English title = the dark side of the moon
CREATE TABLE INST, Here is a database schema( table schema);
What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?.It is not neccessary to use all the tables.
SELECT COUNT(pick) FROM table_name_17 WHERE player = "renaldo wynn" AND round < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Pick has a Player of renaldo wynn, and a Round smaller than 1?It is not neccessary to use all the tables.
SELECT COUNT(q1_order) FROM table_1706942_1 WHERE driver = "Alexander Wurz"
CREATE TABLE INST, Here is a database schema( table schema);
How many Q1 figures are given for Alexander Wurz?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Tie no = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is Home Team, when Tie No is "7"?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug_type = "BASE"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose ethnicity is black/cape verdean and drug type is base?It is not neccessary to use all the tables.
SELECT COUNT World record FROM table WHERE Kenenisa Bekele ( ETH ) = Marílson Gomes dos Santos ( BRA )
CREATE TABLE INST, Here is a database schema( table schema);
How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?.It is not neccessary to use all the tables.
SELECT location FROM table_name_66 WHERE record = "3-0"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the location that has a record of 3-0It is not neccessary to use all the tables.
SELECT Gymnast FROM table WHERE Parallel Bars = 16.150
CREATE TABLE INST, Here is a database schema( table schema);
If the parallel bars is 16.150, who is the gymnast?.It is not neccessary to use all the tables.
SELECT player FROM table_name_34 WHERE college = "calgary"
CREATE TABLE INST, Here is a database schema( table schema);
Who was recruited from Calgary?It is not neccessary to use all the tables.
SELECT SUM Game FROM table WHERE Record = 5–3–1 AND October < 29
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has a Record of 5–3–1, and an October smaller than 29?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Tie no = 34
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the Tie no was 34?.It is not neccessary to use all the tables.
SELECT MIN Gold FROM table WHERE Nation = west germany AND Total > 8
CREATE TABLE INST, Here is a database schema( table schema);
How many golds for west germany with over 8 total?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_37 WHERE home_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
Where did North Melbourne play as the home team?It is not neccessary to use all the tables.
SELECT MAX Season FROM table WHERE Podiums > 2.0
CREATE TABLE INST, Here is a database schema( table schema);
What is the season with podiums more than 2.0?.It is not neccessary to use all the tables.
SELECT Set 5 FROM table WHERE Set 2 = 21-25 AND Set 1 = 41633
CREATE TABLE INST, Here is a database schema( table schema);
What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?.It is not neccessary to use all the tables.
SELECT gdp_in_$id_b FROM table_name_42 WHERE city = "istanbul"
CREATE TABLE INST, Here is a database schema( table schema);
What is the GDP $IDB in Istanbul?It is not neccessary to use all the tables.
SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia"
CREATE TABLE INST, Here is a database schema( table schema);
What game was played at Philadelphia?It is not neccessary to use all the tables.
SELECT score FROM table_name_36 WHERE leading_scorer = "devin brown (24)"
CREATE TABLE INST, Here is a database schema( table schema);
What score has devin brown (24) as the leading scorer?It is not neccessary to use all the tables.
SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
CREATE TABLE INST, Here is a database schema( table schema);
Select the average price of each manufacturer's products showing the manufacturer's name.It is not neccessary to use all the tables.
SELECT Winning driver FROM table WHERE Winning car = wolf wr3
CREATE TABLE INST, Here is a database schema( table schema);
Which driver drove car Wolf WR3?.It is not neccessary to use all the tables.
SELECT COUNT Population (2011) FROM table WHERE Cyrillic Name Other Names = Врбас
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of population for врбас.It is not neccessary to use all the tables.
SELECT Directed and produced by FROM table WHERE Celebrities = Bill Turnbull and Louise Minchin
CREATE TABLE INST, Here is a database schema( table schema);
List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin..It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Driver = dan clarke AND Grid > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest points total scored by Dan Clarke in a grid higher than 10?.It is not neccessary to use all the tables.
SELECT record FROM table_name_82 WHERE result = "l 14–16"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Record of the game with a Result of l 14–16?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = Saskatchewan
CREATE TABLE INST, Here is a database schema( table schema);
Which player's college is Saskatchewan?.It is not neccessary to use all the tables.
SELECT country FROM table_name_70 WHERE player = "scott dunlap"
CREATE TABLE INST, Here is a database schema( table schema);
What is Country when Player is "Scott Dunlap"?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Team = Trek-Livestrong
CREATE TABLE INST, Here is a database schema( table schema);
what location has team trek-livestrong?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE City = rovigo
CREATE TABLE INST, Here is a database schema( table schema);
What is Rovigo's Club?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Pick # < 46 AND Round = 5 AND Position = defensive tackle
CREATE TABLE INST, Here is a database schema( table schema);
Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college?.It is not neccessary to use all the tables.
SELECT Family/families FROM table WHERE No. in series = US14
CREATE TABLE INST, Here is a database schema( table schema);
What family was featured in episode us14 of the series?.It is not neccessary to use all the tables.
SELECT Under-13 FROM table WHERE Year = 2009
CREATE TABLE INST, Here is a database schema( table schema);
In the year 2009 who was the under-13?.It is not neccessary to use all the tables.
SELECT "Club" FROM table_55344 WHERE "Name" = 'hafiz abu sujad'
CREATE TABLE INST, Here is a database schema( table schema);
Which club is associated with Hafiz Abu Sujad?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Decision = emery AND Attendance > 19,575 AND Home = ottawa
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the date for emery and home of ottawa with attendance more than 19,575.It is not neccessary to use all the tables.
SELECT vote FROM table_28742659_2 WHERE immunity = "David" AND reward = "None"
CREATE TABLE INST, Here is a database schema( table schema);
What is the vote number when immunity listed as David and reward is listed as none?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 11.11 (77)
CREATE TABLE INST, Here is a database schema( table schema);
What venue features an away side score of 11.11 (77)?.It is not neccessary to use all the tables.
SELECT total_time FROM table_name_21 WHERE bike__40km_ = "58:20"
CREATE TABLE INST, Here is a database schema( table schema);
For the triathlon with a bike (40km) of 58:20 what is the total time?It is not neccessary to use all the tables.
SELECT No. in series FROM table WHERE Title = "Say Uncle"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number in series of "say uncle"?.It is not neccessary to use all the tables.
SELECT name FROM Reviewer UNION SELECT title FROM Movie
CREATE TABLE INST, Here is a database schema( table schema);
Return all reviewer names and movie names together in a single list.It is not neccessary to use all the tables.
SELECT date_released FROM table_name_33 WHERE _number_of_discs > 4
CREATE TABLE INST, Here is a database schema( table schema);
What Date Released when # Of Discs is greater than 4?It is not neccessary to use all the tables.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, find name and code , and group by attribute headquarter, and visualize them by a bar chart, order x axis from high to low order.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Year = 1899
CREATE TABLE INST, Here is a database schema( table schema);
Which country had a tower destroyed in 1899?.It is not neccessary to use all the tables.
SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5
CREATE TABLE INST, Here is a database schema( table schema);
If the total points is 5 what is the 2005-2006 points total number?It is not neccessary to use all the tables.
SELECT distance__km_ FROM table_name_85 WHERE station = "funao"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance to funao?It is not neccessary to use all the tables.