answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT country_territory FROM table_14308895_2 WHERE former_pageant = "Miss Universe Hungary"
which country has miss universe Hungary as former pageant?
CREATE TABLE table_14308895_2 (country_territory VARCHAR, former_pageant VARCHAR)
SELECT boat_builder FROM table_name_28 WHERE number < 65 AND name = "valmai"
What boat builder built the valmai with a number less than 65?
CREATE TABLE table_name_28 (boat_builder VARCHAR, number VARCHAR, name VARCHAR)
SELECT icao FROM table_name_69 WHERE iata = "rgn"
Name the ICAO for IATA of rgn
CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR)
SELECT round FROM table_name_53 WHERE pick__number = 12
In what Round was Pick #12 drafted?
CREATE TABLE table_name_53 (round VARCHAR, pick__number VARCHAR)
SELECT AVG(points) FROM table_name_32 WHERE performer = "rob burke band" AND draw > 1
Which Points has a Performer of rob burke band and a Draw larger than 1?
CREATE TABLE table_name_32 (points INTEGER, performer VARCHAR, draw VARCHAR)
SELECT opponent FROM table_name_23 WHERE edition = "2003 davis cup europe/africa group ii"
Who was the opponent for the 2003 davis cup europe/africa group ii?
CREATE TABLE table_name_23 (opponent VARCHAR, edition VARCHAR)
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins"
Score of 6–4, and a Opponent of @ marlins had what record?
CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_24 WHERE score = 69 - 69 - 73 = 211
What country scored 69-69-73=211?
CREATE TABLE table_name_24 (country VARCHAR, score VARCHAR)
SELECT conf_record FROM table_16295365_1 WHERE conference = "Sun Belt"
For teams in the Sun Belt conference, what is the conference record?
CREATE TABLE table_16295365_1 (conf_record VARCHAR, conference VARCHAR)
SELECT first_performance FROM table_name_74 WHERE status = "past" AND style = "ballet, tap"
What is the First Performance when the status is past and the style was ballet, tap?
CREATE TABLE table_name_74 (first_performance VARCHAR, status VARCHAR, style VARCHAR)
SELECT date FROM table_27902171_8 WHERE score = "W 112-91"
Name the date for score of w 112-91
CREATE TABLE table_27902171_8 (date VARCHAR, score VARCHAR)
SELECT MIN(season) FROM table_245694_4 WHERE us_open_cup = "Round of 32"
Name the least season for round of 32
CREATE TABLE table_245694_4 (season INTEGER, us_open_cup VARCHAR)
SELECT nominated_work FROM table_name_95 WHERE year < 2003
What was the Nominated Work earlier than 2003?
CREATE TABLE table_name_95 (nominated_work VARCHAR, year INTEGER)
SELECT bandwidth_included FROM table_name_66 WHERE price = "266 sar"
For the provider that costs 266 sar, what is the Bandwidth Included?
CREATE TABLE table_name_66 (bandwidth_included VARCHAR, price VARCHAR)
SELECT MAX(home_total) FROM table_27094070_4
What was the highest home total?
CREATE TABLE table_27094070_4 (home_total INTEGER)
SELECT title FROM table_2791668_1 WHERE written_by = "Philippe Browning"
what is the name of the episode whose writer is philippe browning?
CREATE TABLE table_2791668_1 (title VARCHAR, written_by VARCHAR)
SELECT school_club_team FROM table_name_84 WHERE acquisition_via = "rookie draft" AND position = "guard" AND name = "dennis miranda"
What team acquired as a rookie draft in the position of guard Dennis Miranda?
CREATE TABLE table_name_84 (school_club_team VARCHAR, name VARCHAR, acquisition_via VARCHAR, position VARCHAR)
SELECT game_site FROM table_name_87 WHERE week = "14"
What was the game site for week 14?
CREATE TABLE table_name_87 (game_site VARCHAR, week VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = "diffuse nebula" AND declination___j2000__ = "°42′30″"
What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995?
CREATE TABLE table_name_14 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR)
SELECT location_attendance FROM table_23248940_10 WHERE team = "Washington"
What was the location and it's attendance when the Bobcats played against Washington?
CREATE TABLE table_23248940_10 (location_attendance VARCHAR, team VARCHAR)
SELECT employees__world_ FROM table_name_60 WHERE revenue__mil€_ = "104.000"
What is hte nuumber of employees that has a revenue of 104.000?
CREATE TABLE table_name_60 (employees__world_ VARCHAR, revenue__mil€_ VARCHAR)
SELECT AVG(pick) FROM table_name_17 WHERE round > 1 AND player = "reyshawn terry"
What is the pick number later than round 1, for Reyshawn Terry?
CREATE TABLE table_name_17 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT game FROM table_13480122_5 WHERE record = "29–3"
what's the game with record being 29–3
CREATE TABLE table_13480122_5 (game VARCHAR, record VARCHAR)
SELECT SUM(delegates) FROM table_name_22 WHERE counties_carries = 4 AND state_delegate > 1 OFFSET 903
What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?
CREATE TABLE table_name_22 (delegates INTEGER, counties_carries VARCHAR, state_delegate VARCHAR)
SELECT land___sqmi__ FROM table_18600760_10 WHERE county = "Grand Forks"
How big is the land in square miles of Grand Forks county?
CREATE TABLE table_18600760_10 (land___sqmi__ VARCHAR, county VARCHAR)
SELECT calls FROM table_name_88 WHERE frequency = "1290 khz"
Tell me the calls for frequency of 1290 khz
CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR)
SELECT location FROM table_name_11 WHERE built = "1910"
Where is the historic place that was built in 1910?
CREATE TABLE table_name_11 (location VARCHAR, built VARCHAR)
SELECT winning_score FROM table_name_67 WHERE margin_of_victory = "1 stroke" AND tournament = "linde german masters"
What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?
CREATE TABLE table_name_67 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT state FROM customers GROUP BY state ORDER BY COUNT(*) LIMIT 1
Which state has the most customers?
CREATE TABLE customers (state VARCHAR)
SELECT MAX(year) FROM table_name_26 WHERE entrant = "fisa"
What is the most recent championship for FISA?
CREATE TABLE table_name_26 (year INTEGER, entrant VARCHAR)
SELECT player FROM table_name_53 WHERE score = 71 - 73 - 68 - 75 = 287
Which player had a score of 71-73-68-75=287?
CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR)
SELECT candidates FROM table_1341423_40 WHERE incumbent = "Lindsey Graham"
who are the candidates when the incumbent is lindsey graham?
CREATE TABLE table_1341423_40 (candidates VARCHAR, incumbent VARCHAR)
SELECT trofeo_fast_team FROM table_name_32 WHERE stage = "10"
who was the trofeo fast team in stage 10?
CREATE TABLE table_name_32 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2
Show the names of editors that are on at least two journal committees.
CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)
SELECT directed_by FROM table_22269839_1 WHERE written_by = "Cherry Chevapravatdumrong"
Who directed the title written by cherry chevapravatdumrong?
CREATE TABLE table_22269839_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT job_title, max_salary - min_salary FROM jobs WHERE max_salary BETWEEN 12000 AND 18000
display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.
CREATE TABLE jobs (job_title VARCHAR, max_salary INTEGER, min_salary VARCHAR)
SELECT chassis FROM table_name_92 WHERE entrant = "officine alfieri maserati" AND year = 1952
What is the chassis for a 1952 officine alfieri maserati with an entrant?
CREATE TABLE table_name_92 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT COUNT(original_air_date) FROM table_18428024_3 WHERE no_in_series = 360
What is the original air date in series 360?
CREATE TABLE table_18428024_3 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT date FROM table_name_16 WHERE score = "130-100"
What was the date with a resulted score of 130-100?
CREATE TABLE table_name_16 (date VARCHAR, score VARCHAR)
SELECT team FROM table_24584486_1 WHERE points = 38
What team was he on the year he had 38 points?
CREATE TABLE table_24584486_1 (team VARCHAR, points VARCHAR)
SELECT innings FROM table_21100348_10 WHERE average = "41.43"
How man innings were there during the period with a career average of 41.43?
CREATE TABLE table_21100348_10 (innings VARCHAR, average VARCHAR)
SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 000
WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000?
CREATE TABLE table_name_99 (match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR)
SELECT number_of_seasons_in_liga_mx FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1962-63"
How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63?
CREATE TABLE table_18143210_2 (number_of_seasons_in_liga_mx VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT opponent FROM table_name_46 WHERE week = 9
Which opponent was played on week 9?
CREATE TABLE table_name_46 (opponent VARCHAR, week VARCHAR)
SELECT ergative FROM table_name_56 WHERE nominative = "chven-i"
With a nominative of chven-i what is the ergative?
CREATE TABLE table_name_56 (ergative VARCHAR, nominative VARCHAR)
SELECT SUM(number) FROM table_name_24 WHERE name = "brandon dean"
How many numbers had Brandon Dean as a name?
CREATE TABLE table_name_24 (number INTEGER, name VARCHAR)
SELECT COUNT(laps) FROM table_name_44 WHERE grid = 9
How many laps were there with #9 grid?
CREATE TABLE table_name_44 (laps VARCHAR, grid VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE rsbac = "Unknown"
what's the dbeingtribution with rsbac being unknown
CREATE TABLE table_1357052_6 (distribution VARCHAR, rsbac VARCHAR)
SELECT COUNT(attendance) FROM table_name_31 WHERE visitor = "miami" AND home = "washington"
How many people were at Washington's home game against Miami?
CREATE TABLE table_name_31 (attendance VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT _number___county FROM table_name_88 WHERE location = "ossian"
Which #/ County has a Location of ossian?
CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR)
SELECT viewers FROM table_11642945_1 WHERE director = "Matt Gallagher"
Which viewers had Matt Gallagher as the director?
CREATE TABLE table_11642945_1 (viewers VARCHAR, director VARCHAR)
SELECT res FROM table_name_51 WHERE time = "1:09"
What is Res., when Time is "1:09"?
CREATE TABLE table_name_51 (res VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_81 WHERE lane = 7
The swimmer in lane 7 has what as the smallest rank?
CREATE TABLE table_name_81 (rank INTEGER, lane VARCHAR)
SELECT coinage_metal FROM table_26336060_19 WHERE location = "Fribourg" AND denomination = "00005 5 francs"
What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT race FROM table_name_98 WHERE position = "dnf"
Whice race ended with a DNF?
CREATE TABLE table_name_98 (race VARCHAR, position VARCHAR)
SELECT days FROM table_name_48 WHERE the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003"
Which days were presented by Andreas Mikroutsikos and were launched on March 10, 2003?
CREATE TABLE table_name_48 (days VARCHAR, the_presenter VARCHAR, launch_date VARCHAR)
SELECT location FROM table_name_34 WHERE game = 64
What location did game 64 take place
CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR)
SELECT country FROM table_name_15 WHERE to_par = "+3" AND player = "ed sneed"
What is the country of player ed sneed with a to par of +3?
CREATE TABLE table_name_15 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT body_styles FROM table_name_9 WHERE engine = "devaux-hall inline 6"
What body styles have devaux-hall inline 6 as the engine?
CREATE TABLE table_name_9 (body_styles VARCHAR, engine VARCHAR)
SELECT representing FROM table_name_59 WHERE original_title = "om fjorten dage"
Name the representation for om fjorten dage
CREATE TABLE table_name_59 (representing VARCHAR, original_title VARCHAR)
SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass"
Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?
CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT distance FROM table_28490105_1 WHERE supporting = "Champ Car World Series ( Grand Prix of Cleveland )" AND tc_winning_car = "Pierre Kleinubing"
What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?
CREATE TABLE table_28490105_1 (distance VARCHAR, supporting VARCHAR, tc_winning_car VARCHAR)
SELECT wins FROM table_name_36 WHERE races_† = "12/12"
How many wins are there for the Races of 12/12?
CREATE TABLE table_name_36 (wins VARCHAR, races_† VARCHAR)
SELECT points_1 FROM table_name_88 WHERE lost = 22
WHAT POINTS 1 HAD A 22 LOST?
CREATE TABLE table_name_88 (points_1 VARCHAR, lost VARCHAR)
SELECT monarch FROM table_26460435_8 WHERE heir = "Thado Minsaw"
Who is the monarch with the heir thado minsaw?
CREATE TABLE table_26460435_8 (monarch VARCHAR, heir VARCHAR)
SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring"
what's the pole position with location being hockenheimring
CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR)
SELECT league FROM table_name_13 WHERE position = "7th of 24" AND goals < 24
Position of 7th of 24, and a Goals smaller than 24 is what league?
CREATE TABLE table_name_13 (league VARCHAR, position VARCHAR, goals VARCHAR)
SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288
Name the sum To par for score of 71-74-71-72=288
CREATE TABLE table_name_26 (to_par INTEGER, score VARCHAR)
SELECT MAX(td) FROM table_18064020_21
What is the largest number of tds scored for a player?
CREATE TABLE table_18064020_21 (td INTEGER)
SELECT simplified FROM table_name_13 WHERE density = "52"
What shows for simplified when the density is 52?
CREATE TABLE table_name_13 (simplified VARCHAR, density VARCHAR)
SELECT circuit FROM table_10264179_2 WHERE fastest_lap = "Hideki Mutoh"
What circuit was the race where Hideki Mutoh had the fastest lap?
CREATE TABLE table_10264179_2 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT first_elected FROM table_name_6 WHERE party = "labor" AND member = "jill hall"
When was Jill Hall of the Labor Party first elected?
CREATE TABLE table_name_6 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
SELECT date_successor_seated FROM table_1446600_4 WHERE district = "Georgia 6th"
What is the date the successor was seated for the georgia 6th district?
CREATE TABLE table_1446600_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT COUNT(total) FROM table_name_54 WHERE silver < 0
What is the sum of the total number of medals when silver is less than 0?
CREATE TABLE table_name_54 (total VARCHAR, silver INTEGER)
SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012"
How many episodes aired on 25 october 2012?
CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)
SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich"
Show first name and last name for all the students advised by Michael Goodrich.
CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR)
SELECT time FROM table_name_70 WHERE lane = 4
What was lane 4's time?
CREATE TABLE table_name_70 (time VARCHAR, lane VARCHAR)
SELECT AVG(LifeExpectancy) FROM country WHERE Continent = "Africa" AND GovernmentForm = "Republic"
What is the average life expectancy in African countries that are republics?
CREATE TABLE country (LifeExpectancy INTEGER, Continent VARCHAR, GovernmentForm VARCHAR)
SELECT SUM(position) FROM table_name_28 WHERE goals_against < 43 AND wins > 14 AND played > 38
Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?
CREATE TABLE table_name_28 (position INTEGER, played VARCHAR, goals_against VARCHAR, wins VARCHAR)
SELECT date FROM table_name_87 WHERE score = "6–3, 6–2"
Tell me the date for 6–3, 6–2
CREATE TABLE table_name_87 (date VARCHAR, score VARCHAR)
SELECT venue FROM table_name_76 WHERE score = "1-1"
In what Venue was the Score 1-1?
CREATE TABLE table_name_76 (venue VARCHAR, score VARCHAR)
SELECT country FROM table_name_99 WHERE score = 71 - 71 - 68 = 210
Which country has the score of 71-71-68=210?
CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR)
SELECT class FROM table_name_53 WHERE team = "le mans porsche team joest racing"
The Le Mans Porsche team Joest Racing is in which class?
CREATE TABLE table_name_53 (class VARCHAR, team VARCHAR)
SELECT MAX(ties) FROM table_name_57 WHERE team = "montreal victorias" AND goals_against < 24
How many ties did the Montreal Victorias have with a GA of less than 24?
CREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR)
SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279)
Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?
CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT series FROM table_name_96 WHERE season < 2003 AND podiums = "1" AND points = "n/a"
What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?
CREATE TABLE table_name_96 (series VARCHAR, points VARCHAR, season VARCHAR, podiums VARCHAR)
SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 0
What is the largest % Won with a Lost smaller than 0?
CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER)
SELECT masculine_u_stems FROM table_name_68 WHERE neuter_a_stems = "skipum"
What is the masculine u form for the old Swedish word with a neuter a form of skipum?
CREATE TABLE table_name_68 (masculine_u_stems VARCHAR, neuter_a_stems VARCHAR)
SELECT COUNT(scores_by_each_individual_judge) FROM table_18278508_6 WHERE co_contestant__yaar_vs_pyaar_ = "Mukul Dev"
How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev?
CREATE TABLE table_18278508_6 (scores_by_each_individual_judge VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT save FROM table_name_96 WHERE loss = "sanderson (6-5)"
What was the Save in the game that has a Loss of sanderson (6-5)?
CREATE TABLE table_name_96 (save VARCHAR, loss VARCHAR)
SELECT fee FROM table_27998152_1 WHERE previous_club = "Ankaragücü"
what is the fee for ankaragücü previous club
CREATE TABLE table_27998152_1 (fee VARCHAR, previous_club VARCHAR)
SELECT MIN(pick) FROM table_2840500_1 WHERE player = "Ric Jackman"
What draft pick number was Ric Jackman?
CREATE TABLE table_2840500_1 (pick INTEGER, player VARCHAR)
SELECT winner FROM table_name_59 WHERE runner_up = "kimberly kim" AND country = "united states"
Who was the winner from the United States the year Kimberly Kim was runner-up?
CREATE TABLE table_name_59 (winner VARCHAR, runner_up VARCHAR, country VARCHAR)
SELECT ties FROM table_name_74 WHERE drawn = "20"
How many ties drawed at 20?
CREATE TABLE table_name_74 (ties VARCHAR, drawn VARCHAR)
SELECT milepost FROM table_2572788_1 WHERE town_city = "Beacon Falls"
At what milepost is Beacon Falls?
CREATE TABLE table_2572788_1 (milepost VARCHAR, town_city VARCHAR)
SELECT track FROM table_name_18 WHERE year = 1982
What's the track for 1982?
CREATE TABLE table_name_18 (track VARCHAR, year VARCHAR)
SELECT result FROM table_name_79 WHERE week < 2
What results has a week smaller than 2?
CREATE TABLE table_name_79 (result VARCHAR, week INTEGER)
SELECT batting_style FROM table_name_75 WHERE bowling_style = "right arm medium pace" AND birth_date = "10 february 1910 (aged 29)"
What is the batting style of the person who has a right arm medium pace bowling style and a birth date of 10 February 1910 (aged 29)?
CREATE TABLE table_name_75 (batting_style VARCHAR, bowling_style VARCHAR, birth_date VARCHAR)
SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011
Show the names and genders of players with a coach starting after 2011.
CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)
SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino"
Lee Trevino of the United States with a total greater than 294 had what To par?
CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR)