output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT attendance FROM table_name_89 WHERE tie_no = 1
CREATE TABLE table_name_89 (attendance VARCHAR, tie_no VARCHAR), How many were in Attendance during a Tie no of 1?
SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = "tamworth"
CREATE TABLE table_name_9 (attendance VARCHAR, away_team VARCHAR), What was the Attendance during the Tamworth Away game?
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)"
CREATE TABLE table_name_21 (winner VARCHAR), Which 1st prize ($) has a Winner of scott simpson (7)?
SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_69 WHERE date = "aug 17"
CREATE TABLE table_name_69 (date VARCHAR), How many 1st prizes have a Date of aug 17?
SELECT tournament FROM table_name_15 WHERE location = "texas" AND winner = "tom watson (39)"
CREATE TABLE table_name_15 (tournament VARCHAR, location VARCHAR, winner VARCHAR), Which Tournament has a Location of texas, and a Winner of tom watson (39)?
SELECT res FROM table_name_81 WHERE type = "ko" AND opponent = "cliff beckett"
CREATE TABLE table_name_81 (res VARCHAR, type VARCHAR, opponent VARCHAR), What was the resolution for KO opposing Cliff Beckett?
SELECT type FROM table_name_34 WHERE opponent = "robert villemain" AND record = "109–1–2"
CREATE TABLE table_name_34 (type VARCHAR, opponent VARCHAR, record VARCHAR), What is the type when Robert Villemain had a record at 109–1–2?
SELECT platform_ & _frequency_[mhz] FROM table_name_46 WHERE model = "whr-g54s"
CREATE TABLE table_name_46 (platform_ VARCHAR, _frequency_ VARCHAR, mhz VARCHAR, model VARCHAR), What is the platform & frequency [MHz] of the whr-g54s model?
SELECT voltage_input_[v_a] FROM table_name_89 WHERE model = "whr-g54s"
CREATE TABLE table_name_89 (voltage_input_ VARCHAR, v_a VARCHAR, model VARCHAR), What is the voltage iinput [V/A] of the whr-g54s model?
SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n"
CREATE TABLE table_name_72 (ethernet_port_count VARCHAR, model VARCHAR), What is the Ethernet port count of the whr-hp-g300n model?
SELECT MAX(year) FROM table_name_64 WHERE album = "airwaves" AND us_hot_100 = "–"
CREATE TABLE table_name_64 (year INTEGER, album VARCHAR, us_hot_100 VARCHAR), Which Year has an Album of airwaves, and a US Hot 100 of –?
SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8"
CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR), Which Song has a Year smaller than 1979, and a US Hot 100 of 8?
SELECT series FROM table_name_41 WHERE date = "april 24"
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR), What is the series record for the game on April 24?
SELECT game FROM table_name_50 WHERE date = "april 27"
CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR), What was the game number that took place on April 27?
SELECT opponent FROM table_name_82 WHERE attendance = "6,275"
CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR), Which Opponent has a Attendance of 6,275?
SELECT opponent FROM table_name_29 WHERE attendance = "7,034"
CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR), Which Opponent has a Attendance of 7,034?
SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen"
CREATE TABLE table_name_13 (date VARCHAR, result VARCHAR, opponent VARCHAR), When has a Result of 0–2 and a Opponent of aberdeen?
SELECT venue FROM table_name_58 WHERE result = "2–2" AND attendance = "5,760"
CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, attendance VARCHAR), Which Venue has a Result of 2–2 and Attendances of 5,760?
SELECT venue FROM table_name_97 WHERE attendance = "11,045"
CREATE TABLE table_name_97 (venue VARCHAR, attendance VARCHAR), Which Venue has Attendances of 11,045?
SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365"
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR), When Venue of A has Attendance of 4,365?
SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien"
CREATE TABLE table_name_48 (team_2 VARCHAR), What is the 1st leg of cs sfaxien?
SELECT finish FROM table_name_94 WHERE player = "lee janzen"
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR), Name the finish for lee janzen
SELECT MAX(total) FROM table_name_14 WHERE to_par > 16
CREATE TABLE table_name_14 (total INTEGER, to_par INTEGER), Name the most total with to par more than 16
SELECT record FROM table_name_95 WHERE opponent = "new york jets"
CREATE TABLE table_name_95 (record VARCHAR, opponent VARCHAR), What was the Steeler's record when they played against the new york Jets?
SELECT result FROM table_name_24 WHERE date = "december 8, 1963"
CREATE TABLE table_name_24 (result VARCHAR, date VARCHAR), What is the Result from the Date that is December 8, 1963?
SELECT date FROM table_name_28 WHERE attendance = 960
CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR), What is the date when the attendance is 960?
SELECT SUM(date) FROM table_name_8 WHERE venue = "away" AND opponent = "wightlink raiders" AND attendance > 375
CREATE TABLE table_name_8 (date INTEGER, attendance VARCHAR, venue VARCHAR, opponent VARCHAR), What is the date of the away venue with an opponent of wightlink raiders with an attendance larger than 375?
SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers"
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR), What is the average attendance when the opponent is telford tigers?
SELECT result FROM table_name_44 WHERE attendance = 960
CREATE TABLE table_name_44 (result VARCHAR, attendance VARCHAR), What is the result when the attendance is 960?
SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r"
CREATE TABLE table_name_68 (tournament VARCHAR), Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r
SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series"
CREATE TABLE table_name_83 (Id VARCHAR), Name the 2003 for atp masters series 1998
SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series"
CREATE TABLE table_name_65 (Id VARCHAR), Name the 1997 for atp masters series 1992
SELECT city FROM table_name_84 WHERE county = "brule"
CREATE TABLE table_name_84 (city VARCHAR, county VARCHAR), what city is brule in
SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama"
CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR), Who was performer 3 with karen maruyama as performer 2?
SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady"
CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR), What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5?
SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september"
CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR), Which course has a flat stage on 4 September?
SELECT date FROM table_name_67 WHERE course = "la granja de san ildefonso to alto de navacerrada"
CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR), What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course?
SELECT winner FROM table_name_33 WHERE course = "granada"
CREATE TABLE table_name_33 (winner VARCHAR, course VARCHAR), Who won the Granada course?
SELECT distance FROM table_name_69 WHERE date = "5 september"
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR), What is the distance for the 5 September race?
SELECT date FROM table_name_64 WHERE course = "jaén to córdoba"
CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR), What is the race date for the course Jaén to Córdoba?
SELECT AVG(election_date) FROM table_name_86 WHERE number_of_deputies < 136 AND number_of_votes_received = "1,560,753"
CREATE TABLE table_name_86 (election_date INTEGER, number_of_deputies VARCHAR, number_of_votes_received VARCHAR), What was the average election year that has less than 136 deputies, and 1,560,753 votes received?
SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = "1,255,153"
CREATE TABLE table_name_62 (percentage_of_votes VARCHAR, number_of_votes_received VARCHAR), What percentage of the vote was 1,255,153 of received votes?
SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964
CREATE TABLE table_name_44 (number_of_deputies VARCHAR, election_date VARCHAR), What were the number of deputies for the 1964 election year?
SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%"
CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR), What is the number of deputies with 94.2% of the votes?
SELECT MIN(number_of_deputies) FROM table_name_17 WHERE number_of_votes_received = "unknown" AND election_date > 1986
CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR), What was deputies with the lowest number of unknown received votes, in an election year after 1986?
SELECT result FROM table_name_36 WHERE date = "7 june 2000"
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR), Which Result has a Date of 7 june 2000?
SELECT venue FROM table_name_46 WHERE date = "21 june 2000"
CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR), Which Venue has a Date of 21 june 2000?
SELECT competition FROM table_name_37 WHERE venue = "jan breydel, bruges, belgium"
CREATE TABLE table_name_37 (competition VARCHAR, venue VARCHAR), Which Competition has a Venue of jan breydel, bruges, belgium?
SELECT date FROM table_name_11 WHERE result = "3–4"
CREATE TABLE table_name_11 (date VARCHAR, result VARCHAR), Which Date has a Result of 3–4?
SELECT date FROM table_name_13 WHERE game_site = "shea stadium" AND week < 10 AND opponent = "baltimore colts"
CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR, game_site VARCHAR, week VARCHAR), Game site of shea stadium, and a Week smaller than 10, and a Opponent of baltimore colts happened on what date?
SELECT opponent FROM table_name_57 WHERE game_site = "candlestick park"
CREATE TABLE table_name_57 (opponent VARCHAR, game_site VARCHAR), Game site of candlestick park had what opponent?
SELECT MAX(week) FROM table_name_60 WHERE game_site = "miami orange bowl" AND attendance > 49 OFFSET 754
CREATE TABLE table_name_60 (week INTEGER, game_site VARCHAR, attendance VARCHAR), Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week?
SELECT date FROM table_name_88 WHERE opponent = "denver broncos"
CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR), Opponent of denver broncos happened on what date?
SELECT score FROM table_name_60 WHERE february > 24 AND record = "9-8-2"
CREATE TABLE table_name_60 (score VARCHAR, february VARCHAR, record VARCHAR), Name the score when february is more than 24 and has a record of 9-8-2
SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers"
CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR), Name the most game with opponent of hartford whalers
SELECT distance FROM table_name_72 WHERE course = "civitavecchia to san vincenzo"
CREATE TABLE table_name_72 (distance VARCHAR, course VARCHAR), What is the distance for the course Civitavecchia to San Vincenzo?
SELECT winner FROM table_name_47 WHERE course = "forlì to carpi"
CREATE TABLE table_name_47 (winner VARCHAR, course VARCHAR), Who won at course Forlì to Carpi?
SELECT distance FROM table_name_83 WHERE date = "24 may"
CREATE TABLE table_name_83 (distance VARCHAR, date VARCHAR), What was the distance on 24 May?
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"
CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR), what is the runner-up for the intercontinental cup
SELECT AVG(attendance) FROM table_name_18 WHERE loss = "stoneman (0-2)"
CREATE TABLE table_name_18 (attendance INTEGER, loss VARCHAR), Which average attendance has stoneman (0-2) as the loss?
SELECT AVG(attendance) FROM table_name_14 WHERE date = "april 12"
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR), What is the average attendance that has april 12 as the date?
SELECT channels FROM table_name_93 WHERE clock_rate__mhz_ < 400 AND bandwidth__mb_s_ = 1420
CREATE TABLE table_name_93 (channels VARCHAR, clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR), Clock rate (MHz) smaller than 400, and a Bandwidth (MB/s) of 1420 has what channels?
SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16
CREATE TABLE table_name_75 (clock_rate__mhz_ INTEGER, bandwidth__mb_s_ VARCHAR, bus_width__bits_ VARCHAR), Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?
SELECT MAX(bus_width__bits_) FROM table_name_51 WHERE designation = "pc800"
CREATE TABLE table_name_51 (bus_width__bits_ INTEGER, designation VARCHAR), Designation of pc800 has which highest Bus width (bits)?
SELECT AVG(year) FROM table_name_66 WHERE start = "14"
CREATE TABLE table_name_66 (year INTEGER, start VARCHAR), Which Year has a Start of 14?
SELECT AVG(year) FROM table_name_37 WHERE finish = "22" AND team = "swan"
CREATE TABLE table_name_37 (year INTEGER, finish VARCHAR, team VARCHAR), Which Year has a Finish of 22, and a Team of swan?
SELECT finish FROM table_name_49 WHERE start = "15" AND team = "bahari"
CREATE TABLE table_name_49 (finish VARCHAR, start VARCHAR, team VARCHAR), Which Finish has a Start of 15, and a Team of bahari?
SELECT team FROM table_name_45 WHERE year = 2000
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR), Which Team has a Year of 2000?
SELECT 2010 FROM table_name_33 WHERE tournament = "australian open"
CREATE TABLE table_name_33 (tournament VARCHAR), What is the info for the year 2010, for the Australian Open tournament?
SELECT android FROM table_name_42 WHERE other_unix = "unknown"
CREATE TABLE table_name_42 (android VARCHAR, other_unix VARCHAR), Which Android has anOther Unix of unknown?
SELECT mac_os_x FROM table_name_66 WHERE amigaos = "partial"
CREATE TABLE table_name_66 (mac_os_x VARCHAR, amigaos VARCHAR), Which Mac OS X has an AmigaOS of partial?
SELECT mac_os_x FROM table_name_88 WHERE linux = "no" AND amigaos = "no" AND android = "unknown"
CREATE TABLE table_name_88 (mac_os_x VARCHAR, android VARCHAR, linux VARCHAR, amigaos VARCHAR), Which Mac OS X has a Linux of no, and an AmigaOS of no, and an Android of unknown?
SELECT score FROM table_name_54 WHERE opponent = "golden state warriors"
CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR), What was the score for the game against the Golden State Warriors?
SELECT score FROM table_name_57 WHERE game = 43
CREATE TABLE table_name_57 (score VARCHAR, game VARCHAR), What was the score of game 43?
SELECT team FROM table_name_70 WHERE date = "february 1"
CREATE TABLE table_name_70 (team VARCHAR, date VARCHAR), Who was the opposing team for the February 1 game?
SELECT SUM(year) FROM table_name_37 WHERE team = "porsche kremer racing"
CREATE TABLE table_name_37 (year INTEGER, team VARCHAR), What's the total of Year that's got a Team of Porsche Kremer Racing?
SELECT class FROM table_name_16 WHERE chassis = "mazda 787b"
CREATE TABLE table_name_16 (class VARCHAR, chassis VARCHAR), Which Class has a Chassis of Mazda 787B?
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR), What Year has a Tyre of D, and Chassis of Mazda 787?
SELECT SUM(laps) FROM table_name_16 WHERE year < 1987
CREATE TABLE table_name_16 (laps INTEGER, year INTEGER), What is the total number of Laps that's got a Year less than 1987?
SELECT MIN(week) FROM table_name_76 WHERE result = "l 35-10"
CREATE TABLE table_name_76 (week INTEGER, result VARCHAR), In what week was the Result L 35-10?
SELECT played FROM table_name_33 WHERE points_against = "263"
CREATE TABLE table_name_33 (played VARCHAR, points_against VARCHAR), What is listed for Played that has Points against of 263?
SELECT played FROM table_name_35 WHERE club = "morriston rfc"
CREATE TABLE table_name_35 (played VARCHAR, club VARCHAR), What is listed under Played that has a Club of Morriston RFC?
SELECT tries_against FROM table_name_95 WHERE played = "22" AND club = "ystalyfera rfc"
CREATE TABLE table_name_95 (tries_against VARCHAR, played VARCHAR, club VARCHAR), What is listed for the Tries against that has a Played of 22, along with a Club of Ystalyfera RFC?
SELECT points_for FROM table_name_14 WHERE "club" = "club"
CREATE TABLE table_name_14 (points_for VARCHAR), What is listed for Points for that has a Club of Club?
SELECT losing_bonus FROM table_name_29 WHERE try_bonus = "8"
CREATE TABLE table_name_29 (losing_bonus VARCHAR, try_bonus VARCHAR), Which Losing Bonus has a Try Bonus of 8?
SELECT drawn FROM table_name_23 WHERE try_bonus = "5" AND points_for = "517"
CREATE TABLE table_name_23 (drawn VARCHAR, try_bonus VARCHAR, points_for VARCHAR), What is listed for the Drawn that has a Tray bonus of 5 wiht Points for of 517?
SELECT AVG(top_10) FROM table_name_57 WHERE cuts_made = 10 AND top_25 > 6
CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR), Name the average top-10 for cuts made of 10 and top-25 more than 6
SELECT MAX(top_5) FROM table_name_88 WHERE events < 16 AND wins < 0
CREATE TABLE table_name_88 (top_5 INTEGER, events VARCHAR, wins VARCHAR), Name the most top-5 for wins less than 0 and events less than 16
SELECT MIN(top_10) FROM table_name_10 WHERE cuts_made < 11 AND wins > 0
CREATE TABLE table_name_10 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR), Name the least top-10 for cuts made less than 11 and wins more than 0
SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6
CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR, top_5 VARCHAR), Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11
SELECT preservation FROM table_name_16 WHERE episode = "1b-16 (42)"
CREATE TABLE table_name_16 (preservation VARCHAR, episode VARCHAR), Has Episode 1b-16 (42) been preserved?
SELECT SUM(domestic_passengers) FROM table_name_38 WHERE _percentage_change_2005_2006 = "10.9%" AND freight__metric_tonnes_ < 4 OFFSET 022
CREATE TABLE table_name_38 (domestic_passengers INTEGER, _percentage_change_2005_2006 VARCHAR, freight__metric_tonnes_ VARCHAR), What is the sum of all domestic passengers with 10.9% change and less than 4,022 tonnes in freight?
SELECT 2004 FROM table_name_34 WHERE 2003 = "1r" AND tournament = "wimbledon"
CREATE TABLE table_name_34 (tournament VARCHAR), Which in 2004 has a 2003 of 1r and Wimbledon Tournament
SELECT 2007 FROM table_name_16 WHERE 2004 = "olympic games"
CREATE TABLE table_name_16 (Id VARCHAR), What is in 2007 has 2004 olympic games?
SELECT 2002 FROM table_name_85 WHERE 2001 = "1–0" AND 2000 = "3–0"
CREATE TABLE table_name_85 (Id VARCHAR), What is in 2002 has a 2001 score 1–0, and a 2000 of 3–0?
SELECT 2003 FROM table_name_84 WHERE career_win_loss = "6–7"
CREATE TABLE table_name_84 (career_win_loss VARCHAR), What is in 2003 that has a Career Win-Loss of 6–7
SELECT score FROM table_name_11 WHERE decision = "parent" AND home = "philadelphia" AND visitor = "pittsburgh"
CREATE TABLE table_name_11 (score VARCHAR, visitor VARCHAR, decision VARCHAR, home VARCHAR), What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?
SELECT MIN(top_5) FROM table_name_27 WHERE wins < 0
CREATE TABLE table_name_27 (top_5 INTEGER, wins INTEGER), Which Top-5 is the lowest one that has Wins smaller than 0?
SELECT MAX(cuts_made) FROM table_name_89 WHERE top_5 = 1 AND top_25 > 16
CREATE TABLE table_name_89 (cuts_made INTEGER, top_5 VARCHAR, top_25 VARCHAR), Which Cuts made is the highest one that has a Top-5 of 1, and a Top-25 larger than 16?
SELECT MAX(events) FROM table_name_93 WHERE top_5 > 5 AND top_10 > 28
CREATE TABLE table_name_93 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR), Which Events is the highest one that has a Top-5 larger than 5, and a Top-10 larger than 28?