sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT winner FROM table_name_80 WHERE surface = "carpet (i)"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Winner when the Surface is Carpet (i)?It is not neccessary to use all the tables.
SELECT result FROM table_name_88 WHERE race = "ajc craven plate (wfa)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the ajc craven plate (wfa) race?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Series = NASCAR Winston Cup AND Winnings = $40,000
CREATE TABLE INST, Here is a database schema( table schema);
Which drivers won $40,000 in the NASCAR Winston Cup?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = akiko inoue
CREATE TABLE INST, Here is a database schema( table schema);
what is the record when the opponent is akiko inoue?.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.gender = "M" AND procedures.short_title = "Endosc destr stomach les"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose gender is m and procedure short title is endosc destr stomach les?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_2009095_2 WHERE opponents = "Evonne Goolagong Helen Gourlay"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least year for evonne goolagong helen gourlayIt is not neccessary to use all the tables.
SELECT AVG Losses FROM table WHERE South West DFL = branxholme-wallacedale AND Byes < 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?.It is not neccessary to use all the tables.
SELECT score_in_the_final FROM table_name_36 WHERE date = "14 august 1994"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the final on 14 august 1994?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Position = guard AND School/Club Team = bowling green
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality for the guard position from Bowling Green?.It is not neccessary to use all the tables.
SELECT event FROM table_name_9 WHERE opponent = "yuji hisamatsu"
CREATE TABLE INST, Here is a database schema( table schema);
what is the event when the opponent is yuji hisamatsu?It is not neccessary to use all the tables.
SELECT "Wins" FROM table_56539 WHERE "Last win" = '2000'
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did the club have with the last win in 2000?It is not neccessary to use all the tables.
SELECT TagName, AVG(Score) AS Score, COUNT(Posts.Id) AS Number FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId GROUP BY TagName ORDER BY COUNT(Posts.Id) DESC, AVG(Score) DESC, TagName
CREATE TABLE INST, Here is a database schema( table schema);
Average Score Per Tag (with count).It is not neccessary to use all the tables.
SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = "united states" AND rank > 47 AND main_span_metres = "421"
CREATE TABLE INST, Here is a database schema( table schema);
What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?It is not neccessary to use all the tables.
SELECT Clean and Jerk FROM table WHERE Snatch = 190kg
CREATE TABLE INST, Here is a database schema( table schema);
What was the Clean and Jerk weight for the year that had a Snatch result of 190kg?.It is not neccessary to use all the tables.
SELECT "Exited" FROM table_37906 WHERE "Celebrity" = 'lucy benjamin'
CREATE TABLE INST, Here is a database schema( table schema);
When did lucy benjamin exit?It is not neccessary to use all the tables.
SELECT location FROM table_name_41 WHERE mountain_range = "coast mountains" AND rank < 18 AND mountain_peak = "skihist mountain"
CREATE TABLE INST, Here is a database schema( table schema);
Which location includes Coast Mountains with a rank less than 18 at Skihist Mountain?It is not neccessary to use all the tables.
SELECT MAX April FROM table WHERE Record = 38-33-10
CREATE TABLE INST, Here is a database schema( table schema);
Name the most april with record of 38-33-10.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Frequency = 1480
CREATE TABLE INST, Here is a database schema( table schema);
What is Type, when Frequency is "1480"?.It is not neccessary to use all the tables.
SELECT title FROM table_name_78 WHERE name = "senusret i"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of Senusret I?It is not neccessary to use all the tables.
SELECT "Date" FROM table_78471 WHERE "Competition" = 'friendly'
CREATE TABLE INST, Here is a database schema( table schema);
On what Date did the friendly Competition take place?It is not neccessary to use all the tables.
SELECT End of maintenance FROM table WHERE Release date = August 11, 2013
CREATE TABLE INST, Here is a database schema( table schema);
When's the end of maintenance in the august 11, 2013 release date?.It is not neccessary to use all the tables.
SELECT country FROM table_name_41 WHERE player = "ted schulz"
CREATE TABLE INST, Here is a database schema( table schema);
Which country has the player Ted Schulz?It is not neccessary to use all the tables.
SELECT No. 7 FROM table WHERE Region (year) = arizona (2010)
CREATE TABLE INST, Here is a database schema( table schema);
What is No. 7, when Region (Year) is Arizona (2010)?.It is not neccessary to use all the tables.
SELECT MIN(ave__no) FROM table_name_28 WHERE name = "livigno alps"
CREATE TABLE INST, Here is a database schema( table schema);
Which AVE-No has a Name of livigno alps?It is not neccessary to use all the tables.
SELECT year FROM table_2308381_2 WHERE starts = 15
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for 15 startsIt is not neccessary to use all the tables.
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc"
CREATE TABLE INST, Here is a database schema( table schema);
How many tries were there for club cwmtwrch rfc?It is not neccessary to use all the tables.
SELECT "Score" FROM table_14870 WHERE "Player" = 'nick price'
CREATE TABLE INST, Here is a database schema( table schema);
What is Nick Price's score?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_49 WHERE date = "november 19, 1990"
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance of the November 19 1990 game?It is not neccessary to use all the tables.
SELECT organization_name FROM organizations ORDER BY date_formed
CREATE TABLE INST, Here is a database schema( table schema);
List all the name of organizations in order of the date formed.It is not neccessary to use all the tables.
SELECT district FROM table_2668347_22 WHERE candidates = "William A. Burwell (DR)"
CREATE TABLE INST, Here is a database schema( table schema);
Which district did William A. Burwell (Dr) belong to?It is not neccessary to use all the tables.
SELECT building FROM table_13397394_1 WHERE storeys = 12
CREATE TABLE INST, Here is a database schema( table schema);
what are all the building with 12 storeysIt is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Game site = fedex field AND Week = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance that has fedex field as the game site with 3 as the week?.It is not neccessary to use all the tables.
SELECT MIN(played) FROM table_14911550_5
CREATE TABLE INST, Here is a database schema( table schema);
How many games were played?It is not neccessary to use all the tables.
SELECT Official Name FROM table WHERE Area km 2 = 582.20
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the place with 582.20 square km area?.It is not neccessary to use all the tables.
SELECT SUM(frequency_mhz) FROM table_name_99 WHERE class = "b1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Frequency MHz with a Class of b1?It is not neccessary to use all the tables.
SELECT points FROM table_28201906_1 WHERE pts_agst = 45
CREATE TABLE INST, Here is a database schema( table schema);
How many points does the club that had 45 points against it have?It is not neccessary to use all the tables.
SELECT villages FROM table_19457_1 WHERE state_region = "Magway Region"
CREATE TABLE INST, Here is a database schema( table schema);
How many villages are there in the Magway region?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Time = 8:13.67
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest ranking for 8:13.67?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude"
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year of a gratitude type mission with 99 in the entourage?It is not neccessary to use all the tables.
SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6"
CREATE TABLE INST, Here is a database schema( table schema);
When has winnipeg jets with a Score of 4–6?It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE No. = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of episode 3?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Location = Highland Township
CREATE TABLE INST, Here is a database schema( table schema);
Which teams are located in highland township?.It is not neccessary to use all the tables.
SELECT COUNT Caps FROM table WHERE Date of Birth (Age) = 15 july 1981
CREATE TABLE INST, Here is a database schema( table schema);
How many caps have a Date of Birth (Age) of 15 july 1981?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Time = 17:37 AND Set 4 = 25–15
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date with a Time of 17:37, and the Set 4 is 25–15?.It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for robin montgomerie-charrington, and a Grid smaller than 15?It is not neccessary to use all the tables.
SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "14"
CREATE TABLE INST, Here is a database schema( table schema);
Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Builder = kerr stuart
CREATE TABLE INST, Here is a database schema( table schema);
What is Name, when Builder is "Kerr Stuart"?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = september 21
CREATE TABLE INST, Here is a database schema( table schema);
WHAT SCORE WAS ON SEPTEMBER 21?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Host country = Montenegro
CREATE TABLE INST, Here is a database schema( table schema);
In what year was Montenegro the host country?.It is not neccessary to use all the tables.
SELECT "1997" FROM table_64982 WHERE "1999" = '1r' AND "1995" = '3r' AND "1993" = '1r'
CREATE TABLE INST, Here is a database schema( table schema);
What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?It is not neccessary to use all the tables.
SELECT competition FROM table_name_72 WHERE date = "january 11, 1996" AND venue = "san diego , united states"
CREATE TABLE INST, Here is a database schema( table schema);
What is Competition when Date is "January 11 1996" when Venue is "San Diego United States"?It is not neccessary to use all the tables.
SELECT record FROM table_27537518_4 WHERE date = "October 22"
CREATE TABLE INST, Here is a database schema( table schema);
What was the October 22 record?It is not neccessary to use all the tables.
SELECT (SELECT "bronze" FROM table_204_311 WHERE "nation" = 'united states') - (SELECT "bronze" FROM table_204_311 WHERE "nation" = 'west germany')
CREATE TABLE INST, Here is a database schema( table schema);
what is the difference between the total number of bronze medals won by the united states and west germany ?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Team = neman
CREATE TABLE INST, Here is a database schema( table schema);
what is the venue of neman.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_94 WHERE seats = "48 of 120" AND _percentage_votes > 34.18
CREATE TABLE INST, Here is a database schema( table schema);
In what Year were there 48 of 120 Seats and a % votes larger than 34.18?It is not neccessary to use all the tables.
SELECT MIN(field_goals) FROM table_name_84 WHERE touchdowns = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of field goals for a player with 3 touchdowns?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_83 WHERE home_team = "norwich city"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the home team was Norwich City?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Abbr. = mub
CREATE TABLE INST, Here is a database schema( table schema);
In which city is MUB located?.It is not neccessary to use all the tables.
SELECT Years for Jazz FROM table WHERE Player = andre owens
CREATE TABLE INST, Here is a database schema( table schema);
Which player is Andre Owens in Year for Jazz?.It is not neccessary to use all the tables.
SELECT city FROM table_name_40 WHERE iata = "ssg"
CREATE TABLE INST, Here is a database schema( table schema);
Which city has the IATA SSG?It is not neccessary to use all the tables.
SELECT team FROM table_name_5 WHERE race_title = "calder"
CREATE TABLE INST, Here is a database schema( table schema);
What team has a title of calder?It is not neccessary to use all the tables.
SELECT Date of appointment FROM table WHERE Outgoing manager = paco chaparro
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of appointment for paco chaparro's replacement?.It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_60 WHERE branding = "jack fm"
CREATE TABLE INST, Here is a database schema( table schema);
What's the call sign for Jack FM?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Length ( m ) = 75/55
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the arch with a length in meters of 75/55?.It is not neccessary to use all the tables.
SELECT date FROM table_name_98 WHERE away_team = "aston villa"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when Aston Villa is the away team?It is not neccessary to use all the tables.
SELECT MAX(pick__number) FROM table_29626583_3 WHERE mls_team = "Toronto FC" AND affiliation = "LDU Quito"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick number for the team toronto fc and affiliation is ldu quito?It is not neccessary to use all the tables.
SELECT opponent FROM table_13259009_2 WHERE game_site = "Mile High Stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What team was the opponent at Mile High Stadium?It is not neccessary to use all the tables.
SELECT Double Non-Suited Match FROM table WHERE Suited Match = 13:1
CREATE TABLE INST, Here is a database schema( table schema);
With a Suited Match of 13:1, what is the Double Non-Suited Match?.It is not neccessary to use all the tables.
SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game played at Gillette Stadium with a score of 40-21?It is not neccessary to use all the tables.
SELECT MAX Event FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest numbered event?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Losses < 9 AND Games > 24 AND Team Name = vancouver burrards
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games?.It is not neccessary to use all the tables.
SELECT "Result" FROM table_52316 WHERE "Date" = 'october 12, 2005'
CREATE TABLE INST, Here is a database schema( table schema);
What is the result foe October 12, 2005?It is not neccessary to use all the tables.
SELECT MAX Decile FROM table WHERE Authority = state AND Name = tarras school
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest decile of Tarras school, which had a state authority?.It is not neccessary to use all the tables.
SELECT Successor FROM table WHERE District = Massachusetts 3rd
CREATE TABLE INST, Here is a database schema( table schema);
Who was the latest to take office in Massachusetts 3rd district?.It is not neccessary to use all the tables.
SELECT MAX(no_in_season) FROM table_10953197_6 WHERE director = "Chip Chalmers" AND production_code = "2397162"
CREATE TABLE INST, Here is a database schema( table schema);
what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episodeIt is not neccessary to use all the tables.
SELECT Time FROM table WHERE Away team = convoy sun hei team a
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for the match with away team Convoy Sun Hei Team A?.It is not neccessary to use all the tables.
SELECT Outgoing manager FROM table WHERE Team = Mantova
CREATE TABLE INST, Here is a database schema( table schema);
Name the outgoing manager for mantova.It is not neccessary to use all the tables.
SELECT Ground FROM table WHERE Home team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
What was the Home team Carlton's Ground?.It is not neccessary to use all the tables.
SELECT SUM Regular season FROM table WHERE Playoffs = 35 AND Total > 302
CREATE TABLE INST, Here is a database schema( table schema);
A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = New York 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the party for new york 4.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Partner = alexander krasnorutskiy AND Score = 6–3, 4–6, 6–2
CREATE TABLE INST, Here is a database schema( table schema);
What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?.It is not neccessary to use all the tables.
SELECT Villains FROM table WHERE # = 7
CREATE TABLE INST, Here is a database schema( table schema);
Who is the villain in episode #7?.It is not neccessary to use all the tables.
SELECT monday_to_friday FROM table_name_87 WHERE el_canal_de_las_estrellas = "pop tv"
CREATE TABLE INST, Here is a database schema( table schema);
When does the El Canal de las Estrellas of pop tv show from Monday to Friday?It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_19 WHERE year = 1988
CREATE TABLE INST, Here is a database schema( table schema);
What were the least Wins in 1988?It is not neccessary to use all the tables.
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois"
CREATE TABLE INST, Here is a database schema( table schema);
What Player is from the Southern Illinois team?It is not neccessary to use all the tables.
SELECT language FROM table_name_64 WHERE title = "strong heart"
CREATE TABLE INST, Here is a database schema( table schema);
What is the language for Strong Heart?It is not neccessary to use all the tables.
SELECT wed_26_aug FROM table_23465864_6 WHERE rider = "Andrew Farrell 400cc Kawasaki"
CREATE TABLE INST, Here is a database schema( table schema);
What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 71-66-64=201
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of the player with a 71-66-64=201 score?.It is not neccessary to use all the tables.
SELECT Robin FROM table WHERE Jason = 2.5
CREATE TABLE INST, Here is a database schema( table schema);
what is robin's stat when jason was 2.5.It is not neccessary to use all the tables.
SELECT authority FROM table_name_82 WHERE area = "tirau" AND name = "kuranui primary school"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Authority for Kuranui Primary School that is located in the Area of Tirau?It is not neccessary to use all the tables.
SELECT origin FROM Flight WHERE destination = "Honolulu"
CREATE TABLE INST, Here is a database schema( table schema);
Show origins of all flights with destination Honolulu.It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE Round > 2 AND Player = bill gramatica
CREATE TABLE INST, Here is a database schema( table schema);
What was the pick for Bill Gramatica after round 2?.It is not neccessary to use all the tables.
SELECT "Rank" FROM table_72354 WHERE "Dismissals" = '4'
CREATE TABLE INST, Here is a database schema( table schema);
List the ranks of all dismissals with a value of 4It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Date = may 27 AND Class = gts-2
CREATE TABLE INST, Here is a database schema( table schema);
On what circuit is there a class gts-2 race that takes place on May 27?.It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_70 WHERE silver > 19
CREATE TABLE INST, Here is a database schema( table schema);
Name the Total which has a Silver larger than 19?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score = 67-68-76=211
CREATE TABLE INST, Here is a database schema( table schema);
what is the to par when the score is 67-68-76=211?.It is not neccessary to use all the tables.
SELECT allergy, allergytype FROM Allergy_type
CREATE TABLE INST, Here is a database schema( table schema);
Show all allergies and their types.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Score = 15.4.94
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a Score of 15.4.94?.It is not neccessary to use all the tables.
SELECT average_attendance FROM stadium WHERE capacity_percentage > 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance of stadiums with capacity percentage higher than 100%?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = tom kite
CREATE TABLE INST, Here is a database schema( table schema);
What was Tom Kite's to par?.It is not neccessary to use all the tables.