output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT attendance FROM table_name_27 WHERE opponent = "middlesbrough"
CREATE TABLE table_name_27 (attendance VARCHAR, opponent VARCHAR), What is the attendance rate for the Middlesbrough opponent?
SELECT local_letter FROM table_name_28 WHERE capital = "funadhoo"
CREATE TABLE table_name_28 (local_letter VARCHAR, capital VARCHAR), The capital of funadhoo has what local letter?
SELECT venue FROM table_name_90 WHERE extra = "short race" AND year < 1999
CREATE TABLE table_name_90 (venue VARCHAR, extra VARCHAR, year VARCHAR), Tell me the venue for extra of short race and year less than 1999
SELECT SUM(year) FROM table_name_12 WHERE result = "5th"
CREATE TABLE table_name_12 (year INTEGER, result VARCHAR), Tell me the sum of year for 5th result
SELECT extra FROM table_name_14 WHERE tournament = "olympic games"
CREATE TABLE table_name_14 (extra VARCHAR, tournament VARCHAR), Tell me the extra for tournament of olympic games
SELECT MAX(year) FROM table_name_98 WHERE result = "9th"
CREATE TABLE table_name_98 (year INTEGER, result VARCHAR), Tell me the highest year for result of 9th
SELECT shigella FROM table_name_52 WHERE yersinia = "yopb"
CREATE TABLE table_name_52 (shigella VARCHAR, yersinia VARCHAR), Tell me the shigella for yersinia yopb
SELECT shigella FROM table_name_15 WHERE yersinia = "yscn"
CREATE TABLE table_name_15 (shigella VARCHAR, yersinia VARCHAR), Tell me the shigella and yscn
SELECT opponent FROM table_name_39 WHERE date = "november 24, 1996"
CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR), Tell me the opponent for november 24, 1996
SELECT tv_time FROM table_name_86 WHERE attendance = "60,894"
CREATE TABLE table_name_86 (tv_time VARCHAR, attendance VARCHAR), Tell me the tv time for attendance of 60,894
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894"
CREATE TABLE table_name_37 (week INTEGER, attendance VARCHAR), Tell me the lowest week for attendance of 60,894
SELECT ensemble_name FROM table_name_79 WHERE advertisement_date = "october 2007"
CREATE TABLE table_name_79 (ensemble_name VARCHAR, advertisement_date VARCHAR), Which Ensemble Name has the Advertisement date October 2007?
SELECT winning_applicant FROM table_name_39 WHERE block = "10b" AND area = "derbyshire"
CREATE TABLE table_name_39 (winning_applicant VARCHAR, block VARCHAR, area VARCHAR), Who is the Winning Applicant of Block 10B in Derbyshire Area?
SELECT block FROM table_name_25 WHERE area = "northamptonshire"
CREATE TABLE table_name_25 (block VARCHAR, area VARCHAR), Which Block does Northamptonshire Area have?
SELECT advertisement_date FROM table_name_17 WHERE block = "10c" AND ensemble_name = "muxco gloucestershire"
CREATE TABLE table_name_17 (advertisement_date VARCHAR, block VARCHAR, ensemble_name VARCHAR), What is Ensemble Name Muxco Gloucestershire's Advertisement Date in Block 10C?
SELECT ensemble_name FROM table_name_29 WHERE area = "oxfordshire"
CREATE TABLE table_name_29 (ensemble_name VARCHAR, area VARCHAR), What is Oxfordshire Area's Ensemble Name?
SELECT winning_applicant FROM table_name_45 WHERE block = "10d" AND ensemble_name = "muxco lincolnshire"
CREATE TABLE table_name_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR), Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?
SELECT AVG(crowd) FROM table_name_43 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_43 (crowd INTEGER, venue VARCHAR), What was the average crowd size of games held at Glenferrie Oval?
SELECT home_team AS score FROM table_name_81 WHERE crowd > 24 OFFSET 637
CREATE TABLE table_name_81 (home_team VARCHAR, crowd INTEGER), What was the home team's score at the game attended by more than 24,637?
SELECT time FROM table_name_89 WHERE points = 1
CREATE TABLE table_name_89 (time VARCHAR, points VARCHAR), What was the time for the man who scored 1 point?
SELECT away_team FROM table_name_56 WHERE venue = "mcg"
CREATE TABLE table_name_56 (away_team VARCHAR, venue VARCHAR), Who was the away team when the VFL played at MCG?
SELECT MIN(crowd) FROM table_name_49 WHERE venue = "mcg"
CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR), What was the crowd when the VFL played MCG?
SELECT AVG(crowd) FROM table_name_70 WHERE home_team = "melbourne"
CREATE TABLE table_name_70 (crowd INTEGER, home_team VARCHAR), What was the crowd when Melbourne was the home team?
SELECT SUM(lane) FROM table_name_24 WHERE nationality = "sweden" AND split__50m_ < 26.25
CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR), What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?
SELECT MAX(split__50m_) FROM table_name_8 WHERE time = 53.74 AND lane < 3
CREATE TABLE table_name_8 (split__50m_ INTEGER, time VARCHAR, lane VARCHAR), What is the slowest 50m split time for a total of 53.74 in a lane of less than 3?
SELECT SUM(split__50m_) FROM table_name_24 WHERE name = "josefin lillhage" AND lane > 8
CREATE TABLE table_name_24 (split__50m_ INTEGER, name VARCHAR, lane VARCHAR), What is the total sum of 50m splits for josefin lillhage in lanes above 8?
SELECT home_team AS score FROM table_name_60 WHERE home_team = "st kilda"
CREATE TABLE table_name_60 (home_team VARCHAR), What was the score for the home team St Kilda?
SELECT AVG(crowd) FROM table_name_81 WHERE away_team = "collingwood"
CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR), What is the average crowd size when Collingwood is the away team?
SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = "o"
CREATE TABLE table_name_81 (name VARCHAR, assumed_office VARCHAR, district VARCHAR), What is the name of the Senator in the O District who assumed office in 2013?
SELECT 1944 FROM table_name_52 WHERE tournament = "u.s. championships"
CREATE TABLE table_name_52 (tournament VARCHAR), What is the 1944 result for the U.S. Championships?
SELECT tournament FROM table_name_30 WHERE 1954 = "a" AND 1942 = "nh"
CREATE TABLE table_name_30 (tournament VARCHAR), What is the tournament that had a result of A in 1954 and NH in 1942?
SELECT date FROM table_name_94 WHERE home_team = "fitzroy"
CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR), When was Fitzroy the home team?
SELECT venue FROM table_name_74 WHERE home_team = "geelong"
CREATE TABLE table_name_74 (venue VARCHAR, home_team VARCHAR), Where did Geelong play a home game?
SELECT SUM(lost) FROM table_name_38 WHERE played < 4
CREATE TABLE table_name_38 (lost INTEGER, played INTEGER), What is the sum of losses for teams with less than 4 games played?
SELECT rider_status FROM table_name_77 WHERE team_country = "netherlands" AND year = 1971
CREATE TABLE table_name_77 (rider_status VARCHAR, team_country VARCHAR, year VARCHAR), What is the rider status for the 1971 netherlands team?
SELECT winner FROM table_name_74 WHERE rider_status = "amateur" AND year = 1973
CREATE TABLE table_name_74 (winner VARCHAR, rider_status VARCHAR, year VARCHAR), Who was the winner in 1973 with an amateur rider status?
SELECT MAX(year) FROM table_name_28 WHERE winner = "phil anderson"
CREATE TABLE table_name_28 (year INTEGER, winner VARCHAR), What is the latest year when Phil Anderson won?
SELECT team_country FROM table_name_54 WHERE year > 1958 AND race_name = "kellogg's tour"
CREATE TABLE table_name_54 (team_country VARCHAR, year VARCHAR, race_name VARCHAR), What ream played later than 1958 in the kellogg's tour?
SELECT SUM(laps) FROM table_name_54 WHERE car__number > 1 AND make = "ford" AND points = 155
CREATE TABLE table_name_54 (laps INTEGER, points VARCHAR, car__number VARCHAR, make VARCHAR), What is the sum of laps that has a car number of larger than 1, is a ford, and has 155 points?
SELECT MIN(laps) FROM table_name_99 WHERE points < 118 AND driver = "kyle petty"
CREATE TABLE table_name_99 (laps INTEGER, points VARCHAR, driver VARCHAR), What is the lowest number of laps for kyle petty with under 118 points?
SELECT away_team FROM table_name_86 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_86 (away_team VARCHAR, venue VARCHAR), Who was the away team that played Fitzroy on May 13, 1950 at Brunswick Street Oval.
SELECT MIN(crowd) FROM table_name_55 WHERE venue = "windy hill"
CREATE TABLE table_name_55 (crowd INTEGER, venue VARCHAR), What was the lowest crowd size at the Windy Hill venue?
SELECT venue FROM table_name_33 WHERE home_team = "geelong"
CREATE TABLE table_name_33 (venue VARCHAR, home_team VARCHAR), Which venue's home team is geelong?
SELECT SUM(crowd) FROM table_name_72 WHERE away_team = "north melbourne"
CREATE TABLE table_name_72 (crowd INTEGER, away_team VARCHAR), How many people in the crowd with north melbourne as an away team?
SELECT away_team FROM table_name_77 WHERE date = "4 june 1927" AND venue = "corio oval"
CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR), Which team was at Corio Oval on 4 June 1927?
SELECT home_team AS score FROM table_name_50 WHERE away_team = "richmond"
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR), What was the home team score for the Richmond away team?
SELECT rider FROM table_name_17 WHERE time = "1:54.26.6"
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR), Which rider had a time of 1:54.26.6?
SELECT time FROM table_name_75 WHERE team = "suzuki" AND rider = "peter berwick"
CREATE TABLE table_name_75 (time VARCHAR, team VARCHAR, rider VARCHAR), What was the time for Peter Berwick of Team Suzuki?
SELECT home_team AS score FROM table_name_51 WHERE venue = "punt road oval"
CREATE TABLE table_name_51 (home_team VARCHAR, venue VARCHAR), What was the home team's score at the game held at Punt Road Oval?
SELECT home_team AS score FROM table_name_79 WHERE crowd > 24 OFFSET 000
CREATE TABLE table_name_79 (home_team VARCHAR, crowd INTEGER), What was the home team's score at the game that had a crowd larger than 24,000?
SELECT position FROM table_name_92 WHERE school_country = "arizona state"
CREATE TABLE table_name_92 (position VARCHAR, school_country VARCHAR), What position was for Arizona State?
SELECT home_team FROM table_name_59 WHERE away_team = "north melbourne"
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR), Who was the home team for the game where North Melbourne was the away team?
SELECT format FROM table_name_93 WHERE label = "candlelight records" AND catalog = "candle053tin"
CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR, catalog VARCHAR), What was the Candlelight Records Catalog of Candle053tin format?
SELECT format FROM table_name_98 WHERE label = "candlelight records"
CREATE TABLE table_name_98 (format VARCHAR, label VARCHAR), What is Candlelight Records format?
SELECT year FROM table_name_79 WHERE region = "japan"
CREATE TABLE table_name_79 (year VARCHAR, region VARCHAR), What year did Japan form a label?
SELECT name FROM table_name_64 WHERE length > 903
CREATE TABLE table_name_64 (name VARCHAR, length INTEGER), What name is associated with a longer length than 903?
SELECT COUNT(year) FROM table_name_32 WHERE player = "landon donovan"
CREATE TABLE table_name_32 (year VARCHAR, player VARCHAR), What is the sum of all the years that Landon Donovan won the ESPY award?
SELECT COUNT(uninterrupted_rank) FROM table_name_87 WHERE name = "john dingell"
CREATE TABLE table_name_87 (uninterrupted_rank VARCHAR, name VARCHAR), How many uninterrupted ranks does john dingell have?
SELECT name FROM table_name_14 WHERE total_tenure_time = "36 years, 0 days" AND uninterrupted_time = "36 years, 0 days" AND total_tenure_rank = 49
CREATE TABLE table_name_14 (name VARCHAR, total_tenure_rank VARCHAR, total_tenure_time VARCHAR, uninterrupted_time VARCHAR), Who has a total tenure time and uninterrupted time of 36 years, 0 days, as well as a total tenure rank of 49?
SELECT match_points FROM table_name_8 WHERE points_against = "570"
CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR), What is the value of match points when the points for is 570?
SELECT match_points FROM table_name_6 WHERE lost = "18" AND bonus_points = "11"
CREATE TABLE table_name_6 (match_points VARCHAR, lost VARCHAR, bonus_points VARCHAR), What is the amount of match points for a club that lost 18 and has 11 bonus points?
SELECT diff FROM table_name_46 WHERE points_for = "662"
CREATE TABLE table_name_46 (diff VARCHAR, points_for VARCHAR), What is the diff for a club that has a value of 662 for points for?
SELECT games FROM table_name_26 WHERE points_for = "595"
CREATE TABLE table_name_26 (games VARCHAR, points_for VARCHAR), What is the number of games for a club that has a value of 595 for points for?
SELECT games FROM table_name_39 WHERE match_points = "34"
CREATE TABLE table_name_39 (games VARCHAR, match_points VARCHAR), What is the number of games for a club that has 34 match points?
SELECT bonus_points FROM table_name_35 WHERE club = "colomiers"
CREATE TABLE table_name_35 (bonus_points VARCHAR, club VARCHAR), How many bonus points did the Colomiers earn?
SELECT venue FROM table_name_13 WHERE date = "12 november 2005"
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR), What is the venue for the event on 12 November 2005?
SELECT competition FROM table_name_98 WHERE date = "27 july 2004"
CREATE TABLE table_name_98 (competition VARCHAR, date VARCHAR), What is the competition that occured on 27 July 2004?
SELECT venue FROM table_name_33 WHERE date = "20 november 2002"
CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR), What is the venue of the game on 20 November 2002?
SELECT score FROM table_name_32 WHERE date = "16 august 2006"
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR), What was the score of the game played on 16 August 2006?
SELECT crowd FROM table_name_35 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_35 (crowd VARCHAR, venue VARCHAR), How large was the crowd at Brunswick Street Oval?
SELECT crowd FROM table_name_4 WHERE away_team = "richmond"
CREATE TABLE table_name_4 (crowd VARCHAR, away_team VARCHAR), How big was the crowd when the away team was Richmond?
SELECT MAX(crowd) FROM table_name_19 WHERE home_team = "fitzroy"
CREATE TABLE table_name_19 (crowd INTEGER, home_team VARCHAR), What was the largest crowd where the home team was Fitzroy?
SELECT venue FROM table_name_87 WHERE home_team = "fitzroy"
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR), What was the venue where Fitzroy played as the home team?
SELECT away_team FROM table_name_88 WHERE home_team = "north melbourne"
CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR), Who was the away team playing the home team North Melbourne?
SELECT constructor FROM table_name_88 WHERE engine = "cosworth dfv v8" AND driver = "warren booth"
CREATE TABLE table_name_88 (constructor VARCHAR, engine VARCHAR, driver VARCHAR), Who built Warren Booth's car with the Cosworth DFV V8 engine?
SELECT engine FROM table_name_48 WHERE entrant = "colin bennett racing" AND chassis = "811"
CREATE TABLE table_name_48 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR), What engine is used by Colin Bennett Racing with an 811 chassis?
SELECT entrant FROM table_name_92 WHERE constructor = "brm"
CREATE TABLE table_name_92 (entrant VARCHAR, constructor VARCHAR), What team used the BRM built car?
SELECT constructor FROM table_name_76 WHERE driver = "jim crawford"
CREATE TABLE table_name_76 (constructor VARCHAR, driver VARCHAR), Who built the Jim Crawford car?
SELECT chassis FROM table_name_36 WHERE constructor = "shadow"
CREATE TABLE table_name_36 (chassis VARCHAR, constructor VARCHAR), What chassis does the shadow built car use?
SELECT entrant FROM table_name_68 WHERE engine = "cosworth dfv v8" AND chassis = "dn9"
CREATE TABLE table_name_68 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR), What team uses a Cosworth DFV V8 engine and DN9 Chassis?
SELECT AVG(population__1960_) FROM table_name_41 WHERE county = "oslo" AND population__2000_ > 507 OFFSET 467
CREATE TABLE table_name_41 (population__1960_ INTEGER, county VARCHAR, population__2000_ VARCHAR), What was Oslo's population in 1960, with a population of 507,467 in 2000?
SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985
CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR), What is the sum of week number(s) had an attendance of 61,985?
SELECT home_team AS score FROM table_name_16 WHERE venue = "princes park"
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR), What is the home team's score when the venue is princes park?
SELECT away_team FROM table_name_99 WHERE home_team = "north melbourne"
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR), What is the away team when north melbourne is at home?
SELECT MAX(average) FROM table_name_15 WHERE number_of_dances = 6 AND total > 128
CREATE TABLE table_name_15 (average INTEGER, number_of_dances VARCHAR, total VARCHAR), What is the highest average that has 6 dances and a total of over 128?
SELECT party FROM table_name_19 WHERE net_gain_loss = "-2"
CREATE TABLE table_name_19 (party VARCHAR, net_gain_loss VARCHAR), Which party has a net gain/loss of -2?
SELECT seats FROM table_name_38 WHERE net_gain_loss = "0" AND party = "swedish people's party"
CREATE TABLE table_name_38 (seats VARCHAR, net_gain_loss VARCHAR, party VARCHAR), When the Swedish People's Party had a net gain/loss of 0, how many seats did they have?
SELECT _percentage_of_seats FROM table_name_74 WHERE net_gain_loss = "+34"
CREATE TABLE table_name_74 (_percentage_of_seats VARCHAR, net_gain_loss VARCHAR), When there was a net gain/loss of +34, what was the percentage of seats that party held?
SELECT seats FROM table_name_71 WHERE _percentage_of_votes = "8.1"
CREATE TABLE table_name_71 (seats VARCHAR, _percentage_of_votes VARCHAR), Regarding the seats that casted 8.1% of the vote how many seats were held?
SELECT home_team AS score FROM table_name_86 WHERE home_team = "footscray"
CREATE TABLE table_name_86 (home_team VARCHAR), How many points does footscray score as the home side?
SELECT home_team AS score FROM table_name_87 WHERE away_team = "richmond"
CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR), What is the home team's score when richmond is away?
SELECT player FROM table_name_36 WHERE conv = "0" AND date = "04/05/1999"
CREATE TABLE table_name_36 (player VARCHAR, conv VARCHAR, date VARCHAR), What player played on 04/05/1999 with a conv of 0?
SELECT date FROM table_name_49 WHERE venue = "nuku'alofa" AND player = "josh taumalolo"
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR, player VARCHAR), What date did Josh Taumalolo play at Nuku'alofa?
SELECT home_team AS score FROM table_name_37 WHERE away_team = "st kilda"
CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR), What is the home team score when the away team is St Kilda?
SELECT home_team AS score FROM table_name_95 WHERE away_team = "melbourne"
CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR), What is the home team score when the away team is Melbourne?
SELECT home_team FROM table_name_38 WHERE venue = "punt road oval"
CREATE TABLE table_name_38 (home_team VARCHAR, venue VARCHAR), What is the home team for punt road oval?
SELECT country FROM table_name_60 WHERE youth__15_24__literacy_rate_total = "100%" AND adult_women = "92%"
CREATE TABLE table_name_60 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, adult_women VARCHAR), Which country has a Youth (15-24) Literacy Rate Total of 100% and has an Adult Women Literacy rate of 92%?
SELECT country FROM table_name_62 WHERE year__most_recent_ = 2005 AND adult_men = "96%"
CREATE TABLE table_name_62 (country VARCHAR, year__most_recent_ VARCHAR, adult_men VARCHAR), Which country has its most recent year as being 2005 and has an Adult Men literacy rate of 96%?
SELECT country FROM table_name_50 WHERE youth__15_24__literacy_rate_total = "99%" AND youth_men = "98%"
CREATE TABLE table_name_50 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, youth_men VARCHAR), What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%?
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers"
CREATE TABLE table_name_30 (institution VARCHAR, type VARCHAR, nickname VARCHAR), Which public college has a nickname of The Grenadiers?