output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT record FROM table_name_26 WHERE date = "september 4"
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR), What was the record on September 4?
SELECT record FROM table_name_79 WHERE date = "september 26"
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR), What was the record on September 26?
SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)"
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR), Who was the opponent with a Loss of Leal (1–4)?
SELECT COUNT(1958 AS _uta) FROM "t" AS able_name_49 WHERE class = "t"
CREATE TABLE t (Id VARCHAR), In the Class T, what is the total of the 1958 UTA?
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR), What was the result of the match played on 13 October 1993?
SELECT date FROM table_name_67 WHERE goal = 21
CREATE TABLE table_name_67 (date VARCHAR, goal VARCHAR), When did the team score 21 goals?
SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, goal VARCHAR), What was the score of the match played on 14 October 1998, resulting in more than 10 goals?
SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla"
CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR), What is the total number of years that Scuderia Guastalla was an entrant?
SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR), What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
SELECT COUNT(year) FROM table_name_24 WHERE chassis = "ferrari 625" AND points = "2"
CREATE TABLE table_name_24 (year VARCHAR, chassis VARCHAR, points VARCHAR), What is the total number of years that has a chassis of Ferrari 625 and 2 points?
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR), Which 2006 Cobra Starship song has work done of guest vocals?
SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = "franz josef"
CREATE TABLE table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR), What is the decile sum with a roll smaller than 25, and franz josef area?
SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25
CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, roll VARCHAR), What is the area with decile of 8, and a 25 roll?
SELECT AVG(overall) FROM table_name_26 WHERE pick__number < 15
CREATE TABLE table_name_26 (overall INTEGER, pick__number INTEGER), What is the overall pick average with the pick # lower than 15?
SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10
CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR), What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
SELECT qual FROM table_name_38 WHERE year = "1954"
CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR), What is the Qual listed on the Year of 1954?
SELECT year FROM table_name_66 WHERE laps > 27 AND qual = "144.683"
CREATE TABLE table_name_66 (year VARCHAR, laps VARCHAR, qual VARCHAR), Which Year has a Qual of 144.683 and Lap larger than 27?
SELECT qual FROM table_name_41 WHERE rank = "27"
CREATE TABLE table_name_41 (qual VARCHAR, rank VARCHAR), What's the Qual listed with a Rank of 27?
SELECT team FROM table_name_45 WHERE year = 1978
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR), Which Team has a Year of 1978?
SELECT engine FROM table_name_51 WHERE team = "chesterfield racing" AND chassis = "march 761"
CREATE TABLE table_name_51 (engine VARCHAR, team VARCHAR, chassis VARCHAR), Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
SELECT MIN(year) FROM table_name_37 WHERE mintage < 10 OFFSET 000
CREATE TABLE table_name_37 (year INTEGER, mintage INTEGER), What is the smallest year with a Mintage smaller than 10,000?
SELECT loss FROM table_name_30 WHERE date = "april 26"
CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR), Which loss has a Date of april 26?
SELECT date FROM table_name_95 WHERE opponent = "angels" AND loss = "sanderson (0–1)"
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, loss VARCHAR), Which date has an Opponent of angels, and a Loss of sanderson (0–1)?
SELECT MAX(attendance) FROM table_name_35 WHERE loss = "darling (0–1)"
CREATE TABLE table_name_35 (attendance INTEGER, loss VARCHAR), What is the largest Attendance with a Loss of darling (0–1)?
SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = "san agustin gym"
CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR), What is the maximum capacity of the San Agustin Gym?
SELECT province_region FROM table_name_98 WHERE location = "cagayan de oro city"
CREATE TABLE table_name_98 (province_region VARCHAR, location VARCHAR), Where is the Cagayan de Oro city located?
SELECT province_region FROM table_name_42 WHERE home_campus = "holy cross of davao college"
CREATE TABLE table_name_42 (province_region VARCHAR, home_campus VARCHAR), Where is the Holy Cross of Davao College campus located?
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR), Which campus has the San Agustin gym?
SELECT year_opened FROM table_name_44 WHERE arena_venue = "san agustin gym"
CREATE TABLE table_name_44 (year_opened VARCHAR, arena_venue VARCHAR), What year did the San Agustin gym open?
SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14"
CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR), Which player has a total bigger than 285 and a to par of +14?
SELECT MAX(total) FROM table_name_61 WHERE finish = "t12"
CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR), What is the highest total with a t12 finish?
SELECT country FROM table_name_98 WHERE finish = "t4"
CREATE TABLE table_name_98 (country VARCHAR, finish VARCHAR), Which country has a finish of t4?
SELECT year_s__won FROM table_name_71 WHERE total < 281
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER), What year won has a total less than 281?
SELECT chassis FROM table_name_96 WHERE rank = "24th"
CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR), Which chassis is ranked 24th?
SELECT chassis FROM table_name_94 WHERE year = 1993
CREATE TABLE table_name_94 (chassis VARCHAR, year VARCHAR), Which chassis was made in 1993?
SELECT team FROM table_name_53 WHERE year < 1994
CREATE TABLE table_name_53 (team VARCHAR, year INTEGER), Which team is from earlier than 1994?
SELECT rank FROM table_name_4 WHERE year > 1994
CREATE TABLE table_name_4 (rank VARCHAR, year INTEGER), What rank is later than 1994?
SELECT AVG(year) FROM table_name_66 WHERE team = "king" AND points < 10
CREATE TABLE table_name_66 (year INTEGER, team VARCHAR, points VARCHAR), What year did the King team have fewer than 10 points?
SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy"
CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR), What are the average points for the Project Indy team that has the Ford xb engine?
SELECT became_consort FROM table_name_92 WHERE marriage = "4 april 1721"
CREATE TABLE table_name_92 (became_consort VARCHAR, marriage VARCHAR), Name the became consort for marriage of 4 april 1721
SELECT birth FROM table_name_55 WHERE spouse = "frederick iv" AND became_consort = "4 april 1721"
CREATE TABLE table_name_55 (birth VARCHAR, spouse VARCHAR, became_consort VARCHAR), Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721
SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death"
CREATE TABLE table_name_14 (became_consort VARCHAR, ceased_to_be_consort VARCHAR), Name the became consort for ceased to be consort of 4 april 1588 husband's death
SELECT marriage FROM table_name_74 WHERE spouse = "christian viii"
CREATE TABLE table_name_74 (marriage VARCHAR, spouse VARCHAR), Name the marriage of the person who is married for christian viii
SELECT team FROM table_name_11 WHERE points = 48 AND class = "500 cc"
CREATE TABLE table_name_11 (team VARCHAR, points VARCHAR, class VARCHAR), Who has 48 points in the class of 500 cc?
SELECT COUNT(wins) FROM table_name_43 WHERE team = "benelli" AND year < 1962
CREATE TABLE table_name_43 (wins VARCHAR, team VARCHAR, year VARCHAR), How many wins does Benelli have before 1962?
SELECT natural_wood_keyboard FROM table_name_18 WHERE model = "clps306"
CREATE TABLE table_name_18 (natural_wood_keyboard VARCHAR, model VARCHAR), Which is Natural Wood Keyboard with a Model of clps306?
SELECT graded_hammer__non_gh3_ FROM table_name_44 WHERE model = "cvp501"
CREATE TABLE table_name_44 (graded_hammer__non_gh3_ VARCHAR, model VARCHAR), Which Graded Hammer (Non GH3) has a Model of cvp501?
SELECT natural_wood_keyboard FROM table_name_21 WHERE model = "clp380"
CREATE TABLE table_name_21 (natural_wood_keyboard VARCHAR, model VARCHAR), Which Natural Wood Keyboard has a CLP380 ?
SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320"
CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR), Which Graded Hammer Three (GH3) shows Model of clp320?
SELECT date FROM table_name_19 WHERE name = "french grand prix"
CREATE TABLE table_name_19 (date VARCHAR, name VARCHAR), What was the date for the French Grand Prix?
SELECT name FROM table_name_31 WHERE circuit = "miramas"
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR), What was the name for the race in the Miramas circuit?
SELECT circuit FROM table_name_44 WHERE winning_constructor = "delage"
CREATE TABLE table_name_44 (circuit VARCHAR, winning_constructor VARCHAR), Which circuit was Delage the winning constructor for?
SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza"
CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR), What is the name for the Monza circuit race were Bugatti was the winning constructor?
SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart"
CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR), Which report shows that Frank Lockhart was a winning driver?
SELECT ranking FROM table_name_25 WHERE gold < 20 AND event = "1976 toronto"
CREATE TABLE table_name_25 (ranking VARCHAR, gold VARCHAR, event VARCHAR), What Ranking has Gold less than 20 and the Event 1976 Toronto?
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR), What Gold has a Silver greater than 30 and a Total less than 107?
SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5
CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR), What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20
CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR), What is the Total with the Event 2004 Athens and Gold less than 20?
SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4
CREATE TABLE table_name_2 (bronze INTEGER, ranking VARCHAR, gold VARCHAR), What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?
SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%"
CREATE TABLE table_name_91 (polling_firm VARCHAR, t_papadopoulos VARCHAR), Which polling firm put T. Papadopoulos at 31%?
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%"
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR), What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
SELECT k_themistokleous FROM table_name_65 WHERE i_kasoulidis = "30.1%"
CREATE TABLE table_name_65 (k_themistokleous VARCHAR, i_kasoulidis VARCHAR), What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?
SELECT t_papadopoulos FROM table_name_48 WHERE d_christofias = "28.4%"
CREATE TABLE table_name_48 (t_papadopoulos VARCHAR, d_christofias VARCHAR), What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?
SELECT tournament FROM table_name_93 WHERE 2007 = "2r" AND 2011 = "2r"
CREATE TABLE table_name_93 (tournament VARCHAR), Which tournament has a 2007 of 2r, and a 2011 of 2r?
SELECT SUM(titles) FROM table_name_47 WHERE city = "gyΕ‘r" AND rank > 4
CREATE TABLE table_name_47 (titles INTEGER, city VARCHAR, rank VARCHAR), What is the number of titles for the city of gyΕ‘r with a rank larger than 4?
SELECT score FROM table_name_99 WHERE home = "toronto maple leafs" AND date = "february 1"
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR, date VARCHAR), What is the Score of the Toronto Maple Leafs home game on February 1?
SELECT score FROM table_name_92 WHERE visitor = "boston bruins" AND date = "march 13"
CREATE TABLE table_name_92 (score VARCHAR, visitor VARCHAR, date VARCHAR), What is the score of the Boston Bruins away game on March 13?
SELECT visitor FROM table_name_93 WHERE record = "9–5–2"
CREATE TABLE table_name_93 (visitor VARCHAR, record VARCHAR), What visiting team has a record of 9–5–2?
SELECT score FROM table_name_98 WHERE record = "12–8–3"
CREATE TABLE table_name_98 (score VARCHAR, record VARCHAR), What is the score of the game with a record of 12–8–3?
SELECT date FROM table_name_77 WHERE home = "montreal canadiens" AND record = "14–11–3"
CREATE TABLE table_name_77 (date VARCHAR, home VARCHAR, record VARCHAR), What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3?
SELECT country FROM table_name_65 WHERE player = "craig stadler"
CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR), What is the country of Craig Stadler?
SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer"
CREATE TABLE table_name_49 (total INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR), What is the average total of Gay Brewer from the United States with a to par of 9?
SELECT finish FROM table_name_36 WHERE country = "west germany"
CREATE TABLE table_name_36 (finish VARCHAR, country VARCHAR), What was the finish by the player from West Germany?
SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification"
CREATE TABLE table_name_45 (goal INTEGER, competition VARCHAR), What is the smallest goal during the 2006 fifa world cup qualification competition?
SELECT representative FROM table_name_76 WHERE party = "whig"
CREATE TABLE table_name_76 (representative VARCHAR, party VARCHAR), Name the representative for party of whig
SELECT COUNT(year) FROM table_name_85 WHERE chassis = "maserati 250f" AND points < 0
CREATE TABLE table_name_85 (year VARCHAR, chassis VARCHAR, points VARCHAR), Name the total number of years for chassis of maserati 250f and points less than 0
SELECT engine FROM table_name_8 WHERE chassis = "maserati 250f" AND entrant = "luigi piotti" AND year < 1957
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR), Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957
SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"
CREATE TABLE table_name_80 (points INTEGER, chassis VARCHAR, entrant VARCHAR), Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati
SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati"
CREATE TABLE table_name_7 (points INTEGER, entrant VARCHAR), Name the lowest points for officine alfieri maserati
SELECT height FROM table_name_36 WHERE players = "ye fei"
CREATE TABLE table_name_36 (height VARCHAR, players VARCHAR), How tall is Ye Fei?
SELECT SUM(attendance) FROM table_name_1 WHERE date = "july 26"
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR), What is the attendance of the game on July 26?
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd"
CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR), How many years did the team place 2nd in Antwerp, Belgium?
SELECT venue FROM table_name_23 WHERE year < 1991
CREATE TABLE table_name_23 (venue VARCHAR, year INTEGER), What is the name of the venue that was used before 1991?
SELECT COUNT(year) FROM table_name_30 WHERE result = "2nd" AND venue = "auckland, new zealand"
CREATE TABLE table_name_30 (year VARCHAR, result VARCHAR, venue VARCHAR), How many years did the team place 2nd in Auckland, New Zealand?
SELECT started_round FROM table_name_57 WHERE last_match = "january 16, 2008"
CREATE TABLE table_name_57 (started_round VARCHAR, last_match VARCHAR), What was the started round for the competition that had the last match on January 16, 2008?
SELECT first_match FROM table_name_81 WHERE last_match = "december 16, 2007"
CREATE TABLE table_name_81 (first_match VARCHAR, last_match VARCHAR), On what date was the first match for the competition that ended its last match on December 16, 2007?
SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals"
CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR), What competition had a final round in the finals and the final position winners?
SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals"
CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR), On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?
SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007"
CREATE TABLE table_name_15 (competition VARCHAR, first_match VARCHAR), What competition had its first match on December 20, 2007?
SELECT first_match FROM table_name_6 WHERE final_position = "winners" AND competition = "fifa club world cup"
CREATE TABLE table_name_6 (first_match VARCHAR, final_position VARCHAR, competition VARCHAR), What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners?
SELECT COUNT(laps) FROM table_name_49 WHERE qual = "142.653"
CREATE TABLE table_name_49 (laps VARCHAR, qual VARCHAR), What was Len Sutton's total number of completed laps when his qualifying time was 142.653?
SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.3
CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR), What call sign has a frequency of 91.3 MHz?
SELECT city_of_license FROM table_name_82 WHERE call_sign = "k293bg"
CREATE TABLE table_name_82 (city_of_license VARCHAR, call_sign VARCHAR), What city of license has a value of k293bg for its call sign?
SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7
CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR), When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign?
SELECT AVG(frequency_mhz) FROM table_name_21 WHERE city_of_license = "los banos, california" AND erp_w < 10
CREATE TABLE table_name_21 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR), In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz?
SELECT call_sign FROM table_name_16 WHERE frequency_mhz < 95.5 AND erp_w > 10
CREATE TABLE table_name_16 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR), What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10?
SELECT player FROM table_name_12 WHERE score = 73 - 69 - 74 - 71 = 287
CREATE TABLE table_name_12 (player VARCHAR, score VARCHAR), Name the player with score of 73-69-74-71=287
SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288
CREATE TABLE table_name_26 (to_par INTEGER, score VARCHAR), Name the sum To par for score of 71-74-71-72=288
SELECT tournament FROM table_name_95 WHERE opponent = "kathy horvath"
CREATE TABLE table_name_95 (tournament VARCHAR, opponent VARCHAR), Tell me the tournament for kathy horvath opponent
SELECT date FROM table_name_59 WHERE surface = "hard" AND tournament = "maybelline classic" AND opponent = "wendy turnbull"
CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR, surface VARCHAR, tournament VARCHAR), Name the date for hard surface at maybelline classic with opponent of wendy turnbull