question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
Who received the bronze in 2011? | CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR) | SELECT bronze FROM table_name_71 WHERE year = "2011" |
What is the highest Rd that Tom Sneva had the pole position in? | CREATE TABLE table_10706961_2 (rd INTEGER, pole_position VARCHAR) | SELECT MAX(rd) FROM table_10706961_2 WHERE pole_position = "Tom Sneva" |
Show the average population of all counties. | CREATE TABLE county (Population INTEGER) | SELECT AVG(Population) FROM county |
For the Hockey East conference, what is the total number of win percentages when there are less than 4 bids? | CREATE TABLE table_name_93 (win__percentage VARCHAR, conference VARCHAR, _number_of_bids VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_93 WHERE conference = "hockey east" AND _number_of_bids < 4 |
Which method has a record of 4-0? | CREATE TABLE table_name_83 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_83 WHERE record = "4-0" |
What is the institution with the nickname seahawks? | CREATE TABLE table_261927_1 (institution VARCHAR, nickname VARCHAR) | SELECT institution FROM table_261927_1 WHERE nickname = "Seahawks" |
Which City or town has top division smaller than 40 and Gaziantepspor Club ? | CREATE TABLE table_name_70 (city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR) | SELECT city_or_town FROM table_name_70 WHERE number_of_seasons_in_top_division < 40 AND club = "gaziantepspor" |
What is the score of the away team when the home team is Essendon? | CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_12 WHERE home_team = "essendon" |
What model was released in 2005? | CREATE TABLE table_name_89 (model VARCHAR, released VARCHAR) | SELECT model FROM table_name_89 WHERE released = 2005 |
What is Winner, when Date is "20 August"? | CREATE TABLE table_name_50 (winner VARCHAR, date VARCHAR) | SELECT winner FROM table_name_50 WHERE date = "20 august" |
Which school was the drafted player from in a pick larger than 181? | CREATE TABLE table_name_27 (school VARCHAR, pick INTEGER) | SELECT school FROM table_name_27 WHERE pick > 181 |
What is the lowest grid with rider casey stoner and laps that are smaller than 27? | CREATE TABLE table_name_96 (grid INTEGER, rider VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_96 WHERE rider = "casey stoner" AND laps < 27 |
How many production codes had a total number in the season of 8? | CREATE TABLE table_27988382_1 (production_code VARCHAR, no_in_season VARCHAR) | SELECT COUNT(production_code) FROM table_27988382_1 WHERE no_in_season = 8 |
What is the Date of the Crystal Palace Away game? | CREATE TABLE table_name_33 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_33 WHERE away_team = "crystal palace" |
What is High Points, when Game is less than 82, when Location Attendance is "Quicken Loans Arena 20,562", and when High Rebounds is "Žydrūnas Ilgauskas (13)"? | CREATE TABLE table_name_19 (high_points VARCHAR, high_rebounds VARCHAR, game VARCHAR, location_attendance VARCHAR) | SELECT high_points FROM table_name_19 WHERE game < 82 AND location_attendance = "quicken loans arena 20,562" AND high_rebounds = "žydrūnas ilgauskas (13)" |
What is the number of finishes associated with 13 starts, more than 169 points, and 96 stage wins? | CREATE TABLE table_name_12 (finishes VARCHAR, stage_wins VARCHAR, starts VARCHAR, points VARCHAR) | SELECT finishes FROM table_name_12 WHERE starts = 13 AND points > 169 AND stage_wins = 96 |
Which status accompanies the score 21.5? | CREATE TABLE table_name_94 (status VARCHAR, score VARCHAR) | SELECT status FROM table_name_94 WHERE score = 21.5 |
WHAT IS THE SUM PLAYED WITH POINTS 1 OF 53, AND POSITION LARGER THAN 3? | CREATE TABLE table_name_81 (played INTEGER, points_1 VARCHAR, position VARCHAR) | SELECT SUM(played) FROM table_name_81 WHERE points_1 = "53" AND position > 3 |
What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? | CREATE TABLE table_18461045_1 (kentucky VARCHAR, michigan VARCHAR) | SELECT kentucky FROM table_18461045_1 WHERE michigan = "Grosse Pointe Farms-City LL Grosse Pointe Farms" |
What was the home team's record on September 30? | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_44 WHERE date = "september 30" |
List the snatch score and clean jerk score of body builders in ascending order of snatch score. | CREATE TABLE body_builder (Snatch VARCHAR, Clean_Jerk VARCHAR) | SELECT Snatch, Clean_Jerk FROM body_builder ORDER BY Snatch |
Name the catalogue for australia | CREATE TABLE table_name_53 (catalogue VARCHAR, region VARCHAR) | SELECT catalogue FROM table_name_53 WHERE region = "australia" |
What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs? | CREATE TABLE table_name_30 (crowd INTEGER, ground VARCHAR, home_team VARCHAR) | SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs" |
Which country had the swimsuit score 9.67? | CREATE TABLE table_11884814_3 (country VARCHAR, swimsuit VARCHAR) | SELECT country FROM table_11884814_3 WHERE swimsuit = "9.67" |
What is every date successor seated for the Virginia 11th District? | CREATE TABLE table_225199_4 (date_successor_seated VARCHAR, district VARCHAR) | SELECT date_successor_seated FROM table_225199_4 WHERE district = "Virginia 11th" |
Which Opponent in the final has a Partner of dustin brown? | CREATE TABLE table_name_38 (opponent_in_the_final VARCHAR, partner VARCHAR) | SELECT opponent_in_the_final FROM table_name_38 WHERE partner = "dustin brown" |
WHAT IS THE NUMBER OF VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2? | CREATE TABLE table_name_78 (viewers__millions_ INTEGER, episode_number VARCHAR, rating VARCHAR) | SELECT MAX(viewers__millions_) FROM table_name_78 WHERE episode_number > 10 AND rating < 2 |
What school did draft pick before 125, will allen go to? | CREATE TABLE table_name_91 (school VARCHAR, pick VARCHAR, player VARCHAR) | SELECT school FROM table_name_91 WHERE pick < 125 AND player = "will allen" |
Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | CREATE TABLE table_name_85 (Id VARCHAR) | SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 |
What is the number range for the Gloucester RCW builder introduced in 1937? | CREATE TABLE table_name_84 (number_range VARCHAR, builder VARCHAR, introduced VARCHAR) | SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937" |
Who won gold in the games where Pan Cheng-Tsung won silver? | CREATE TABLE table_name_76 (gold VARCHAR, silver VARCHAR) | SELECT gold FROM table_name_76 WHERE silver = "pan cheng-tsung" |
How many years has the Mercury Prize award been given? | CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR) | SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize" |
How many females does this network has? | CREATE TABLE Person (gender VARCHAR) | SELECT COUNT(*) FROM Person WHERE gender = 'female' |
What is the lowest number of wins of a team? | CREATE TABLE table_19741316_1 (wins INTEGER) | SELECT MIN(wins) FROM table_19741316_1 |
What is the total number of games of the team against the Los Angeles Kings after January 5? | CREATE TABLE table_name_69 (game VARCHAR, opponent VARCHAR, january VARCHAR) | SELECT COUNT(game) FROM table_name_69 WHERE opponent = "los angeles kings" AND january > 5 |
What was the 2009 value for a total over 1 and 4th on 2010? | CREATE TABLE table_name_36 (total VARCHAR) | SELECT 2009 FROM table_name_36 WHERE total > 1 AND 2010 = "4th" |
What was spain's score? | CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_93 WHERE country = "spain" |
What is the fan title with an end date of 1967-11-12? | CREATE TABLE table_2560677_1 (fan_title VARCHAR, end_date VARCHAR) | SELECT fan_title FROM table_2560677_1 WHERE end_date = "1967-11-12" |
Who directed the episode with the production code 209? | CREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_16384596_4 WHERE production_code = 209 |
What is the lowest population for the area that has a density of 36.7? | CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR) | SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7 |
What is the high rebound for June 9? | CREATE TABLE table_27723526_17 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_27723526_17 WHERE date = "June 9" |
What is the Established date of the Ontario Provincial Junior A Hockey League with more than 1 Championship? | CREATE TABLE table_name_58 (established VARCHAR, league VARCHAR, championships VARCHAR) | SELECT COUNT(established) FROM table_name_58 WHERE league = "ontario provincial junior a hockey" AND championships > 1 |
Who was the Democratic incumbent in the South Carolina 5 District? | CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 5" |
What is Driver, when Position is 2nd, and when Season is 2001? | CREATE TABLE table_name_77 (driver VARCHAR, position VARCHAR, season VARCHAR) | SELECT driver FROM table_name_77 WHERE position = "2nd" AND season = 2001 |
Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w? | CREATE TABLE table_name_1 (tournament VARCHAR) | SELECT tournament FROM table_name_1 WHERE 2009 = "1r" AND 2012 = "w" |
Who is the candidate in Race for State representative, hd18? | CREATE TABLE table_name_57 (candidate VARCHAR, race VARCHAR) | SELECT candidate FROM table_name_57 WHERE race = "state representative, hd18" |
Who ran in the district elections won by Tom Petri? | CREATE TABLE table_1341423_49 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341423_49 WHERE incumbent = "Tom Petri" |
Who was on Jason's team in the episode where Sean's team was Reginald D. Hunter and Kelly Osbourne? | CREATE TABLE table_23292220_8 (jasons_team VARCHAR, seans_team VARCHAR) | SELECT jasons_team FROM table_23292220_8 WHERE seans_team = "Reginald D. Hunter and Kelly Osbourne" |
Name the record when the visitor is st. louis | CREATE TABLE table_name_41 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_41 WHERE visitor = "st. louis" |
What is the sum of the round with the defenceman? | CREATE TABLE table_name_41 (round INTEGER, position VARCHAR) | SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman" |
Show all ministers and parties they belong to in descending order of the time they took office. | CREATE TABLE party (minister VARCHAR, party_name VARCHAR, took_office VARCHAR) | SELECT minister, party_name FROM party ORDER BY took_office DESC |
What is the number of electorates (2009) for Hingna? | CREATE TABLE table_name_78 (number_of_electorates__2009_ INTEGER, name VARCHAR) | SELECT AVG(number_of_electorates__2009_) FROM table_name_78 WHERE name = "hingna" |
Tell me the name for kelston with roll less than 322 | CREATE TABLE table_name_27 (name VARCHAR, area VARCHAR, roll VARCHAR) | SELECT name FROM table_name_27 WHERE area = "kelston" AND roll < 322 |
What are the Baronies when the area (in acres) is 276? | CREATE TABLE table_30121082_1 (barony VARCHAR, area__acres__ VARCHAR) | SELECT barony FROM table_30121082_1 WHERE area__acres__ = 276 |
Who was performer 3 with karen maruyama as performer 2? | CREATE TABLE table_name_67 (performer_3 VARCHAR, performer_2 VARCHAR) | SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama" |
who won mixed doubles when zhou mi won womens singles | CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR) | SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi" |
Who were the runners-up in the tournament on May 26, 1996? | CREATE TABLE table_name_93 (runner_s__up VARCHAR, date VARCHAR) | SELECT runner_s__up FROM table_name_93 WHERE date = "may 26, 1996" |
Name the games w-1 for cliff richey | CREATE TABLE table_23145653_1 (games_w_l VARCHAR, player VARCHAR) | SELECT games_w_l FROM table_23145653_1 WHERE player = "Cliff Richey" |
How many teams eliminated when 11 teams started? | CREATE TABLE table_23995075_2 (teams_that_have_been_eliminated VARCHAR, teams_started VARCHAR) | SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = "11" |
What is the name of the plan that has a downstream rate of 4,096 kbit? | CREATE TABLE table_name_21 (internet_plan VARCHAR, downstream VARCHAR) | SELECT internet_plan FROM table_name_21 WHERE downstream = "4,096 kbit" |
Which vocal type has the band mate with first name "Marianne" played the most? | CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) | SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 |
Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3? | CREATE TABLE table_name_20 (works_number VARCHAR, builder VARCHAR, number VARCHAR) | SELECT works_number FROM table_name_20 WHERE builder = "canadian engine & machinery company" AND number < 3 |
Which License has an Actual Vaersion of 9.0? | CREATE TABLE table_name_18 (license VARCHAR, actual_version VARCHAR) | SELECT license FROM table_name_18 WHERE actual_version = "9.0" |
What is the highest 3620 value with a 5432 of 5432 and a 15122 greater than 15122? | CREATE TABLE table_name_34 (Id VARCHAR) | SELECT MAX(3620) FROM table_name_34 WHERE 5432 = 5432 AND 15122 > 15122 |
Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates? | CREATE TABLE table_name_27 (lunar_eva_dates VARCHAR, mission VARCHAR, name VARCHAR) | SELECT lunar_eva_dates FROM table_name_27 WHERE mission = "apollo 12" AND name = "pete conrad" |
Which Rider is grid 7? | CREATE TABLE table_name_12 (rider VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_12 WHERE grid = 7 |
Name the year for le confessional | CREATE TABLE table_17025328_1 (year__ceremony_ VARCHAR, original_title VARCHAR) | SELECT year__ceremony_ FROM table_17025328_1 WHERE original_title = "Le Confessional" |
Which Post Town has a Dialcode of 020 and is located in Hook? | CREATE TABLE table_name_54 (post_town VARCHAR, dialcode VARCHAR, location VARCHAR) | SELECT post_town FROM table_name_54 WHERE dialcode = "020" AND location = "hook" |
What position did team scandia finish when their engine was cosworth? | CREATE TABLE table_name_72 (finish VARCHAR, engine VARCHAR, team VARCHAR) | SELECT finish FROM table_name_72 WHERE engine = "cosworth" AND team = "team scandia" |
What's the IHSAA class of the Red Devils? | CREATE TABLE table_name_77 (ihsaa_class VARCHAR, mascot VARCHAR) | SELECT ihsaa_class FROM table_name_77 WHERE mascot = "red devils" |
What are the exact Cubic inches of the Unit of kruzhka? | CREATE TABLE table_name_86 (cubic_inches__exact_ VARCHAR, unit VARCHAR) | SELECT cubic_inches__exact_ FROM table_name_86 WHERE unit = "kruzhka" |
What is the average number of laps with 16 grids? | CREATE TABLE table_name_54 (laps INTEGER, grid VARCHAR) | SELECT AVG(laps) FROM table_name_54 WHERE grid = 16 |
For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record? | CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR) | SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110" |
How many items were listed under world rank under the nation of Nigeria? | CREATE TABLE table_2248991_2 (world_rank VARCHAR, nation VARCHAR) | SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = "Nigeria" |
Name the singer for 1.45m | CREATE TABLE table_29135051_2 (singer_s_ VARCHAR, ratings VARCHAR) | SELECT singer_s_ FROM table_29135051_2 WHERE ratings = "1.45m" |
who is the replacement when the team is port vale? | CREATE TABLE table_name_97 (replaced_by VARCHAR, team VARCHAR) | SELECT replaced_by FROM table_name_97 WHERE team = "port vale" |
find the ids of reviewers who did not give 4 star. | CREATE TABLE Rating (rID VARCHAR, stars VARCHAR) | SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4 |
Did the fighter beat Ryo Takigawa? | CREATE TABLE table_name_62 (res VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_62 WHERE opponent = "ryo takigawa" |
How many games were played by the player who had 22 penalty minutes? | CREATE TABLE table_name_52 (games VARCHAR, pen_min VARCHAR) | SELECT games FROM table_name_52 WHERE pen_min = "22" |
What game 1 has bob lindner as game 2? | CREATE TABLE table_name_18 (game_1 VARCHAR, game_2 VARCHAR) | SELECT game_1 FROM table_name_18 WHERE game_2 = "bob lindner" |
What is the total number of cuts made of tournaments with 2 Events? | CREATE TABLE table_name_81 (cuts_made VARCHAR, events VARCHAR) | SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 2 |
Which circuit did Guy Edwards win? | CREATE TABLE table_name_11 (circuit VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_name_11 WHERE winning_driver = "guy edwards" |
Tell me the label for digital download for bonus tracks version | CREATE TABLE table_name_39 (label VARCHAR, format VARCHAR, edition_s_ VARCHAR) | SELECT label FROM table_name_39 WHERE format = "digital download" AND edition_s_ = "bonus tracks version" |
What's the track for 1982? | CREATE TABLE table_name_18 (track VARCHAR, year VARCHAR) | SELECT track FROM table_name_18 WHERE year = 1982 |
Which League Cup that has a Total of 19 and a League smaller than 15? | CREATE TABLE table_name_87 (league INTEGER, total VARCHAR) | SELECT AVG(league) AS Cup FROM table_name_87 WHERE total = 19 AND league < 15 |
To which college/junior/club team did the player that was Pick 12 belong? | CREATE TABLE table_name_19 (college_junior_club_team VARCHAR, pick__number VARCHAR) | SELECT college_junior_club_team FROM table_name_19 WHERE pick__number = "12" |
Which railroad is 112.6 kilometers from kingston? | CREATE TABLE table_16226584_1 (name VARCHAR, km_from_kingston VARCHAR) | SELECT name FROM table_16226584_1 WHERE km_from_kingston = "112.6" |
Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. | CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER) | SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims) |
What's the record of Carlos Boozer (23) as the leading scorer? | CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR) | SELECT record FROM table_name_83 WHERE leading_scorer = "carlos boozer (23)" |
Luxembourg received how many gold medals? | CREATE TABLE table_name_9 (gold INTEGER, nation VARCHAR) | SELECT AVG(gold) FROM table_name_9 WHERE nation = "luxembourg" |
What airline has a IATA of BX? | CREATE TABLE table_name_87 (airline VARCHAR, iata VARCHAR) | SELECT airline FROM table_name_87 WHERE iata = "bx" |
Where was the player whose Current Club Elfsborg born? | CREATE TABLE table_name_63 (born VARCHAR, current_club VARCHAR) | SELECT born FROM table_name_63 WHERE current_club = "elfsborg" |
What is the Home team score for the Home team from South Melbourne? | CREATE TABLE table_name_33 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_33 WHERE home_team = "south melbourne" |
Which song lasts 4:08? | CREATE TABLE table_name_86 (song VARCHAR, length VARCHAR) | SELECT song FROM table_name_86 WHERE length = "4:08" |
What school/club team is Amir Johnson on? | CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_10015132_9 WHERE player = "Amir Johnson" |
What was the word for the episode that aired February 11? | CREATE TABLE table_25691838_2 (the_wørd VARCHAR, original_airdate VARCHAR) | SELECT the_wørd FROM table_25691838_2 WHERE original_airdate = "February 11" |
How many storeys in Calgary during 1975-1976? | CREATE TABLE table_name_46 (storeys VARCHAR, city VARCHAR, years VARCHAR) | SELECT storeys FROM table_name_46 WHERE city = "calgary" AND years = "1975-1976" |
What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23? | CREATE TABLE table_name_35 (year INTEGER, player_name VARCHAR, round VARCHAR) | SELECT MAX(year) FROM table_name_35 WHERE player_name = "dave adams category:articles with hcards" AND round < 23 |
Which airport has an ICAO of ybcg? | CREATE TABLE table_name_11 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_11 WHERE icao = "ybcg" |
What is the site of the game that had an attendance of 54,040? | CREATE TABLE table_name_23 (game_site VARCHAR, attendance VARCHAR) | SELECT game_site FROM table_name_23 WHERE attendance = "54,040" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.