output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards"
CREATE TABLE table_name_66 (results VARCHAR, awards_show VARCHAR), What was the results of the 71st Academy Awards show?
SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "alabama"
CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR), What is the city in Alabama that opened in 1996?
SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903"
CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR), What is the lowest capacity for 1903?
SELECT year_opened FROM table_name_50 WHERE state = "north carolina" AND capacity < 21 OFFSET 500
CREATE TABLE table_name_50 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR), What was the year opened for North Carolina with a smaller than 21,500 capacity?
SELECT rank FROM table_name_83 WHERE year_opened = "1959" AND state = "pennsylvania"
CREATE TABLE table_name_83 (rank VARCHAR, year_opened VARCHAR, state VARCHAR), What is the rank for the year opened in 1959 in Pennsylvania?
SELECT COUNT(year) FROM table_name_87 WHERE weight_class = "lightweight" AND date = "february 28, 2009"
CREATE TABLE table_name_87 (year VARCHAR, weight_class VARCHAR, date VARCHAR), How many years were lightweight class on february 28, 2009?
SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-10"
CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR), How many weeks have a Result of t 10-10?
SELECT date FROM table_name_31 WHERE week < 8 AND opponent = "atlanta falcons"
CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, opponent VARCHAR), Which Date has a Week smaller than 8, and an Opponent of atlanta falcons?
SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings"
CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR), Which Result has an Opponent of minnesota vikings?
SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 3
CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR), What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?
SELECT place FROM table_name_88 WHERE event = "half marathon"
CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR), What is the Place of the half marathon Event?
SELECT place FROM table_name_18 WHERE date = "august 25, 2007"
CREATE TABLE table_name_18 (place VARCHAR, date VARCHAR), What is the Place of the Event on August 25, 2007?
SELECT country FROM table_name_97 WHERE event = "half marathon"
CREATE TABLE table_name_97 (country VARCHAR, event VARCHAR), What is the Country of the Half Marathon Event?
SELECT country FROM table_name_39 WHERE event = "10,000m"
CREATE TABLE table_name_39 (country VARCHAR, event VARCHAR), What is the Country of the 10,000m Event?
SELECT event FROM table_name_69 WHERE country = "(local competition)"
CREATE TABLE table_name_69 (event VARCHAR, country VARCHAR), What is the Event labeled Country of (local competition)?
SELECT date FROM table_name_23 WHERE time = "2:23:47"
CREATE TABLE table_name_23 (date VARCHAR, time VARCHAR), What is the Date of the Event with a Time of 2:23:47?
SELECT COUNT(rank) FROM table_name_89 WHERE time = "6:30.53"
CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR), What is the rank of the time of 6:30.53?
SELECT rowers FROM table_name_70 WHERE time = "6:24.61"
CREATE TABLE table_name_70 (rowers VARCHAR, time VARCHAR), What is the names of the rowers that the time was 6:24.61?
SELECT country FROM table_name_45 WHERE rank < 6 AND notes = "fb" AND time = "6:32.32"
CREATE TABLE table_name_45 (country VARCHAR, time VARCHAR, rank VARCHAR, notes VARCHAR), What country has a rank smaller than 6, a time of 6:32.32 and notes of FB?
SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "home and away"
CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR), Which actor played on Home and Away for 20 years?
SELECT character FROM table_name_64 WHERE duration = "12 years" AND soap_opera = "neighbours"
CREATE TABLE table_name_64 (character VARCHAR, duration VARCHAR, soap_opera VARCHAR), What character was portrayed by the same actor for 12 years on Neighbours?
SELECT duration FROM table_name_83 WHERE actor = "joyce jacobs"
CREATE TABLE table_name_83 (duration VARCHAR, actor VARCHAR), How long did Joyce Jacobs portray her character on her show?
SELECT actor FROM table_name_85 WHERE duration = "17 years" AND character = "harold bishop"
CREATE TABLE table_name_85 (actor VARCHAR, duration VARCHAR, character VARCHAR), Which actor played Harold Bishop for 17 years?
SELECT years FROM table_name_98 WHERE actor = "martin sacks"
CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR), Which years did Martin Sacks work on a soap opera?
SELECT arena FROM table_name_84 WHERE points = "65"
CREATE TABLE table_name_84 (arena VARCHAR, points VARCHAR), What is the Arena when there were 65 points?
SELECT record FROM table_name_45 WHERE score = "2–0"
CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR), What is the record when the score was 2–0?
SELECT points FROM table_name_15 WHERE date = "february 10"
CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR), What were the points on February 10?
SELECT record FROM table_name_78 WHERE arena = "palasport olimpico"
CREATE TABLE table_name_78 (record VARCHAR, arena VARCHAR), What is the record at Palasport Olimpico?
SELECT points FROM table_name_52 WHERE score = "3–1" AND record = "25–19–11"
CREATE TABLE table_name_52 (points VARCHAR, score VARCHAR, record VARCHAR), What is the points when the score was 3–1, and record was 25–19–11?
SELECT record FROM table_name_53 WHERE arena = "arrowhead pond of anaheim" AND loss = "bryzgalov (10–11–1)"
CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR), What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands"
CREATE TABLE table_name_10 (fin_time VARCHAR, finish VARCHAR, track VARCHAR), What is the finishing time with a 2/1q finish on the Meadowlands track?
SELECT last_1_4 FROM table_name_22 WHERE race = "qua" AND fin_time = "2:03.1"
CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR), What is the last 1/4 for the QUA race with a finishing time of 2:03.1?
SELECT COUNT(rank) FROM table_name_98 WHERE time = "1:01.14.62" AND rider = "michael russell"
CREATE TABLE table_name_98 (rank VARCHAR, time VARCHAR, rider VARCHAR), How many ranks have 1:01.14.62 as the time, with michael russell as the rider?
SELECT time FROM table_name_34 WHERE rider = "phil mcgurk"
CREATE TABLE table_name_34 (time VARCHAR, rider VARCHAR), What time has phil mcgurk as the rider?
SELECT SUM(rank) FROM table_name_71 WHERE rider = "michael russell"
CREATE TABLE table_name_71 (rank INTEGER, rider VARCHAR), How many ranks have michael russell as the rider?
SELECT SUM(goals_conceded) FROM table_name_81 WHERE draw > 5 AND points > 21 AND played < 18
CREATE TABLE table_name_81 (goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR), How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played?
SELECT COUNT(goals_conceded) FROM table_name_75 WHERE points = 32 AND lost > 2 AND goals_scored > 22
CREATE TABLE table_name_75 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR), How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored?
SELECT COUNT(points) FROM table_name_25 WHERE goals_conceded = 41 AND place > 10
CREATE TABLE table_name_25 (points VARCHAR, goals_conceded VARCHAR, place VARCHAR), How many points did the team have that conceded 41 goals and finish in a place larger than 10?
SELECT opponent FROM table_name_25 WHERE week = 13
CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR), Who was the opponent in week 13?
SELECT location FROM table_name_48 WHERE mascot = "kingsmen"
CREATE TABLE table_name_48 (location VARCHAR, mascot VARCHAR), What location has kingsmen as the mascot?
SELECT ihsaa_football_class FROM table_name_39 WHERE county = "20 elkhart"
CREATE TABLE table_name_39 (ihsaa_football_class VARCHAR, county VARCHAR), What IHSAA Football Class has 20 elkhart as the county?
SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians"
CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR), What school has south bend as the location, with indians as the mascot?
SELECT MIN(total) FROM table_name_31 WHERE position < 1
CREATE TABLE table_name_31 (total INTEGER, position INTEGER), What's the total that the position is less than 1?
SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = 16.125
CREATE TABLE table_name_10 (b_score INTEGER, position VARCHAR, total VARCHAR), What the B Score when the total is 16.125 and the position is less than 7?
SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65
CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR), What was the total rating that had a score higher than 7 and a b score smaller than 8.65?
SELECT gymnast FROM table_name_94 WHERE b_score = 8.95 AND a_score < 6.9
CREATE TABLE table_name_94 (gymnast VARCHAR, b_score VARCHAR, a_score VARCHAR), Which gymnast had a b score of 8.95 and an a score less than 6.9
SELECT winners FROM table_name_11 WHERE year = 1998
CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR), Who were the winners in 1998?
SELECT AVG(year) FROM table_name_5 WHERE runner_up = "portugal" AND third_place = "italy" AND best_goalkeeper = "nuno hidalgo"
CREATE TABLE table_name_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR), What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo?
SELECT college FROM table_name_23 WHERE pick = 213
CREATE TABLE table_name_23 (college VARCHAR, pick VARCHAR), What is the college pick for 213?
SELECT round FROM table_name_54 WHERE date = "21 february 2009"
CREATE TABLE table_name_54 (round VARCHAR, date VARCHAR), what is the round on 21 february 2009?
SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community"
CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR), What is the highest enrollment for rochester community school?
SELECT AVG(enrollment) FROM table_name_38 WHERE mascot = "hot dogs" AND year_joined > 1926
CREATE TABLE table_name_38 (enrollment INTEGER, mascot VARCHAR, year_joined VARCHAR), What is the average enrollment that has hot dogs as the mascot, with a year joined later than 1926?
SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette"
CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR), What is the lowest enrollment that has Lafayette as the location?
SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006"
CREATE TABLE table_name_62 (runner_up VARCHAR, name VARCHAR, year VARCHAR), Who was runner-up in the 2006 Pacific Life Open?
SELECT class FROM table_name_66 WHERE quantity_made = "29"
CREATE TABLE table_name_66 (class VARCHAR, quantity_made VARCHAR), Which Class has a Quantity made of 29?
SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club"
CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR), What is the Theme Song of the Yukan Club?
SELECT theme_song_s_ FROM table_name_5 WHERE japanese_title = "働きマン"
CREATE TABLE table_name_5 (theme_song_s_ VARCHAR, japanese_title VARCHAR), What is the Theme Song of 働きマン?
SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%"
CREATE TABLE table_name_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR), What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%?
SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = "iryu -team medical dragon-2"
CREATE TABLE table_name_23 (theme_song_s_ VARCHAR, romaji_title VARCHAR), What is the Theme Song of Iryu -Team Medical Dragon-2?
SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)"
CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR), what is the road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)?
SELECT road_numbers FROM table_name_8 WHERE builder = "alco" AND railroad__quantity_ = "union pacific railroad (105)" AND class = "csa-2"
CREATE TABLE table_name_8 (road_numbers VARCHAR, class VARCHAR, builder VARCHAR, railroad__quantity_ VARCHAR), what is the road numbers when the builder is alco, the railroad (quantity) is union pacific railroad (105) and the class is csa-2?
SELECT road_numbers FROM table_name_66 WHERE class = "z-7"
CREATE TABLE table_name_66 (road_numbers VARCHAR, class VARCHAR), what is the road numbers when the class is z-7?
SELECT peak_date FROM table_name_1 WHERE main_artist = "kelis"
CREATE TABLE table_name_1 (peak_date VARCHAR, main_artist VARCHAR), What was the peak date of Kelis's song?
SELECT nationality FROM table_name_37 WHERE lane > 4 AND rank > 5
CREATE TABLE table_name_37 (nationality VARCHAR, lane VARCHAR, rank VARCHAR), What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?
SELECT opponent FROM table_name_87 WHERE week = 3
CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR), Who was the opponent the falcons played against on week 3?
SELECT MAX(podiums) FROM table_name_60 WHERE stage_wins = 91 AND points < 140
CREATE TABLE table_name_60 (podiums INTEGER, stage_wins VARCHAR, points VARCHAR), what is the highest podiums when the stage wins is 91 and the points is less than 140?
SELECT AVG(wins) FROM table_name_49 WHERE podiums > 1 AND points = 80 AND starts < 28
CREATE TABLE table_name_49 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR), what is the average wins when the podiums is more than 1, points is 80 and starts is less than 28?
SELECT COUNT(points) FROM table_name_72 WHERE constructor = "citroën total world rally team" AND wins < 7
CREATE TABLE table_name_72 (points VARCHAR, constructor VARCHAR, wins VARCHAR), what is the total number of points when the constructor is citroën total world rally team and the wins is less than 7?
SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR), what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?
SELECT driver FROM table_name_66 WHERE total_time = "16:58"
CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR), What driver had a total time of 16:58?
SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30"
CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR), What's the lowest capacity when the margin is 03:30?
SELECT vehicle FROM table_name_20 WHERE class = "6c3g"
CREATE TABLE table_name_20 (vehicle VARCHAR, class VARCHAR), Which vehicle has a class 6c3g?
SELECT MIN(capacity) FROM table_name_89 WHERE vehicle = "1975 toyota celica 1600gt"
CREATE TABLE table_name_89 (capacity INTEGER, vehicle VARCHAR), What is the lowest capacity for the 1975 toyota celica 1600gt?
SELECT athlete FROM table_name_46 WHERE react = 0.164
CREATE TABLE table_name_46 (athlete VARCHAR, react VARCHAR), who is the athlete when react is 0.164?
SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea"
CREATE TABLE table_name_64 (lane INTEGER, react VARCHAR, nationality VARCHAR), what is the lowest lane when react is more than 0.164 and the nationality is guinea?
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR), What is the year retired of the locomotive which had the quantity made of 25?
SELECT class FROM table_name_19 WHERE quantity_made = "20"
CREATE TABLE table_name_19 (class VARCHAR, quantity_made VARCHAR), Which class had a quantity made of 20?
SELECT class FROM table_name_48 WHERE wheel_arrangement = "2-8-2" AND quantity_made = "25"
CREATE TABLE table_name_48 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR), What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25?
SELECT quantity_preserved FROM table_name_11 WHERE quantity_made = "6"
CREATE TABLE table_name_11 (quantity_preserved VARCHAR, quantity_made VARCHAR), What is the quantity preserved to the locomotive with a quantity made of 6?
SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = "beohari"
CREATE TABLE table_name_81 (number_of_electorates__2009_ INTEGER, name VARCHAR), What is Beohari's highest number of electorates?
SELECT district FROM table_name_13 WHERE constituency_number = "79"
CREATE TABLE table_name_13 (district VARCHAR, constituency_number VARCHAR), What is the district with 79 constituency number?
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "beohari"
CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR), What is Beohari's reserved for (SC/ST/None)?
SELECT SUM(prominence__m_) FROM table_name_88 WHERE peak = "moussa ali terara"
CREATE TABLE table_name_88 (prominence__m_ INTEGER, peak VARCHAR), What is the sum of the prominence in m of moussa ali terara peak?
SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = "ethiopia" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358
CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR), What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?
SELECT team FROM table_name_22 WHERE start = 8 AND year < 2008
CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR, year VARCHAR), Which team had a start of 8 in years under 2008?
SELECT SUM(finish) FROM table_name_35 WHERE year = 2011
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR), What was Jeff's finish in 2011?
SELECT COUNT(finish) FROM table_name_78 WHERE start = 15
CREATE TABLE table_name_78 (finish VARCHAR, start VARCHAR), What is the number of finishes having a start of 15?
SELECT COUNT(2011 AS _1h) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7
CREATE TABLE table_name_9 (Id VARCHAR), How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?
SELECT MAX(2011 AS _1h) FROM table_name_35 WHERE 2005 > 28
CREATE TABLE table_name_35 (Id VARCHAR), What is the highest 2011 1H value for a 2005 over 28?
SELECT AVG(2007) FROM table_name_6 WHERE 2009 < 20 AND 2006 = 2.8
CREATE TABLE table_name_6 (Id VARCHAR), What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?
SELECT round FROM table_name_85 WHERE venue = "villa park"
CREATE TABLE table_name_85 (round VARCHAR, venue VARCHAR), What was the round for Villa Park?
SELECT MAX(latitude) FROM table_name_24 WHERE pop__2010_ = 24 AND water__sqmi_ > 0.319
CREATE TABLE table_name_24 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR), What is latitude when 2010 population is 24 and water is more than 0.319?
SELECT mhra_approved FROM table_name_24 WHERE generic_name = "blonanserin"
CREATE TABLE table_name_24 (mhra_approved VARCHAR, generic_name VARCHAR), Is Blonanserin MHRA approved?
SELECT home_team FROM table_name_41 WHERE away_team = "kwong wah"
CREATE TABLE table_name_41 (home_team VARCHAR, away_team VARCHAR), What is the home team when kwong wah was the away team?
SELECT score FROM table_name_93 WHERE time = "14:30" AND venue = "happy valley recreation ground pitch #2"
CREATE TABLE table_name_93 (score VARCHAR, time VARCHAR, venue VARCHAR), What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?
SELECT venue FROM table_name_67 WHERE time = "14:30" AND away_team = "sun source"
CREATE TABLE table_name_67 (venue VARCHAR, time VARCHAR, away_team VARCHAR), What is the venue of the match with a 14:30 time and sun source as the away team?
SELECT away_team FROM table_name_63 WHERE home_team = "solon"
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR), What is the away team when solon was the home team?
SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds"
CREATE TABLE table_name_21 (lane INTEGER, name VARCHAR), What is Elizabeth Simmonds' average lane number?
SELECT MAX(rank) FROM table_name_32 WHERE name = "laure manaudou"
CREATE TABLE table_name_32 (rank INTEGER, name VARCHAR), What is Laure Manaudou's highest rank?
SELECT internet_explorer FROM table_name_4 WHERE opera = "1.67%" AND period = "2012 q1"
CREATE TABLE table_name_4 (internet_explorer VARCHAR, opera VARCHAR, period VARCHAR), What internet explorer has 1.67% as the opera, with 2012 q1 as the period?