sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT "winner" FROM table_203_475 WHERE "date" > (SELECT "date" FROM table_203_475 WHERE "winner" = 'lance armstrong') ORDER BY "date" LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
after lance armstrong , who led next in the 1995 tour de france ?It is not neccessary to use all the tables.
SELECT £_saved FROM table_29538735_1 WHERE _percentage_electricity_reduction = "8.9%"
CREATE TABLE INST, Here is a database schema( table schema);
When 8.9% is the electricity reduction percentage what is the £ saved?It is not neccessary to use all the tables.
SELECT COUNT Total viewers FROM table WHERE Original airing on Channel 4 = April 21, 2010
CREATE TABLE INST, Here is a database schema( table schema);
How many total viewers have April 21, 2010 as the original airing on channel 4?.It is not neccessary to use all the tables.
SELECT MIN Votes FROM table WHERE Party = labour
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of votes for the Party of Labour?.It is not neccessary to use all the tables.
SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997"
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are there for vote when the air date was 15 november 1997?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_89 WHERE tournaments_played < 2 AND cuts_made = 1 AND earnings___$__ < 10 OFFSET 547
CREATE TABLE INST, Here is a database schema( table schema);
what is the year when tournaments played is less than 2 cuts made is 1 and earnings ($) is less than 10547?It is not neccessary to use all the tables.
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me the trend about manager_id over hire_date with a line chart, list by the x-axis from high to low please.It is not neccessary to use all the tables.
SELECT MIN(episode) FROM table_15187735_20 WHERE segment_a = "Thinning Shears"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number is the episode with a segment on thinning shears?It is not neccessary to use all the tables.
SELECT Count Rectified FROM table WHERE Opponents = single AND Positional or Automatic = either AND Material or Non-material = no
CREATE TABLE INST, Here is a database schema( table schema);
Is the count rectified for single opponents, either positional or automatic, and no material or non-material?.It is not neccessary to use all the tables.
SELECT Actor FROM table WHERE Character = ariadne oliver
CREATE TABLE INST, Here is a database schema( table schema);
who is the actor of the character ariadne oliver?.It is not neccessary to use all the tables.
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner"
CREATE TABLE INST, Here is a database schema( table schema);
Who was Judge Jack Edward Tanner's chief judge?It is not neccessary to use all the tables.
SELECT engine FROM table_name_79 WHERE team = "machinists union racing"
CREATE TABLE INST, Here is a database schema( table schema);
What is the engine for the Machinists Union Racing team?It is not neccessary to use all the tables.
SELECT MAX(_number) FROM table_25360865_1 WHERE name = "Charvez Davis"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most number for charvez davisIt is not neccessary to use all the tables.
SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622896_1 WHERE location = "South Carolina"
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest 1st prize( $ ) at the South Carolina location?It is not neccessary to use all the tables.
SELECT 1 AS st_leg FROM table_21434618_1 WHERE team__number2 = "Ilisiakos"
CREATE TABLE INST, Here is a database schema( table schema);
give the 1st leg score against ilisiakosIt is not neccessary to use all the tables.
SELECT serials_issued FROM table_name_78 WHERE design = "black on yellow"
CREATE TABLE INST, Here is a database schema( table schema);
Which serials were issued with a design of black on yellow?It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_26 WHERE score = "2–2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie No with a Score of 2–2?It is not neccessary to use all the tables.
SELECT AVG Rank FROM table WHERE Bronze > 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the average rank for when bronze is more than 1.It is not neccessary to use all the tables.
SELECT points__margin_ FROM table_27786562_1 WHERE top_tens = 24 AND owner = "David Pearson"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points for top tens being 24 and ownder david pearsonIt is not neccessary to use all the tables.
SELECT COUNT Candidates FROM table WHERE First elected = 1929
CREATE TABLE INST, Here is a database schema( table schema);
How many people were elected in 1929.It is not neccessary to use all the tables.
SELECT Studio host FROM table WHERE Year = 2006-07
CREATE TABLE INST, Here is a database schema( table schema);
Who is the studio host for the year 2006-07?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Nationality = united states AND Player = brett lawrence
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of United States' player Brett Lawrence?.It is not neccessary to use all the tables.
SELECT series_11 FROM table_name_51 WHERE series_1 = "peter jones"
CREATE TABLE INST, Here is a database schema( table schema);
Who in series 11 corresponds to Peter Jones in series 1?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_40 WHERE date = "october 14"
CREATE TABLE INST, Here is a database schema( table schema);
Where Date is october 14 what is the attendance?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Title = "You Are Not in Any Trouble, Are You?"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed "you are not in any trouble, are you?".It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_50 WHERE losses < 10 AND goal_difference < 46 AND goals_for < 63 AND played < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Wins when Losses is less than 10 when Goal Difference is less than 46 when Goals is less than 63 and when Played is less than 30?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 767 AND instructor.name LIKE '%Valerie Laken%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_i...
CREATE TABLE INST, Here is a database schema( table schema);
Class 767 , is Prof. Valerie Laken teaching it next Winter ?It is not neccessary to use all the tables.
SELECT skipper FROM table_25561560_2 WHERE sail_number = "AUS60000"
CREATE TABLE INST, Here is a database schema( table schema);
what skipper has the sail number aus60000?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Lane = 1 AND Nationality = mauritius
CREATE TABLE INST, Here is a database schema( table schema);
What is the name for lane 1, from Mauritius?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 311
CREATE TABLE INST, Here is a database schema( table schema);
311 class has a lab ?It is not neccessary to use all the tables.
SELECT MAX Transit Passengers FROM table WHERE Freight (Metric Tonnes) = 171078
CREATE TABLE INST, Here is a database schema( table schema);
Name the transit passengers for 171078.It is not neccessary to use all the tables.
SELECT "natural host" FROM table_203_589 WHERE "natural host" IN ('podospora anserina', 'saccharomyces cerevisiae') AND "protein" = 'het-s'
CREATE TABLE INST, Here is a database schema( table schema);
podospora anserina or saccharomyces cerevisiae is the natural host for het s ?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Notes = 2:04.22
CREATE TABLE INST, Here is a database schema( table schema);
Which venue has 2:04.22 notes?.It is not neccessary to use all the tables.
SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842It is not neccessary to use all the tables.
SELECT COUNT Height FROM table WHERE Year born < 1977
CREATE TABLE INST, Here is a database schema( table schema);
What is the Height that has a year born before 1977.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home = cavaliers AND Visitor = warriors
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game played with the Cavaliers at home and the Warriors visiting?.It is not neccessary to use all the tables.
SELECT AVG(debut_year) FROM table_name_6 WHERE games < 54 AND years_at_club = "1989" AND goals < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the debut year for the player with fewer than 54 games fewer than 8 goals and 1989 at club?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE City / State = mallala , south australia AND Team = elfin sports cars
CREATE TABLE INST, Here is a database schema( table schema);
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?.It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Host = stanford university
CREATE TABLE INST, Here is a database schema( table schema);
Which region has Stanford University as host?.It is not neccessary to use all the tables.
SELECT people_assisted FROM table_name_14 WHERE year = "1997"
CREATE TABLE INST, Here is a database schema( table schema);
How many people were assisted in 1997?It is not neccessary to use all the tables.
SELECT "Opponent" FROM table_77373 WHERE "November" = '24'
CREATE TABLE INST, Here is a database schema( table schema);
who is the opponent on november 24?It is not neccessary to use all the tables.
SELECT score FROM table_name_46 WHERE home_team = "maine road"
CREATE TABLE INST, Here is a database schema( table schema);
What is home team Maine Road's score?It is not neccessary to use all the tables.
SELECT Firefox FROM table WHERE Opera = 1.8% AND Date = 30 july 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the firefox value with a 1.8% opera on 30 July 2007?.It is not neccessary to use all the tables.
SELECT Id, Reputation, DisplayName, Location FROM Users WHERE LOWER(Location) LIKE LOWER('%##city##%') ORDER BY Reputation DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top users by City.It is not neccessary to use all the tables.
SELECT COUNT("Year") FROM table_38987 WHERE "Length" = '4:00'
CREATE TABLE INST, Here is a database schema( table schema);
what year is 4:00 longIt is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Engine = cosworth dfv v8 AND Driver = warren booth
CREATE TABLE INST, Here is a database schema( table schema);
Who built Warren Booth's car with the Cosworth DFV V8 engine?.It is not neccessary to use all the tables.
SELECT try_bonus FROM table_name_37 WHERE points_against = "451"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for Try bonus when the points against are 451?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Year = 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the location in 2007?.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Silver > 5 AND Total = 29 AND Bronze < 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?.It is not neccessary to use all the tables.
SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46"
CREATE TABLE INST, Here is a database schema( table schema);
Name the model number for usf46It is not neccessary to use all the tables.
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 18"
CREATE TABLE INST, Here is a database schema( table schema);
For sep 18 what is the total number of 1 prize ($)It is not neccessary to use all the tables.
SELECT transfers FROM table_name_16 WHERE distance__km_ > 36.5 AND station_name = "guangximen"
CREATE TABLE INST, Here is a database schema( table schema);
What's the transfer distance (km) larger than 36.5 at the station of guangximen?It is not neccessary to use all the tables.
SELECT record_company FROM table_name_32 WHERE conductor = "robert craft"
CREATE TABLE INST, Here is a database schema( table schema);
What record company has robert craft conducting?It is not neccessary to use all the tables.
SELECT MIN 2011 FROM table WHERE Water park = sunway lagoon AND 2012 < 1,200,000
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?.It is not neccessary to use all the tables.
SELECT "player" FROM table_203_455 WHERE "nationality" = 'finland'
CREATE TABLE INST, Here is a database schema( table schema);
list each of the players from finland .It is not neccessary to use all the tables.
SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were directed by Arlene Sanford?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_17 WHERE week = 10
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent for week 10?It is not neccessary to use all the tables.
SELECT saturday FROM table_name_80 WHERE sunday = "yes" AND evening = "yes"
CREATE TABLE INST, Here is a database schema( table schema);
Which Saturday has a Sunday of yes and a Evening of yes?It is not neccessary to use all the tables.
SELECT MAX(_number) FROM table_25737761_4 WHERE no = 11
CREATE TABLE INST, Here is a database schema( table schema);
What episode number of the season is episode number 11 in the series?It is not neccessary to use all the tables.
SELECT COUNT Land ( sqmi ) FROM table WHERE Township = Ada
CREATE TABLE INST, Here is a database schema( table schema);
Name the land for ada.It is not neccessary to use all the tables.
SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date had a Transfer fee of 8.8m?It is not neccessary to use all the tables.
SELECT Pos. FROM table WHERE Club = spandau 04 AND Name = jens pohlmann
CREATE TABLE INST, Here is a database schema( table schema);
What is Spandau 04 Player Jens Pohlmann's Pos.?.It is not neccessary to use all the tables.
SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score agains Dynamo Kyiv when the group position was 1st?It is not neccessary to use all the tables.
SELECT MIN(capacity) FROM table_16384648_2 WHERE team_nickname = "Flyers"
CREATE TABLE INST, Here is a database schema( table schema);
For the flyers what's the minimum capacity?It is not neccessary to use all the tables.
SELECT COUNT Fin. Pos FROM table WHERE Time/Retired = +10.8098
CREATE TABLE INST, Here is a database schema( table schema);
How many positions did the car with a final time of +10.8098 finish in?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = tom lehman
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Player is "Tom Lehman"?.It is not neccessary to use all the tables.
SELECT location FROM table_16527640_3 WHERE vfl_games = 9
CREATE TABLE INST, Here is a database schema( table schema);
What location had a VFL Game number of 9?It is not neccessary to use all the tables.
SELECT City of License FROM table WHERE D ERP = 100kw
CREATE TABLE INST, Here is a database schema( table schema);
What's the city of license having a D ERP of 100kw?.It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_13336122_7 WHERE us_viewers__million_ = "0.67"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were seen by 0.67 million US viewers on their original air dates?It is not neccessary to use all the tables.
SELECT "Ordained Priest" FROM table_20892 WHERE "Vacated throne" = 'August 18, 1885'
CREATE TABLE INST, Here is a database schema( table schema);
When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest?It is not neccessary to use all the tables.
SELECT county FROM table_name_95 WHERE size > 258 AND mascot = "commodores"
CREATE TABLE INST, Here is a database schema( table schema);
Which County has a Size larger than 258, and a Mascot of commodores?It is not neccessary to use all the tables.
SELECT AVG Season FROM table WHERE F/Laps = 1 AND Poles < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Season, when F/Laps is 1, and when Poles is less than 0?.It is not neccessary to use all the tables.
SELECT player FROM table_name_46 WHERE total = 290
CREATE TABLE INST, Here is a database schema( table schema);
What player has a total of 290 points?It is not neccessary to use all the tables.
SELECT MAX(games_played) FROM table_name_85 WHERE position < 4 AND goals_for_against = "29-24"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of games played of the club with a position number less than 4 and a 29-24 goals for/against?It is not neccessary to use all the tables.
SELECT SUM("Wins") FROM table_6024 WHERE "Points" = '26' AND "Rank" < '27'
CREATE TABLE INST, Here is a database schema( table schema);
Points of 26, and a Rank smaller than 27 had what sum of wins?It is not neccessary to use all the tables.
SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola"
CREATE TABLE INST, Here is a database schema( table schema);
What Soap Opera with the character Teemu Luotola?It is not neccessary to use all the tables.
SELECT event FROM table_name_7 WHERE location = "tokyo, japan" AND record = "6-1"
CREATE TABLE INST, Here is a database schema( table schema);
what is the even when the location is tokyo japan and the record is 6-1?It is not neccessary to use all the tables.
SELECT country FROM table_name_19 WHERE player = "arjun atwal"
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Player of arjun atwal?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Value world rank = 7
CREATE TABLE INST, Here is a database schema( table schema);
When the value world rank is 7, what is the rank?.It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Entrant = lavazza march AND Points = 0.5
CREATE TABLE INST, Here is a database schema( table schema);
What was the chassis when the entrant was Lavazza March, and the points were 0.5?.It is not neccessary to use all the tables.
SELECT COUNT(draws) FROM table_name_41 WHERE wins = 1 AND against < 1728
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of draws when there is 1 Win and less than 1728 against matches?It is not neccessary to use all the tables.
SELECT date FROM table_name_54 WHERE attendance = "78,431"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the attendance of the crowd 78431?It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Away team score = 8.11 (59)
CREATE TABLE INST, Here is a database schema( table schema);
What is the crowd with an Away team score of 8.11 (59)?.It is not neccessary to use all the tables.
SELECT Primary conference FROM table WHERE Team Nickname = phoenix
CREATE TABLE INST, Here is a database schema( table schema);
What primary conference does the team nicknamed Phoenix belongs to?.It is not neccessary to use all the tables.
SELECT position_in_2006 FROM table_name_77 WHERE team = "dnepr"
CREATE TABLE INST, Here is a database schema( table schema);
What was Team Dnepr's position in 2006?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
How much did the away team Melbourne score?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_17288825_6 WHERE team = "@ New Orleans"
CREATE TABLE INST, Here is a database schema( table schema);
When @ new orleans is the team who has the highest amount of rebounds?It is not neccessary to use all the tables.
SELECT COUNT Stunts FROM table WHERE Total = 201.5
CREATE TABLE INST, Here is a database schema( table schema);
How many stunts have a total of 201.5?.It is not neccessary to use all the tables.
SELECT 2nd Member FROM table WHERE Election = 1833 by-election
CREATE TABLE INST, Here is a database schema( table schema);
What 2nd Member has an Election of 1833 by-election?.It is not neccessary to use all the tables.
SELECT 2004 FROM table WHERE 2005 = 2r AND 2006 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What is 2004, when 2005 is "2R", and when 2006 is "1R".It is not neccessary to use all the tables.
SELECT COUNT Time FROM table WHERE Reaction Time > 0.17500000000000002 AND Lane = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many Times have a Reaction Time larger than 0.17500000000000002, and a Lane of 3?.It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Pick > 83
CREATE TABLE INST, Here is a database schema( table schema);
What is the school/club team of the player with a pick larger than 83?.It is not neccessary to use all the tables.
SELECT date_withdrawn FROM table_name_92 WHERE date_made = "1904"
CREATE TABLE INST, Here is a database schema( table schema);
What is the withdrawal date associated with a date made of 1904?It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Draw > 4 AND Place = 1st
CREATE TABLE INST, Here is a database schema( table schema);
What song has a draw more than 4 in 1st place?.It is not neccessary to use all the tables.
SELECT MIN Total Passengers (millions) 2011–12 FROM table WHERE Annual entry/exit (millions) 2011–12 = 36.609
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609?.It is not neccessary to use all the tables.
SELECT MAX("#") FROM table_22903 WHERE "U.S. viewers (million)" = '1.87'
CREATE TABLE INST, Here is a database schema( table schema);
Name the number for viewers being 1.87It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 15
CREATE TABLE INST, Here is a database schema( table schema);
How many wins were in the Masters Tournament with less than 15 events?It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Stolen Ends = 14
CREATE TABLE INST, Here is a database schema( table schema);
Who was the skip with 14 stolen ends?.It is not neccessary to use all the tables.
SELECT jockey FROM table_22517564_3 WHERE opening_odds = "4-1"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the jockey with opening odds of 4-1?It is not neccessary to use all the tables.
SELECT MIN(enrollment) FROM table_2562113_1 WHERE joined = 1987
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment for the institution that joined in 1987?It is not neccessary to use all the tables.