sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT first_elected FROM table_name_45 WHERE result = "retired republican gain" AND district = "ohio 21"
CREATE TABLE INST, Here is a database schema( table schema);
Who was first elected as the result of a retired republican gain in the district of ohio 21?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_39 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
Which home team played against Geelong?It is not neccessary to use all the tables.
SELECT COUNT No. FROM table WHERE Tournament = Volvo Masters Andalucia
CREATE TABLE INST, Here is a database schema( table schema);
How many tournament wins were at Volvo Masters Andalucia?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Result = 46-18
CREATE TABLE INST, Here is a database schema( table schema);
In what tournament is there a result of 46-18?.It is not neccessary to use all the tables.
SELECT Sprint FROM table WHERE Mass Start = 2nd
CREATE TABLE INST, Here is a database schema( table schema);
Name the sprint with mass start of 2nd.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Winning Driver = Wally Dallenbach AND Track = Wisconsin State Fair Park Speedway
CREATE TABLE INST, Here is a database schema( table schema);
If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location?.It is not neccessary to use all the tables.
SELECT date FROM table_name_75 WHERE opponent = "wimbledon" AND result = "drew 0-0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date with an Opponent with wimbledon and a Result of drew 0-0?It is not neccessary to use all the tables.
SELECT score FROM table_23285849_10 WHERE high_points = "J.R. Smith (26)"
CREATE TABLE INST, Here is a database schema( table schema);
When j.r. smith (26) has the highest amount of points what is the score?It is not neccessary to use all the tables.
SELECT percentage_of_global_total FROM table_11251601_2 WHERE country = "India"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?It is not neccessary to use all the tables.
SELECT Year(s) retired FROM table WHERE Quantity made = 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the year retired of the locomotive which had the quantity made of 25?.It is not neccessary to use all the tables.
SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = "Raymond van Barneveld"
CREATE TABLE INST, Here is a database schema( table schema);
what is the 3-dart average of raymond van barneveldIt is not neccessary to use all the tables.
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the Leading scorer when the Home was the Trail blazers?It is not neccessary to use all the tables.
SELECT 7:30 am FROM table WHERE 11:00 am = the view
CREATE TABLE INST, Here is a database schema( table schema);
What is 7:30 am, when 11:00 am is "The View"?.It is not neccessary to use all the tables.
SELECT COUNT Games played FROM table WHERE Kansas State vs. = DePaul
CREATE TABLE INST, Here is a database schema( table schema);
how many games has kansas state and depaul played against each other.It is not neccessary to use all the tables.
SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum in 2004 when 2009 is higher than 26.1?It is not neccessary to use all the tables.
SELECT score FROM table_2215159_2 WHERE partner = "Rafael Osuna"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the partner is Rafael Osuna?It is not neccessary to use all the tables.
SELECT sign FROM table_name_5 WHERE fall = "venus"
CREATE TABLE INST, Here is a database schema( table schema);
Which sign has a fall of Venus?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_12 WHERE loss = "koch (0-1)"
CREATE TABLE INST, Here is a database schema( table schema);
When the game had a loss of Koch (0-1) what was the attendance?It is not neccessary to use all the tables.
SELECT current_womens_lacrosse_conference FROM table_27378582_1 WHERE nickname = "Bison"
CREATE TABLE INST, Here is a database schema( table schema);
Name the current womens lacrosse conference for bisonIt is not neccessary to use all the tables.
SELECT MIN(altitude__ft_) FROM table_name_80 WHERE mach > 0.905 AND duration = "00:06:17"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?It is not neccessary to use all the tables.
SELECT MAX(l) FROM table_29542147_2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest L of the tournament?It is not neccessary to use all the tables.
SELECT gold FROM table_name_15 WHERE year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who won the gold medal in 1998?It is not neccessary to use all the tables.
SELECT 2005 FROM table WHERE 1999 = 0–0
CREATE TABLE INST, Here is a database schema( table schema);
Which 2005 has a 1999 of 0–0?.It is not neccessary to use all the tables.
SELECT opponent FROM table_21091127_1 WHERE record = "6-2"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a record of 6-2?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team score = 13.12 (90)
CREATE TABLE INST, Here is a database schema( table schema);
What was the Away team score when the Home team had a score of 13.12 (90)?.It is not neccessary to use all the tables.
SELECT AVG Best score FROM table WHERE Worst score = 15
CREATE TABLE INST, Here is a database schema( table schema);
What's the best average score with a bad score of 15?.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Rank > 4 AND Total = 2 AND Silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Week = 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game on week 13?.It is not neccessary to use all the tables.
SELECT MAX Interceptions FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of interceptions?.It is not neccessary to use all the tables.
SELECT start FROM table_name_13 WHERE laps = 199 AND qual = "224.838"
CREATE TABLE INST, Here is a database schema( table schema);
Name the start with Laps of 199 with qual of 224.838It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Format = cd maxi
CREATE TABLE INST, Here is a database schema( table schema);
Which region had a release format of CD Maxi?.It is not neccessary to use all the tables.
SELECT score FROM table_name_8 WHERE date = "january 15, 2005"
CREATE TABLE INST, Here is a database schema( table schema);
What score has january 15 2005 as the date?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 27-14
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the record was 27-14?.It is not neccessary to use all the tables.
SELECT MIN 1949/50 ($ millions) FROM table WHERE Cumulative ($ millions) = 376
CREATE TABLE INST, Here is a database schema( table schema);
How much was spent in 1949/50 (in $ millions) in the country where the cumulative expenditure is $376 millions?.It is not neccessary to use all the tables.
SELECT year FROM table_name_85 WHERE result = "7th"
CREATE TABLE INST, Here is a database schema( table schema);
What year did anna thompson have a 7th place result?It is not neccessary to use all the tables.
SELECT Overall FROM table WHERE Conf. Record = 4-1-1
CREATE TABLE INST, Here is a database schema( table schema);
What was the overall record for the Pandas when their conference record was 4-1-1? .It is not neccessary to use all the tables.
SELECT position FROM table_name_13 WHERE round > 5 AND selection = 168
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Round larger than 5 and a Selection of 168?It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Points < 34
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the player with less than 34 points?.It is not neccessary to use all the tables.
SELECT ranking FROM table_name_14 WHERE season = "2009"
CREATE TABLE INST, Here is a database schema( table schema);
Which Ranking has a Season of 2009?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Poles = 1 AND Series = ADAC GT Masters
CREATE TABLE INST, Here is a database schema( table schema);
If the series is ADAC GT Masters and poles is 1, what is the name of the team?.It is not neccessary to use all the tables.
SELECT MIN(yards) FROM table_name_56 WHERE avg < 3
CREATE TABLE INST, Here is a database schema( table schema);
Which has and average less than 3 and the lowest yards?It is not neccessary to use all the tables.
SELECT 2009 FROM table WHERE 2012 = a AND 2003 = a AND Tournament = madrid masters
CREATE TABLE INST, Here is a database schema( table schema);
What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?.It is not neccessary to use all the tables.
SELECT MAX Points Gained FROM table WHERE Fans Took = 907 AND Miles [One Way] > 44.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?.It is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Home team score = 7.7 (49) AND Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size of the match where the home team scored 7.7 (49) against Geelong?.It is not neccessary to use all the tables.
SELECT Week 3 FROM table WHERE Week 4 = gina blair
CREATE TABLE INST, Here is a database schema( table schema);
What Week 3 has a Week 4 of gina blair?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?It is not neccessary to use all the tables.
SELECT award_ceremony FROM table_name_2 WHERE role = "glinda" AND year = 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which Award Ceremony in 2009 has a Role of Glinda?It is not neccessary to use all the tables.
SELECT record FROM table_name_55 WHERE score = "104-99"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when Score is 104-99?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 94-74 w
CREATE TABLE INST, Here is a database schema( table schema);
On which date was the score 94-74 w?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_43 WHERE player = "ernie els"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par that has ernie els as the player?It is not neccessary to use all the tables.
SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director
CREATE TABLE INST, Here is a database schema( table schema);
Show me a bar chart for how many movie reviews does each director get?, and order bars in ascending order.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Game = 49
CREATE TABLE INST, Here is a database schema( table schema);
Who scored the most points in Game 49?.It is not neccessary to use all the tables.
SELECT "City" FROM table_41287 WHERE "Capacity" = '41,311'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the city with a capacity of 41,311?It is not neccessary to use all the tables.
SELECT "Country" FROM table_45149 WHERE "Score" = '69-71-66=206'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Country of the Player with a Score of 69-71-66=206?It is not neccessary to use all the tables.
SELECT date_of_polls FROM table_15329030_1 WHERE state = "Mizoram"
CREATE TABLE INST, Here is a database schema( table schema);
Which dates of polls occur in the Mizoram state?It is not neccessary to use all the tables.
SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Category = revelation
CREATE TABLE INST, Here is a database schema( table schema);
What year saw an award in the category of Revelation?.It is not neccessary to use all the tables.
SELECT MP's term FROM table WHERE Electorate = grey and bell
CREATE TABLE INST, Here is a database schema( table schema);
What is the MP's term who was elected from grey and bell?.It is not neccessary to use all the tables.
SELECT owner_s_ FROM table_name_34 WHERE description = "operational"
CREATE TABLE INST, Here is a database schema( table schema);
What owner or owners have an operational description?It is not neccessary to use all the tables.
SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120
CREATE TABLE INST, Here is a database schema( table schema);
For those products with a price between 60 and 120, return a bar chart about the distribution of name and price .It is not neccessary to use all the tables.
SELECT MIN(subsidiaries) FROM table_1756264_2 WHERE company_name = "POSTERMOBILE ADVERTISING LIMITED"
CREATE TABLE INST, Here is a database schema( table schema);
How many subsidiaries are there of Postermobile Advertising Limited?It is not neccessary to use all the tables.
SELECT score FROM table_name_9 WHERE record = "22-28-7-4"
CREATE TABLE INST, Here is a database schema( table schema);
What score has a record of 22-28-7-4?It is not neccessary to use all the tables.
SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = "rolls-royce/snecma olympus 593" AND sfc_in_lb__lbf·h_ < 1.195
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?It is not neccessary to use all the tables.
SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the first name and gender of student who have more than one pet.It is not neccessary to use all the tables.
SELECT average_ratings FROM table_name_76 WHERE tv_station = "tbs" AND episodes = "10" AND japanese_title = "scandal"
CREATE TABLE INST, Here is a database schema( table schema);
What's the ratings of TBS of Episode 10 and had a Japanese title of Scandal?It is not neccessary to use all the tables.
SELECT SUM("Enrollment") FROM table_33202 WHERE "Team Nickname" = 'wildcats'
CREATE TABLE INST, Here is a database schema( table schema);
The school nicknamed the wildcats has what sum of enrollment?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 11
CREATE TABLE INST, Here is a database schema( table schema);
what team has a score of 11.It is not neccessary to use all the tables.
SELECT AVG Podiums FROM table WHERE Finishes < 12 AND Starts < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of podiums for drivers with under 12 finishes and under 1 start?.It is not neccessary to use all the tables.
SELECT MAX Passenger Fleet FROM table WHERE Airline/Holding = wizz air AND Current Destinations < 83
CREATE TABLE INST, Here is a database schema( table schema);
For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?.It is not neccessary to use all the tables.
SELECT current_conference FROM table_10577579_3 WHERE location = "Jackson, Mississippi"
CREATE TABLE INST, Here is a database schema( table schema);
Which conference is in Jackson Mississippi?It is not neccessary to use all the tables.
SELECT League FROM table WHERE Coach(es) = Jim Burton
CREATE TABLE INST, Here is a database schema( table schema);
What is every league for coach Jim Burton?.It is not neccessary to use all the tables.
SELECT Target FROM table WHERE Approval date = 2006
CREATE TABLE INST, Here is a database schema( table schema);
What is the target with an approval date of 2006?.It is not neccessary to use all the tables.
SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 10"
CREATE TABLE INST, Here is a database schema( table schema);
How many sitting Representatives are there in the New York 10 polling area?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Rank = #4 AND Country = us
CREATE TABLE INST, Here is a database schema( table schema);
Which year's rank was #4 when the country was the US?.It is not neccessary to use all the tables.
SELECT Quantity world rank FROM table WHERE Value world rank = 12
CREATE TABLE INST, Here is a database schema( table schema);
where value world rank is 12, what is the quantity world rank?.It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_71 WHERE score = "4–0"
CREATE TABLE INST, Here is a database schema( table schema);
Score of 4–0 had what attendance number?It is not neccessary to use all the tables.
SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32
CREATE TABLE INST, Here is a database schema( table schema);
List the distinct carriers of phones with memories bigger than 32.It is not neccessary to use all the tables.
SELECT "Away team" FROM table_11384 WHERE "Venue" = 'windy hill'
CREATE TABLE INST, Here is a database schema( table schema);
Which away team was at windy hill?It is not neccessary to use all the tables.
SELECT MAX(home_runs) FROM table_name_92 WHERE team = "cleveland indians" AND year < 1931
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the highest home runs for cleveland indians years before 1931It is not neccessary to use all the tables.
SELECT host FROM table_name_19 WHERE premiere = "13 january 2009"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the 13 january 2009 hostIt is not neccessary to use all the tables.
SELECT Graemes guest FROM table WHERE Episode = 1x03
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the graemest guest of episode 1x03.It is not neccessary to use all the tables.
SELECT Region 1 FROM table WHERE Region 4 = April 2, 2009
CREATE TABLE INST, Here is a database schema( table schema);
Name the region 1 where region 4 for april 2, 2009.It is not neccessary to use all the tables.
SELECT player FROM table_name_79 WHERE college = "sam houston state"
CREATE TABLE INST, Here is a database schema( table schema);
Who plays for sam houston state?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 6AJN08
CREATE TABLE INST, Here is a database schema( table schema);
what title was given to the episode with production code 6ajn08?.It is not neccessary to use all the tables.
SELECT date FROM table_name_22 WHERE country = "united states" AND venue = "mandalay bay resort"
CREATE TABLE INST, Here is a database schema( table schema);
When is Country of united states and a Venue of mandalay bay resort in?It is not neccessary to use all the tables.
SELECT 2nd leg FROM table WHERE Team #2 = Panionios
CREATE TABLE INST, Here is a database schema( table schema);
What's the 2nd leg result in the round where Panionios is team #2?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_75 WHERE away_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
Which team played as the home team when north melbourne played as away?It is not neccessary to use all the tables.
SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Game with a Score that is w 104 90 (ot)?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_54 WHERE team_1 = "servette"
CREATE TABLE INST, Here is a database schema( table schema);
What is the second leg for Team 1 Servette?It is not neccessary to use all the tables.
SELECT COUNT(location_attendance) FROM table_22893781_5 WHERE date = "December 2"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended on december 2?It is not neccessary to use all the tables.
SELECT Goals Against FROM table WHERE Wins = 7
CREATE TABLE INST, Here is a database schema( table schema);
For teams with 7 wins, what is the number of goals against?.It is not neccessary to use all the tables.
SELECT colour FROM table_name_31 WHERE compound_name = "super-soft"
CREATE TABLE INST, Here is a database schema( table schema);
What color is the super-soft compound?It is not neccessary to use all the tables.
SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
CREATE TABLE INST, Here is a database schema( table schema);
Which lane did George Bovell swim in?It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_43 WHERE total = 4 AND rank = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of silver medals for the entry with rank 3 and a total of 4 medals?It is not neccessary to use all the tables.
SELECT COUNT Score FROM table WHERE Date = January 18
CREATE TABLE INST, Here is a database schema( table schema);
What was the total score for january 18?.It is not neccessary to use all the tables.
SELECT score FROM table_name_91 WHERE loss = "buehrle (7-2)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Loss of buehrle (7-2)?It is not neccessary to use all the tables.
SELECT COUNT(high_assists) FROM table_19778010_5 WHERE high_rebounds = "Sales (10)"
CREATE TABLE INST, Here is a database schema( table schema);
How many different players did the high assists in games where the high rebounds were done by Sales (10)?It is not neccessary to use all the tables.
SELECT 2:00 pm FROM table WHERE 12:30 pm = the young and the restless
CREATE TABLE INST, Here is a database schema( table schema);
what is at 2:00 pm when at 12:30 pm is the young and the restless?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE High > 13,142 AND Average = 10,387 (2nd) AND Sellouts < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of the year that more than 13,142 is the high, and 10,387 (2nd) is the average, and there was less than 0 sellouts?.It is not neccessary to use all the tables.
SELECT player FROM table_name_9 WHERE height = "6-2"
CREATE TABLE INST, Here is a database schema( table schema);
Which player is 6-2?It is not neccessary to use all the tables.