sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT player FROM table_name_9 WHERE year = 1976
CREATE TABLE INST, Here is a database schema( table schema);
Who was the player in 1976?It is not neccessary to use all the tables.
SELECT Top Goalscorer FROM table WHERE Season = 2010-11
CREATE TABLE INST, Here is a database schema( table schema);
Who is the top goalscorer for the season 2010-11?.It is not neccessary to use all the tables.
SELECT COUNT Position FROM table WHERE Player = Matt Bradley
CREATE TABLE INST, Here is a database schema( table schema);
How many draft pick positions did Matt Bradley have?.It is not neccessary to use all the tables.
SELECT teams FROM table_name_46 WHERE season = "1995-96"
CREATE TABLE INST, Here is a database schema( table schema);
What team(s) played in the 1995-96 season?It is not neccessary to use all the tables.
SELECT Station FROM table WHERE Station users 2006–07 = 183000
CREATE TABLE INST, Here is a database schema( table schema);
What stations had 183000 users in 2006-2007?.It is not neccessary to use all the tables.
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943"
CREATE TABLE INST, Here is a database schema( table schema);
What is Born-Died when Term End is 19 January 1943?It is not neccessary to use all the tables.
SELECT record FROM table_name_55 WHERE date = "december 4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record on December 4?It is not neccessary to use all the tables.
SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996"
CREATE TABLE INST, Here is a database schema( table schema);
what is the competition when the result is won and the date is september 13 1996?It is not neccessary to use all the tables.
SELECT position FROM table_name_86 WHERE pick = 32
CREATE TABLE INST, Here is a database schema( table schema);
What position was pick 32?It is not neccessary to use all the tables.
SELECT AVG(fastest_laps) FROM table_name_8 WHERE poles = 0 AND season = "2002" AND podiums < 0
CREATE TABLE INST, Here is a database schema( table schema);
Which the Fastest Laps that have Poles of 0 and a Season of 2002 and a Podiums smaller than 0?It is not neccessary to use all the tables.
SELECT winner FROM table_20462111_1 WHERE date = "30.11.2008"
CREATE TABLE INST, Here is a database schema( table schema);
Who won the cup on 30.11.2008?It is not neccessary to use all the tables.
SELECT MAX("results\nfinal score") FROM table_204_123 WHERE "opponent" = 'rhein fire'
CREATE TABLE INST, Here is a database schema( table schema);
what was the highest score achieved by rhein fire ?It is not neccessary to use all the tables.
SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition)
CREATE TABLE INST, Here is a database schema( table schema);
Show names for artists without any exhibition.It is not neccessary to use all the tables.
SELECT 2012 FROM table_name_83 WHERE 2008 = "q3" AND tournament = "wimbledon"
CREATE TABLE INST, Here is a database schema( table schema);
What's the 2012 during Wimbledon and had a Q3 in 2008?It is not neccessary to use all the tables.
SELECT venue FROM table_name_75 WHERE score = "1-3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the venue for score of 1-3It is not neccessary to use all the tables.
SELECT MIN(yes) FROM table_1705429_1 WHERE constituency = "Dublin South"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least yes for dublin southIt is not neccessary to use all the tables.
SELECT "Venue" FROM table_74581 WHERE "Home team score" = '6.10 (46)'
CREATE TABLE INST, Here is a database schema( table schema);
Which venue had a home team score of 6.10 (46)?It is not neccessary to use all the tables.
SELECT Date_Payment_Made, AVG(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa'
CREATE TABLE INST, Here is a database schema( table schema);
For those payments processed with Visa, bin the payment day into Year interval and compute the average amount payment as the Y-axis.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Posts WHERE LastEditorUserId = 635608 AND OwnerUserId != 635608 AND LastEditDate > '2013-05-03 12:00:00 AM'
CREATE TABLE INST, Here is a database schema( table schema);
How many questions & answers last edited by Mat(635608) in a time range.It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_17 WHERE facility_id > 150833
CREATE TABLE INST, Here is a database schema( table schema);
Which city has a facility ID greater than 150833?It is not neccessary to use all the tables.
SELECT Rounds FROM table WHERE Engine = opc-challenge AND Driver = satrio hermanto
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds did satrio hermanto go with an opc-challenge engine?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Position < 3 AND Lost < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of points for a position less than 3 and less than 1 loss?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface when the partner was Robert Haybittel?It is not neccessary to use all the tables.
SELECT result FROM table_name_78 WHERE year > 1989 AND category = "best supporting actress" AND actor = "samantha morton"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?It is not neccessary to use all the tables.
SELECT report FROM table_name_6 WHERE date = "june 5, 2005"
CREATE TABLE INST, Here is a database schema( table schema);
What Report has the Date of June 5 2005?It is not neccessary to use all the tables.
SELECT winning_driver FROM table_16670746_2 WHERE circuit = "Okayama International circuit"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning driver at Okayama International Circuit?It is not neccessary to use all the tables.
SELECT population FROM table_name_62 WHERE official_name = "saint-andré"
CREATE TABLE INST, Here is a database schema( table schema);
What is saint-andré's population?It is not neccessary to use all the tables.
SELECT written_by FROM table_26198709_1 WHERE us_viewers__million_ = "18.07"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode with 18.07 million viewers?It is not neccessary to use all the tables.
SELECT COUNT(team) FROM table_2522473_1 WHERE seasons = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many teams have been in Topperserien for 8 seasons?It is not neccessary to use all the tables.
SELECT MIN U wins FROM table WHERE Alianza wins > 0 AND Alianza goals > 25 AND Draws = 99
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest U Wins, when Alianza Wins is greater than 0, when Alianza Goals is greater than 25, and when Draws is "99"?.It is not neccessary to use all the tables.
SELECT "Score" FROM table_78675 WHERE "Player" = 'peter lonard'
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for Peter Lonard?It is not neccessary to use all the tables.
SELECT COUNT Junctions FROM table WHERE Remarks = Replaced by BSI-35
CREATE TABLE INST, Here is a database schema( table schema);
How many junctions have "replaced by bsi-35" listed in their remarks section?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Points = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year for 9 points?.It is not neccessary to use all the tables.
SELECT points_difference FROM table_20760802_1 WHERE lost = "10"
CREATE TABLE INST, Here is a database schema( table schema);
How many of the points difference lost equal 10?It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Home team = walsall
CREATE TABLE INST, Here is a database schema( table schema);
What is the Ti no of the Walsall Home game?.It is not neccessary to use all the tables.
SELECT Away captain FROM table WHERE Home captain = hugh trumble AND Result = aus by 32 runs
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the away captain when Hugh Trumble was the home captain and the result was Aus by 32 runs?.It is not neccessary to use all the tables.
SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the denomination of the school that has the most players.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_24 WHERE home_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What is the visiting team that has a home team related to footscray?It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_55681 WHERE "Home team score" = '7.9 (51)'
CREATE TABLE INST, Here is a database schema( table schema);
Which team has an away score of 7.9 (51)?It is not neccessary to use all the tables.
SELECT money___$__ FROM table_name_24 WHERE score = 76 - 70 - 65 - 68 = 279
CREATE TABLE INST, Here is a database schema( table schema);
How much money does the player with a score of 76-70-65-68=279 have?It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_name_70 WHERE team = "minnesota"
CREATE TABLE INST, Here is a database schema( table schema);
What game was Minnesota the team?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
When was the game at Essendon?.It is not neccessary to use all the tables.
SELECT MIN 2003 Election FROM table WHERE 1999 Election = 57 AND 2007 Election < 54
CREATE TABLE INST, Here is a database schema( table schema);
Which election, in 2003 had the lowest turnout, but also had 57 in 1999 and less then 54 in 2007?.It is not neccessary to use all the tables.
SELECT captain FROM table_name_86 WHERE team = "leeds united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the captain's name of team Leeds United?It is not neccessary to use all the tables.
SELECT Week 3 FROM table WHERE Week 1 = kristy dwyer
CREATE TABLE INST, Here is a database schema( table schema);
Which week 3 had a week 1 of Kristy Dwyer?.It is not neccessary to use all the tables.
SELECT score FROM table_name_24 WHERE competition = "1996 asian cup qualification" AND date = "june 29, 1996"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the 1996 Asian Cup Qualification on June 29 1996?It is not neccessary to use all the tables.
SELECT 1st Runner Up FROM table WHERE Miss Earth Venezuela = maría daniela torrealba
CREATE TABLE INST, Here is a database schema( table schema);
who is the 1st runner-up when the miss earth Venezuela is maría daniela torrealba?.It is not neccessary to use all the tables.
SELECT version FROM table_name_60 WHERE length = "5:15"
CREATE TABLE INST, Here is a database schema( table schema);
what album is 5:15 longIt is not neccessary to use all the tables.
SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks"
CREATE TABLE INST, Here is a database schema( table schema);
What Field was played at in an away game against the bayhawks?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = willie wood
CREATE TABLE INST, Here is a database schema( table schema);
What was willie wood's to par?.It is not neccessary to use all the tables.
SELECT length FROM table_name_29 WHERE junctions = "sh 359 us 59" AND route_name = "fm 2895"
CREATE TABLE INST, Here is a database schema( table schema);
What's the length of route FM 2895 with junctions sh 359 us 59?It is not neccessary to use all the tables.
SELECT COUNT Year named FROM table WHERE Name origin = Athena , Greek goddess of wisdom .
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of year named for athena , greek goddess of wisdom ..It is not neccessary to use all the tables.
SELECT score FROM table_name_68 WHERE result = "5-2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the game that had an end result of 5-2?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Lead = tyler forrest
CREATE TABLE INST, Here is a database schema( table schema);
Which City has a Lead of tyler forrest?.It is not neccessary to use all the tables.
SELECT nfl_club FROM table_name_60 WHERE pick = 153
CREATE TABLE INST, Here is a database schema( table schema);
What is the NFL club with pick # 153?It is not neccessary to use all the tables.
SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte"
CREATE TABLE INST, Here is a database schema( table schema);
What Winning constructor has a Circuit of lasarte?It is not neccessary to use all the tables.
SELECT Division East FROM table WHERE Division North = Milano
CREATE TABLE INST, Here is a database schema( table schema);
what is the division east when division north was milano.It is not neccessary to use all the tables.
SELECT us_rap FROM table_name_15 WHERE album = "life in the concrete jungle"
CREATE TABLE INST, Here is a database schema( table schema);
What U.S. Rap has life in the concrete jungle as the album?It is not neccessary to use all the tables.
SELECT MAX Crowd FROM table WHERE Venue = arden street oval
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest crowd at Arden Street Oval?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Dance = tango AND Points jury = 24 (7,5,6,6)
CREATE TABLE INST, Here is a database schema( table schema);
What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?.It is not neccessary to use all the tables.
SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes soter"
CREATE TABLE INST, Here is a database schema( table schema);
Which royal house corresponds to Polyxenos Epiphanes Soter?It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Game when Opponent is "Chicago Black Hawks" and when November is less than 16?It is not neccessary to use all the tables.
SELECT T4.Name, COUNT(T4.Name) FROM swimmer AS t1 JOIN record AS t2 ON t1.ID = t2.Swimmer_ID JOIN event AS t3 ON t2.Event_ID = t3.ID JOIN stadium AS t4 ON t4.ID = t3.Stadium_ID WHERE t1.Nationality = 'Australia' GROUP BY T4.Name
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart for finding the number of the names of stadiums that some Australian swimmers have been to.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = dave douglas
CREATE TABLE INST, Here is a database schema( table schema);
Dave Douglas has what score?.It is not neccessary to use all the tables.
SELECT AVG(goals) FROM table_name_32 WHERE competition = "bundesliga" AND apps < 7
CREATE TABLE INST, Here is a database schema( table schema);
How many goals did he have in the bundesliga with under 7 appearances?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Home = Los Angeles Lakers
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game at home Los Angeles Lakers?.It is not neccessary to use all the tables.
SELECT 2010 FROM table WHERE Tournament = australian open
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 value for the Australian Open?.It is not neccessary to use all the tables.
SELECT AVG(events) FROM table_name_84 WHERE top_25 < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the event average for a top-25 smaller than 0?It is not neccessary to use all the tables.
SELECT COUNT(displacement__tons_) FROM table_name_52 WHERE armament = "2 x -inch (mm), 16 x -inch (mm)"
CREATE TABLE INST, Here is a database schema( table schema);
How much Displacement (tons) has an Armament of 2 x -inch (mm) 16 x -inch (mm)?It is not neccessary to use all the tables.
SELECT league_cup_goals FROM table_name_61 WHERE total > "14" AND league_goals = "14" AND fa_cup_goals = "0"
CREATE TABLE INST, Here is a database schema( table schema);
Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0?It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Year < 2009 AND Role/Episode = libby goldstein and junie lowry-johnson
CREATE TABLE INST, Here is a database schema( table schema);
Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game < 7 AND Date = november 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the record of the game played on November 7?.It is not neccessary to use all the tables.
SELECT Leading scorer FROM table WHERE Home = grizzlies AND Record = 10–28
CREATE TABLE INST, Here is a database schema( table schema);
Which leading scorer has a Home of grizzlies, and a Record of 10–28?.It is not neccessary to use all the tables.
SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = "Doug Davis"
CREATE TABLE INST, Here is a database schema( table schema);
What are Doug Davis' maximum pitching stats?It is not neccessary to use all the tables.
SELECT playoffs FROM table_2511876_1 WHERE league = "USISL Select league"
CREATE TABLE INST, Here is a database schema( table schema);
Name the playoffs for usisl select leagueIt is not neccessary to use all the tables.
SELECT MIN Branches FROM table WHERE Total Congregations > 1 AND Population = 1,033,381 AND Membership < 5,671
CREATE TABLE INST, Here is a database schema( table schema);
What's the fewest number of branches with more than 1 total congregations, a population of 1,033,381, and a membership smaller than 5,671?.It is not neccessary to use all the tables.
SELECT AVG Top-10 FROM table WHERE Cuts made > 12 AND Wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of top-10s for events with more than 12 cuts made and 0 wins?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = tom watson
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of player tom watson?.It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_17 WHERE date = "october 10, 1976"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week number on October 10 1976?It is not neccessary to use all the tables.
SELECT city FROM table_name_82 WHERE date = "march 30"
CREATE TABLE INST, Here is a database schema( table schema);
What city has march 30 as the date?It is not neccessary to use all the tables.
SELECT "Year" FROM table_46417 WHERE "Name" = 'asi peko'
CREATE TABLE INST, Here is a database schema( table schema);
What year was Asi Peko?It is not neccessary to use all the tables.
SELECT record FROM table_name_8 WHERE date = "august 28"
CREATE TABLE INST, Here is a database schema( table schema);
Which record has a Date of august 28?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = november 22
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game on November 22?.It is not neccessary to use all the tables.
SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"
CREATE TABLE INST, Here is a database schema( table schema);
Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home = buffalo
CREATE TABLE INST, Here is a database schema( table schema);
Home of buffalo happened on what date?.It is not neccessary to use all the tables.
SELECT COUNT(ground) FROM table_16388439_1 WHERE home_team = "Essendon"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of ground for essendonIt is not neccessary to use all the tables.
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year started is the lowest one that has a Number of cars larger than 7 and a Car # of 100?It is not neccessary to use all the tables.
SELECT COUNT Network FROM table WHERE Season premiere = September 11, 2000
CREATE TABLE INST, Here is a database schema( table schema);
The season premiere aired on September 11, 2000 aired on how many networks? .It is not neccessary to use all the tables.
SELECT MAX Episode # FROM table WHERE Title = "House of Cards"
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest episode of "House of Cards"?.It is not neccessary to use all the tables.
SELECT MIN(matches) FROM table_name_44 WHERE points > 6 AND results = "522:443"
CREATE TABLE INST, Here is a database schema( table schema);
Points larger than 6 and a Results of 522:443 had what lowest matches?It is not neccessary to use all the tables.
SELECT COUNT(pick__number) FROM table_1213511_7 WHERE nhl_team = "Philadelphia Flyers"
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of pick # where nhl team is philadelphia flyersIt is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_49 WHERE score = 76 - 71 - 78 - 67 = 292
CREATE TABLE INST, Here is a database schema( table schema);
What was the to par score in the match that had a score of 76-71-78-67=292?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = october 8, 2005 AND Venue = estadio alfonso lastras, san luis potosí, mexico
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Date of october 8, 2005, and a Venue of estadio alfonso lastras, san luis potosí, mexico?.It is not neccessary to use all the tables.
SELECT MAX(time) FROM table_name_30 WHERE rank < 5 AND name = "eamon sullivan"
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest time when the rank is less than 5 and the name is eamon sullivan?It is not neccessary to use all the tables.
SELECT season FROM table_name_57 WHERE poles = "0" AND series = "gp2 series" AND position = "19th"
CREATE TABLE INST, Here is a database schema( table schema);
In which season did he have 0 Poles and 19th position in the GP2 Series?It is not neccessary to use all the tables.
SELECT MAX SOL FROM table WHERE Result = Lost in round 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest SOL where the team lost in round 3?.It is not neccessary to use all the tables.
SELECT "Aggregate" FROM table_72102 WHERE "1st leg" = '3–2'
CREATE TABLE INST, Here is a database schema( table schema);
what's the aggregate where 1st leg is 3 2It is not neccessary to use all the tables.
SELECT written_by FROM table_17861265_1 WHERE us_viewers__million_ = "3.03"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the episode writer when the viewers reached 3.03 million in the US?It is not neccessary to use all the tables.
SELECT Ranking FROM table WHERE RR2 Pts. = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank when RR2 has 4 points?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Third = shawn rojeski
CREATE TABLE INST, Here is a database schema( table schema);
what is the season when the third is shawn rojeski?.It is not neccessary to use all the tables.