output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT high_rebounds FROM table_name_70 WHERE game = 6
CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR), who had the high rebounds when the game number was 6?
SELECT score FROM table_name_67 WHERE visitor = "ny islanders"
CREATE TABLE table_name_67 (score VARCHAR, visitor VARCHAR), What was the score when the NY Islanders was the visiting team?
SELECT record FROM table_name_54 WHERE visitor = "ottawa"
CREATE TABLE table_name_54 (record VARCHAR, visitor VARCHAR), What was the record when the visiting team was Ottawa?
SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = "liberal democrat" AND regional_seats < 6
CREATE TABLE table_name_26 (total_seats INTEGER, regional_seats VARCHAR, constituency_seats VARCHAR, party VARCHAR), What is the full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6?
SELECT COUNT(regional_seats) FROM table_name_77 WHERE party = "snp" AND total_seats > 46
CREATE TABLE table_name_77 (regional_seats VARCHAR, party VARCHAR, total_seats VARCHAR), How many regional seats were there with the SNP party and where the number of total seats was bigger than 46?
SELECT visitor FROM table_name_69 WHERE date = "january 10"
CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR), Which team was the visitor on January 10?
SELECT AVG(draw) FROM table_name_65 WHERE place > 5
CREATE TABLE table_name_65 (draw INTEGER, place INTEGER), What is the average Draw when the Place is larger than 5?
SELECT MIN(draw) FROM table_name_95 WHERE artist = "stine findsen" AND points > 42
CREATE TABLE table_name_95 (draw INTEGER, artist VARCHAR, points VARCHAR), What is the lowest Draw when the Artist is Stine Findsen and the Points are larger than 42?
SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 1
CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, place VARCHAR), What is the Draw that has Points larger than 44 and a Place larger than 1?
SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden"
CREATE TABLE table_name_21 (position VARCHAR, round VARCHAR, nationality VARCHAR), What is the position of the player from round 2 from Sweden?
SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole"
CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR), What is the highest round of Ian Cole, who played position d from the United States?
SELECT player FROM table_name_68 WHERE position = "c" AND nationality = "denmark"
CREATE TABLE table_name_68 (player VARCHAR, position VARCHAR, nationality VARCHAR), Who is the player from Denmark who plays position c?
SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne"
CREATE TABLE table_name_45 (college_junior_club_team__league_ VARCHAR, player VARCHAR), Which college/junior/club team (league) did Brett Sonne play in?
SELECT date FROM table_name_53 WHERE to_par = "–12"
CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR), Which date has a To par of –12?
SELECT attendance FROM table_name_92 WHERE date = "december 16, 2001"
CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR), How many attended the game on December 16, 2001?
SELECT week FROM table_name_64 WHERE date = "bye"
CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR), What week is a bye week?
SELECT COUNT(entered_service) FROM table_name_89 WHERE locomotive = "13"
CREATE TABLE table_name_89 (entered_service VARCHAR, locomotive VARCHAR), How many years entered service when there were 13 locomotives?
SELECT locomotive FROM table_name_9 WHERE type = "2-8-2t" AND entered_service < 1915 AND built > 1911
CREATE TABLE table_name_9 (locomotive VARCHAR, built VARCHAR, type VARCHAR, entered_service VARCHAR), Which locomotive had a 2-8-2t type, entered service year prior to 1915, and which was built after 1911?
SELECT MAX(wins) FROM table_name_82 WHERE goal_difference < 4 AND club = "villarreal cf" AND played > 38
CREATE TABLE table_name_82 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR), What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played?
SELECT MAX(played) FROM table_name_57 WHERE goal_difference < -27
CREATE TABLE table_name_57 (played INTEGER, goal_difference INTEGER), What is the highest number played with a goal difference less than -27?
SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45
CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR), What is the highest number of loss with a 7 position and more than 45 goals?
SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 4
CREATE TABLE table_name_39 (position INTEGER, goal_difference VARCHAR, losses VARCHAR, goals_for VARCHAR), What is the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4?
SELECT AVG(goal_difference) FROM table_name_4 WHERE goals_against = 51 AND losses < 17
CREATE TABLE table_name_4 (goal_difference INTEGER, goals_against VARCHAR, losses VARCHAR), What is the average goal difference with 51 goals scored against and less than 17 losses?
SELECT MIN(position) FROM table_name_37 WHERE points = "32-6" AND goals_against < 59 AND played > 38
CREATE TABLE table_name_37 (position INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR), What is the lowest position with 32-6 points and less then 59 goals when there are more than 38 played?
SELECT score_in_the_final FROM table_name_13 WHERE championship = "australian open"
CREATE TABLE table_name_13 (score_in_the_final VARCHAR, championship VARCHAR), What was the final score of the Australian Open?
SELECT record_set FROM table_name_30 WHERE actor = "walter brennan" AND year < 1941
CREATE TABLE table_name_30 (record_set VARCHAR, actor VARCHAR, year VARCHAR), What record was set by walter brennan before 1941?
SELECT MIN(year) FROM table_name_83 WHERE notes = "ordinary people"
CREATE TABLE table_name_83 (year INTEGER, notes VARCHAR), What is the earliest year for ordinary people to appear in the notes?
SELECT engine_† FROM table_name_98 WHERE rounds = "all" AND tyre = "m" AND driver = "david coulthard"
CREATE TABLE table_name_98 (engine_† VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR), what is the engine when the rounds ar all, the tyre is m and the driver is david coulthard?
SELECT entrant FROM table_name_92 WHERE engine_† = "bmw p82"
CREATE TABLE table_name_92 (entrant VARCHAR, engine_† VARCHAR), who is the entrant when the engine is bmw p82?
SELECT rounds FROM table_name_17 WHERE engine_† = "mercedes fo110m"
CREATE TABLE table_name_17 (rounds VARCHAR, engine_† VARCHAR), what is the rounds when the engine is mercedes fo110m?
SELECT driver FROM table_name_1 WHERE engine_† = "mercedes fo110m"
CREATE TABLE table_name_1 (driver VARCHAR, engine_† VARCHAR), who is the driver when the engine is mercedes fo110m?
SELECT tyre FROM table_name_47 WHERE engine_† = "asiatech at02" AND driver = "alex yoong"
CREATE TABLE table_name_47 (tyre VARCHAR, engine_† VARCHAR, driver VARCHAR), what is the tyre when the engine is asiatech at02 and the driver is alex yoong?
SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello"
CREATE TABLE table_name_14 (chassis VARCHAR, driver VARCHAR, tyre VARCHAR, engine_† VARCHAR), what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello?
SELECT SUM(rank) FROM table_name_24 WHERE time = "1:41.40.55"
CREATE TABLE table_name_24 (rank INTEGER, time VARCHAR), What is the rank of the rider with time of 1:41.40.55?
SELECT time FROM table_name_85 WHERE team = "398cc yamaha"
CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR), What is the time of the rider with a 398cc yamaha?
SELECT time FROM table_name_76 WHERE rank = 6
CREATE TABLE table_name_76 (time VARCHAR, rank VARCHAR), What is the time of the rider ranked 6?
SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki"
CREATE TABLE table_name_94 (rider VARCHAR, team VARCHAR), Who is the rider with a 399cc Kawasaki?
SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009
CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR), Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?
SELECT COUNT(earnings__) AS $__ FROM table_name_5 WHERE wins = 14 AND rank > 3
CREATE TABLE table_name_5 (earnings__ VARCHAR, wins VARCHAR, rank VARCHAR), How much have players earned with 14 wins ranked below 3?
SELECT constructor FROM table_name_47 WHERE laps < 28 AND time_retired = "out of fuel"
CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR), Who built the car that ran out of fuel before 28 laps?
SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps"
CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR), What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?
SELECT secr_numbers FROM table_name_36 WHERE class = "b1"
CREATE TABLE table_name_36 (secr_numbers VARCHAR, class VARCHAR), Which SECR numbers have a class of b1?
SELECT class FROM table_name_34 WHERE year_made = "1880"
CREATE TABLE table_name_34 (class VARCHAR, year_made VARCHAR), Which class was made in 1880?
SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682
CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER), What is the date of the game when attendance is more than 20,682?
SELECT home_team FROM table_name_29 WHERE away_team = "richmond"
CREATE TABLE table_name_29 (home_team VARCHAR, away_team VARCHAR), Which home team played the Away team from Richmond?
SELECT home_team AS score FROM table_name_73 WHERE away_team = "south melbourne"
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR), What was the home teams score while playing the away team of south melbourne?
SELECT away_team AS score FROM table_name_53 WHERE venue = "arden street oval"
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR), What was the score of the away team while playing at the arden street oval?
SELECT rounds FROM table_name_50 WHERE tyre = "b" AND engine_† = "ferrari 053"
CREATE TABLE table_name_50 (rounds VARCHAR, tyre VARCHAR, engine_† VARCHAR), What are the rounds for the B tyres and Ferrari 053 engine +?
SELECT chassis FROM table_name_30 WHERE driver = "ricardo zonta"
CREATE TABLE table_name_30 (chassis VARCHAR, driver VARCHAR), What kind of chassis does Ricardo Zonta have?
SELECT free_practice_driver_s_ FROM table_name_8 WHERE engine_† = "ford rs2"
CREATE TABLE table_name_8 (free_practice_driver_s_ VARCHAR, engine_† VARCHAR), What kind of free practice is there with a Ford RS2 engine +?
SELECT COUNT(matches) FROM table_name_53 WHERE lost < 5 AND season = "2008/2009" AND draw > 9
CREATE TABLE table_name_53 (matches VARCHAR, draw VARCHAR, lost VARCHAR, season VARCHAR), What is the total number of matches with a loss less than 5 in the 2008/2009 season and has a draw larger than 9?
SELECT competition FROM table_name_88 WHERE points > 30 AND draw < 5 AND lost > 10
CREATE TABLE table_name_88 (competition VARCHAR, lost VARCHAR, points VARCHAR, draw VARCHAR), What competition has a score greater than 30, a draw less than 5, and a loss larger than 10?
SELECT SUM(lost) FROM table_name_6 WHERE matches > 26 AND points = 62 AND draw > 5
CREATE TABLE table_name_6 (lost INTEGER, draw VARCHAR, matches VARCHAR, points VARCHAR), What is the sum of the losses that a match score larger than 26, a points score of 62, and a draw greater than 5?
SELECT record FROM table_name_92 WHERE date = "january 19"
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR), What is the record for the game on January 19?
SELECT score FROM table_name_46 WHERE date = "january 12"
CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR), What is the score of the game on January 12?
SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"
CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR), Who was the home team when the vistor team was the Montreal Canadiens on February 12?
SELECT city_of_license FROM table_name_26 WHERE frequency_mhz = "90.3 fm"
CREATE TABLE table_name_26 (city_of_license VARCHAR, frequency_mhz VARCHAR), Tell me the city of license with frequency of Mhz of 90.3 fm
SELECT call_sign FROM table_name_20 WHERE erp_w = 4
CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR), Name the call sign for ERP W of 4
SELECT frequency_mhz FROM table_name_80 WHERE erp_w = 55
CREATE TABLE table_name_80 (frequency_mhz VARCHAR, erp_w VARCHAR), Name the frequence MHz for ERP W of 55
SELECT fcc_info FROM table_name_17 WHERE call_sign = "w279at"
CREATE TABLE table_name_17 (fcc_info VARCHAR, call_sign VARCHAR), Name the FCC info for call sign of w279at
SELECT call_sign FROM table_name_65 WHERE erp_w = 27
CREATE TABLE table_name_65 (call_sign VARCHAR, erp_w VARCHAR), Name the call sign for ERP W of 27
SELECT date FROM table_name_60 WHERE score = "3 – 1"
CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR), What was the date of the game that had a score of 3 – 1?
SELECT score FROM table_name_75 WHERE visitor = "boston bruins"
CREATE TABLE table_name_75 (score VARCHAR, visitor VARCHAR), What was the score of the game when the Boston Bruins were the visiting team?
SELECT score FROM table_name_37 WHERE record = "16–14–6"
CREATE TABLE table_name_37 (score VARCHAR, record VARCHAR), What was the score with a 16–14–6 record?
SELECT secr_numbers FROM table_name_31 WHERE year_made = "1861"
CREATE TABLE table_name_31 (secr_numbers VARCHAR, year_made VARCHAR), What was the SECR number of the item made in 1861?
SELECT venue FROM table_name_72 WHERE home_team = "geelong"
CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR), Name the venue with a home team of geelong
SELECT home_team FROM table_name_47 WHERE venue = "punt road oval"
CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR), When the Venue was Punt Road Oval, who was the Home Team?
SELECT away_team AS score FROM table_name_75 WHERE away_team = "melbourne"
CREATE TABLE table_name_75 (away_team VARCHAR), When Melbourne was the Away team, what was their score?
SELECT driver FROM table_name_99 WHERE chassis = "d6"
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR), Who is driver of the d6 chassis?
SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda"
CREATE TABLE table_name_91 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR), Who is the constructor for driver Niki Lauda and a chassis of mp4/1c?
SELECT constructor FROM table_name_42 WHERE driver = "piercarlo ghinzani" AND engine = "ford cosworth dfv 3.0 v8"
CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, engine VARCHAR), Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine?
SELECT MAX(grid) FROM table_name_75 WHERE driver = "jean alesi" AND laps < 24
CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR), When Jean Alesi had laps less than 24, what was his highest grid?
SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta"
CREATE TABLE table_name_15 (laps INTEGER, grid VARCHAR, driver VARCHAR), How many laps did Ricardo Zonta drive with a grid less than 14?
SELECT MAX(grid) FROM table_name_75 WHERE driver = "alexander wurz" AND laps < 25
CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR), What was Alexander Wurz's highest grid with laps of less than 25?
SELECT COUNT(year) FROM table_name_78 WHERE title = "magia nuda"
CREATE TABLE table_name_78 (year VARCHAR, title VARCHAR), How many years have a Title of Magia Nuda?
SELECT country FROM table_name_57 WHERE music = "angelo francesco lavagnino" AND year = 1969
CREATE TABLE table_name_57 (country VARCHAR, music VARCHAR, year VARCHAR), What is the country that has a music writer of Angelo Francesco Lavagnino, written in 1969?
SELECT music FROM table_name_61 WHERE notes = "aka africa uncensored"
CREATE TABLE table_name_61 (music VARCHAR, notes VARCHAR), Which music has the notes of AKA Africa Uncensored?
SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = "pegasus" AND ngc_number = "7318a"
CREATE TABLE table_name_67 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR), What is Pegasus' right ascension with a 7318a NGC?
SELECT declination___j2000__ FROM table_name_89 WHERE object_type = "spiral galaxy" AND constellation = "pegasus" AND ngc_number = "7337"
CREATE TABLE table_name_89 (declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR), What is the declination of the spiral galaxy Pegasus with 7337 NGC
SELECT right_ascension___j2000__ FROM table_name_57 WHERE constellation = "pegasus" AND ngc_number = "7343"
CREATE TABLE table_name_57 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR), What is the right ascension of Pegasus with a 7343 NGC?
SELECT score FROM table_name_94 WHERE date = "october 13"
CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR), What was the score on October 13?
SELECT decision FROM table_name_56 WHERE visitor = "carolina"
CREATE TABLE table_name_56 (decision VARCHAR, visitor VARCHAR), Which team won when the visitor was Carolina?
SELECT score FROM table_name_93 WHERE date = "october 31"
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR), What was the score on October 31?
SELECT home FROM table_name_26 WHERE date = "october 13"
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR), Which team was home on October 13?
SELECT home_city FROM table_name_7 WHERE stadium = "angelo massimino"
CREATE TABLE table_name_7 (home_city VARCHAR, stadium VARCHAR), What is the home city for angelo massimino stadium?
SELECT h___a FROM table_name_54 WHERE date = "20 february 2007"
CREATE TABLE table_name_54 (h___a VARCHAR, date VARCHAR), What is the H/A for 20 february 2007?
SELECT SUM(attendance) FROM table_name_14 WHERE date = "2 may 2007"
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR), How many people attended on 2 may 2007?
SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a"
CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR, h___a VARCHAR), Which date has roma as opponent and a H/A of A?
SELECT round FROM table_name_41 WHERE date = "10 april 2007"
CREATE TABLE table_name_41 (round VARCHAR, date VARCHAR), Which round happened on 10 april 2007?
SELECT home_team AS score FROM table_name_55 WHERE venue = "princes park"
CREATE TABLE table_name_55 (home_team VARCHAR, venue VARCHAR), Who was home at Princes Park?
SELECT away_team AS score FROM table_name_38 WHERE venue = "princes park"
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR), What was the away team's score at Princes Park?
SELECT date FROM table_name_56 WHERE venue = "lake oval"
CREATE TABLE table_name_56 (date VARCHAR, venue VARCHAR), When was the game played at Lake Oval?
SELECT away_team FROM table_name_12 WHERE venue = "princes park"
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR), What was the away team when the game was at Princes Park?
SELECT MIN(place) FROM table_name_52 WHERE total = 16 AND average < 16
CREATE TABLE table_name_52 (place INTEGER, total VARCHAR, average VARCHAR), What is the smallest place number when the total is 16 and average is less than 16?
SELECT SUM(average) FROM table_name_88 WHERE rank_by_average > 12
CREATE TABLE table_name_88 (average INTEGER, rank_by_average INTEGER), What is the average when the rank by average is more than 12?
SELECT AVG(place) FROM table_name_91 WHERE rank_by_average = 9 AND total < 83
CREATE TABLE table_name_91 (place INTEGER, rank_by_average VARCHAR, total VARCHAR), What is the average place for a couple with the rank by average of 9 and total smaller than 83?
SELECT AVG(rank_by_average) FROM table_name_43 WHERE total > 245 AND average = 27.1 AND number_of_dances < 15
CREATE TABLE table_name_43 (rank_by_average INTEGER, number_of_dances VARCHAR, total VARCHAR, average VARCHAR), What is the rank by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances?
SELECT stadium FROM table_name_3 WHERE club = "north east stars"
CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR), Which stadium was used for the North East Stars club?
SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = "chaguaramas"
CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR), What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?
SELECT MAX(attendance) FROM table_name_4 WHERE date = "november 9, 1958"
CREATE TABLE table_name_4 (attendance INTEGER, date VARCHAR), What was the higest attendance on November 9, 1958?