answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT somerset FROM table_12043148_2 WHERE year = 2009
what is the somerset for the year 2009?
CREATE TABLE table_12043148_2 (somerset VARCHAR, year VARCHAR)
SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1
What rank was the country with no bronze but at least 1 silver medals?
CREATE TABLE table_name_57 (rank INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT location_attendance FROM table_name_63 WHERE high_points = "dwyane wade (27)"
What is the location attendance from Dwyane Wade (27) high points?
CREATE TABLE table_name_63 (location_attendance VARCHAR, high_points VARCHAR)
SELECT transfer_window FROM table_name_54 WHERE transfer_fee = "free" AND moving_to = "derby county"
What Transfer window that has a Transfer fee of free, with a Moving to of derby county?
CREATE TABLE table_name_54 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT champions FROM table_21632864_1 WHERE regional = "Hokushinetsu"
who got the first place when the Japanese Regional Leagues was in hokushinetsu?
CREATE TABLE table_21632864_1 (champions VARCHAR, regional VARCHAR)
SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 3"
Name the first elected for kentucky 3
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT location FROM table_name_46 WHERE round = 3 AND event = "fightfest 2"
What is the location of fightfest 2, which has 3 rounds?
CREATE TABLE table_name_46 (location VARCHAR, round VARCHAR, event VARCHAR)
SELECT expected_completion FROM table_name_15 WHERE capacity = "22,500"
What is the year of expected completion when the capacity is 22,500?
CREATE TABLE table_name_15 (expected_completion VARCHAR, capacity VARCHAR)
SELECT chassis FROM table_name_41 WHERE points = "25"
What is the chassis when there is 25 points?
CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR)
SELECT MAX(first_elected) FROM table_name_36 WHERE party = "republican"
What is the most recent year for a first elected republican?
CREATE TABLE table_name_36 (first_elected INTEGER, party VARCHAR)
SELECT MIN(p) FROM table_18254488_2 WHERE player = "Shaun Maloney"
When shaun maloney is the player what is the lowest p?
CREATE TABLE table_18254488_2 (p INTEGER, player VARCHAR)
SELECT score FROM table_name_18 WHERE home_team = "millwall"
What is the score if Millwall is the Home Team?
CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_79 WHERE high_points = "joe johnson (31)"
In the game where Joe Johnson (31) was the high points scorer, what was the final score?
CREATE TABLE table_name_79 (score VARCHAR, high_points VARCHAR)
SELECT record FROM table_name_88 WHERE week = 14
What is the Record for week 14?
CREATE TABLE table_name_88 (record VARCHAR, week VARCHAR)
SELECT score FROM table_name_77 WHERE result = "4-1"
Which item resulted in a score of 4-1?
CREATE TABLE table_name_77 (score VARCHAR, result VARCHAR)
SELECT d_42 FROM table_name_6 WHERE d_46 = "r 26"
Name the D 42 which has a D 46 of r 26
CREATE TABLE table_name_6 (d_42 VARCHAR, d_46 VARCHAR)
SELECT date FROM table_name_71 WHERE new_entries_this_round = "44"
What is the date for the row with a new entries this round of 44?
CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR)
SELECT home_team AS score FROM table_name_96 WHERE away_team = "collingwood"
What is the home team score when the away team is Collingwood?
CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR)
SELECT shirt_sponsor FROM table_name_23 WHERE manager = "mark hughes"
Which sponsor has Mark Hughes as manager?
CREATE TABLE table_name_23 (shirt_sponsor VARCHAR, manager VARCHAR)
SELECT MAX(round) FROM table_20036882_2 WHERE winning_pilot = "Michael Goulian"
Name the most round for michael goulian
CREATE TABLE table_20036882_2 (round INTEGER, winning_pilot VARCHAR)
SELECT event FROM table_name_43 WHERE notes = "women +60kg quarterfinal"
Which event has notes of women +60kg quarterfinal?
CREATE TABLE table_name_43 (event VARCHAR, notes VARCHAR)
SELECT airing_date FROM table_name_73 WHERE number_of_episodes > 20 AND genre = "costume action"
What was the airing date when the number of episodes was larger than 20 and had the genre of costume action?
CREATE TABLE table_name_73 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR)
SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16
What First game has a Lost greater than 16?
CREATE TABLE table_name_16 (first_game INTEGER, lost INTEGER)
SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13
What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has?
CREATE TABLE table_name_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996
How many poles were there in 1996?
CREATE TABLE table_2182573_2 (poles INTEGER, year VARCHAR)
SELECT MAX(prize_money__usd_) FROM table_29302711_12 WHERE name = "Bob Lutz"
how much prize money (in USD) did bob lutz win
CREATE TABLE table_29302711_12 (prize_money__usd_ INTEGER, name VARCHAR)
SELECT power__kw_ FROM table_19874169_3 WHERE branding = "YES! FM 91.1 Boracay"
If the branding is Yes! FM 91.1 Boracay, what is the power?
CREATE TABLE table_19874169_3 (power__kw_ VARCHAR, branding VARCHAR)
SELECT airport FROM table_name_23 WHERE icao = "ento"
What Airport's ICAO is ENTO?
CREATE TABLE table_name_23 (airport VARCHAR, icao VARCHAR)
SELECT AVG(rank) FROM table_name_61 WHERE name = "stéphan perrot"
What was Stéphan Perrot rank average?
CREATE TABLE table_name_61 (rank INTEGER, name VARCHAR)
SELECT year FROM table_name_3 WHERE main = "eintracht frankfurt" AND hessen = "fsv mainz 05"
Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05?
CREATE TABLE table_name_3 (year VARCHAR, main VARCHAR, hessen VARCHAR)
SELECT perfect_stem FROM table_name_79 WHERE future_stem = "emango"
What is the perfect stem for the word that has a future stem of emango?
CREATE TABLE table_name_79 (perfect_stem VARCHAR, future_stem VARCHAR)
SELECT country FROM table_name_44 WHERE place = "t3" AND player = "jim thorpe"
What is Country, when Place is "T3", and when Player is "Jim Thorpe"?
CREATE TABLE table_name_44 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT MIN(weight_class__kg_) FROM table_name_73 WHERE venue = "sofia, bulgaria"
What is the lowest weight class (kg) that has sofia, bulgaria as the venue?
CREATE TABLE table_name_73 (weight_class__kg_ INTEGER, venue VARCHAR)
SELECT team FROM table_name_75 WHERE kit_manufacturer = "adidas" AND shirt_sponsor = "tdk"
For which team did Adidas manufacture kits and TDK sponsor shirts?
CREATE TABLE table_name_75 (team VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT MAX(total) FROM table_28634206_1 WHERE country = "Russia"
How many placements in total does russia have?
CREATE TABLE table_28634206_1 (total INTEGER, country VARCHAR)
SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008"
What 20-29 was in season 2008?
CREATE TABLE table_name_69 (season VARCHAR)
SELECT date FROM table_name_72 WHERE team = "orlando"
What is Date, when Team is "Orlando"?
CREATE TABLE table_name_72 (date VARCHAR, team VARCHAR)
SELECT no_3 FROM table_name_35 WHERE no_5 = "james" AND no_6 = "mason"
Who was No. 3 when No. 5 James and No. 6 Mason?
CREATE TABLE table_name_35 (no_3 VARCHAR, no_5 VARCHAR, no_6 VARCHAR)
SELECT 2012 FROM table_name_94 WHERE 2010 = "q3"
Name the 2012 for when 2010 is q3
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen"
How many flights arriving in Aberdeen city?
CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR)
SELECT MIN(stls) FROM table_name_27 WHERE rebs > 8.6
What is the lowest Stls, when Rebs is greater than 8.6?
CREATE TABLE table_name_27 (stls INTEGER, rebs INTEGER)
SELECT player FROM table_name_15 WHERE school = "seattle prep"
What is the player that is from seattle prep?
CREATE TABLE table_name_15 (player VARCHAR, school VARCHAR)
SELECT DISTINCT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15
List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.
CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, used_kb INTEGER)
SELECT days_held FROM table_name_33 WHERE current_champion_s_ = "dean ambrose"
Name the days for current champions of dean ambrose
CREATE TABLE table_name_33 (days_held VARCHAR, current_champion_s_ VARCHAR)
SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163
What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points?
CREATE TABLE table_name_1 (entrant VARCHAR, points VARCHAR, engine VARCHAR, rank VARCHAR)
SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
Select the name of each manufacturer along with the name and price of its most expensive product.
CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR)
SELECT opposition FROM table_name_72 WHERE total = 10
Who was the opposition for the player who has a total of 10 points?
CREATE TABLE table_name_72 (opposition VARCHAR, total VARCHAR)
SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3
What is the total national rank of Canada with lanes larger than 3?
CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT SUM(attendance) FROM table_name_67 WHERE visitor = "jazz"
How many were in attendance at the game where the visiting team was the Jazz?
CREATE TABLE table_name_67 (attendance INTEGER, visitor VARCHAR)
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What is the headquarter of the company with the largest sales?
CREATE TABLE company (Headquarters VARCHAR, Sales_in_Billion VARCHAR)
SELECT winter_olympics FROM table_174491_1 WHERE winner = "Thorleif Haug"
What year did Thorleif Haug win the Winter Olympics?
CREATE TABLE table_174491_1 (winter_olympics VARCHAR, winner VARCHAR)
SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.6
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?
CREATE TABLE table_name_75 (net_profit__ INTEGER, earnings_per_share__p_ VARCHAR, profit__loss__before_tax__£m_ VARCHAR)
SELECT date FROM table_15346009_1 WHERE location = "Alabama"
On what day was the tournament in Alabama?
CREATE TABLE table_15346009_1 (date VARCHAR, location VARCHAR)
SELECT position FROM table_26996293_2 WHERE cfl_team = "Edmonton (2)"
where cfl team is edmonton (2) what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, cfl_team VARCHAR)
SELECT COUNT(immunity) FROM table_16976547_2 WHERE cycle_no = "13"
Name the total number of immunity for cycle number of 13
CREATE TABLE table_16976547_2 (immunity VARCHAR, cycle_no VARCHAR)
SELECT position FROM table_name_83 WHERE player = "jesse boulerice"
Which position does Jesse Boulerice play?
CREATE TABLE table_name_83 (position VARCHAR, player VARCHAR)
SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya"
What is the low lap total for the under 4 grid car driven by juan pablo montoya?
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "us mbila nzambi"
What is the 1st leg score when US Mbila Nzambi is team 1?
CREATE TABLE table_name_3 (team_1 VARCHAR)
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93
Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
SELECT slovak FROM table_25008327_8 WHERE ukrainian = "пес, собака"
What area all values for Slovak when value for Ukranian is пес, собака?
CREATE TABLE table_25008327_8 (slovak VARCHAR, ukrainian VARCHAR)
SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8
Which Geelong DFL has 8 losses and more than 4 wins?
CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder"
How many were first elected when the incumbent was Morgan M. Moulder?
CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR)
SELECT MAX(year) FROM table_28601467_1 WHERE winner = "Ireland 4 points"
What is the most recent year in which the winner record is Ireland 4 points?
CREATE TABLE table_28601467_1 (year INTEGER, winner VARCHAR)
SELECT finish FROM table_name_54 WHERE total > 289 AND year_s__won = "1979"
What finish has a total of more than 289 and won in 1979?
CREATE TABLE table_name_54 (finish VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT title FROM table_name_4 WHERE studio = "buena vista pictures"
What is the title of Buena Vista Pictures?
CREATE TABLE table_name_4 (title VARCHAR, studio VARCHAR)
SELECT viewers_millions_ FROM table_12919003_2 WHERE episode = "episode 5"
How many viewers did Episode 5 have?
CREATE TABLE table_12919003_2 (viewers_millions_ VARCHAR, episode VARCHAR)
SELECT high_points FROM table_29556461_8 WHERE team = "La Salle"
When la salle is the team who has the highest amount of points?
CREATE TABLE table_29556461_8 (high_points VARCHAR, team VARCHAR)
SELECT chairman FROM table_27631756_2 WHERE captain = "Fawzi Bashir"
Who is the chairman when teh captain is fawzi bashir?
CREATE TABLE table_27631756_2 (chairman VARCHAR, captain VARCHAR)
SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = "9.35"
What's the series number of the episode seen by 9.35 million people in the US?
CREATE TABLE table_19401346_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT COUNT(race_number) FROM table_25594888_1 WHERE yacht = "Loki"
How many races was Loki in?
CREATE TABLE table_25594888_1 (race_number VARCHAR, yacht VARCHAR)
SELECT COUNT(attendance) FROM table_name_20 WHERE location = "td banknorth garden" AND game > 31
What is the total number of people in attendance when the game was at TD Banknorth Garden, in a game higher than 31?
CREATE TABLE table_name_20 (attendance VARCHAR, location VARCHAR, game VARCHAR)
SELECT MAX(lane) FROM table_name_16 WHERE name = "nisha millet"
What is the highest lane for nisha millet?
CREATE TABLE table_name_16 (lane INTEGER, name VARCHAR)
SELECT T1.id, T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY T1.id HAVING COUNT(*) > 1
What are the ids and names of the companies that operated more than one flight?
CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (id VARCHAR, name VARCHAR)
SELECT province FROM table_name_39 WHERE name = "michael kirby"
Which province has Michael Kirby?
CREATE TABLE table_name_39 (province VARCHAR, name VARCHAR)
SELECT draw FROM table_name_2 WHERE team = "tramwajarz łódź"
What is the Draw for the team of tramwajarz łódź?
CREATE TABLE table_name_2 (draw VARCHAR, team VARCHAR)
SELECT against FROM table_name_12 WHERE opposing_teams = "australia" AND date = "27/07/1991"
What is Against, when Opposing Teams is "Australia", and when Date is "27/07/1991"?
CREATE TABLE table_name_12 (against VARCHAR, opposing_teams VARCHAR, date VARCHAR)
SELECT rookie FROM table_name_6 WHERE defensive = "matt vinc" AND offensive = "pat maddalena"
Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?
CREATE TABLE table_name_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR)
SELECT country FROM table_name_18 WHERE host = "miguel esteban"
Which Country has a Host of miguel esteban?
CREATE TABLE table_name_18 (country VARCHAR, host VARCHAR)
SELECT visitor FROM table_name_72 WHERE date = "3/2"
What team was the visitor on 3/2?
CREATE TABLE table_name_72 (visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_72 WHERE round = "r1" AND opponent = "dundee united"
Which Home has a Round of r1, and an Opponent of dundee united?
CREATE TABLE table_name_72 (home VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT COUNT(prominence__m_) FROM table_18946749_4 WHERE rank = 5
How many values of prominence(m) occur at rank 5?
CREATE TABLE table_18946749_4 (prominence__m_ VARCHAR, rank VARCHAR)
SELECT period FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
what is the period if the player is Hashan Tillakaratne?
CREATE TABLE table_26041144_16 (period VARCHAR, player VARCHAR)
SELECT school FROM table_name_49 WHERE _number___county = "29 hamilton"
which school shows #/county of 29 hamilton?
CREATE TABLE table_name_49 (school VARCHAR, _number___county VARCHAR)
SELECT games_w_l FROM table_23145653_1 WHERE player = "Cliff Richey"
Name the games w-1 for cliff richey
CREATE TABLE table_23145653_1 (games_w_l VARCHAR, player VARCHAR)
SELECT other_goals FROM table_2980024_1 WHERE league_goals = 1
How many other goals did Dunne have in the season where he had 1 league goal?
CREATE TABLE table_2980024_1 (other_goals VARCHAR, league_goals VARCHAR)
SELECT position FROM table_name_23 WHERE 2012 = "garion weller"
What position did Garion Weller hold in 2012?
CREATE TABLE table_name_23 (position VARCHAR)
SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou"
What is the date of birth of Kameli Ratuvou?
CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT second FROM table_name_76 WHERE third = "david nedohin" AND lead = "ben hebert"
Which Second has a Third of david nedohin, and a Lead of ben hebert?
CREATE TABLE table_name_76 (second VARCHAR, third VARCHAR, lead VARCHAR)
SELECT place FROM table_name_22 WHERE country = "australia" AND player = "ian baker-finch"
Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?
CREATE TABLE table_name_22 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT high_assists FROM table_27712451_9 WHERE date = "March 14"
Name the high assists for march 14
CREATE TABLE table_27712451_9 (high_assists VARCHAR, date VARCHAR)
SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples"
What was United States place when the player was Fred Couples?
CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT points_classification FROM table_name_65 WHERE team_classification = "predictor-lotto" AND stage = "1"
Name the points classification for predictor-lotto and stage 1
CREATE TABLE table_name_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
SELECT name FROM table_19418696_3 WHERE qb_rating = "72.3"
Which QB had a rating of 72.3?
CREATE TABLE table_19418696_3 (name VARCHAR, qb_rating VARCHAR)
SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"
What was the option from Italy with general television content, and the Cielo television service?
CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR)
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
What year was holly hunter a nominee?
CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
SELECT player FROM table_name_68 WHERE place = "t8" AND score = 75 - 71 = 146
Who is the player in t8 place with a 75-71=146 score?
CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT team FROM table_29556461_7 WHERE date = "January 19"
What team was Temple playing on January 19?
CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR)
SELECT region FROM table_name_39 WHERE catalog = "mhcl-20004"
What Region is the MHCL-20004 Catalog?
CREATE TABLE table_name_39 (region VARCHAR, catalog VARCHAR)
SELECT MAX(attendance) FROM table_14984103_1 WHERE game_site = "Los Angeles Memorial Coliseum"
Name the most attendance for game site for los angeles memorial coliseum
CREATE TABLE table_14984103_1 (attendance INTEGER, game_site VARCHAR)
SELECT MAX(points) FROM table_name_80 WHERE entrant = "fred tuck cars" AND year > 1960
How many points after 1960 for fred tuck cars?
CREATE TABLE table_name_80 (points INTEGER, entrant VARCHAR, year VARCHAR)