output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT MIN(perigee__km_) FROM table_name_30 WHERE launch_date = "1970-08-26" | CREATE TABLE table_name_30 (perigee__km_ INTEGER, launch_date VARCHAR), What is the lowest Perigee with a Launch date of 1970-08-26? |
SELECT total FROM table_name_5 WHERE name = "grant brebner" | CREATE TABLE table_name_5 (total VARCHAR, name VARCHAR), How many total appearances did Grant Brebner have? |
SELECT name FROM table_name_1 WHERE a_league = "150 (4)" | CREATE TABLE table_name_1 (name VARCHAR, a_league VARCHAR), Which player has an A-League of 150 (4)? |
SELECT name FROM table_name_3 WHERE total = "116 (22)" | CREATE TABLE table_name_3 (name VARCHAR, total VARCHAR), Which player had a total of 116 (22)? |
SELECT name FROM table_name_40 WHERE a_league = "150 (4)" | CREATE TABLE table_name_40 (name VARCHAR, a_league VARCHAR), Which player has an A-League of 150 (4)? |
SELECT name FROM table_name_6 WHERE a_league = "113 (0)" | CREATE TABLE table_name_6 (name VARCHAR, a_league VARCHAR), Which player has an A-League of 113 (0)? |
SELECT data_limit__gb FROM table_name_18 WHERE company = "t-mobile" AND plan_name = "internet basic" | CREATE TABLE table_name_18 (data_limit__gb VARCHAR, company VARCHAR, plan_name VARCHAR), What is the data limit for a T-Mobile internet basic plan? |
SELECT data_limit__gb FROM table_name_8 WHERE company = "vodafone" | CREATE TABLE table_name_8 (data_limit__gb VARCHAR, company VARCHAR), What is the data limit for vodafone? |
SELECT plan_name FROM table_name_14 WHERE monthly_price_incl_vat__czk = "300, 500, 750, 1000" | CREATE TABLE table_name_14 (plan_name VARCHAR, monthly_price_incl_vat__czk VARCHAR), What plan has monthly prices of 300, 500, 750, 1000? |
SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = "3g" AND plan_name = "internet premium" | CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR), What is the maximum download speed for the Internet premium 3G plan? |
SELECT maximum_download_speed__kbps FROM table_name_24 WHERE technology = "3g" AND plan_name = "internet basic" | CREATE TABLE table_name_24 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR), What is the maximum download speed for the Internet basic plan with 3G? |
SELECT to_par FROM table_name_42 WHERE player = "gene littler" | CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR), What is the to par for Gene Littler? |
SELECT country FROM table_name_91 WHERE place = "4" | CREATE TABLE table_name_91 (country VARCHAR, place VARCHAR), What is the country that placed 4? |
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705 | CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR), Which school has a decile of 8 and a roll of 705? |
SELECT SUM(roll) FROM table_name_59 WHERE area = "oakura" | CREATE TABLE table_name_59 (roll INTEGER, area VARCHAR), What is the roll of the school in Oakura? |
SELECT AVG(decile) FROM table_name_74 WHERE name = "francis douglas memorial college" | CREATE TABLE table_name_74 (decile INTEGER, name VARCHAR), What is the avererage decile of Francis Douglas Memorial College? |
SELECT result FROM table_name_98 WHERE competition = "2002 fifa world cup qualification" AND goal < 10 | CREATE TABLE table_name_98 (result VARCHAR, competition VARCHAR, goal VARCHAR), What was the final score in a 2002 fifa world cup qualification that was less than 10? |
SELECT MIN(year) FROM table_name_38 WHERE pts > 8 | CREATE TABLE table_name_38 (year INTEGER, pts INTEGER), What is the earliest year with points more than 8? |
SELECT SUM(pts) FROM table_name_7 WHERE chassis = "march 811" | CREATE TABLE table_name_7 (pts INTEGER, chassis VARCHAR), What are the points for a chassis of march 811? |
SELECT entrant FROM table_name_73 WHERE year > 1980 AND pts = 8 AND chassis = "theodore ty02" | CREATE TABLE table_name_73 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, pts VARCHAR), Who had 8 points, later than 1980, and a theodore ty02 chassis? |
SELECT player FROM table_name_2 WHERE country = "united states" AND to_par = 14 | CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR, to_par VARCHAR), Which United States player has a To par of 14? |
SELECT AVG(year) FROM table_name_32 WHERE points < 9 | CREATE TABLE table_name_32 (year INTEGER, points INTEGER), Which year averaged less than 9 points? |
SELECT COUNT(points) FROM table_name_18 WHERE chassis = "ligier js11/15" | CREATE TABLE table_name_18 (points VARCHAR, chassis VARCHAR), What is the total points of teams using a ligier js11/15 chassis? |
SELECT MAX(year) FROM table_name_20 WHERE entrant = "team tyrrell" AND points > 14 | CREATE TABLE table_name_20 (year INTEGER, entrant VARCHAR, points VARCHAR), What is the highest year team tyrrell earned more than 14 points? |
SELECT club FROM table_name_65 WHERE drawn = "1" AND lost = "11" AND try_bonus = "7" | CREATE TABLE table_name_65 (club VARCHAR, try_bonus VARCHAR, drawn VARCHAR, lost VARCHAR), Which club had 1, draw, 11 lost, and a try bonus of 7? |
SELECT tries_against FROM table_name_29 WHERE points_against = "961" | CREATE TABLE table_name_29 (tries_against VARCHAR, points_against VARCHAR), How many tries against were there when there was 961 points against? |
SELECT club FROM table_name_75 WHERE points_against = "556" | CREATE TABLE table_name_75 (club VARCHAR, points_against VARCHAR), Which of the clubs had 556 points against? |
SELECT tries_against FROM table_name_2 WHERE lost = "17" | CREATE TABLE table_name_2 (tries_against VARCHAR, lost VARCHAR), How many tries against were there with 17 losses? |
SELECT lost FROM table_name_84 WHERE tries_for = "103" | CREATE TABLE table_name_84 (lost VARCHAR, tries_for VARCHAR), How many losses were there with 103 tries for? |
SELECT MAX(revenue__) AS $m_ FROM table_name_44 WHERE team = "schalke 04" AND rank < 10 | CREATE TABLE table_name_44 (revenue__ INTEGER, team VARCHAR, rank VARCHAR), Name the highest revenue for schalke 04 with rank less than 10 |
SELECT rank FROM table_name_7 WHERE team = "tottenham hotspur" | CREATE TABLE table_name_7 (rank VARCHAR, team VARCHAR), Name the rank for tottenham hotspur |
SELECT MIN(revenue__) AS $m_ FROM table_name_73 WHERE country = "england" AND team = "chelsea" AND rank < 7 | CREATE TABLE table_name_73 (revenue__ INTEGER, rank VARCHAR, country VARCHAR, team VARCHAR), Name the least revenue for chelsea of england with rank less than 7 |
SELECT COUNT(value__) AS $m_ FROM table_name_21 WHERE revenue__$m_ > 193 AND rank < 12 AND team = "manchester united" | CREATE TABLE table_name_21 (value__ VARCHAR, team VARCHAR, revenue__$m_ VARCHAR, rank VARCHAR), Name the total number of value for revenue more than 193 and rank less than 12 for manchester united |
SELECT MIN(rank) FROM table_name_28 WHERE population > 231 AND name = "qaanaaq" | CREATE TABLE table_name_28 (rank INTEGER, population VARCHAR, name VARCHAR), What is the lowest rank of Qaanaaq, which has a population greater than 231? |
SELECT COUNT(rank) FROM table_name_4 WHERE population = 258 | CREATE TABLE table_name_4 (rank VARCHAR, population VARCHAR), What is the rank of the town with a population of 258? |
SELECT date FROM table_name_76 WHERE decision = "osgood" AND score = "6 – 7" | CREATE TABLE table_name_76 (date VARCHAR, decision VARCHAR, score VARCHAR), When is a Decision of osgood, and a Score of 6 – 7? |
SELECT date FROM table_name_63 WHERE decision = "osgood" AND score = "3 – 4" | CREATE TABLE table_name_63 (date VARCHAR, decision VARCHAR, score VARCHAR), What date has a Decision of osgood, and a Score of 3 – 4? |
SELECT name FROM table_name_54 WHERE heat > 3 AND lane = 5 | CREATE TABLE table_name_54 (name VARCHAR, heat VARCHAR, lane VARCHAR), List a name that has a heat of at least 3 and a Lane of exactly 5. |
SELECT SUM(time) FROM table_name_17 WHERE lane = 1 AND rank < 8 | CREATE TABLE table_name_17 (time INTEGER, lane VARCHAR, rank VARCHAR), Name the sum of time for lane of 1 and rank less than 8 |
SELECT championship FROM table_name_36 WHERE reign = "8" | CREATE TABLE table_name_36 (championship VARCHAR, reign VARCHAR), Name the championship with reign of 8 |
SELECT days_held FROM table_name_33 WHERE current_champion_s_ = "dean ambrose" | CREATE TABLE table_name_33 (days_held VARCHAR, current_champion_s_ VARCHAR), Name the days for current champions of dean ambrose |
SELECT location FROM table_name_76 WHERE reign = "3" | CREATE TABLE table_name_76 (location VARCHAR, reign VARCHAR), Name the location of reign 3 |
SELECT date_won FROM table_name_10 WHERE championship = "wwe intercontinental championship" | CREATE TABLE table_name_10 (date_won VARCHAR, championship VARCHAR), Name the date won for wwe intercontinental championship |
SELECT initial_release_date FROM table_name_41 WHERE publisher = "banpresto" AND japanese_title = "ranma ½: netsuretsu kakutouhen" | CREATE TABLE table_name_41 (initial_release_date VARCHAR, publisher VARCHAR, japanese_title VARCHAR), When was Ranma ½: netsuretsu kakutouhen first release by Banpresto? |
SELECT genre FROM table_name_49 WHERE developer = "microvision" | CREATE TABLE table_name_49 (genre VARCHAR, developer VARCHAR), In what genre did Microvision develop a game? |
SELECT genre FROM table_name_34 WHERE developer = "banpresto" AND japanese_title = "ranma ½: netsuretsu kakutouhen" | CREATE TABLE table_name_34 (genre VARCHAR, developer VARCHAR, japanese_title VARCHAR), What genre is the Banpresto game tittled Ranma ½: netsuretsu kakutouhen? |
SELECT MIN(pick__number) FROM table_name_7 WHERE position = "defensive back" AND overall < 69 | CREATE TABLE table_name_7 (pick__number INTEGER, position VARCHAR, overall VARCHAR), Position of defensive back, and an Overall smaller than 69 is what lowest pick #? |
SELECT MAX(overall) FROM table_name_64 WHERE round = 11 AND pick__number > 14 | CREATE TABLE table_name_64 (overall INTEGER, round VARCHAR, pick__number VARCHAR), Round of 11, and a Pick # larger than 14 is the highest overall pick? |
SELECT round FROM table_name_67 WHERE overall = 208 | CREATE TABLE table_name_67 (round VARCHAR, overall VARCHAR), Overall of 208 occurred in what round? |
SELECT player FROM table_name_62 WHERE to_par = "–3" AND score = 73 - 68 = 141 | CREATE TABLE table_name_62 (player VARCHAR, to_par VARCHAR, score VARCHAR), what player has To par of –3, and a Score of 73-68=141? |
SELECT to_par FROM table_name_71 WHERE place = "t3" AND country = "united states" AND player = "steve flesch" | CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR), what was steve flesch's to par when he was placed at t3 in the united states? |
SELECT country FROM table_name_84 WHERE player = "arron oberholser" | CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR), where did arron oberholser play? |
SELECT score FROM table_name_83 WHERE country = "canada" AND place = "t8" | CREATE TABLE table_name_83 (score VARCHAR, country VARCHAR, place VARCHAR), what's the score in canada with place of t8? |
SELECT COUNT(attendance) FROM table_name_85 WHERE date = "june 18" | CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR), How many people attended the game on June 18? |
SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12 | CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR), When was the earliest first game with 11 played and 12 games lost? |
SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 0 | CREATE TABLE table_name_48 (played INTEGER, first_game VARCHAR, drawn VARCHAR), What is the average number of games played associated with a first game in 1997 and over 0 games drawn? |
SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3 | CREATE TABLE table_name_85 (first_game INTEGER, played VARCHAR, lost VARCHAR), How many first games are associated with 5 games played and under 3 games lost? |
SELECT COUNT(drawn) FROM table_name_41 WHERE lost = 78 AND played > 121 | CREATE TABLE table_name_41 (drawn VARCHAR, lost VARCHAR, played VARCHAR), How many games drawn when there are 78 losses and over 121 games played? |
SELECT drawn FROM table_name_24 WHERE played > 4 AND first_game = 2000 | CREATE TABLE table_name_24 (drawn VARCHAR, played VARCHAR, first_game VARCHAR), How many times was there a draw when played is more than 4 and the first game is in 2000? |
SELECT MAX(lost) FROM table_name_15 WHERE drawn < 0 | CREATE TABLE table_name_15 (lost INTEGER, drawn INTEGER), what is the most games lost when there were 0 draws? |
SELECT MAX(played) FROM table_name_2 WHERE lost = 2 AND percentage = "0.00%" AND drawn > 0 | CREATE TABLE table_name_2 (played INTEGER, drawn VARCHAR, lost VARCHAR, percentage VARCHAR), what is the highest number of games played when there was 2 losses, percentage was 0.00% and more than 0 draws? |
SELECT MAX(lost) FROM table_name_95 WHERE percentage = "50.00%" AND played < 2 | CREATE TABLE table_name_95 (lost INTEGER, percentage VARCHAR, played VARCHAR), what is the most lost games when the percentage is 50.00% and games played is less than 2? |
SELECT drawn FROM table_name_54 WHERE percentage = "100.00%" AND played = 7 | CREATE TABLE table_name_54 (drawn VARCHAR, percentage VARCHAR, played VARCHAR), how many draws are there when percentage is 100.00% and played is 7? |
SELECT COUNT(played) FROM table_name_5 WHERE drawn > 0 AND lost > 0 | CREATE TABLE table_name_5 (played VARCHAR, drawn VARCHAR, lost VARCHAR), how many times is there more than 0 draws and more than 0 losses? |
SELECT club FROM table_name_9 WHERE not_winning_editions = "1992, 2003" | CREATE TABLE table_name_9 (club VARCHAR, not_winning_editions VARCHAR), Which Club has a Not winning editions of 1992, 2003? |
SELECT finalists FROM table_name_22 WHERE club = "győri" | CREATE TABLE table_name_22 (finalists VARCHAR, club VARCHAR), Who Finalists has a Club of győri? |
SELECT winners FROM table_name_77 WHERE not_winning_editions = "1992, 2003" | CREATE TABLE table_name_77 (winners VARCHAR, not_winning_editions VARCHAR), Who is Winners that has editions of 1992, 2003 as Not Winning |
SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 2013" | CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR), What is the Finalists that has 2008, 2012, 2013 as Not winning editions |
SELECT engine FROM table_name_9 WHERE chassis = "theodore n183" | CREATE TABLE table_name_9 (engine VARCHAR, chassis VARCHAR), What engine was in the Theodore n183? |
SELECT winners FROM table_name_79 WHERE year = "2005" | CREATE TABLE table_name_79 (winners VARCHAR, year VARCHAR), Who is listed as the Winners with a Year of 2005? |
SELECT venue FROM table_name_37 WHERE year = "2005" | CREATE TABLE table_name_37 (venue VARCHAR, year VARCHAR), Which Venue has a Year of 2005? |
SELECT score FROM table_name_86 WHERE date = "november 15" | CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR), What is the score when november 15 is the date? |
SELECT record FROM table_name_32 WHERE date = "november 15" | CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR), What record has November 15 as the date? |
SELECT 2009 FROM table_name_53 WHERE tournament = "cincinnati" | CREATE TABLE table_name_53 (tournament VARCHAR), What tournament what held in Cincinnati in 2009? |
SELECT played FROM table_name_89 WHERE points_for = "369" | CREATE TABLE table_name_89 (played VARCHAR, points_for VARCHAR), How many games played when the points for is 369? |
SELECT club FROM table_name_48 WHERE tries_for = "100" | CREATE TABLE table_name_48 (club VARCHAR, tries_for VARCHAR), what is the club that as 100 tries? |
SELECT points_for FROM table_name_71 WHERE drawn = "0" AND tries_against = "60" | CREATE TABLE table_name_71 (points_for VARCHAR, drawn VARCHAR, tries_against VARCHAR), what is the points for when the club has 0 drawn and 60 tries against? |
SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc" | CREATE TABLE table_name_5 (drawn VARCHAR, club VARCHAR), How many draws are for the club senghenydd rfc? |
SELECT points_for FROM table_name_37 WHERE club = "senghenydd rfc" | CREATE TABLE table_name_37 (points_for VARCHAR, club VARCHAR), What is senghenydd rfc's points for? |
SELECT lost FROM table_name_72 WHERE drawn = "1" AND points_for = "515" | CREATE TABLE table_name_72 (lost VARCHAR, drawn VARCHAR, points_for VARCHAR), what is the amount lost when there is 1 draw and 515 points? |
SELECT AVG(year) FROM table_name_66 WHERE nominee = "angélica rivera" | CREATE TABLE table_name_66 (year INTEGER, nominee VARCHAR), In which year was Angélica Rivera a nominee? |
SELECT AVG(laps) FROM table_name_49 WHERE finish = "23" | CREATE TABLE table_name_49 (laps INTEGER, finish VARCHAR), What is the average lap of the race with a 23 finish? |
SELECT MIN(laps) FROM table_name_6 WHERE qual = "145.926" | CREATE TABLE table_name_6 (laps INTEGER, qual VARCHAR), What is the lowest lap with a 145.926 qual? |
SELECT finish FROM table_name_98 WHERE laps = 51 | CREATE TABLE table_name_98 (finish VARCHAR, laps VARCHAR), What is the finish with 51 laps? |
SELECT SUM(laps) FROM table_name_80 WHERE year = "1958" | CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR), How many laps were in 1958? |
SELECT MIN(area__sq_mi_) FROM table_name_82 WHERE rank = 160 | CREATE TABLE table_name_82 (area__sq_mi_ INTEGER, rank VARCHAR), What is the smallest area (sq mi) that has 160 as it rank? |
SELECT rank FROM table_name_12 WHERE area__sq_mi_ < 48 AND area__km²_ > 104 AND island = "sula, sogn og fjordane" | CREATE TABLE table_name_12 (rank VARCHAR, island VARCHAR, area__sq_mi_ VARCHAR, area__km²_ VARCHAR), Which rank has a smaller area (sq mi) than 48, and an area (km2) greater than 104, and an island of sula, sogn og fjordane? |
SELECT AVG(api_level) FROM table_name_7 WHERE distribution = "10.6%" | CREATE TABLE table_name_7 (api_level INTEGER, distribution VARCHAR), with Distribution of 10.6% what is the average api level? |
SELECT AVG(api_level) FROM table_name_74 WHERE release_date = "february 9, 2011" | CREATE TABLE table_name_74 (api_level INTEGER, release_date VARCHAR), with release date of february 9, 2011, what is the api level? |
SELECT code_name FROM table_name_12 WHERE api_level = 3 | CREATE TABLE table_name_12 (code_name VARCHAR, api_level VARCHAR), with api level 3, what is the code name? |
SELECT code_name FROM table_name_90 WHERE distribution = "20.6%" | CREATE TABLE table_name_90 (code_name VARCHAR, distribution VARCHAR), with distribution of 20.6% what is the code name? |
SELECT code_name FROM table_name_71 WHERE api_level = 18 | CREATE TABLE table_name_71 (code_name VARCHAR, api_level VARCHAR), with api level of 18, what's the code name? |
SELECT entrant FROM table_name_83 WHERE points < 33 AND year = 1999 | CREATE TABLE table_name_83 (entrant VARCHAR, points VARCHAR, year VARCHAR), Which entrant had fewer than 33 points in 1999? |
SELECT chassis FROM table_name_43 WHERE points = 16 | CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR), Which chassis had 16 points? |
SELECT MIN(points) FROM table_name_23 WHERE engine = "gc37-01 v10" | CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR), Which gc37-01 v10 engine has the fewest points? |
SELECT MIN(kerry__number) FROM table_name_65 WHERE others__percentage = "0.8%" AND kerry__percentage = "70.4%" | CREATE TABLE table_name_65 (kerry__number INTEGER, others__percentage VARCHAR, kerry__percentage VARCHAR), What was Kerry's lowest number of votes where Other received 0.8% and Kerry 70.4%? |
SELECT COUNT(others__number) FROM table_name_65 WHERE kerry__percentage = "44.6%" AND bush__number > 163 OFFSET 650 | CREATE TABLE table_name_65 (others__number VARCHAR, kerry__percentage VARCHAR, bush__number VARCHAR), How many votes did Others receive where Kerry has 44.6%, and Bush more than 163,650 votes? |
SELECT title FROM table_name_94 WHERE termination_of_mission = "current" | CREATE TABLE table_name_94 (title VARCHAR, termination_of_mission VARCHAR), Which Title has a Termination of Mission of current? |
SELECT appointed_by FROM table_name_40 WHERE termination_of_mission = "april 7, 2005" | CREATE TABLE table_name_40 (appointed_by VARCHAR, termination_of_mission VARCHAR), Which Appointed has Termination of Mission on april 7, 2005? |
SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = "november 22, 1990" | CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR), Which Appointed has a Presentation of Credentials on November 22, 1990 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.