sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Visitor FROM table WHERE Decision = mason AND Date = january 29
CREATE TABLE INST, Here is a database schema( table schema);
On January 29, who had the decision of Mason?.It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Rod Hardy"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were directed by Rod Hardy?It is not neccessary to use all the tables.
SELECT h_s_asst_principal FROM table_name_47 WHERE glendale_principal = "joyce brace" AND year = "2002-2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Finish = t41 AND Country = england
CREATE TABLE INST, Here is a database schema( table schema);
Which player from England finished in T41?.It is not neccessary to use all the tables.
SELECT MIN Drawn FROM table WHERE Name = sv apfeldorf AND Position > 8
CREATE TABLE INST, Here is a database schema( table schema);
what is the least drawn when the name is sv apfeldorf and the position is more than 8?.It is not neccessary to use all the tables.
SELECT MAX(seats_2006) FROM table_name_64 WHERE _percentage_2001 = 39 AND seats_2001 < 12
CREATE TABLE INST, Here is a database schema( table schema);
what is the seats 2006 total with %2001 of 39 and seats 2001 less than 12?It is not neccessary to use all the tables.
SELECT Film title used in nomination FROM table WHERE Country = bulgaria
CREATE TABLE INST, Here is a database schema( table schema);
Which movie originated in Bulgaria?.It is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_86 WHERE year_s__won = "1993"
CREATE TABLE INST, Here is a database schema( table schema);
How many to pars were won in 1993?It is not neccessary to use all the tables.
SELECT Fleet number(s) FROM table WHERE Quantity made = 3
CREATE TABLE INST, Here is a database schema( table schema);
What fleet number had 3 made?.It is not neccessary to use all the tables.
SELECT crowd FROM table_name_78 WHERE venue = "moorabbin oval"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance at the game played at Moorabbin Oval?It is not neccessary to use all the tables.
SELECT Current map FROM table WHERE Name = debussy
CREATE TABLE INST, Here is a database schema( table schema);
What is the current map designation for Debussy?.It is not neccessary to use all the tables.
SELECT "Name" FROM table_75742 WHERE "Builder" = 'chatham' AND "Laid down" = '25 april 1887'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the boat that was built by Chatham and Laid down of 25 april 1887?It is not neccessary to use all the tables.
SELECT District FROM table WHERE Weblink = http://www.annauniv.edu AND College or Campus Name = anna university - tiruchirappalli campus
CREATE TABLE INST, Here is a database schema( table schema);
In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located?.It is not neccessary to use all the tables.
SELECT SUM(yards) FROM table_name_43 WHERE rating = 118.7
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of yards for a 118.7 rating?It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE Opponent = los angeles kings AND January > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of games of the team against the Los Angeles Kings after January 5?.It is not neccessary to use all the tables.
SELECT Rebounds FROM table WHERE Steals = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for rebounds when steals is 19?.It is not neccessary to use all the tables.
SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"
CREATE TABLE INST, Here is a database schema( table schema);
In what rounds did Luigi Fagioli drive for Alfa Romeo SPA?It is not neccessary to use all the tables.
SELECT AVG(december) FROM table_name_35 WHERE game = 37 AND points < 47
CREATE TABLE INST, Here is a database schema( table schema);
Which December has a Game of 37 and Points smaller than 47?It is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_1 WHERE score = "2-6, 4-6"
CREATE TABLE INST, Here is a database schema( table schema);
what is the tournament when the score is 2-6 4-6?It is not neccessary to use all the tables.
SELECT Original title FROM table WHERE Film title used in nomination = The Last Metro
CREATE TABLE INST, Here is a database schema( table schema);
Name the original title for the last metro.It is not neccessary to use all the tables.
SELECT Year born FROM table WHERE Height (m) = 1.88
CREATE TABLE INST, Here is a database schema( table schema);
What is every year born for height of 1.88?.It is not neccessary to use all the tables.
SELECT Authority FROM table WHERE Area = avalon AND Roll < 358 AND Name = avalon school
CREATE TABLE INST, Here is a database schema( table schema);
What was the Authority for Avalon School with a roll less than 358?.It is not neccessary to use all the tables.
SELECT title FROM table_23242958_1 WHERE directed_by = "Rodney Clouden"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the episode directed by Rodney Clouden?It is not neccessary to use all the tables.
SELECT position FROM table_name_76 WHERE overall = 304
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player play with an overall of 304?It is not neccessary to use all the tables.
SELECT Users.DisplayName, Users.Id, sub.totalVotes, Users.WebsiteUrl FROM (SELECT Users.Id, COUNT(*) AS totalVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND Votes.VoteTypeId = 2 INNER JOIN Users ON Posts...
CREATE TABLE INST, Here is a database schema( table schema);
Top 'R' Vote Getters with A Website.It is not neccessary to use all the tables.
SELECT MIN Place FROM table WHERE Country = united kingdom AND Time = 1:30.51.2
CREATE TABLE INST, Here is a database schema( table schema);
When the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked?.It is not neccessary to use all the tables.
SELECT "Time" FROM table_75690 WHERE "Winner" = 'kentucky ii'
CREATE TABLE INST, Here is a database schema( table schema);
What was the winning time for the winning horse, Kentucky ii?It is not neccessary to use all the tables.
SELECT SUM Crude birth rate (per 1000) FROM table WHERE Crude death rate (per 1000) < 6.2 AND Average population (x 1000) > 2,770 AND Natural change (per 1000) = 17.2
CREATE TABLE INST, Here is a database schema( table schema);
what is the crude birth rate (per 1000) when the crude death rate (per 1000) is less than 6.2, the average population (x1000) is larger than 2,770 and the natural change (per 1000) is 17.2?.It is not neccessary to use all the tables.
SELECT AVG(Price), AVG(Score), Appelation FROM WINE GROUP BY Appelation
CREATE TABLE INST, Here is a database schema( table schema);
What are the average price and score of wines grouped by appelation?It is not neccessary to use all the tables.
SELECT COUNT(avg_g) FROM table_name_41 WHERE loss > 117 AND name = "opponents" AND gain < 2444
CREATE TABLE INST, Here is a database schema( table schema);
How much Avg/G has a Loss larger than 117 and a Name of opponents and a Gain smaller than 2444?It is not neccessary to use all the tables.
SELECT COUNT 5wi FROM table WHERE Average = 33.13
CREATE TABLE INST, Here is a database schema( table schema);
how many 5wi with an average of 33.13?.It is not neccessary to use all the tables.
SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72
CREATE TABLE INST, Here is a database schema( table schema);
Which 2005 is the lowest one that has a Grade smaller than 6 and a 2008 smaller than 80 and a 2006 larger than 72?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE High rebounds = luc mbah a moute (11)
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a High rebounds of luc mbah a moute (11)?.It is not neccessary to use all the tables.
SELECT score FROM table_name_92 WHERE record = "21-25-7-4"
CREATE TABLE INST, Here is a database schema( table schema);
What score has a record of 21-25-7-4?It is not neccessary to use all the tables.
SELECT Mens Doubles FROM table WHERE Mens Singles = Ma Wenge
CREATE TABLE INST, Here is a database schema( table schema);
Who is everyone on the men's doubles when men's singles is Ma Wenge?.It is not neccessary to use all the tables.
SELECT event FROM table_name_76 WHERE notes = "53.76"
CREATE TABLE INST, Here is a database schema( table schema);
What Event goes with Notes 53.76?It is not neccessary to use all the tables.
SELECT womens_doubles FROM table_15001572_1 WHERE mens_doubles = "No competition"
CREATE TABLE INST, Here is a database schema( table schema);
What was the competition when there was no competition for mens doubles?It is not neccessary to use all the tables.
SELECT nfl_team FROM table_name_30 WHERE draft_year = 1978
CREATE TABLE INST, Here is a database schema( table schema);
In 1978 what is the NFL team?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE New WNBA Team = miami sol AND College/Country/Team = north carolina state
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player who played for the Miami Sol and went to school at North Carolina State?.It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_30 WHERE country = "new zealand"
CREATE TABLE INST, Here is a database schema( table schema);
What years did New Zealand win?It is not neccessary to use all the tables.
SELECT air wing FROM table WHERE from = 16 june 1967
CREATE TABLE INST, Here is a database schema( table schema);
What is the air wing for the craft that was deployed from 16 June 1967?.It is not neccessary to use all the tables.
SELECT broadcaster FROM table_name_24 WHERE year = "2003"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the broadcaster in 2003?It is not neccessary to use all the tables.
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13"
CREATE TABLE INST, Here is a database schema( table schema);
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13It is not neccessary to use all the tables.
SELECT opponent FROM table_name_94 WHERE event = "sengoku 1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has the Event of Sengoku 1?It is not neccessary to use all the tables.
SELECT T1.Location, T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_ID
CREATE TABLE INST, Here is a database schema( table schema);
Show locations and nicknames of schools.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Premiere = september 13, 1978
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for the episode that premiered on September 13, 1978?.It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Player = brunel christensen AND Pick < 293
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a Player of brunel christensen and a Pick smaller than 293?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Assists > 0 AND Position = forward AND Apps > 84 AND Goals = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player with more than 0 assists, a position of forward, 19 goals, and more than 84 apps?.It is not neccessary to use all the tables.
SELECT Mountains classification FROM table WHERE Winner = mario cipollini AND General classification = pavel tonkov
CREATE TABLE INST, Here is a database schema( table schema);
What is the mountain classification of Mario Cipollini, who has a general classification of Pavel tonkov?.It is not neccessary to use all the tables.
SELECT surface FROM table_name_99 WHERE opponent = "oleksandra kravets"
CREATE TABLE INST, Here is a database schema( table schema);
Which Surface has an Opponent of oleksandra kravets?It is not neccessary to use all the tables.
SELECT Laid down FROM table WHERE Name = uss cambridge
CREATE TABLE INST, Here is a database schema( table schema);
What year was the USS Cambridge laid down?.It is not neccessary to use all the tables.
SELECT COUNT(season__number) FROM table_23286722_1 WHERE production_code = "3M17"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of season for production code 3m17It is not neccessary to use all the tables.
SELECT runs FROM table_name_52 WHERE opponent = "canterbury"
CREATE TABLE INST, Here is a database schema( table schema);
Which Run has an Opponent of Canterbury?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Place = t6 AND Player = tom watson
CREATE TABLE INST, Here is a database schema( table schema);
When Tom Watson placed t6, what was the 2 par?.It is not neccessary to use all the tables.
SELECT hometown FROM table_name_45 WHERE height = "6-4"
CREATE TABLE INST, Here is a database schema( table schema);
What's the hometown of the player who is 6-4?It is not neccessary to use all the tables.
SELECT 2011 FROM table_name_99 WHERE 2012 = "a" AND tournament = "french open"
CREATE TABLE INST, Here is a database schema( table schema);
What is 2011 when 2012 is "A" and when Tournament is "French Open"?It is not neccessary to use all the tables.
SELECT COUNT District FROM table WHERE Incumbent = Noble Jones Gregory
CREATE TABLE INST, Here is a database schema( table schema);
How many results for incumbent Noble Jones Gregory?.It is not neccessary to use all the tables.
SELECT date FROM table_name_86 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the match played at MCG?It is not neccessary to use all the tables.
SELECT Obama # FROM table WHERE County = Carson City
CREATE TABLE INST, Here is a database schema( table schema);
what is the obama # in carson city.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the date for the game in week 7?.It is not neccessary to use all the tables.
SELECT AVG(money___) AS $__ FROM table_name_95 WHERE score = 70 - 66 - 73 - 69 = 278
CREATE TABLE INST, Here is a database schema( table schema);
Which Money ($) has a Score of 70-66-73-69=278?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Loss = kinney (0-1)
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent lost with pitcher Kinney (0-1)?.It is not neccessary to use all the tables.
SELECT SUM(cultural_and_educational_panel) FROM table_name_87 WHERE administrative_panel = 0 AND agricultural_panel < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the cultural and educational panel value with an administrative panel of 0 and an agricultural panel value less than 0?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT participant_id) FROM participants_in_Events
CREATE TABLE INST, Here is a database schema( table schema);
What are all the distinct participant ids who attended any events?It is not neccessary to use all the tables.
SELECT competition FROM table_name_52 WHERE attendance > 914 AND opponent = "wightlink raiders"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?It is not neccessary to use all the tables.
SELECT kitmaker FROM table_25129482_1 WHERE club = "TPS"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the kitmaker for TPS?It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE Original air date = February20,2011
CREATE TABLE INST, Here is a database schema( table schema);
Which production code had original air dated february20,2011.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Position = center AND Player = john parco
CREATE TABLE INST, Here is a database schema( table schema);
In what Round is John Parco a Center?.It is not neccessary to use all the tables.
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 's/p embolectomy')
CREATE TABLE INST, Here is a database schema( table schema);
what is the cost for diagnosis of s/p embolectomy?It is not neccessary to use all the tables.
SELECT 3rd Largest FROM table WHERE 2nd Largest = minab
CREATE TABLE INST, Here is a database schema( table schema);
What is the 3rd largest when 2nd largest in Minab?.It is not neccessary to use all the tables.
SELECT score FROM table_11963601_11 WHERE date = "May 11"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the game on May 11?It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Percentage = 11.32%
CREATE TABLE INST, Here is a database schema( table schema);
Which Artist has a Percentage of 11.32%?.It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE NHL team = St. Louis Blues
CREATE TABLE INST, Here is a database schema( table schema);
What college/junior/club teams do the players from the St. Louis Blues come from?.It is not neccessary to use all the tables.
SELECT Apogee FROM table WHERE Inclination = 65° AND Launch date/time ( GMT ) = 15 february 1973, 01:11
CREATE TABLE INST, Here is a database schema( table schema);
What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11?.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Away team = townsville crocodiles
CREATE TABLE INST, Here is a database schema( table schema);
What's the report about townsville crocodiles as an away team?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date of the episode with production code is 319?It is not neccessary to use all the tables.
SELECT AVG Conceded FROM table WHERE Position > 8 AND Wins > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average conceded number of the team with a position lower than 8 and more than 2 wins?.It is not neccessary to use all the tables.
SELECT SUM Long FROM table WHERE Avg. > 9.8 AND Rec. < 5 AND Yards < 20
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20.It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Podiums > 10
CREATE TABLE INST, Here is a database schema( table schema);
What series had more than 10 Podiums?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_42 WHERE artist = "kamil mikulčík and nela" AND place > 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Points when the artist is kamil mikulčík and nela and the Place is larger than 18?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t2
CREATE TABLE INST, Here is a database schema( table schema);
Which player has a place of t2?.It is not neccessary to use all the tables.
SELECT SUM(game) FROM table_name_6 WHERE high_rebounds = "pierson (6)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Game(s) when High Rebounds is "Pierson (6)"?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 10-9-7
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the game where the record was 10-9-7?.It is not neccessary to use all the tables.
SELECT SUM(ViewCount) AS Views FROM Posts AS Questions INNER JOIN PostTags ON Questions.Id = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Questions.PostTypeId = 1 AND Tags.TagName = '##tagname##'
CREATE TABLE INST, Here is a database schema( table schema);
Total number of views for a given tag.It is not neccessary to use all the tables.
SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7"
CREATE TABLE INST, Here is a database schema( table schema);
What Tries against has a Losing bonus of 7?It is not neccessary to use all the tables.
SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the shop that is hiring the largest number of employees?It is not neccessary to use all the tables.
SELECT 2011 FROM table_name_62 WHERE tournament = "tokyo"
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2011 for tokyo tournamentIt is not neccessary to use all the tables.
SELECT country FROM table_name_83 WHERE date = 1991 AND birth_date = "1976-07-23"
CREATE TABLE INST, Here is a database schema( table schema);
What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991?It is not neccessary to use all the tables.
SELECT Callback audition date FROM table WHERE Episode air date = February 2, 2011
CREATE TABLE INST, Here is a database schema( table schema);
When was the callback audition date for the audition city from the episode aired on February 2, 2011?.It is not neccessary to use all the tables.
SELECT candidates FROM table_2668336_19 WHERE incumbent = "William Wilson"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates in the election where william wilson was the incumbent?It is not neccessary to use all the tables.
SELECT MAX(lost) FROM table_name_79 WHERE points = 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of losses with 25 points?It is not neccessary to use all the tables.
SELECT SUM(closed) FROM table_name_73 WHERE city = "pittsburgh" AND capacity > 59 OFFSET 000
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of closed for city of pittsburgh and capacity larger than 59000It is not neccessary to use all the tables.
SELECT order_id FROM shipments WHERE shipment_date = (SELECT MAX(shipment_date) FROM shipments)
CREATE TABLE INST, Here is a database schema( table schema);
Find the id of the order which is shipped most recently.It is not neccessary to use all the tables.
SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton"
CREATE TABLE INST, Here is a database schema( table schema);
Who did Clinton appoint as a Chief Judge?It is not neccessary to use all the tables.
SELECT Republican: Steve Sauerberg FROM table WHERE Dates administered = August 12, 2008
CREATE TABLE INST, Here is a database schema( table schema);
Name the republican steve sauerberg for august 12, 2008.It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_67 WHERE school_club_team = "cal-poly slo" AND pick < 238
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has a School/Club Team of cal-poly slo and a Pick smaller than 238?It is not neccessary to use all the tables.
SELECT Pick # FROM table WHERE Round < 6 AND Overall > 13 AND College = penn state
CREATE TABLE INST, Here is a database schema( table schema);
Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?.It is not neccessary to use all the tables.
SELECT AVG # of candidates FROM table WHERE % of popular vote = 41.37%
CREATE TABLE INST, Here is a database schema( table schema);
What is the # of candidates that have a popular vote of 41.37%?.It is not neccessary to use all the tables.
SELECT finish FROM table_name_13 WHERE qual = "99.550"
CREATE TABLE INST, Here is a database schema( table schema);
Which finish has a 99.550 Qual?It is not neccessary to use all the tables.