answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT tournament FROM table_name_26 WHERE 2011 = "qf"
Which tournament had a qf in 2011?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT paris___fra__ FROM table_name_67 WHERE "press" = "press" AND roger_françois = "carlo galimberti"
What was the press like in Paris for Roger Francois, and Carlo Galimberti?
CREATE TABLE table_name_67 (paris___fra__ VARCHAR, roger_françois VARCHAR)
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "kansas city chiefs" AND week < 13
What is the attendance for the game against the Kansas City Chiefs earlier than week 13?
CREATE TABLE table_name_32 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(year) FROM table_name_63 WHERE team = "north melbourne" AND player = "hamish mcintosh"
What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?
CREATE TABLE table_name_63 (year INTEGER, team VARCHAR, player VARCHAR)
SELECT COUNT(game) FROM table_name_70 WHERE team = "minnesota"
What game was Minnesota the team?
CREATE TABLE table_name_70 (game VARCHAR, team VARCHAR)
SELECT section_description FROM Sections WHERE section_name = 'h'
Describe the section h.
CREATE TABLE Sections (section_description VARCHAR, section_name VARCHAR)
SELECT AVG(episode_number) FROM table_name_40 WHERE title = "sugar daddy"
What is the number of the episode titled 'Sugar Daddy'?
CREATE TABLE table_name_40 (episode_number INTEGER, title VARCHAR)
SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn"
What was the score of the away team when hawthorn was the home team?
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain"
What's the name of spain rank greater than 2?
CREATE TABLE table_name_59 (name VARCHAR, rank VARCHAR, nationality VARCHAR)
SELECT incumbent FROM table_1342013_34 WHERE district = "Ohio 2"
who is the the incumbent with district being ohio 2
CREATE TABLE table_1342013_34 (incumbent VARCHAR, district VARCHAR)
SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE export_volume_of_goods_and_services__percent_change_ = "-4.2"
What is the current account balance for an export volume of goods and service value of -4.2?
CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, export_volume_of_goods_and_services__percent_change_ VARCHAR)
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Show the most common nationality for journalists.
CREATE TABLE journalist (Nationality VARCHAR)
SELECT first FROM table_name_42 WHERE surname = "searle"
Which First has a Surname of searle?
CREATE TABLE table_name_42 (first VARCHAR, surname VARCHAR)
SELECT d_46_√ FROM table_name_2 WHERE d_43_√ = "r 3"
What is the D 46 √ with a D 43 √ with r 3?
CREATE TABLE table_name_2 (d_46_√ VARCHAR, d_43_√ VARCHAR)
SELECT COUNT(*), semester, YEAR FROM SECTION GROUP BY semester, YEAR
Find the number of courses provided in each semester and year.
CREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)
SELECT round FROM table_name_83 WHERE college = "mississippi valley state"
What round was the player drafted from mississippi valley state?
CREATE TABLE table_name_83 (round VARCHAR, college VARCHAR)
SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 20
what is the average gold when rank is total and silver is more than 20?
CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(pick) FROM table_1013129_1 WHERE player = "Brett Lindros"
What is the smallest pick for the player, brett lindros?
CREATE TABLE table_1013129_1 (pick INTEGER, player VARCHAR)
SELECT county FROM table_1940144_1 WHERE population_2011 = 17908
In what counties is the 2011 population 17908?
CREATE TABLE table_1940144_1 (county VARCHAR, population_2011 VARCHAR)
SELECT runs FROM table_name_2 WHERE venue = "bellerive oval , hobart" AND player = "travis birt"
Name the Runs that has a Venue of bellerive oval , hobart, and a Player of travis birt?
CREATE TABLE table_name_2 (runs VARCHAR, venue VARCHAR, player VARCHAR)
SELECT partner FROM table_2820584_2 WHERE surface = "Hard"
Who was Betty's partner when the surface is hard?
CREATE TABLE table_2820584_2 (partner VARCHAR, surface VARCHAR)
SELECT date FROM table_name_38 WHERE winning_score = −14(68 - 68 - 67 - 71 = 274)
What is Date, when Winning Score is −14 (68-68-67-71=274)?
CREATE TABLE table_name_38 (date VARCHAR, winning_score VARCHAR)
SELECT season FROM table_name_1 WHERE match = "roma-napoli" AND date = "12 september 1993"
What season had the Roma-Napoli match on 12 September 1993?
CREATE TABLE table_name_1 (season VARCHAR, match VARCHAR, date VARCHAR)
SELECT AVG(rank) FROM table_name_26 WHERE studio = "paramount" AND gross = "$200,512,643"
What is the average rank of the movie from Paramount Studios that grossed $200,512,643?
CREATE TABLE table_name_26 (rank INTEGER, studio VARCHAR, gross VARCHAR)
SELECT table FROM table_27683516_3 WHERE team = "Slovan Bratislava"
What is the table when the team is slovan bratislava?
CREATE TABLE table_27683516_3 (table VARCHAR, team VARCHAR)
SELECT surface FROM table_name_88 WHERE partner = "julie halard-decugis" AND date = "october 8, 2000"
What type of surface was played on when julie halard-decugis was the partner on October 8, 2000?
CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR, date VARCHAR)
SELECT candidates FROM table_1341897_23 WHERE district = "Massachusetts 6"
Name the candidates for massachusetts 6
CREATE TABLE table_1341897_23 (candidates VARCHAR, district VARCHAR)
SELECT partner FROM table_name_33 WHERE date > 1971 AND outcome = "runner-up" AND score_in_the_final = "3–6, 3–6"
Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6, 3–6?
CREATE TABLE table_name_33 (partner VARCHAR, score_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT SUM(pick__number) FROM table_name_38 WHERE nfl_team = "carolina panthers" AND college = "syracuse"
What draft pick number attended syracuse and was drafted by the Carolina panthers?
CREATE TABLE table_name_38 (pick__number INTEGER, nfl_team VARCHAR, college VARCHAR)
SELECT MAX(points_won) FROM table_name_14 WHERE year = "1996"
How many points were won in 1996?
CREATE TABLE table_name_14 (points_won INTEGER, year VARCHAR)
SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech"
What is the lowest round for Georgia Tech?
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR)
SELECT result FROM table_name_17 WHERE nominee = "best new musical"
What is the result for the best new musical nominee?
CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR)
SELECT release_date FROM table_name_77 WHERE production_num = "6998"
What release date has 6998 as the production num.?
CREATE TABLE table_name_77 (release_date VARCHAR, production_num VARCHAR)
SELECT MAX(Adjusted) AS points FROM table_26454128_4 WHERE country = "Great Britain"
What is the most adjusted points for Great Britain?
CREATE TABLE table_26454128_4 (Adjusted INTEGER, country VARCHAR)
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT MAX(rank) FROM table_name_52 WHERE name = "travis watson" AND games < 14
What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT venue FROM table_name_22 WHERE player = "jack badcock"
Where did Jack Badcock play?
CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR)
SELECT MAX(poles) FROM table_2190919_3
What was the maximum amount of the poles?
CREATE TABLE table_2190919_3 (poles INTEGER)
SELECT identifier FROM table_name_45 WHERE power = "50,000 watts"
What is the identifier that has 50,000 watts of power?
CREATE TABLE table_name_45 (identifier VARCHAR, power VARCHAR)
SELECT outcome FROM table_name_1 WHERE tournament = "hershey"
What is the outcome for the Hershey tournament?
CREATE TABLE table_name_1 (outcome VARCHAR, tournament VARCHAR)
SELECT 1 AS st_round FROM table_name_91 WHERE team_1 = "ecac chaumont (d2)"
What is the 1st round result for ECAC Chaumont (D2) as team 1?
CREATE TABLE table_name_91 (team_1 VARCHAR)
SELECT lowest_point FROM table_1416612_1 WHERE highest_point = "Mount Greylock"
what's the lowest point with highest point being mount greylock
CREATE TABLE table_1416612_1 (lowest_point VARCHAR, highest_point VARCHAR)
SELECT COUNT(gdp_per_capita__nominal_) FROM table_11780179_1 WHERE gdp__nominal_ = "$29.9 billion"
How many countries has a gdp (nominal) of $29.9 billion?
CREATE TABLE table_11780179_1 (gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR)
SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = "2%" AND state_pensions = "7%" AND working_tax_credit = "2%" AND employment___salaries_ & _wages_ = "66%"
Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?
CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR)
SELECT AVG(place) FROM table_name_99 WHERE artist = "juliana pasha & luiz ejlli" AND points > 119
what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119?
CREATE TABLE table_name_99 (place INTEGER, artist VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_9 WHERE start < 2
Name the most year with start less than 2
CREATE TABLE table_name_9 (year INTEGER, start INTEGER)
SELECT to_par FROM table_name_79 WHERE player = "mike smith"
What is Mike Smith's To par?
CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR)
SELECT location FROM table_name_16 WHERE event = "extreme challenge 63" AND time = "2:00"
Where was Extreme Challenge 63 with a time of 2:00 held?
CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR, time VARCHAR)
SELECT score FROM table_name_6 WHERE leading_scorer = "tyrone hill , 20 points"
What is Score, when Leading Scorer is Tyrone Hill , 20 Points?
CREATE TABLE table_name_6 (score VARCHAR, leading_scorer VARCHAR)
SELECT losingteam FROM table_name_82 WHERE cup_finaldate = "20 august 1989"
What team lost on 20 August 1989?
CREATE TABLE table_name_82 (losingteam VARCHAR, cup_finaldate VARCHAR)
SELECT home_team AS score FROM table_name_64 WHERE away_team = "st kilda"
What is the home team score when st kilda is the away team?
CREATE TABLE table_name_64 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(goals_against) FROM table_name_33 WHERE lost = 45 AND points > 68
What is the sum of Goals Against, when Lost is 45, and when Points is greater than 68?
CREATE TABLE table_name_33 (goals_against INTEGER, lost VARCHAR, points VARCHAR)
SELECT bronze FROM table_name_91 WHERE total < 2
What is the value of bronze with less than 2 in total?
CREATE TABLE table_name_91 (bronze VARCHAR, total INTEGER)
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 MAX(martyred) FROM table_name_64 WHERE beatified = 1909 AND name = "john hoan trinh doan / st. john hoan" AND canonised > 1988
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?
CREATE TABLE table_name_64 (martyred INTEGER, canonised VARCHAR, beatified VARCHAR, name VARCHAR)
SELECT height__mtr_ FROM table_23495048_2 WHERE contestant = "Ulrike Wolful"
How many meters tall is Ulrike Wolful?
CREATE TABLE table_23495048_2 (height__mtr_ VARCHAR, contestant VARCHAR)
SELECT women’s_nickname FROM table_10577579_3 WHERE enrollment = 1500 AND location = "Mobile, Alabama"
Name the women's nickname when the enrollment is 1500 in mobile, Alabama.
CREATE TABLE table_10577579_3 (women’s_nickname VARCHAR, enrollment VARCHAR, location VARCHAR)
SELECT score FROM table_name_5 WHERE team_2 = "stade lavallois (d1)"
What was the score of team 2 Stade Lavallois (D1)?
CREATE TABLE table_name_5 (score VARCHAR, team_2 VARCHAR)
SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray"
Who's the Republican ticket with a Democratic ticket of m. william bray?
CREATE TABLE table_name_67 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT tier FROM table_name_59 WHERE opponent_in_the_final = "annalisa bona"
What was the tier versus Annalisa bona?
CREATE TABLE table_name_59 (tier VARCHAR, opponent_in_the_final VARCHAR)
SELECT director FROM table_11642945_1 WHERE celebrity = "Margot Kidder"
Margot Kidder had what director?
CREATE TABLE table_11642945_1 (director VARCHAR, celebrity VARCHAR)
SELECT COUNT(losses) FROM table_name_90 WHERE wins < 0
How many losses when there are less than 0 wins?
CREATE TABLE table_name_90 (losses VARCHAR, wins INTEGER)
SELECT precincts FROM table_17820556_4 WHERE g_hager = "19 (20%)"
How many precincts are in the county where G. Hager received 19 (20%) votes?
CREATE TABLE table_17820556_4 (precincts VARCHAR, g_hager VARCHAR)
SELECT date FROM table_name_50 WHERE visitor = "montreal"
What date was Montreal the visitor?
CREATE TABLE table_name_50 (date VARCHAR, visitor VARCHAR)
SELECT MIN(draw) FROM table_name_55 WHERE artist = "beathoven" AND place < 16
What was the lowest draw for Beathoven when the place was smaller than 16?
CREATE TABLE table_name_55 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT first_leg FROM table_name_13 WHERE opposition = "hibernian"
What was the first leg against Hibernian?
CREATE TABLE table_name_13 (first_leg VARCHAR, opposition VARCHAR)
SELECT year FROM table_name_61 WHERE location = "ta'izz"
What year is the location Ta'izz?
CREATE TABLE table_name_61 (year VARCHAR, location VARCHAR)
SELECT round FROM table_name_84 WHERE overall = 6
Name the round having an overall of 6
CREATE TABLE table_name_84 (round VARCHAR, overall VARCHAR)
SELECT opponent FROM table_name_54 WHERE game > 31 AND date > 30
Who was the opponent for a game over 31 and a date over 30?
CREATE TABLE table_name_54 (opponent VARCHAR, game VARCHAR, date VARCHAR)
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90
What was Jack Brabham's highest grid when his laps were more than 90?
CREATE TABLE table_name_76 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT entrant FROM table_name_33 WHERE pts = "4" AND chassis = "brm p25"
Which entrant has 4 points and BRM p25 for the Chassis?
CREATE TABLE table_name_33 (entrant VARCHAR, pts VARCHAR, chassis VARCHAR)
SELECT COUNT(colour) FROM table_11066073_1 WHERE registration_no = "MG-509"
What is the number of colour with the regisration number of mg-509?
CREATE TABLE table_11066073_1 (colour VARCHAR, registration_no VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10
For nations with more than 6 silvers and more than 10 golds, what is the lowest total?
CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT call_sign FROM table_name_65 WHERE erp_w = 27
Name the call sign for ERP W of 27
CREATE TABLE table_name_65 (call_sign VARCHAR, erp_w VARCHAR)
SELECT money_list_rank FROM table_13026799_3 WHERE year = 1966
What is the money list rank for 1966?
CREATE TABLE table_13026799_3 (money_list_rank VARCHAR, year VARCHAR)
SELECT MAX(profits__billion_) AS $_ FROM table_name_14 WHERE company = "walmart"
Name the highest Profits (billion $) which has a Company of walmart?
CREATE TABLE table_name_14 (profits__billion_ INTEGER, company VARCHAR)
SELECT end__utc_ FROM table_22385461_6 WHERE spacecraft = "STS-114 EVA 3"
What is the end (UTC) for spacecraft STS-114 Eva 3?
CREATE TABLE table_22385461_6 (end__utc_ VARCHAR, spacecraft VARCHAR)
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005"
When 2005 is the season how many drivers are there?
CREATE TABLE table_1771753_3 (driver VARCHAR, season VARCHAR)
SELECT winning_party_coalition FROM table_23512864_4 WHERE election_year = 1980
Who is the winning party/coalition name in election year 1980?
CREATE TABLE table_23512864_4 (winning_party_coalition VARCHAR, election_year VARCHAR)
SELECT COUNT(*) FROM Customers_cards WHERE card_type_code = "Debit"
How many debit cards do we have?
CREATE TABLE Customers_cards (card_type_code VARCHAR)
SELECT kit_manufacturer FROM table_name_90 WHERE team = "everton"
Which Kit Manufacturer supports team Everton?
CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR)
SELECT SUM(game) FROM table_name_87 WHERE opponent = "@ chicago stags"
what is the game when the opponent is @ chicago stags?
CREATE TABLE table_name_87 (game INTEGER, opponent VARCHAR)
SELECT surface FROM table_name_72 WHERE date = "october 10, 2004"
What was the surface for October 10, 2004?
CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR)
SELECT wins FROM table_name_19 WHERE pct = ".848"
How many wins when the pct, is .848?
CREATE TABLE table_name_19 (wins VARCHAR, pct VARCHAR)
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR)
SELECT pick FROM table_name_59 WHERE position = "ol" AND round < 6
What is Pick, when Position is OL, and when Round is less than 6?
CREATE TABLE table_name_59 (pick VARCHAR, position VARCHAR, round VARCHAR)
SELECT race_name FROM table_name_10 WHERE round = 6
Which race was in round 6?
CREATE TABLE table_name_10 (race_name VARCHAR, round VARCHAR)
SELECT club FROM table_name_62 WHERE played = "22" AND try_bonus = "0"
What is the name of the club when the played number is 22, and the try bonus was 0?
CREATE TABLE table_name_62 (club VARCHAR, played VARCHAR, try_bonus VARCHAR)
SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor"
What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?
CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT SUM(ast_avg) FROM table_name_20 WHERE rank = 5 AND games > 108
WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?
CREATE TABLE table_name_20 (ast_avg INTEGER, rank VARCHAR, games VARCHAR)
SELECT SUM(Amount_Payment) FROM Payments
What is the total amount of payment?
CREATE TABLE Payments (Amount_Payment INTEGER)
SELECT COUNT(round) FROM table_name_12 WHERE position = "linebacker" AND player = "blane smith"
How many rounds did Blane Smith play linebacker?
CREATE TABLE table_name_12 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT state_country FROM table_25594888_1 WHERE skipper = "Sean Langman"
What State/Country is Sean Langman the skipper?
CREATE TABLE table_25594888_1 (state_country VARCHAR, skipper VARCHAR)
SELECT venue FROM table_name_90 WHERE score = "0-0" AND date = "april 11, 2007"
What was the location for the match held on April 11, 2007, which ended with a score of 0-0?
CREATE TABLE table_name_90 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT latin FROM table_name_13 WHERE tibetan = "ས"
What is the Latin letter for the Tibetan of ས?
CREATE TABLE table_name_13 (latin VARCHAR, tibetan VARCHAR)
SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"
Who write episode number 48 in the series?
CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT MIN(term_limited) FROM table_26129220_2 WHERE residence = "Coshocton"
What is the earliest term limit for the senator who resides in Coshocton?
CREATE TABLE table_26129220_2 (term_limited INTEGER, residence VARCHAR)
SELECT MIN(drawn) FROM table_name_1 WHERE lost < 0
What's the lowest Drawn that has a Lost that's less than 0?
CREATE TABLE table_name_1 (drawn INTEGER, lost INTEGER)
SELECT гә_гә_[ɡʷ] FROM table_202365_2 WHERE ҕь_ҕь_[ʁʲ_ɣʲ] = "Ҭә ҭә [tʷʰ]"
what is гә гә [ɡʷ] when ҕь ҕь [ʁʲ/ɣʲ] is ҭә ҭә [tʷʰ]?
CREATE TABLE table_202365_2 (гә_гә_ VARCHAR, ɡʷ VARCHAR, ҕь_ҕь_ VARCHAR, ʁʲ_ɣʲ VARCHAR)
SELECT civilian_deaths FROM table_name_21 WHERE military_deaths = "231"
How many civilians died in the conflict that left 231 members of the military dead?
CREATE TABLE table_name_21 (civilian_deaths VARCHAR, military_deaths VARCHAR)