output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT country FROM table_name_47 WHERE score = 66 - 72 - 70 - 69 = 277 | CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR), What is the Country of the Player with a Score of 66-72-70-69=277? |
SELECT SUM(grid) FROM table_name_58 WHERE driver = "patrick carpentier" AND laps < 103 | CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR, laps VARCHAR), What is the sum of a grid for driver Patrick Carpentier and less than 103 laps? |
SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = "contact" AND laps = 71 | CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR), What team has 0 points and a contact tired/retired, and 71 laps? |
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0 | CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR), What is the sum of lap for the Dale Coyne Racing Team, and 0 points? |
SELECT MIN(laps) FROM table_name_29 WHERE points > 16 | CREATE TABLE table_name_29 (laps INTEGER, points INTEGER), What is the lowest number of laps with more than 16 points? |
SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 10 | CREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR), What team has 104 laps and a grid of 10? |
SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence" | CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR), Which year had e34 Nimzo-Indian defence is the opening? |
SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104" | CREATE TABLE table_name_40 (quantity INTEGER, number_s_ VARCHAR), What is the average quantity that has 1104 as the number(s)? |
SELECT type FROM table_name_26 WHERE quantity = 5 | CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR), What type has 5 as the quantity? |
SELECT years FROM table_name_44 WHERE player = "alvin mitchell" | CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR), What years did Alvin Mitchell play? |
SELECT player FROM table_name_63 WHERE team = "1970s" | CREATE TABLE table_name_63 (player VARCHAR, team VARCHAR), Who is the player on a team from the 1970s? |
SELECT team FROM table_name_39 WHERE player = "oliver dobbins" | CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR), What team does Oliver Dobbins play for? |
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain" | CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR), Who was the opponent in the mallorca 2, spain tournament? |
SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko" | CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR), When was varvara lepchenko the opponent? |
SELECT to_par FROM table_name_71 WHERE total = 288 | CREATE TABLE table_name_71 (to_par VARCHAR, total VARCHAR), For the total of 288 what was the to par? |
SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278 | CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR), What year did the United States win with a total of 278? |
SELECT MIN(total) FROM table_name_88 WHERE finish = "t47" | CREATE TABLE table_name_88 (total INTEGER, finish VARCHAR), What was the lowest total with a finish of t47? |
SELECT to_par FROM table_name_97 WHERE total > 288 | CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER), What is the to par when the total is larger than 288? |
SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1 | CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR), What is the rank for total less than 5, 1 bronze and less than 1 silver? |
SELECT MAX(bronze) FROM table_name_95 WHERE rank > 11 AND gold < 0 | CREATE TABLE table_name_95 (bronze INTEGER, rank VARCHAR, gold VARCHAR), What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals? |
SELECT MIN(total) FROM table_name_6 WHERE gold > 2 AND silver < 0 | CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR), What is the least total when there are more than 2 golds and fewer than 0 silver? |
SELECT visitor FROM table_name_39 WHERE record = "2-4" | CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR), Which visitor has a record of 2-4? |
SELECT record FROM table_name_81 WHERE date = "april 28" | CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR), What is the record on April 28? |
SELECT score FROM table_name_36 WHERE home = "chicago black hawks" AND record = "2-1" | CREATE TABLE table_name_36 (score VARCHAR, home VARCHAR, record VARCHAR), What is the score for the Chicago Black Hawks game with a record of 2-1? |
SELECT MAX(year) FROM table_name_50 WHERE hometown = "san carlos, pangasinan" | CREATE TABLE table_name_50 (year INTEGER, hometown VARCHAR), What's the latest year with a hometown of san carlos, pangasinan? |
SELECT other_awards FROM table_name_77 WHERE year = 1995 | CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR), What are the other awards for 1995? |
SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes" | CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR), What's the latest year that daisy garcia reyes did not place in miss world? |
SELECT venue FROM table_name_15 WHERE against < 7 | CREATE TABLE table_name_15 (venue VARCHAR, against INTEGER), Which venue had an against smaller than 7? |
SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 12 | CREATE TABLE table_name_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR), What day was Australia the opposing team and the against 12? |
SELECT date FROM table_name_17 WHERE opposing_teams = "wales" | CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR), What day was Wales the opposing team? |
SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279 | CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR), What is the amount of money with a score of 67-71-70-71=279? |
SELECT to_par FROM table_name_22 WHERE player = "dave rummells" | CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR), What is Dave Rummells's to par? |
SELECT to_par FROM table_name_51 WHERE score = 67 - 66 - 71 - 71 = 275 | CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR), What is the to par number with a score of 67-66-71-71=275? |
SELECT country FROM table_name_55 WHERE player = "steve jones" | CREATE TABLE table_name_55 (country VARCHAR, player VARCHAR), What country is Steve Jones from? |
SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence" | CREATE TABLE table_name_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR), Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence? |
SELECT points FROM table_name_71 WHERE points_for = "points for" | CREATE TABLE table_name_71 (points VARCHAR, points_for VARCHAR), What is Points, when Points For is "points for"? |
SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478" | CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR), What is Drawn, when Played is "18", and when Points Against is "478"? |
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc" | CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR), What is Points For, when Losing Bonus is "2", when Lost is "8", and when Club is "Rhyl And District RFC"? |
SELECT lost FROM table_name_16 WHERE points_for = "205" | CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR), What is Lost, when Points For is "205"? |
SELECT played FROM table_name_81 WHERE tries_against = "63" | CREATE TABLE table_name_81 (played VARCHAR, tries_against VARCHAR), What is Played, when Tries Against is "63"? |
SELECT try_bonus FROM table_name_98 WHERE tries_for = "39" | CREATE TABLE table_name_98 (try_bonus VARCHAR, tries_for VARCHAR), What is Try Bonus, when Tries For is "39"? |
SELECT week_2 FROM table_name_63 WHERE week_4 = "piret aava" | CREATE TABLE table_name_63 (week_2 VARCHAR, week_4 VARCHAR), What Week 2 has a Week 4 of piret aava? |
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae" | CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR), What Week 2 has a Week 3 of casey mae? |
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows" | CREATE TABLE table_name_66 (week_2 VARCHAR, week_1 VARCHAR), What Week 2 has a Week 1 of crystal beddows? |
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair" | CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR), What Week 3 has a Week 4 of gina blair? |
SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood" | CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR), What Week 5 has a Week 1 of mysti sherwood? |
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer" | CREATE TABLE table_name_62 (week_4 VARCHAR, week_2 VARCHAR), What Week 4 has a Week 2 of samantha speer? |
SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857" | CREATE TABLE table_name_14 (election VARCHAR), Which 2nd Party has a Election of 1857? |
SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857" | CREATE TABLE table_name_17 (election VARCHAR), Which 2nd Party has a Election of 1857? |
SELECT 1 AS st_member FROM table_name_51 WHERE election = "1832" | CREATE TABLE table_name_51 (election VARCHAR), which 1st Member has a Election of 1832 |
SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return" | CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR), Who is moving from Treviso with a loan return? |
SELECT nat FROM table_name_9 WHERE name = "acquafresca" | CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR), What is the nationality of Acquafresca? |
SELECT type FROM table_name_89 WHERE transfer_window = "summer" AND moving_from = "free agent" | CREATE TABLE table_name_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR), What is the type if the transfer window is summer and the moving from category is free agent? |
SELECT transfer_window FROM table_name_46 WHERE moving_from = "sΓ£o paulo" | CREATE TABLE table_name_46 (transfer_window VARCHAR, moving_from VARCHAR), What is the transfer window for the moving from of SΓ£o Paulo? |
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra" | CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR), What is the moving from with a transfer and the nationality of Bra? |
SELECT ends FROM table_name_59 WHERE name = "maaroufi" | CREATE TABLE table_name_59 (ends VARCHAR, name VARCHAR), What is the end date for Maaroufi? |
SELECT result FROM table_name_40 WHERE date = "october 2, 1966" | CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR), The game played on October 2, 1966 had what result? |
SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966" | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR), Who was the game played against on October 9, 1966? |
SELECT MAX(week) FROM table_name_13 WHERE attendance = "69,372" | CREATE TABLE table_name_13 (week INTEGER, attendance VARCHAR), What is the maximum week that 69,372 people attended the game? |
SELECT date FROM table_name_28 WHERE week > 4 AND attendance = "60,658" | CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR, attendance VARCHAR), What is the date of the game played after week 4 with 60,658 people in attendance? |
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir" | CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR), What is the total capacity for the city of Trogir? |
SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007 | CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR), What party established in 1797 won an election in 2007? |
SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 0 | CREATE TABLE table_name_13 (played INTEGER, lost VARCHAR, drawn VARCHAR), What Played has a Lost smaller than 3, and a Drawn smaller than 0? |
SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 0 | CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER), What is the largest % Won with a Lost smaller than 0? |
SELECT SUM(against) FROM table_name_76 WHERE _percentage_won > 100 | CREATE TABLE table_name_76 (against INTEGER, _percentage_won INTEGER), What is the total of Against with % Won larger than 100? |
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5 | CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR), What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5? |
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1 | CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR), What is the Lost with Against smaller than 25, and Played smaller than 1? |
SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118 | CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR), What is the largest height when the prominence is 3,118? |
SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic" | CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR), What is the Tie number of when Wigan Athletic was the away team? |
SELECT date FROM table_name_51 WHERE tie_no = "6" | CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR), Name the team with a tie number of 6. |
SELECT ship FROM table_name_81 WHERE country = "royal navy" AND builder = "palmers shipbuilding and iron company" | CREATE TABLE table_name_81 (ship VARCHAR, country VARCHAR, builder VARCHAR), What ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy? |
SELECT class___type FROM table_name_32 WHERE location = "trieste" | CREATE TABLE table_name_32 (class___type VARCHAR, location VARCHAR), What is the class/type at Trieste? |
SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company" | CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR), What is the country of Palmers Shipbuilding and Iron Company? |
SELECT country FROM table_name_96 WHERE location = "aberdeen" | CREATE TABLE table_name_96 (country VARCHAR, location VARCHAR), In what country is Aberdeen? |
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291 | CREATE TABLE table_name_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR), Which Number of households has a Median household income of $32,806, and a Population larger than 11,291? |
SELECT county FROM table_name_96 WHERE median_household_income = "$37,230" | CREATE TABLE table_name_96 (county VARCHAR, median_household_income VARCHAR), Which County has a Median household income of $37,230? |
SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741 | CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR), Which Population has a County of mississippi, and a Number of households smaller than 17,741? |
SELECT AVG(height) FROM table_name_27 WHERE position = "pf" AND year_born__age_ = "april 1, 1981 (age32)" | CREATE TABLE table_name_27 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR), Count the average Height which has a Position of pf, and a Year born (Age) on april 1, 1981 (age32)? |
SELECT SUM(height) FROM table_name_50 WHERE position = "c" AND player = "yiannis bourousis" | CREATE TABLE table_name_50 (height INTEGER, position VARCHAR, player VARCHAR), Which Height has a Position of c, and a Player of yiannis bourousis? |
SELECT outcome FROM table_name_61 WHERE score_in_the_final = "1β6, 6β4, 7β5" | CREATE TABLE table_name_61 (outcome VARCHAR, score_in_the_final VARCHAR), Which Outcome has a Score in the final of 1β6, 6β4, 7β5? |
SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4β6, 5β7" | CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR), Which Outcome has a Score in the final of 4β6, 5β7? |
SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina" | CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR), Which Opponents in the final has a Partner of olga lugina? |
SELECT outcome FROM table_name_57 WHERE score_in_the_final = "3β6, 1β6" | CREATE TABLE table_name_57 (outcome VARCHAR, score_in_the_final VARCHAR), Which Outcome has a Score in the final of 3β6, 1β6? |
SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890 | CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR), What rank is He Yingqin who was born before 1890? |
SELECT death FROM table_name_74 WHERE birth = 1873 AND rank > 28 | CREATE TABLE table_name_74 (death VARCHAR, birth VARCHAR, rank VARCHAR), What year is the death for a birth of 1873 and higher than rank 28? |
SELECT name FROM table_name_6 WHERE death = "2001" | CREATE TABLE table_name_6 (name VARCHAR, death VARCHAR), What is the name with a death in 2001? |
SELECT 1 AS st_round FROM table_name_91 WHERE team_1 = "ecac chaumont (d2)" | CREATE TABLE table_name_91 (team_1 VARCHAR), What is the 1st round result for ECAC Chaumont (D2) as team 1? |
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)" | CREATE TABLE table_name_21 (team_1 VARCHAR, team_2 VARCHAR), Which team 1 played against team 2 of Tours FC (D2)? |
SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)" | CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR), Which is team 2 when team 1 is ECAC Chaumont (d2)? |
SELECT written_by FROM table_name_57 WHERE code = "1.2 1.3" | CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR), Which Written by has a Code of 1.2 1.3? |
SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298 | CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR), What is the highest crude death rate when deaths are 3 433 and average population is greater than 298? |
SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = "4 686" | CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR), How many live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686? |
SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376" | CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR), What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376? |
SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9 | CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR), What is the average population when deaths are 3 557 and crude death date is less than 11.9? |
SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns" | CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR), In what week(s) did the Broncos go up against the Cleveland Browns? |
SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994" | CREATE TABLE table_name_78 (week INTEGER, date VARCHAR), What week was the December 24, 1994 game? |
SELECT nationality FROM table_name_98 WHERE round < 3 | CREATE TABLE table_name_98 (nationality VARCHAR, round INTEGER), Which Nationality has a Round smaller than 3? |
SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson" | CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, player VARCHAR), Which Position has a Round larger than 4, and a Player of patrick johnson? |
SELECT nationality FROM table_name_17 WHERE round = 4 | CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR), Which Nationality has a Round of 4? |
SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18" | CREATE TABLE table_name_48 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR), Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.