output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT MIN(profits__billion_) AS $_ FROM table_name_14 WHERE sales__billion_$_ = 425.7 AND rank > 4
CREATE TABLE table_name_14 (profits__billion_ INTEGER, sales__billion_$_ VARCHAR, rank VARCHAR), Name the lowest Profits (billion $) which has a Sales (billion $) of 425.7, and a Rank larger than 4?
SELECT MIN(market_value__billion_) AS $_ FROM table_name_44 WHERE assets__billion_$_ > 276.81 AND company = "toyota" AND profits__billion_$_ > 17.21
CREATE TABLE table_name_44 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR, company VARCHAR), Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of toyota, and Profits (billion $) larger than 17.21?
SELECT sales__billion_$_ FROM table_name_70 WHERE company = "exxonmobil"
CREATE TABLE table_name_70 (sales__billion_$_ VARCHAR, company VARCHAR), Name the Sales (billion $) which have a Company of exxonmobil?
SELECT winner FROM table_name_76 WHERE win__number > 1 AND points < 94
CREATE TABLE table_name_76 (winner VARCHAR, win__number VARCHAR, points VARCHAR), What is Winner, when Win # is greater than 1, and when Points is less than 94?
SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12"
CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR), What is Playoff Result, when Winner is "Alaska Aces", when Win # is greater than 1, when Points is less than 106, and when Year is "2011-12"?
SELECT MIN(win__number) FROM table_name_27 WHERE year = "2011-12" AND points < 97
CREATE TABLE table_name_27 (win__number INTEGER, year VARCHAR, points VARCHAR), What is the lowest Win #, when Year is "2011-12", and when Points is less than 97?
SELECT MAX(win__number) FROM table_name_87 WHERE winner = "knoxville cherokees" AND playoff_result = "lost 1st round ( lou )" AND points < 94
CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR), What is the highest Win #, when Winner is "Knoxville Cherokees", when Playoff Result is "Lost 1st Round ( LOU )", and when Points is less than 94?
SELECT winner FROM table_name_42 WHERE finalist = "lindsay davenport"
CREATE TABLE table_name_42 (winner VARCHAR, finalist VARCHAR), Who was the winner against Lindsay Davenport?
SELECT finalist FROM table_name_7 WHERE tournament = "miami"
CREATE TABLE table_name_7 (finalist VARCHAR, tournament VARCHAR), Who was the finalist in Miami?
SELECT winner FROM table_name_92 WHERE finalist = "lina krasnoroutskaya"
CREATE TABLE table_name_92 (winner VARCHAR, finalist VARCHAR), Who was the winner against finalist Lina Krasnoroutskaya?
SELECT date FROM table_name_50 WHERE away_team = "carlisle united"
CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR), What was the date when the away team was carlisle united?
SELECT date FROM table_name_3 WHERE away_team = "leeds united"
CREATE TABLE table_name_3 (date VARCHAR, away_team VARCHAR), What was the date when the away team was the leeds united?
SELECT tie_no FROM table_name_35 WHERE away_team = "peterborough united"
CREATE TABLE table_name_35 (tie_no VARCHAR, away_team VARCHAR), What was the tie number when peterborough united was the away team?
SELECT player FROM table_name_6 WHERE to_par = "e" AND country = "united states"
CREATE TABLE table_name_6 (player VARCHAR, to_par VARCHAR, country VARCHAR), What player has E as the to par, and The United States as the country?
SELECT player FROM table_name_91 WHERE country = "united states" AND score = 70
CREATE TABLE table_name_91 (player VARCHAR, country VARCHAR, score VARCHAR), What player has The United States as the country with 70 as the score?
SELECT player FROM table_name_9 WHERE country = "united states" AND place = "t2"
CREATE TABLE table_name_9 (player VARCHAR, country VARCHAR, place VARCHAR), What player has The United States as the country, with t2 as the place?
SELECT place FROM table_name_3 WHERE to_par = "e" AND player = "mark wiebe"
CREATE TABLE table_name_3 (place VARCHAR, to_par VARCHAR, player VARCHAR), What place has E as the to par, with Mark Wiebe as the player?
SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = "carolina 1"
CREATE TABLE table_name_95 (founded INTEGER, joined_prsl VARCHAR, home_city VARCHAR), When is the club founded that founed prsl in 2008 and the home city is carolina 1?
SELECT club FROM table_name_85 WHERE founded < 2007 AND joined_prsl = 2008 AND stadium = "yldefonso solá morales stadium"
CREATE TABLE table_name_85 (club VARCHAR, stadium VARCHAR, founded VARCHAR, joined_prsl VARCHAR), what is the club that was founded before 2007, joined prsl in 2008 and the stadium is yldefonso solá morales stadium?
SELECT MIN(founded) FROM table_name_51 WHERE home_city = "mayagüez"
CREATE TABLE table_name_51 (founded INTEGER, home_city VARCHAR), what is the earliest founded when the home city is mayagüez?
SELECT MAX(joined_prsl) FROM table_name_31 WHERE founded = 2007 AND stadium = "roberto clemente stadium 1"
CREATE TABLE table_name_31 (joined_prsl INTEGER, founded VARCHAR, stadium VARCHAR), when is the latest to join prsl when founded in 2007 and the stadium is roberto clemente stadium 1?
SELECT year FROM table_name_56 WHERE champion = "akron goodyear wingfoots" AND runner_up = "real madrid"
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR), What year was the International Cup that was won by Akron Goodyear Wingfoots and had Real Madrid as runner-up?
SELECT year_s__won FROM table_name_7 WHERE country = "united states" AND to_par > 14
CREATE TABLE table_name_7 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR), In what year did the United States win To par greater than 14
SELECT SUM(total) FROM table_name_25 WHERE country = "south africa" AND to_par > 14
CREATE TABLE table_name_25 (total INTEGER, country VARCHAR, to_par VARCHAR), What is the total that South Africa had a par greater than 14
SELECT MAX(to_par) FROM table_name_54 WHERE total < 153
CREATE TABLE table_name_54 (to_par INTEGER, total INTEGER), What is the highest to par that is less than 153
SELECT AVG(attendance) FROM table_name_78 WHERE date = "september 17, 1981"
CREATE TABLE table_name_78 (attendance INTEGER, date VARCHAR), What is the average Attendance, when the Date is September 17, 1981?
SELECT attendance FROM table_name_80 WHERE opponent = "tampa bay buccaneers"
CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR), What is the Attendance, when the Opponent is the Tampa Bay Buccaneers?
SELECT COUNT(points_) FROM table_name_56 WHERE sets_ > 51
CREATE TABLE table_name_56 (points_ VARCHAR, sets_ INTEGER), What is the total number of Points- when the Sets- is larger than 51?
SELECT developer FROM table_name_96 WHERE year_of_release = "cancelled"
CREATE TABLE table_name_96 (developer VARCHAR, year_of_release VARCHAR), Which developer has a year of cancelled releases?
SELECT publisher FROM table_name_60 WHERE year_of_release = "2000" AND original_platforms = "dreamcast"
CREATE TABLE table_name_60 (publisher VARCHAR, year_of_release VARCHAR, original_platforms VARCHAR), Which publisher has release year of 2000 and an original dreamcast platform?
SELECT publisher FROM table_name_19 WHERE name = "spec ops: stealth patrol"
CREATE TABLE table_name_19 (publisher VARCHAR, name VARCHAR), Which publisher is responsible for spec ops: stealth patrol?
SELECT connection FROM table_name_62 WHERE web_client_accelerator = "proxyconn web accelerator"
CREATE TABLE table_name_62 (connection VARCHAR, web_client_accelerator VARCHAR), What is the connection for the proxyconn web accelerator web client accelerator?
SELECT date FROM table_name_13 WHERE region = "europe" AND catalog = "28765 22392 8"
CREATE TABLE table_name_13 (date VARCHAR, region VARCHAR, catalog VARCHAR), What's the Date with the Region of Europe and has a Catalog of 28765 22392 8?
SELECT label FROM table_name_51 WHERE date = "29 july 1997"
CREATE TABLE table_name_51 (label VARCHAR, date VARCHAR), What's listed for the Label with a Date of 29 July 1997?
SELECT date FROM table_name_70 WHERE region = "europe" AND catalog = "28765 22392 8"
CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR, catalog VARCHAR), What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?
SELECT format FROM table_name_86 WHERE region = "europe" AND catalog = "74321 45851 2"
CREATE TABLE table_name_86 (format VARCHAR, region VARCHAR, catalog VARCHAR), What Format has the Region of Europe and a Catalog of 74321 45851 2?
SELECT label FROM table_name_84 WHERE region = "australia"
CREATE TABLE table_name_84 (label VARCHAR, region VARCHAR), What Label has the Region of Australia?
SELECT date FROM table_name_33 WHERE region = "europe" AND catalog = "74321 45851 2"
CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR, catalog VARCHAR), What Date has the Region Europe and a Catalog of 74321 45851 2?
SELECT SUM(poles) FROM table_name_40 WHERE series = "formula three euroseries" AND season = "2008" AND f_laps > 0
CREATE TABLE table_name_40 (poles INTEGER, f_laps VARCHAR, series VARCHAR, season VARCHAR), How many poles are there in the Formula Three Euroseries in the 2008 season with more than 0 F/Laps?
SELECT series FROM table_name_57 WHERE points = "11"
CREATE TABLE table_name_57 (series VARCHAR, points VARCHAR), Which series has 11 points?
SELECT COUNT(poles) FROM table_name_45 WHERE season = "2009" AND races = 2 AND f_laps > 0
CREATE TABLE table_name_45 (poles VARCHAR, f_laps VARCHAR, season VARCHAR, races VARCHAR), How many poles are there in the 2009 season with 2 races and more than 0 F/Laps?
SELECT SUM(races) FROM table_name_2 WHERE series = "formula three euroseries" AND team = "signature"
CREATE TABLE table_name_2 (races INTEGER, series VARCHAR, team VARCHAR), How many races did the Formula Three Euroseries signature team have?
SELECT title FROM table_name_48 WHERE studio = "embassy pictures"
CREATE TABLE table_name_48 (title VARCHAR, studio VARCHAR), What is Title, when Studio is "Embassy Pictures"?
SELECT studio FROM table_name_49 WHERE title = "do not disturb"
CREATE TABLE table_name_49 (studio VARCHAR, title VARCHAR), What is Studio, when Title is "Do Not Disturb"?
SELECT MAX(rank) FROM table_name_63 WHERE director = "henry hathaway"
CREATE TABLE table_name_63 (rank INTEGER, director VARCHAR), What is the highest Rank, when Director is "Henry Hathaway"?
SELECT country FROM table_name_26 WHERE to_par < 5 AND player = "sam snead"
CREATE TABLE table_name_26 (country VARCHAR, to_par VARCHAR, player VARCHAR), What Country is Player Sam Snead with a To par of less than 5 from?
SELECT place FROM table_name_37 WHERE player = "claude harmon"
CREATE TABLE table_name_37 (place VARCHAR, player VARCHAR), What is Claude Harmon's Place?
SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"
CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR), What is the Johnny Palmer with a To larger than 6 Money sum?
SELECT attendance FROM table_name_84 WHERE series = "western conference finals"
CREATE TABLE table_name_84 (attendance VARCHAR, series VARCHAR), What is the attendance of the western conference finals series?
SELECT Leading AS scorer FROM table_name_96 WHERE series = "wnba finals"
CREATE TABLE table_name_96 (Leading VARCHAR, series VARCHAR), Who is the leading scorer of the wnba finals series?
SELECT tie_no FROM table_name_97 WHERE home_team = "birmingham city"
CREATE TABLE table_name_97 (tie_no VARCHAR, home_team VARCHAR), Which Tie is from birmingham city?
SELECT tie_no FROM table_name_89 WHERE home_team = "everton"
CREATE TABLE table_name_89 (tie_no VARCHAR, home_team VARCHAR), Which Tie is from everton?
SELECT MIN(u_wins) FROM table_name_52 WHERE alianza_wins > 0 AND alianza_goals > 25 AND draws = 99
CREATE TABLE table_name_52 (u_wins INTEGER, draws VARCHAR, alianza_wins VARCHAR, alianza_goals VARCHAR), 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"?
SELECT SUM(alianza_wins) FROM table_name_97 WHERE alianza_goals = 317 AND u_goals > 296
CREATE TABLE table_name_97 (alianza_wins INTEGER, alianza_goals VARCHAR, u_goals VARCHAR), What is the sum of Alianza Wins, when Alianza Goals is "317, and when U Goals is greater than 296?
SELECT COUNT(u_wins) FROM table_name_25 WHERE alianza_goals = 0 AND u_goals > 3
CREATE TABLE table_name_25 (u_wins VARCHAR, alianza_goals VARCHAR, u_goals VARCHAR), What is the total number of U Wins, when Alianza Goals is "0", and when U Goals is greater than 3?
SELECT MIN(draws) FROM table_name_3 WHERE alianza_goals < 317 AND u_goals < 3 AND alianza_wins < 2
CREATE TABLE table_name_3 (draws INTEGER, alianza_wins VARCHAR, alianza_goals VARCHAR, u_goals VARCHAR), What is the lowest Draws, when Alianza Goals is less than 317, when U Goals is less than 3, and when Alianza Wins is less than 2?
SELECT SUM(to_par) FROM table_name_65 WHERE player = "bob rosburg"
CREATE TABLE table_name_65 (to_par INTEGER, player VARCHAR), What is the total of all to par with player Bob Rosburg?
SELECT money___$__ FROM table_name_4 WHERE place = "t1" AND player = "jack fleck"
CREATE TABLE table_name_4 (money___$__ VARCHAR, place VARCHAR, player VARCHAR), Which money has player Jack Fleck with t1 place?
SELECT AVG(to_par) FROM table_name_38 WHERE player = "bud holscher"
CREATE TABLE table_name_38 (to_par INTEGER, player VARCHAR), What is average to par when Bud Holscher is the player?
SELECT player FROM table_name_81 WHERE score = 73 - 65 = 138
CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR), What is the name of the golfer that has the score of 73-65=138?
SELECT country FROM table_name_43 WHERE player = "frank nobilo"
CREATE TABLE table_name_43 (country VARCHAR, player VARCHAR), Frank Nobilo plays for what country?
SELECT MIN(appearance) FROM table_name_32 WHERE goals > 0
CREATE TABLE table_name_32 (appearance INTEGER, goals INTEGER), what is the lowest appearance when goals is more than 0?
SELECT SUM(appearance) FROM table_name_33 WHERE goals > 0
CREATE TABLE table_name_33 (appearance INTEGER, goals INTEGER), what is the sum of appearance when goals is more than 0?
SELECT AVG(tries) FROM table_name_55 WHERE season = "2008 warrington wolves" AND appearance > 7
CREATE TABLE table_name_55 (tries INTEGER, season VARCHAR, appearance VARCHAR), what is the average tries for the season 2008 warrington wolves with an appearance more than 7?
SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 AND appearance < 0
CREATE TABLE table_name_51 (points VARCHAR, tries VARCHAR, appearance VARCHAR), How many times is tries 0 and appearance less than 0?
SELECT SUM(rank) FROM table_name_19 WHERE worldwide_gross = "$183,031,272"
CREATE TABLE table_name_19 (rank INTEGER, worldwide_gross VARCHAR), What is the Rank of the Film with a Worldwide Gross of $183,031,272?
SELECT title FROM table_name_25 WHERE rank > 11 AND worldwide_gross = "$131,002,597"
CREATE TABLE table_name_25 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR), What is the Title of the Film with a Rank greater than 11 and Worldwide Gross of $131,002,597?
SELECT worldwide_gross FROM table_name_38 WHERE rank = 3
CREATE TABLE table_name_38 (worldwide_gross VARCHAR, rank VARCHAR), What is the Worldwide Gross of the Film with a Rank of 3?
SELECT worldwide_gross FROM table_name_68 WHERE rank = 16
CREATE TABLE table_name_68 (worldwide_gross VARCHAR, rank VARCHAR), What is the Worldwide Gross of the Film with a Rank of 16?
SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405
CREATE TABLE table_name_59 (long INTEGER, loss VARCHAR, gain VARCHAR), When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
SELECT SUM(long) FROM table_name_26 WHERE loss < 390 AND avg_g = 2 AND gain > 29
CREATE TABLE table_name_26 (long INTEGER, gain VARCHAR, loss VARCHAR, avg_g VARCHAR), When the Gain is 29, and the average per game is 2, and the player lost less than 390 yards, what's the sum of the Long yards?
SELECT SUM(overall) FROM table_name_90 WHERE name = "charley barnes" AND pick < 3
CREATE TABLE table_name_90 (overall INTEGER, name VARCHAR, pick VARCHAR), How many overalls have charley barnes as the name, with a pick less than 3?
SELECT SUM(round) FROM table_name_87 WHERE name = "john o'day" AND pick < 3
CREATE TABLE table_name_87 (round INTEGER, name VARCHAR, pick VARCHAR), How many rounds have john o'day as the name, and a pick less than 3?
SELECT airport FROM table_name_76 WHERE iata = "arn"
CREATE TABLE table_name_76 (airport VARCHAR, iata VARCHAR), What airport has an IATA of ARN?
SELECT country FROM table_name_85 WHERE icao = "enzv"
CREATE TABLE table_name_85 (country VARCHAR, icao VARCHAR), What country has an ICAO of ENZV?
SELECT airport FROM table_name_68 WHERE icao = "bgbw"
CREATE TABLE table_name_68 (airport VARCHAR, icao VARCHAR), What airport has an ICAP of BGBW?
SELECT airport FROM table_name_16 WHERE icao = "birk"
CREATE TABLE table_name_16 (airport VARCHAR, icao VARCHAR), What airport has an ICAO of Birk?
SELECT icao FROM table_name_7 WHERE country = "denmark" AND iata = "bll"
CREATE TABLE table_name_7 (icao VARCHAR, country VARCHAR, iata VARCHAR), What is the ICAO for Denmark, and the IATA is bll?
SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332
CREATE TABLE table_name_60 (round VARCHAR, name VARCHAR, overall VARCHAR), What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332?
SELECT COUNT(pick) FROM table_name_71 WHERE name = "george rosso" AND overall < 296
CREATE TABLE table_name_71 (pick VARCHAR, name VARCHAR, overall VARCHAR), What pick did George Rosso get drafted when the overall was less than 296?
SELECT name FROM table_name_86 WHERE date_from = "2008-02-21"
CREATE TABLE table_name_86 (name VARCHAR, date_from VARCHAR), What was the name for the row with Date From of 2008-02-21?
SELECT date_from FROM table_name_30 WHERE date_to = "end of season" AND name = "theo robinson"
CREATE TABLE table_name_30 (date_from VARCHAR, date_to VARCHAR, name VARCHAR), What was the Date From for Theo Robinson, who was with the team until the end of season?
SELECT date_from FROM table_name_81 WHERE position = "mf" AND name = "toumani diagouraga"
CREATE TABLE table_name_81 (date_from VARCHAR, position VARCHAR, name VARCHAR), What date did Toumani Diagouraga, who played position MF, start?
SELECT AVG(round) FROM table_name_18 WHERE opponent = "klas akesson"
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR), What is the average round against opponent Klas Akesson?
SELECT MAX(week) FROM table_name_5 WHERE opponent = "minnesota vikings"
CREATE TABLE table_name_5 (week INTEGER, opponent VARCHAR), What is the highest week that was played against the Minnesota Vikings?
SELECT opponent FROM table_name_26 WHERE week = 6
CREATE TABLE table_name_26 (opponent VARCHAR, week VARCHAR), Which opponent was played in Week 6?
SELECT score FROM table_name_15 WHERE location_attendance = "seattle center coliseum 11,497"
CREATE TABLE table_name_15 (score VARCHAR, location_attendance VARCHAR), WhichScore has a Location Attendance of seattle center coliseum 11,497?
SELECT AVG(game) FROM table_name_36 WHERE team = "portland trail blazers"
CREATE TABLE table_name_36 (game INTEGER, team VARCHAR), Which Game has a Team of portland trail blazers?
SELECT AVG(game) FROM table_name_4 WHERE date = "march 2"
CREATE TABLE table_name_4 (game INTEGER, date VARCHAR), Which game was played on march 2?
SELECT MIN(game) FROM table_name_97 WHERE high_assists = "s. threatt (9)"
CREATE TABLE table_name_97 (game INTEGER, high_assists VARCHAR), Which Game has High assists of s. threatt (9)?
SELECT SUM(pop__2004_) FROM table_name_15 WHERE governorate = "al mahrah" AND area_km² < 78 OFFSET 073
CREATE TABLE table_name_15 (pop__2004_ INTEGER, governorate VARCHAR, area_km² VARCHAR), Count the sum of Pop (2004) which has a Governorate of al mahrah with an Area km² smaller than 78,073?
SELECT SUM(pop__2004_) FROM table_name_48 WHERE governorate = "al mahwit"
CREATE TABLE table_name_48 (pop__2004_ INTEGER, governorate VARCHAR), How many Pop (2004) has a Governorate of al mahwit?
SELECT location_attendance FROM table_name_98 WHERE high_points = "allen iverson (23)"
CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR), What is Location Attendance, when High Points is "Allen Iverson (23)"?
SELECT AVG(game) FROM table_name_78 WHERE team = "milwaukee"
CREATE TABLE table_name_78 (game INTEGER, team VARCHAR), What is the average Game, when Team is "Milwaukee"?
SELECT high_points FROM table_name_5 WHERE game = 5
CREATE TABLE table_name_5 (high_points VARCHAR, game VARCHAR), What is High Points, when Game is "5"?
SELECT high_points FROM table_name_18 WHERE game < 10 AND high_assists = "chauncey billups (8)"
CREATE TABLE table_name_18 (high_points VARCHAR, game VARCHAR, high_assists VARCHAR), What is High Points, when Game is less than 10, and when High Assists is "Chauncey Billups (8)"?
SELECT team FROM table_name_46 WHERE game = 38
CREATE TABLE table_name_46 (team VARCHAR, game VARCHAR), What is the Team in Game 38?
SELECT MIN(game) FROM table_name_13 WHERE score = "129–105"
CREATE TABLE table_name_13 (game INTEGER, score VARCHAR), What Game had a Score of 129–105?
SELECT team FROM table_name_97 WHERE game = 41
CREATE TABLE table_name_97 (team VARCHAR, game VARCHAR), What is the Team in Game 41?
SELECT streak FROM table_name_42 WHERE record = "20–16"
CREATE TABLE table_name_42 (streak VARCHAR, record VARCHAR), What is the Streak in the game with a Record of 20–16?