answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki"
What is the highest decile value with a roll greater than 301 in Hauraki?
CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, area VARCHAR)
SELECT drawn FROM table_14058433_4 WHERE lost = "4"
what's the drawn with lost being 4
CREATE TABLE table_14058433_4 (drawn VARCHAR, lost VARCHAR)
SELECT motor FROM table_name_98 WHERE apogee = "713 km"
What kind of Motor has a Apogee of 713 km?
CREATE TABLE table_name_98 (motor VARCHAR, apogee VARCHAR)
SELECT record FROM table_name_63 WHERE high_rebounds = "deandre jordan (11)"
What was the record when the high rebound was Deandre Jordan (11)?
CREATE TABLE table_name_63 (record VARCHAR, high_rebounds VARCHAR)
SELECT SUM(world_ranking) FROM table_name_80 WHERE date = "aug 5" AND year > 1980
How many world rankings are after Aug 5, 1980 ?
CREATE TABLE table_name_80 (world_ranking INTEGER, date VARCHAR, year VARCHAR)
SELECT AVG(grid) FROM table_name_70 WHERE driver = "giorgio pantano"
What is the average grid for giorgio pantano?
CREATE TABLE table_name_70 (grid INTEGER, driver VARCHAR)
SELECT COUNT(rank) FROM table_name_4 WHERE population = 258
What is the rank of the town with a population of 258?
CREATE TABLE table_name_4 (rank VARCHAR, population VARCHAR)
SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse"
What's the elevator of Jacques D'euse?
CREATE TABLE table_name_74 (elevator VARCHAR, elector VARCHAR)
SELECT MIN(year) FROM table_name_38 WHERE pts > 8
What is the earliest year with points more than 8?
CREATE TABLE table_name_38 (year INTEGER, pts INTEGER)
SELECT opponent FROM table_name_78 WHERE score = "111-106"
Who was the opponent at the game with a score of 111-106?
CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR)
SELECT uni_number FROM table_name_22 WHERE bats = "r" AND surname = "timms"
What's the Uni# of Timms, who has bats of R?
CREATE TABLE table_name_22 (uni_number VARCHAR, bats VARCHAR, surname VARCHAR)
SELECT MAX(attendance) FROM table_name_14 WHERE away = "real juventud"
What was the highest attendance against Real Juventud?
CREATE TABLE table_name_14 (attendance INTEGER, away VARCHAR)
SELECT score FROM table_name_4 WHERE opponent = "baltimore bullets" AND date = "march 14"
What is the score of the game against the baltimore bullets on March 14?
CREATE TABLE table_name_4 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT winner FROM table_name_48 WHERE points_classification = "damiano cunego"
Who was the winner in the stage that Damiano Cunego led the points classification?
CREATE TABLE table_name_48 (winner VARCHAR, points_classification VARCHAR)
SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = "fa cup" AND draw < 0
How many average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0?
CREATE TABLE table_name_23 (total_matches INTEGER, draw VARCHAR, swansea_win VARCHAR, competition VARCHAR)
SELECT MIN(judging_panel_points) FROM table_26485957_1
What is the minimum score given in judging panel points?
CREATE TABLE table_26485957_1 (judging_panel_points INTEGER)
SELECT player FROM table_10960039_1 WHERE college = "Saskatchewan"
Which player's college is Saskatchewan?
CREATE TABLE table_10960039_1 (player VARCHAR, college VARCHAR)
SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1
Show the transaction type code that occurs the fewest times.
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR)
SELECT year FROM table_181892_4 WHERE race_status = "Piston"
What year(s) was the race status piston?
CREATE TABLE table_181892_4 (year VARCHAR, race_status VARCHAR)
SELECT player FROM table_12962773_15 WHERE no = 6
What player is number 6?
CREATE TABLE table_12962773_15 (player VARCHAR, no VARCHAR)
SELECT 50 AS s FROM table_28846752_8 WHERE average = "39.60"
How many entries is under 50s column when the average is 39.60?
CREATE TABLE table_28846752_8 (average VARCHAR)
SELECT nationality FROM table_name_9 WHERE pick > 109 AND round < 5
Which Nationality has a Pick larger than 109, and a Round smaller than 5?
CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, round VARCHAR)
SELECT result FROM table_1358608_2 WHERE race = "Railway Stakes"
What was the result for the railway stakes race?
CREATE TABLE table_1358608_2 (result VARCHAR, race VARCHAR)
SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'
What are the names of the contestants whose names are not 'Jessie Alloway'
CREATE TABLE contestants (contestant_name VARCHAR)
SELECT stadium FROM table_10647401_1 WHERE week = 5
In which stadium is the week 5 game played?
CREATE TABLE table_10647401_1 (stadium VARCHAR, week VARCHAR)
SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = "23.4"
How many networks run on virtual channel 23.4?
CREATE TABLE table_2857352_3 (network VARCHAR, virtual_channel VARCHAR)
SELECT title FROM table_name_74 WHERE doctor = "8th" AND published = "january 2003"
What is the title of the 8th doctor published in January 2003?
CREATE TABLE table_name_74 (title VARCHAR, doctor VARCHAR, published VARCHAR)
SELECT SUM(interview) FROM table_name_97 WHERE state = "new york" AND swimsuit < 9.394
What is the total for the state of new york and a swimsuit less than 9.394?
CREATE TABLE table_name_97 (interview INTEGER, state VARCHAR, swimsuit VARCHAR)
SELECT score FROM table_name_24 WHERE date = "may 26"
What was the score of the game on May 26?
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT death FROM table_name_56 WHERE spouse = "philippe"
When did the duchess, who was married to philippe, die?
CREATE TABLE table_name_56 (death VARCHAR, spouse VARCHAR)
SELECT MAX(week) FROM table_name_16 WHERE dance = "locking"
In what Week was the Locking Dance?
CREATE TABLE table_name_16 (week INTEGER, dance VARCHAR)
SELECT race_caller FROM table_22514845_5 WHERE trophy_presentation = "Jim McKay and Howard Cosell" AND reporters = "Howard Cosell" AND s_analyst = "Eddie Arcaro"
Name the race caller for jim mckay and howard cosell and eddie arcaro
CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_analyst VARCHAR, trophy_presentation VARCHAR, reporters VARCHAR)
SELECT MIN(race_total_pts_) FROM table_23293785_2 WHERE country = "Belgium"
What is the lowest number of total race points for the country of Belgium?
CREATE TABLE table_23293785_2 (race_total_pts_ INTEGER, country VARCHAR)
SELECT SUM(roll) FROM table_name_59 WHERE area = "oakura"
What is the roll of the school in Oakura?
CREATE TABLE table_name_59 (roll INTEGER, area VARCHAR)
SELECT date FROM table_name_70 WHERE decision = "lehtonen" AND attendance > 17 OFFSET 731
What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people?
CREATE TABLE table_name_70 (date VARCHAR, decision VARCHAR, attendance VARCHAR)
SELECT MIN(rec) FROM table_name_57 WHERE avg > 13
What was the lowest recorded record for a player with an average larger than 13?
CREATE TABLE table_name_57 (rec INTEGER, avg INTEGER)
SELECT MAX(poles) FROM table_17246160_1 WHERE series = "Formula BMW Pacific"
How many poles did the player have during the Formula BMW Pacific race?
CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR)
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = "14.57"
When is the first season there were 14.57 million U.S viewers?
CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes"
How many jockeys are listed running at the Sir Rupert Clarke Stakes?
CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR)
SELECT visiting_team FROM table_name_67 WHERE stadium = "ralph wilson stadium"
Name the visiting team for stadium of ralph wilson stadium
CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR)
SELECT netflix FROM table_name_53 WHERE segment_c = "pills"
What is the Netflix number having a segment of C of pills?
CREATE TABLE table_name_53 (netflix VARCHAR, segment_c VARCHAR)
SELECT census_ranking FROM table_171250_2 WHERE area_km_2 = "369.25"
What are the census ranking(s) that have an area of 369.25 km2?
CREATE TABLE table_171250_2 (census_ranking VARCHAR, area_km_2 VARCHAR)
SELECT profession FROM table_name_90 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR)
SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry"
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?
CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006
Who won the Paris-Roubaix in 2006?
CREATE TABLE table_name_33 (paris_roubaix___fra__ VARCHAR, year VARCHAR)
SELECT date FROM table_name_62 WHERE record = "59–59"
On what date was the record 59–59?
CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)
SELECT MAX(area__sq_mi_) FROM table_name_88 WHERE county = "greenville county"
Which is the largest area in Greenville County, by square mile?
CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, county VARCHAR)
SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 7
WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?
CREATE TABLE table_name_82 (pick INTEGER, name VARCHAR, round VARCHAR)
SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray"
Who was the semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR)
SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1
Find the year that has the most number of matches.
CREATE TABLE matches (YEAR VARCHAR)
SELECT COUNT(area__km²_) FROM table_14325808_1 WHERE population__2007_estimation_ = 7996
How many places of whatever size have a 2007 population estimation of 7996?
CREATE TABLE table_14325808_1 (area__km²_ VARCHAR, population__2007_estimation_ VARCHAR)
SELECT runner_up FROM table_10566855_1 WHERE premier = "Richmond"
who are all the runner-up for premier in richmond
CREATE TABLE table_10566855_1 (runner_up VARCHAR, premier VARCHAR)
SELECT COUNT(chester) FROM table_16974228_1 WHERE religion = "Hindu"
How many numbers were recorded for Chester when the religion was Hindu?
CREATE TABLE table_16974228_1 (chester VARCHAR, religion VARCHAR)
SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450"
What band is the highest and has a System of gsm-450?
CREATE TABLE table_name_22 (band INTEGER, system VARCHAR)
SELECT type FROM table_name_22 WHERE capacity = "10 tons" AND number = "24-27"
Which Type has a Capacity of 10 tons, and a Number of 24-27?
CREATE TABLE table_name_22 (type VARCHAR, capacity VARCHAR, number VARCHAR)
SELECT MIN(episode__number) FROM table_25691838_8 WHERE original_airdate = "August 11"
What was the minimum number of the episode that first aired August 11?
CREATE TABLE table_25691838_8 (episode__number INTEGER, original_airdate VARCHAR)
SELECT team FROM table_name_96 WHERE home_venue = "anyang stadium"
What is the Team with a venue of Anyang Stadium?
CREATE TABLE table_name_96 (team VARCHAR, home_venue VARCHAR)
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan"
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?
CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)
SELECT COUNT(monarch) FROM table_26460435_5 WHERE heir = "Yan Maw La Mon"
What is the number of monarchs that had Yan Maw la Mon as the heir?
CREATE TABLE table_26460435_5 (monarch VARCHAR, heir VARCHAR)
SELECT result FROM table_name_81 WHERE year = 1994 AND tournament = "hypo-meeting"
What the result for the hypo-meeting tournament in 1994?
CREATE TABLE table_name_81 (result VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992"
How many titles were released on 21 October 1992?
CREATE TABLE table_18590048_1 (rank VARCHAR, release_date VARCHAR)
SELECT opponent FROM table_20745754_1 WHERE _number = "7"
Who did they play against in game 7?
CREATE TABLE table_20745754_1 (opponent VARCHAR, _number VARCHAR)
SELECT rider FROM table_name_72 WHERE manufacturer = "honda" AND grid = "25"
Who is the rider for Honda with a grid of 25?
CREATE TABLE table_name_72 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT COUNT(network_station) FROM table_2879165_1 WHERE country = "Brunei"
What is listed in Network station when the country is Brunei?
CREATE TABLE table_2879165_1 (network_station VARCHAR, country VARCHAR)
SELECT date FROM table_23453931_5 WHERE opponent = "New York Islanders"
Name the date for new york islanders
CREATE TABLE table_23453931_5 (date VARCHAR, opponent VARCHAR)
SELECT reward FROM table_25016824_2 WHERE immunity = "Martin" AND finish = "13th voted Out 8th Jury Member Day 46"
What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?
CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)
SELECT second_baseman FROM table_12142298_2 WHERE first_baseman = "Nomar Garciaparra"
Who played 2nd base when nomar garciaparra was at 1st base?
CREATE TABLE table_12142298_2 (second_baseman VARCHAR, first_baseman VARCHAR)
SELECT MIN(crowd) FROM table_name_68 WHERE venue = "punt road oval"
What is the smallest crowd size for punt road oval?
CREATE TABLE table_name_68 (crowd INTEGER, venue VARCHAR)
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010"
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT SUM(drawn) FROM table_name_77 WHERE team = "internacional-sp"
Which Drawn has a Team of internacional-sp?
CREATE TABLE table_name_77 (drawn INTEGER, team VARCHAR)
SELECT chinese__traditional_ FROM table_name_66 WHERE chinese__simplified_ = "崇拜"
What would be the traditional Chinese name tat is simplified as 崇拜?
CREATE TABLE table_name_66 (chinese__traditional_ VARCHAR, chinese__simplified_ VARCHAR)
SELECT died FROM table_name_62 WHERE ordained_bishop = "july 25, 1902"
When did the archbishop that was ordained a bishop on July 25, 1902 die?
CREATE TABLE table_name_62 (died VARCHAR, ordained_bishop VARCHAR)
SELECT region FROM table_name_65 WHERE format = "vinyl record"
What region has vinyl record listed as its format?
CREATE TABLE table_name_65 (region VARCHAR, format VARCHAR)
SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name
Show the names of products and the number of events they are in.
CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)
SELECT opponent_in_the_final FROM table_name_9 WHERE surface = "clay" AND score_in_the_final = "4–6, 3–6"
Who is the Opponent in the final of the match played on Clay Surface with a Score in the final of 4–6, 3–6?
CREATE TABLE table_name_9 (opponent_in_the_final VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT MIN(population) FROM table_name_15 WHERE county = "green"
What was the population of Green County?
CREATE TABLE table_name_15 (population INTEGER, county VARCHAR)
SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes"
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT position FROM table_name_42 WHERE pick = 74
Which Position has a Pick of 74?
CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR)
SELECT percentage_of_votes FROM table_26267849_11 WHERE act = "Violinist"
Name the percentage of votes for violinist
CREATE TABLE table_26267849_11 (percentage_of_votes VARCHAR, act VARCHAR)
SELECT titles FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew"
What was the title for the Undercard of Stevenson/Bellew?
CREATE TABLE table_25840200_1 (titles VARCHAR, notes VARCHAR)
SELECT COUNT(touchdowns) FROM table_25647137_2 WHERE player = "Bill Culligan"
How many touchdowns did bill culligan have?
CREATE TABLE table_25647137_2 (touchdowns VARCHAR, player VARCHAR)
SELECT party FROM table_1341865_37 WHERE incumbent = "Frank T. Bow"
To which party does Frank T. Bow belong?
CREATE TABLE table_1341865_37 (party VARCHAR, incumbent VARCHAR)
SELECT country FROM table_18946749_1 WHERE col__m_ = 44
When 44 is the col in meters what is the country?
CREATE TABLE table_18946749_1 (country VARCHAR, col__m_ VARCHAR)
SELECT tournament FROM table_name_11 WHERE runner_s__up = "tom kite"
What tournament had a Runner(s)-up of Tom Kite?
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14
Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
CREATE TABLE table_name_3 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT lost FROM table_name_32 WHERE played = "26" AND points = "83"
What is the lost number when the team played 26 games and there were 83 points?
CREATE TABLE table_name_32 (lost VARCHAR, played VARCHAR, points VARCHAR)
SELECT name FROM table_name_10 WHERE group = "b" AND mark = "6.33"
Who is in group B and has a mark of 6.33?
CREATE TABLE table_name_10 (name VARCHAR, group VARCHAR, mark VARCHAR)
SELECT constructor FROM table_name_26 WHERE fastest_lap = "juan manuel fangio" AND winning_driver = "giuseppe farina"
What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?
CREATE TABLE table_name_26 (constructor VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT match_report FROM table_name_92 WHERE venue = "westfalenstadion , dortmund"
What is Match Report, when Venue is "Westfalenstadion , Dortmund"?
CREATE TABLE table_name_92 (match_report VARCHAR, venue VARCHAR)
SELECT district FROM table_1341423_32 WHERE incumbent = "Carolyn McCarthy"
Name the district for carolyn mccarthy
CREATE TABLE table_1341423_32 (district VARCHAR, incumbent VARCHAR)
SELECT nominee FROM table_name_7 WHERE outcome = "won" AND category = "fourth best indian film"
Which nominee won the award for Fourth Best Indian Film?
CREATE TABLE table_name_7 (nominee VARCHAR, outcome VARCHAR, category VARCHAR)
SELECT decision FROM table_27537870_6 WHERE score = "5-3"
If the score is 5-3, who made the decision?
CREATE TABLE table_27537870_6 (decision VARCHAR, score VARCHAR)
SELECT AVG(grid) FROM table_name_15 WHERE time_retired = "oil pressure" AND laps > 50
what is the grid when the time/retired is oil pressure and the laps are more than 50?
CREATE TABLE table_name_15 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT country FROM table_name_10 WHERE money___$__ = "5,500" AND score = 70 - 72 - 70 - 73 = 285
What is the Country of the Player with a Score of 70-72-70-73=285 and Money ( $ ) of 5,500?
CREATE TABLE table_name_10 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT COUNT(contestant) FROM table_18618707_1 WHERE height = "1.67"
When 1.67 is the height how many contestants are there?
CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR)
SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral"
What is the molecular target of the organism that has a disease area of antiviral?
CREATE TABLE table_name_45 (molecular_target VARCHAR, disease_area VARCHAR)
SELECT date FROM table_name_6 WHERE away = "high park demons"
What is Date, when Away is High Park Demons?
CREATE TABLE table_name_6 (date VARCHAR, away VARCHAR)
SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010
Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?
CREATE TABLE table_name_38 (earnings_per_share__ VARCHAR, net_profit__us_$m_ VARCHAR, year_to_april VARCHAR)
SELECT DISTINCT building FROM classroom WHERE capacity > 50
Find the buildings which have rooms with capacity more than 50.
CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
SELECT high_assists FROM table_name_57 WHERE team = "indiana"
Who had the most assists in the game against Indiana?
CREATE TABLE table_name_57 (high_assists VARCHAR, team VARCHAR)