output stringlengths 18 557 | instruction stringlengths 22 540 |
|---|---|
SELECT AVG(tries) FROM table_name_60 WHERE player = "nathan mcavoy" | CREATE TABLE table_name_60 (tries INTEGER, player VARCHAR), What is the average number of Tries for Nathan McAvoy? |
SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28 | CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR), What is the average number of Tries with less than 28 Points for Mike Forshaw? |
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)" | CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR), What position did the player from the saskatchewan roughriders (via toronto) play? |
SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard" | CREATE TABLE table_name_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR), What numbered pick was dominic picard, ol, selected? |
SELECT date FROM table_name_3 WHERE home_team = "north melbourne" | CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR), Name the date which has a home team of north melbourne |
SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy" | CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR), Name the away team for home team of fitzroy |
SELECT away_team AS score FROM table_name_27 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR), What was the score for the away team that played at Glenferrie Oval? |
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151 | CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER), When was the attendance at a venue bigger than 35,151? |
SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = 12 | CREATE TABLE table_name_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR), Tell me the total number of Laps for Qual being larger than 142.81 with Grid of 12 |
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32 | CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR), Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32 |
SELECT payload__kg_ FROM table_name_99 WHERE in_service = "2011" | CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR), Tell me the payload that has an In service for 2011 |
SELECT dimension__m_ FROM table_name_57 WHERE range__km_ = "8,000 – 10,000" | CREATE TABLE table_name_57 (dimension__m_ VARCHAR, range__km_ VARCHAR), Tell me the dimension that has a range of 8,000 – 10,000 |
SELECT project FROM table_name_92 WHERE missile = "agni-iii" | CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR), Name the project which has a missle of agni-iii |
SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = "12,000" | CREATE TABLE table_name_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR), Name the payload that has a weight of 12,000 |
SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000" | CREATE TABLE table_name_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR), Name the typ for project of igmdp and weight of 16,000 |
SELECT record FROM table_name_43 WHERE leading_scorer = "andrew bogut (21)" | CREATE TABLE table_name_43 (record VARCHAR, leading_scorer VARCHAR), What is the record of the game with Andrew Bogut (21) as the leading scorer? |
SELECT home FROM table_name_5 WHERE date = "26 february 2008" | CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR), Who was the home team of the game on 26 February 2008? |
SELECT leading_scorer FROM table_name_31 WHERE date = "9 february 2008" | CREATE TABLE table_name_31 (leading_scorer VARCHAR, date VARCHAR), Who is the leading scorer of the game on 9 February 2008? |
SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 2008" | CREATE TABLE table_name_52 (leading_scorer VARCHAR, date VARCHAR), Who is the leading scorer of the game on 13 February 2008? |
SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)" | CREATE TABLE table_name_97 (visitor VARCHAR, leading_scorer VARCHAR), Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer? |
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13 | CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR), What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has? |
SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13 | CREATE TABLE table_name_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR), What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has? |
SELECT SUM(top_25) FROM table_name_93 WHERE tournament = "u.s. open" AND events < 7 | CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR), What is the top-25 of the U.S. open, which has less than 7 events? |
SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 5 | CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR), How many events does the tournament with a top-10 of 2 and more than 5 cuts have? |
SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness" | CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR), What Pick number is Rich Burtness? |
SELECT position FROM table_name_77 WHERE school = "kentucky state" | CREATE TABLE table_name_77 (position VARCHAR, school VARCHAR), What position is Kentucky State sitting in? |
SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = "1300" | CREATE TABLE table_name_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR), What is the density (hab/ km²) when the altitude m is 1300? |
SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "envigado" | CREATE TABLE table_name_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR), What is the Distance Medellín Downtown (km) when the municipalities Envigado? |
SELECT density__hab__km²__ FROM table_name_22 WHERE extension_km² = "380,64" | CREATE TABLE table_name_22 (density__hab__km²__ VARCHAR, extension_km² VARCHAR), What is the density (hab/ km²) when the extension km² is 380,64? |
SELECT population__hab_ FROM table_name_10 WHERE distance_medellín_downtown___km__ = "* dane" | CREATE TABLE table_name_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR), What is the population (hab) when the distance medellin downtown (km) is * dane? |
SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*" | CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR), What is the Density (hab/ km²) when the population (hab) is 58 414*? |
SELECT altitude_m FROM table_name_10 WHERE distance_medellín_downtown___km__ = "42" | CREATE TABLE table_name_10 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR), What is the altitude for the distance medellin downtown (km) is 42? |
SELECT MAX(quantity) FROM table_name_49 WHERE sht_nos = "5" | CREATE TABLE table_name_49 (quantity INTEGER, sht_nos VARCHAR), How many have SHT number 5? |
SELECT gwr_nos FROM table_name_56 WHERE quantity = 4 | CREATE TABLE table_name_56 (gwr_nos VARCHAR, quantity VARCHAR), What GWR is associated with 4? |
SELECT score FROM table_name_50 WHERE date = "march 11" | CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR), What was the score on march 11? |
SELECT nationality FROM table_name_79 WHERE position = "c" | CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR), What is the nationality of the C? |
SELECT team FROM table_name_82 WHERE college = "santa clara" | CREATE TABLE table_name_82 (team VARCHAR, college VARCHAR), What team has a player from Santa Clara? |
SELECT round FROM table_name_27 WHERE college = "minnesota" | CREATE TABLE table_name_27 (round VARCHAR, college VARCHAR), What round did the College of Minnesota pick? |
SELECT team FROM table_name_27 WHERE pick = "2" | CREATE TABLE table_name_27 (team VARCHAR, pick VARCHAR), What team had Pick 2? |
SELECT nationality FROM table_name_6 WHERE college = "cincinnati" | CREATE TABLE table_name_6 (nationality VARCHAR, college VARCHAR), What nationality is the player from the College of Cincinnati? |
SELECT player FROM table_name_84 WHERE college = "western washington" | CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR), Which player went to the college of Western Washington? |
SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3 | CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR), How much money did the player ranked above 3 with under 28 events earn? |
SELECT MIN(wins) FROM table_name_17 WHERE rank > 4 | CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER), What is the low win total for players ranked below 4? |
SELECT name FROM table_name_28 WHERE percentage = "0.59%" | CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR), Which name has a percentage of 0.59%? |
SELECT COUNT(total) FROM table_name_24 WHERE percentage = "12.03%" | CREATE TABLE table_name_24 (total VARCHAR, percentage VARCHAR), What is the exact number of Total that has a percentage of precisely 12.03%? |
SELECT result FROM table_name_55 WHERE date = "1990-11-04" | CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR), What was the result on 1990-11-04? |
SELECT opponent FROM table_name_34 WHERE week = 3 | CREATE TABLE table_name_34 (opponent VARCHAR, week VARCHAR), Who was the opponent in week 3? |
SELECT game_site FROM table_name_26 WHERE date = "1990-11-18" | CREATE TABLE table_name_26 (game_site VARCHAR, date VARCHAR), Where was the game on 1990-11-18? |
SELECT AVG(laps) FROM table_name_69 WHERE grid = 8 | CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR), What is the average number of laps for grid 8? |
SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912" | CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR), Who built the car that has a Time/Retired of 1:34:12.912? |
SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150 | CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR), What is the rd number where the reg GP is 0 and the pick is 150? |
SELECT award FROM table_name_80 WHERE result = "nominated" AND organization = "54th the television academy drama awards" | CREATE TABLE table_name_80 (award VARCHAR, result VARCHAR, organization VARCHAR), Where Result is nominated and Organization is 54th the television academy drama awards, what is the award? |
SELECT organization FROM table_name_82 WHERE work = "veterinarian dolittle" | CREATE TABLE table_name_82 (organization VARCHAR, work VARCHAR), Where Work is veterinarian dolittle, what is the Organization? |
SELECT work FROM table_name_19 WHERE award = "newcomer actress" | CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR), Where Award is newcomer actress, what is the work? |
SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss" | CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR), Where Award is best actress and Work is first kiss, what is the average Year? |
SELECT round FROM table_name_58 WHERE club = "maccabi haifa fc" | CREATE TABLE table_name_58 (round VARCHAR, club VARCHAR), What round did the maccabi haifa fc club have? |
SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc" | CREATE TABLE table_name_87 (competition VARCHAR, club VARCHAR), What competition did the maccabi haifa fc club play? |
SELECT record FROM table_name_57 WHERE date = "march 5" | CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR), What is the record of the game on March 5? |
SELECT home FROM table_name_66 WHERE visitor = "raptors" | CREATE TABLE table_name_66 (home VARCHAR, visitor VARCHAR), What is the home team of the game with the Raptors as the visitor team? |
SELECT competition FROM table_name_91 WHERE venue = "puskás ferenc stadium , budapest , hungary" AND score = "1–0" | CREATE TABLE table_name_91 (competition VARCHAR, venue VARCHAR, score VARCHAR), What competition was at puskás ferenc stadium , budapest , hungary, and a Score of 1–0? |
SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s" | CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR), Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s |
SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s" | CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR), Tell me the constellation which has a right ascension of 18h17m41.1s |
SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco" | CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR), What is the total number of Since with a Goals larger than 6, and a Name with deco? |
SELECT AVG(ends) FROM table_name_93 WHERE since = 2003 AND name = "márquez" | CREATE TABLE table_name_93 (ends INTEGER, since VARCHAR, name VARCHAR), What is the average Ends with a Since of 2003, and a Name with márquez? |
SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007 | CREATE TABLE table_name_58 (ends INTEGER, name VARCHAR, since VARCHAR), What is the sum of Ends with a Name of abidal, and has a Since larger than 2007? |
SELECT finish FROM table_name_35 WHERE record = "74-68" | CREATE TABLE table_name_35 (finish VARCHAR, record VARCHAR), Which finish has a Record of 74-68? |
SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th" | CREATE TABLE table_name_33 (year INTEGER, team VARCHAR, finish VARCHAR), What is the total of the year with a Team of johnson city yankees, and a Finish of 6th? |
SELECT record FROM table_name_43 WHERE team = "manchester yankees" | CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR), Which record has a Team of manchester yankees? |
SELECT organization FROM table_name_93 WHERE finish = "4th" | CREATE TABLE table_name_93 (organization VARCHAR, finish VARCHAR), Which organization has a Finish of 4th? |
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees" | CREATE TABLE table_name_61 (year VARCHAR, organization VARCHAR, team VARCHAR), Which year has an Organization of new york yankees, and a Team of johnson city yankees? |
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25 | CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR), Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25? |
SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23 | CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR), Which qual has rank of more than 28 and a grid number that is bigger than 23? |
SELECT SUM(qual) FROM table_name_57 WHERE grid = 24 | CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR), What is the total qual where the grid number is 24? |
SELECT suffix FROM table_name_73 WHERE group = "benzyl" | CREATE TABLE table_name_73 (suffix VARCHAR, group VARCHAR), What is the Suffix for the Group of Benzyl? |
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-" | CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR), Which Formula has a Prefix of alkyl-? |
SELECT home FROM table_name_28 WHERE decision = "ramo" AND visitor = "florida" | CREATE TABLE table_name_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR), Who was the Home team when the Visitor was Florida, with a Decision of Ramo? |
SELECT decision FROM table_name_53 WHERE visitor = "carolina" | CREATE TABLE table_name_53 (decision VARCHAR, visitor VARCHAR), What was the Decision when the Visitor was Carolina? |
SELECT away_team FROM table_name_30 WHERE venue = "windy hill" | CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR), Which away team was at windy hill? |
SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND year = 2007 | CREATE TABLE table_name_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR), For the category of most popular star with a result of won for 2007, what was the award? |
SELECT result FROM table_name_58 WHERE year > 2006 AND nominated_work = "the king and i" | CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR, nominated_work VARCHAR), What is the result for the king and I after 2006? |
SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro" | CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR), What is the main color(s) for marlboro? |
SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = "red" AND year > 1991 | CREATE TABLE table_name_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR), What is the additional major sponsor(s) that has red as its main color after 1991? |
SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of edward viii" | CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR), Who was the brother of Edward VIII? |
SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591" | CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR), How many laps are associated with a time of + 1:39.591? |
SELECT AVG(laps) FROM table_name_31 WHERE grid = 6 | CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR), What is the average number of laps for a grid of 6? |
SELECT data FROM table_name_41 WHERE percent_gain = "28.4%" | CREATE TABLE table_name_41 (data VARCHAR, percent_gain VARCHAR), Name the data with a percent gain of 28.4% |
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532 | CREATE TABLE table_name_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR), Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532? |
SELECT MIN(interview) FROM table_name_71 WHERE swimsuit < 9.322 AND evening_gown > 9.259 AND average = 9.321 | CREATE TABLE table_name_71 (interview INTEGER, average VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR), Which smallest interview number had a swimsuit stat of less than 9.322, an evening gown score of more than 9.259, and an average number of 9.321? |
SELECT MAX(average) FROM table_name_45 WHERE state = "texas" AND swimsuit > 8.839 | CREATE TABLE table_name_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR), What is the highest mean number for Texas when the swimsuit stat was more than 8.839? |
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686 | CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR), What is the mean evening gown number when the average is 8.686? |
SELECT COUNT(evening_gown) FROM table_name_80 WHERE state = "new jersey" AND interview < 9.344 | CREATE TABLE table_name_80 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR), What is the sum number of evening gown stats for New Jersey when the interview was less than 9.344? |
SELECT engine_s_ FROM table_name_41 WHERE year = 1991 | CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR), What engine was made in 1991? |
SELECT engine_s_ FROM table_name_7 WHERE year = 1992 | CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR), What engines have the year 1992? |
SELECT chassis FROM table_name_87 WHERE year = 1987 | CREATE TABLE table_name_87 (chassis VARCHAR, year VARCHAR), What chassis has the year 1987? |
SELECT AVG(points) FROM table_name_2 WHERE chassis = "lola lc88" | CREATE TABLE table_name_2 (points INTEGER, chassis VARCHAR), What is the average points for the chassis LOLA LC88? |
SELECT AVG(attendance) FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21" | CREATE TABLE table_name_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR), what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21? |
SELECT score FROM table_name_47 WHERE time = "2:22" | CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR), what is the score when the time is 2:22? |
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR), how many games have a location of memorial stadium and a time of 2:27? |
SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 5 | CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR), what is the attendance on the date of october 16 and the game is more than 5? |
SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0" | CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR), What was the lowest attendance for a score of 5 - 0? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.