question stringlengths 12 244 | context stringlengths 27 489 | answer dict |
|---|---|---|
What is the sum of silver medals for the entry with rank 3 and a total of 4 medals? | CREATE TABLE table_name_43 (silver INTEGER, total VARCHAR, rank VARCHAR) | {
"SQL_Query": "SELECT SUM(silver) FROM table_name_43 WHERE total = 4 AND rank = \"3\""
} |
What season had a goal of 1? | CREATE TABLE table_name_98 (season VARCHAR, goals VARCHAR) | {
"SQL_Query": "SELECT season FROM table_name_98 WHERE goals = \"1\""
} |
What club was in Netherlands and had 22 goals? | CREATE TABLE table_name_82 (club VARCHAR, country VARCHAR, goals VARCHAR) | {
"SQL_Query": "SELECT club FROM table_name_82 WHERE country = \"netherlands\" AND goals = \"22\""
} |
What season had Belgium and 1 goal? | CREATE TABLE table_name_29 (season VARCHAR, country VARCHAR, goals VARCHAR) | {
"SQL_Query": "SELECT season FROM table_name_29 WHERE country = \"belgium\" AND goals = \"1\""
} |
Which Year has a Category of best film? | CREATE TABLE table_name_66 (year INTEGER, category VARCHAR) | {
"SQL_Query": "SELECT MAX(year) FROM table_name_66 WHERE category = \"best film\""
} |
Who is the incumbent from the democratic party in the washington 7 district? | CREATE TABLE table_name_35 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | {
"SQL_Query": "SELECT incumbent FROM table_name_35 WHERE party = \"democratic\" AND district = \"washington 7\""
} |
When was the earliest incumbent dave reichert was first elected? | CREATE TABLE table_name_86 (first_elected INTEGER, incumbent VARCHAR) | {
"SQL_Query": "SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = \"dave reichert\""
} |
What is the total of the first elected year of incumbent norm dicks? | CREATE TABLE table_name_29 (first_elected VARCHAR, incumbent VARCHAR) | {
"SQL_Query": "SELECT COUNT(first_elected) FROM table_name_29 WHERE incumbent = \"norm dicks\""
} |
What is the total of the first elected year of the incumbent from the washington 8 district? | CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR) | {
"SQL_Query": "SELECT COUNT(first_elected) FROM table_name_91 WHERE district = \"washington 8\""
} |
WHAT IS THE START THAT HAS A FINISH BIGGER THAN 3, FROM FORD, AFTER 1969? | CREATE TABLE table_name_83 (start INTEGER, year VARCHAR, finish VARCHAR, manufacturer VARCHAR) | {
"SQL_Query": "SELECT MAX(start) FROM table_name_83 WHERE finish > 3 AND manufacturer = \"ford\" AND year > 1969"
} |
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35? | CREATE TABLE table_name_5 (manufacturer VARCHAR, finish VARCHAR, team VARCHAR, year VARCHAR, start VARCHAR) | {
"SQL_Query": "SELECT manufacturer FROM table_name_5 WHERE year > 1966 AND start < 5 AND team = \"wood\" AND finish = 35"
} |
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969? | CREATE TABLE table_name_6 (finish VARCHAR, start VARCHAR, year VARCHAR) | {
"SQL_Query": "SELECT COUNT(finish) FROM table_name_6 WHERE start < 20 AND year = 1969"
} |
What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is "Benzodiazepines"? | CREATE TABLE table_name_69 (pleasure VARCHAR, psychological_dependence VARCHAR, drug VARCHAR) | {
"SQL_Query": "SELECT COUNT(pleasure) FROM table_name_69 WHERE psychological_dependence > 1.9 AND drug = \"benzodiazepines\""
} |
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8? | CREATE TABLE table_name_55 (psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR) | {
"SQL_Query": "SELECT MAX(psychological_dependence) FROM table_name_55 WHERE pleasure < 2.3 AND drug = \"cannabis\" AND physical_dependence < 0.8"
} |
What is the average Mean, when Drug is "Alcohol", and when Psychological Dependence is greater than 1.9? | CREATE TABLE table_name_98 (mean INTEGER, drug VARCHAR, psychological_dependence VARCHAR) | {
"SQL_Query": "SELECT AVG(mean) FROM table_name_98 WHERE drug = \"alcohol\" AND psychological_dependence > 1.9"
} |
What is the total number of Psychological Dependence, when Pleasure is "2.3", and when Mean is less than 1.9300000000000002? | CREATE TABLE table_name_91 (psychological_dependence VARCHAR, pleasure VARCHAR, mean VARCHAR) | {
"SQL_Query": "SELECT COUNT(psychological_dependence) FROM table_name_91 WHERE pleasure = 2.3 AND mean < 1.9300000000000002"
} |
What is the sum of Pleasure, when Drug is "LSD", and when Psychological Dependence is greater than 1.1? | CREATE TABLE table_name_57 (pleasure INTEGER, drug VARCHAR, psychological_dependence VARCHAR) | {
"SQL_Query": "SELECT SUM(pleasure) FROM table_name_57 WHERE drug = \"lsd\" AND psychological_dependence > 1.1"
} |
What Country's team is Rajasthan Royals at the 2008 Indian Premier League? | CREATE TABLE table_name_87 (country VARCHAR, domestic_tournament VARCHAR, team VARCHAR) | {
"SQL_Query": "SELECT country FROM table_name_87 WHERE domestic_tournament = \"2008 indian premier league\" AND team = \"rajasthan royals\""
} |
What is the Domestic Tournament with Chennai Super Kings Team? | CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR) | {
"SQL_Query": "SELECT domestic_tournament FROM table_name_42 WHERE team = \"chennai super kings\""
} |
What is the Dolphins Group? | CREATE TABLE table_name_42 (group VARCHAR, team VARCHAR) | {
"SQL_Query": "SELECT group FROM table_name_42 WHERE team = \"dolphins\""
} |
Who is the player that won in the year 1978? | CREATE TABLE table_name_81 (player VARCHAR, year_s__won VARCHAR) | {
"SQL_Query": "SELECT player FROM table_name_81 WHERE year_s__won = \"1978\""
} |
What is the Country of the Player with a Score of 73-71-76-70=290? | CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR) | {
"SQL_Query": "SELECT country FROM table_name_58 WHERE score = 73 - 71 - 76 - 70 = 290"
} |
What is Lawson Little's Money ($) amount? | CREATE TABLE table_name_30 (money___$__ VARCHAR, player VARCHAR) | {
"SQL_Query": "SELECT money___$__ FROM table_name_30 WHERE player = \"lawson little\""
} |
What is the Money ($) amount of the Player with a To par of e? | CREATE TABLE table_name_2 (money___$__ VARCHAR, to_par VARCHAR) | {
"SQL_Query": "SELECT money___$__ FROM table_name_2 WHERE to_par = \"e\""
} |
What Country has a Player with Playoff Money with a Score of 72-69-73-73=287? | CREATE TABLE table_name_8 (country VARCHAR, money___$__ VARCHAR, score VARCHAR) | {
"SQL_Query": "SELECT country FROM table_name_8 WHERE money___$__ = \"playoff\" AND score = 72 - 69 - 73 - 73 = 287"
} |
What is Ben Hogan's Place? | CREATE TABLE table_name_25 (place VARCHAR, player VARCHAR) | {
"SQL_Query": "SELECT place FROM table_name_25 WHERE player = \"ben hogan\""
} |
What is the Place of the Player with a Score of 73-75-71-73=292? | CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR) | {
"SQL_Query": "SELECT place FROM table_name_32 WHERE score = 73 - 75 - 71 - 73 = 292"
} |
How many byes when there are 11 wins and fewer than 5 losses? | CREATE TABLE table_name_63 (byes INTEGER, wins VARCHAR, losses VARCHAR) | {
"SQL_Query": "SELECT SUM(byes) FROM table_name_63 WHERE wins = 11 AND losses < 5"
} |
How many losses when there are less than 0 wins? | CREATE TABLE table_name_90 (losses VARCHAR, wins INTEGER) | {
"SQL_Query": "SELECT COUNT(losses) FROM table_name_90 WHERE wins < 0"
} |
What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd? | CREATE TABLE table_name_83 (against INTEGER, central_murray VARCHAR, losses VARCHAR) | {
"SQL_Query": "SELECT MAX(against) FROM table_name_83 WHERE central_murray = \"nyah nyah west utd\" AND losses > 11"
} |
What is the To par of the player with Money of 7,750 or more? | CREATE TABLE table_name_19 (to_par VARCHAR, money___£__ INTEGER) | {
"SQL_Query": "SELECT to_par FROM table_name_19 WHERE money___£__ > 7 OFFSET 750"
} |
who is the provider when up (up to kbit/s) is 1180? | CREATE TABLE table_name_10 (provider VARCHAR, up__up_to_kbit_s_ VARCHAR) | {
"SQL_Query": "SELECT provider FROM table_name_10 WHERE up__up_to_kbit_s_ = 1180"
} |
what is the highest down (up to kbits/s) when resale is yes, up ( up to kbit/s) is 1180 and provider is 1&1? | CREATE TABLE table_name_26 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, resale VARCHAR, up__up_to_kbit_s_ VARCHAR) | {
"SQL_Query": "SELECT MAX(down__up_to_kbit_s_) FROM table_name_26 WHERE resale = \"yes\" AND up__up_to_kbit_s_ = 1180 AND provider = \"1&1\""
} |
what is the resale when the down (up to kbit/s) is 24000? | CREATE TABLE table_name_41 (resale VARCHAR, down__up_to_kbit_s_ VARCHAR) | {
"SQL_Query": "SELECT resale FROM table_name_41 WHERE down__up_to_kbit_s_ = 24000"
} |
What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? | CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR) | {
"SQL_Query": "SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = \"willy.tel\" AND up__up_to_kbit_s_ > 1984"
} |
How many totals have a Gold larger than 0, and a Bronze smaller than 0? | CREATE TABLE table_name_62 (total VARCHAR, gold VARCHAR, bronze VARCHAR) | {
"SQL_Query": "SELECT COUNT(total) FROM table_name_62 WHERE gold > 0 AND bronze < 0"
} |
Which Total has a Bronze larger than 1, and a Gold larger than 0? | CREATE TABLE table_name_57 (total INTEGER, bronze VARCHAR, gold VARCHAR) | {
"SQL_Query": "SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0"
} |
What country is Eugene McDowell from? | CREATE TABLE table_name_22 (nationality VARCHAR, player VARCHAR) | {
"SQL_Query": "SELECT nationality FROM table_name_22 WHERE player = \"eugene mcdowell\""
} |
When was Mario Elie picked in a round before 7? | CREATE TABLE table_name_75 (pick INTEGER, player VARCHAR, round VARCHAR) | {
"SQL_Query": "SELECT MAX(pick) FROM table_name_75 WHERE player = \"mario elie\" AND round < 7"
} |
In what round did someone from North Carolina State get picked larger than 91? | CREATE TABLE table_name_99 (round VARCHAR, school_club_team VARCHAR, pick VARCHAR) | {
"SQL_Query": "SELECT COUNT(round) FROM table_name_99 WHERE school_club_team = \"north carolina state\" AND pick > 91"
} |
Which Results have a Category of the best new actor in lead role(female)? | CREATE TABLE table_name_32 (results VARCHAR, category VARCHAR) | {
"SQL_Query": "SELECT results FROM table_name_32 WHERE category = \"best new actor in lead role(female)\""
} |
What was the category in 2008? | CREATE TABLE table_name_72 (category VARCHAR, year VARCHAR) | {
"SQL_Query": "SELECT category FROM table_name_72 WHERE year = 2008"
} |
Which Character has a Category of favourite naya sadasya? | CREATE TABLE table_name_68 (character VARCHAR, category VARCHAR) | {
"SQL_Query": "SELECT character FROM table_name_68 WHERE category = \"favourite naya sadasya\""
} |
Which Show has an Award of indian television academy awards? | CREATE TABLE table_name_77 (show VARCHAR, award VARCHAR) | {
"SQL_Query": "SELECT show FROM table_name_77 WHERE award = \"indian television academy awards\""
} |
What award was won after 2008? | CREATE TABLE table_name_77 (award VARCHAR, year INTEGER) | {
"SQL_Query": "SELECT award FROM table_name_77 WHERE year > 2008"
} |
On what Date did the massacre result with 21 Injured? | CREATE TABLE table_name_73 (date VARCHAR, injured VARCHAR) | {
"SQL_Query": "SELECT date FROM table_name_73 WHERE injured = \"21\""
} |
What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"? | CREATE TABLE table_name_20 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) | {
"SQL_Query": "SELECT city___state FROM table_name_20 WHERE winner = \"rohan onslow\" AND circuit = \"oran park raceway\""
} |
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"? | CREATE TABLE table_name_92 (winner VARCHAR, city___state VARCHAR, team VARCHAR) | {
"SQL_Query": "SELECT winner FROM table_name_92 WHERE city___state = \"mallala , south australia\" AND team = \"elfin sports cars\""
} |
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"? | CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR) | {
"SQL_Query": "SELECT circuit FROM table_name_54 WHERE team = \"r.j.macarthur onslow\" AND city___state = \"sydney , new south wales\""
} |
What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"? | CREATE TABLE table_name_29 (winner VARCHAR, team VARCHAR, circuit VARCHAR) | {
"SQL_Query": "SELECT winner FROM table_name_29 WHERE team = \"r.j.macarthur onslow\" AND circuit = \"oran park raceway\""
} |
What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"? | CREATE TABLE table_name_19 (date VARCHAR, city___state VARCHAR, team VARCHAR) | {
"SQL_Query": "SELECT date FROM table_name_19 WHERE city___state = \"mallala , south australia\" AND team = \"r.j.macarthur onslow\""
} |
What is Winner, when Date is "20 August"? | CREATE TABLE table_name_50 (winner VARCHAR, date VARCHAR) | {
"SQL_Query": "SELECT winner FROM table_name_50 WHERE date = \"20 august\""
} |
What actor was nominated for best actress? | CREATE TABLE table_name_45 (actor VARCHAR, result VARCHAR, category VARCHAR) | {
"SQL_Query": "SELECT actor FROM table_name_45 WHERE result = \"nominated\" AND category = \"best actress\""
} |
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category? | CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR) | {
"SQL_Query": "SELECT year FROM table_name_80 WHERE film = \"bullets over broadway\" AND category = \"best supporting actress\" AND actor = \"jennifer tilly\""
} |
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989? | CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR) | {
"SQL_Query": "SELECT result FROM table_name_78 WHERE year > 1989 AND category = \"best supporting actress\" AND actor = \"samantha morton\""
} |
What film was Dianne Wiest in? | CREATE TABLE table_name_56 (film VARCHAR, actor VARCHAR) | {
"SQL_Query": "SELECT film FROM table_name_56 WHERE actor = \"dianne wiest\""
} |
Which class has fewer than 10 and number(s) names? | CREATE TABLE table_name_84 (class VARCHAR, quantity VARCHAR, number_s_ VARCHAR) | {
"SQL_Query": "SELECT class FROM table_name_84 WHERE quantity < 10 AND number_s_ = \"names\""
} |
What is the type with a quantity of fewer than 6 and number(s) 5201? | CREATE TABLE table_name_88 (type VARCHAR, quantity VARCHAR, number_s_ VARCHAR) | {
"SQL_Query": "SELECT type FROM table_name_88 WHERE quantity < 6 AND number_s_ = \"5201\""
} |
How many byes were then when there were less than 737 against? | CREATE TABLE table_name_13 (byes INTEGER, against INTEGER) | {
"SQL_Query": "SELECT SUM(byes) FROM table_name_13 WHERE against < 737"
} |
How many wins were there when the byes were more than 3? | CREATE TABLE table_name_27 (wins VARCHAR, byes INTEGER) | {
"SQL_Query": "SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3"
} |
How many wins were there when draws were more than 0? | CREATE TABLE table_name_5 (wins INTEGER, draws INTEGER) | {
"SQL_Query": "SELECT MIN(wins) FROM table_name_5 WHERE draws > 0"
} |
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes? | CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR) | {
"SQL_Query": "SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = \"bahgallah\" AND byes > 3"
} |
What is Date, when Opponent in Final is "Guy Forget"? | CREATE TABLE table_name_64 (date VARCHAR, opponent_in_final VARCHAR) | {
"SQL_Query": "SELECT date FROM table_name_64 WHERE opponent_in_final = \"guy forget\""
} |
What is Opponent in Final, when Date is "13 January 1992"? | CREATE TABLE table_name_12 (opponent_in_final VARCHAR, date VARCHAR) | {
"SQL_Query": "SELECT opponent_in_final FROM table_name_12 WHERE date = \"13 january 1992\""
} |
What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"? | CREATE TABLE table_name_31 (opponent_in_final VARCHAR, surface VARCHAR, date VARCHAR) | {
"SQL_Query": "SELECT opponent_in_final FROM table_name_31 WHERE surface = \"hard\" AND date = \"13 january 1992\""
} |
What is the Height of the Player with a Date of Birth of 1979-06-12? | CREATE TABLE table_name_23 (height VARCHAR, date_of_birth VARCHAR) | {
"SQL_Query": "SELECT height FROM table_name_23 WHERE date_of_birth = \"1979-06-12\""
} |
What is the Height of the Player with a Date of Birth of 1982-07-05? | CREATE TABLE table_name_19 (height VARCHAR, date_of_birth VARCHAR) | {
"SQL_Query": "SELECT height FROM table_name_19 WHERE date_of_birth = \"1982-07-05\""
} |
What is the Height of the Player with a Date of Birth of 1982-07-05? | CREATE TABLE table_name_38 (height VARCHAR, date_of_birth VARCHAR) | {
"SQL_Query": "SELECT height FROM table_name_38 WHERE date_of_birth = \"1982-07-05\""
} |
What is the Weight of the Player with a Date of Birth of 1979-09-26? | CREATE TABLE table_name_54 (weight VARCHAR, date_of_birth VARCHAR) | {
"SQL_Query": "SELECT weight FROM table_name_54 WHERE date_of_birth = \"1979-09-26\""
} |
What is Elise Norwood's Pos.? | CREATE TABLE table_name_41 (pos VARCHAR, name VARCHAR) | {
"SQL_Query": "SELECT pos FROM table_name_41 WHERE name = \"elise norwood\""
} |
What is the Club of the Player with a Date of Birth of 1977-02-03? | CREATE TABLE table_name_61 (club VARCHAR, date_of_birth VARCHAR) | {
"SQL_Query": "SELECT club FROM table_name_61 WHERE date_of_birth = \"1977-02-03\""
} |
What home has 1-5 as the away? | CREATE TABLE table_name_69 (home VARCHAR, away VARCHAR) | {
"SQL_Query": "SELECT home FROM table_name_69 WHERE away = \"1-5\""
} |
What league has 2-3 as the away? | CREATE TABLE table_name_18 (league VARCHAR, away VARCHAR) | {
"SQL_Query": "SELECT league FROM table_name_18 WHERE away = \"2-3\""
} |
What away has 1-4 as the home? | CREATE TABLE table_name_82 (away VARCHAR, home VARCHAR) | {
"SQL_Query": "SELECT away FROM table_name_82 WHERE home = \"1-4\""
} |
What teams has 1-5 as the away? | CREATE TABLE table_name_96 (teams VARCHAR, away VARCHAR) | {
"SQL_Query": "SELECT teams FROM table_name_96 WHERE away = \"1-5\""
} |
What Date had a Series of ATCC Round 6? | CREATE TABLE table_name_28 (date VARCHAR, series VARCHAR) | {
"SQL_Query": "SELECT date FROM table_name_28 WHERE series = \"atcc round 6\""
} |
Who was the Winner in the AMC Round 4 at Lakeside International Raceway? | CREATE TABLE table_name_96 (winner VARCHAR, circuit VARCHAR, series VARCHAR) | {
"SQL_Query": "SELECT winner FROM table_name_96 WHERE circuit = \"lakeside international raceway\" AND series = \"amc round 4\""
} |
What is the week 15 result for the team that had a week 9 result of Washington (6-1)? | CREATE TABLE table_name_98 (week_15__final__dec_9 VARCHAR, week_9_oct_29 VARCHAR) | {
"SQL_Query": "SELECT week_15__final__dec_9 FROM table_name_98 WHERE week_9_oct_29 = \"washington (6-1)\""
} |
What is the week 10 result for the tean when the week 15 result is Illinois (10-1)? | CREATE TABLE table_name_71 (week_10_nov_5 VARCHAR, week_15__final__dec_9 VARCHAR) | {
"SQL_Query": "SELECT week_10_nov_5 FROM table_name_71 WHERE week_15__final__dec_9 = \"illinois (10-1)\""
} |
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina? | CREATE TABLE table_name_13 (week_10_nov_5 VARCHAR, week_9_oct_29 VARCHAR) | {
"SQL_Query": "SELECT week_10_nov_5 FROM table_name_13 WHERE week_9_oct_29 = \"dropped: maryland south carolina\""
} |
What is the week 13 result where the week 14 resulted in Maryland (10-1)? | CREATE TABLE table_name_18 (week_13_nov_26 VARCHAR, week_14_dec_3 VARCHAR) | {
"SQL_Query": "SELECT week_13_nov_26 FROM table_name_18 WHERE week_14_dec_3 = \"maryland (10-1)\""
} |
What happened in week 14 when week 11's result was Michigan (7-2)? | CREATE TABLE table_name_17 (week_14_dec_3 VARCHAR, week_11_nov_12 VARCHAR) | {
"SQL_Query": "SELECT week_14_dec_3 FROM table_name_17 WHERE week_11_nov_12 = \"michigan (7-2)\""
} |
What happened in week 12 when week 13 resulted in Tennessee (9-1)? | CREATE TABLE table_name_20 (week_12_nov_19 VARCHAR, week_13_nov_26 VARCHAR) | {
"SQL_Query": "SELECT week_12_nov_19 FROM table_name_20 WHERE week_13_nov_26 = \"tennessee (9-1)\""
} |
What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0? | CREATE TABLE table_name_16 (bronze INTEGER, total VARCHAR, gold VARCHAR) | {
"SQL_Query": "SELECT MIN(bronze) FROM table_name_16 WHERE total < 10 AND gold < 0"
} |
With 8 as the rank, and a total of more than 2 medals what is the average bronze medals? | CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, total VARCHAR) | {
"SQL_Query": "SELECT AVG(bronze) FROM table_name_34 WHERE rank = \"8\" AND total > 2"
} |
What is the maximum total medals when the rank is 8? | CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR) | {
"SQL_Query": "SELECT MAX(total) FROM table_name_64 WHERE rank = \"8\""
} |
What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60? | CREATE TABLE table_name_25 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR) | {
"SQL_Query": "SELECT MAX(gold) FROM table_name_25 WHERE bronze < 49 AND silver = 22 AND total < 60"
} |
When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals? | CREATE TABLE table_name_89 (bronze INTEGER, rank VARCHAR, gold VARCHAR) | {
"SQL_Query": "SELECT AVG(bronze) FROM table_name_89 WHERE rank = \"total\" AND gold > 59"
} |
What is the smallest number of medals a country with more than 14 silver has? | CREATE TABLE table_name_78 (total INTEGER, silver INTEGER) | {
"SQL_Query": "SELECT MIN(total) FROM table_name_78 WHERE silver > 14"
} |
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals? | CREATE TABLE table_name_67 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) | {
"SQL_Query": "SELECT SUM(rank) FROM table_name_67 WHERE gold > 2 AND total < 31 AND silver < 5"
} |
WHat was the score for Phil Mickelson when he placed t3? | CREATE TABLE table_name_60 (score VARCHAR, place VARCHAR, player VARCHAR) | {
"SQL_Query": "SELECT score FROM table_name_60 WHERE place = \"t3\" AND player = \"phil mickelson\""
} |
What place did the golfer take whose country is South Africa? | CREATE TABLE table_name_72 (place VARCHAR, country VARCHAR) | {
"SQL_Query": "SELECT place FROM table_name_72 WHERE country = \"south africa\""
} |
What was the result of the game played at Jeppesen Stadium? | CREATE TABLE table_name_95 (result VARCHAR, game_site VARCHAR) | {
"SQL_Query": "SELECT result FROM table_name_95 WHERE game_site = \"jeppesen stadium\""
} |
What week was the game played on November 12, 1961, with an attendance of 7,859 played? | CREATE TABLE table_name_71 (week INTEGER, date VARCHAR, attendance VARCHAR) | {
"SQL_Query": "SELECT MIN(week) FROM table_name_71 WHERE date = \"november 12, 1961\" AND attendance < 7 OFFSET 859"
} |
What decade is the artist the replacements? | CREATE TABLE table_name_92 (decade VARCHAR, artist VARCHAR) | {
"SQL_Query": "SELECT decade FROM table_name_92 WHERE artist = \"the replacements\""
} |
What is the number of households in the county with median income of $65,240 and population greater than 744,344? | CREATE TABLE table_name_76 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR) | {
"SQL_Query": "SELECT SUM(number_of_households) FROM table_name_76 WHERE median_family_income = \"$65,240\" AND population > 744 OFFSET 344"
} |
What is the population of Tioga county? | CREATE TABLE table_name_93 (population VARCHAR, county VARCHAR) | {
"SQL_Query": "SELECT population FROM table_name_93 WHERE county = \"tioga\""
} |
Which Constructor has Laps larger than 9, and a Grid smaller than 2? | CREATE TABLE table_name_7 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | {
"SQL_Query": "SELECT constructor FROM table_name_7 WHERE laps > 9 AND grid < 2"
} |
What's filiberto rivera's height? | CREATE TABLE table_name_54 (height VARCHAR, player VARCHAR) | {
"SQL_Query": "SELECT COUNT(height) FROM table_name_54 WHERE player = \"filiberto rivera\""
} |
Who has a position of sg? | CREATE TABLE table_name_86 (player VARCHAR, position VARCHAR) | {
"SQL_Query": "SELECT player FROM table_name_86 WHERE position = \"sg\""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.