answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT against FROM table_name_99 WHERE result = "3–6, 2–6"
Who was played against with a result of 3–6, 2–6?
CREATE TABLE table_name_99 (against VARCHAR, result VARCHAR)
SELECT AVG(founded) FROM table_name_13 WHERE suburb_town = "vineyard"
On average, when were vineyard schools founded?
CREATE TABLE table_name_13 (founded INTEGER, suburb_town VARCHAR)
SELECT years_in_orlando FROM table_name_7 WHERE nationality = "united states" AND school_club_team = "clemson"
What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson?
CREATE TABLE table_name_7 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT AVG(2007) FROM table_name_6 WHERE 2009 < 20 AND 2006 = 2.8
What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT place FROM table_name_95 WHERE score = 71 - 69 - 66 = 206
What is the place of the player with a 71-69-66=206 score?
CREATE TABLE table_name_95 (place VARCHAR, score VARCHAR)
SELECT power__kw_ FROM table_27588823_2 WHERE callsign = "DWZF"
How much power does dwzf have?
CREATE TABLE table_27588823_2 (power__kw_ VARCHAR, callsign VARCHAR)
SELECT MAX(crowd) FROM table_name_90 WHERE venue = "junction oval"
What was the highest attendance at Junction Oval?
CREATE TABLE table_name_90 (crowd INTEGER, venue VARCHAR)
SELECT location FROM table_name_93 WHERE winner = "hale irwin (19)"
Where was the tournament won by Hale Irwin (19)?
CREATE TABLE table_name_93 (location VARCHAR, winner 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 season FROM table_name_7 WHERE club = "real madrid" AND rank < 6 AND goals < 121
Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?
CREATE TABLE table_name_7 (season VARCHAR, goals VARCHAR, club VARCHAR, rank VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE position = "ls"
What is the lowest round that a pick had a position of ls?
CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
SELECT torque FROM table_name_15 WHERE engine = "5.8l v12"
What is the torque of the 5.8l v12 engine?
CREATE TABLE table_name_15 (torque VARCHAR, engine VARCHAR)
SELECT MIN(tie_no) FROM table_17736890_5 WHERE home_team = "Chelsea"
What tie number featured Chelsea as the home team?
CREATE TABLE table_17736890_5 (tie_no INTEGER, home_team VARCHAR)
SELECT balls FROM table_name_36 WHERE strike_rate = "70.10"
When the strike rate is 70.10, what is the balls?
CREATE TABLE table_name_36 (balls VARCHAR, strike_rate VARCHAR)
SELECT pinyin FROM table_1976898_1 WHERE post_code = 246500
What's the Pinyin name of the county with a postcode 246500?
CREATE TABLE table_1976898_1 (pinyin VARCHAR, post_code VARCHAR)
SELECT MAX(week) FROM table_name_43 WHERE result = "l 12–7"
What is the latest week with a game with a result of l 12–7?
CREATE TABLE table_name_43 (week INTEGER, result VARCHAR)
SELECT realvideo FROM table_name_86 WHERE mpeg_2 = "yes" AND mpeg_1 = "yes"
Tell me the MPEG-2 of yes and MPEG-1 of yes
CREATE TABLE table_name_86 (realvideo VARCHAR, mpeg_2 VARCHAR, mpeg_1 VARCHAR)
SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone"
Name the fastest lap for piquet sports and silverstone
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT title FROM table_name_23 WHERE no_in_series < 4
What are the titles for episodes prior to episode 4?
CREATE TABLE table_name_23 (title VARCHAR, no_in_series INTEGER)
SELECT authority FROM table_name_7 WHERE roll = 40
What's the authority when the roll is 40?
CREATE TABLE table_name_7 (authority VARCHAR, roll VARCHAR)
SELECT week_5 FROM table_name_3 WHERE week_6 = "evicted" AND week_2 = "34.55"
What is week 5 when week 6 is evicted, and week 2 is 34.55?
CREATE TABLE table_name_3 (week_5 VARCHAR, week_6 VARCHAR, week_2 VARCHAR)
SELECT score FROM table_name_21 WHERE place = "t5" AND country = "united states" AND player = "davis love iii"
What is Score, when Place is "T5", when Country is "United States", and when Player is "Davis Love III"?
CREATE TABLE table_name_21 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
SELECT candidates FROM table_2668336_24 WHERE incumbent = "John Pegram"
Who are the candidates when the incumbent is john pegram?
CREATE TABLE table_2668336_24 (candidates VARCHAR, incumbent VARCHAR)
SELECT 2006 FROM table_name_7 WHERE 1990 = "grand slam tournaments"
What shows for 2006 when 1999 is Grand Slam Tournaments?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT record FROM table_name_25 WHERE date = "april 22"
What is the record for April 22?
CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR)
SELECT venue FROM table_name_42 WHERE batting_partners = "mahela jayawardene and thilan samaraweera"
What venue did mahela jayawardene and thilan samaraweera play at?
CREATE TABLE table_name_42 (venue VARCHAR, batting_partners VARCHAR)
SELECT nation FROM table_name_62 WHERE athlete = "paavo nurmi" AND medal_count < 12
What nation has paavo nurmi as the athlete, with a medal count less than 12?
CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, medal_count VARCHAR)
SELECT card_id, customer_id, card_type_code, card_number FROM Customers_cards
Show ids, customer ids, card type codes, card numbers for all cards.
CREATE TABLE Customers_cards (card_id VARCHAR, customer_id VARCHAR, card_type_code VARCHAR, card_number VARCHAR)
SELECT billboard_peak FROM table_name_95 WHERE label = "mca" AND date_of_release = "february 2, 1976"
What was the Billboard peak for the album released on February 2, 1976 by MCA?
CREATE TABLE table_name_95 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR)
SELECT title FROM table_2468961_4 WHERE written_by = "Julia Newton" AND no_in_series = 48
What was the title of the episode written by Julia Newton in series 48?
CREATE TABLE table_2468961_4 (title VARCHAR, written_by VARCHAR, no_in_series VARCHAR)
SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__km²_ > 908 OFFSET 607.67
What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km²?
CREATE TABLE table_name_38 (population___2011_census__ INTEGER, land_area__km²_ INTEGER)
SELECT teams FROM table_name_58 WHERE home = "5-0"
What teams has a home of 5-0?
CREATE TABLE table_name_58 (teams VARCHAR, home VARCHAR)
SELECT category FROM table_name_81 WHERE nominee = "carmen salinas"
In what category is Carmen Salinas nominated?
CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR)
SELECT position FROM table_name_73 WHERE height__cm_ < 183 AND weight__kg_ < 91 AND birthplace = "bloomington, minnesota"
What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota?
CREATE TABLE table_name_73 (position VARCHAR, birthplace VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR)
SELECT races FROM table_name_36 WHERE poles = "test driver" AND team_name = "lucky strike honda racing f1 team"
Which race has a pole of test driver and a team name of Lucky Strike Honda Racing f1 team?
CREATE TABLE table_name_36 (races VARCHAR, poles VARCHAR, team_name VARCHAR)
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr"
Which Airline has a Fleet size larger than 17, and a IATA of pr?
CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
SELECT MAX(league) FROM table_17598822_11 WHERE scottish_cup = 0
Name the maximum leagure for 0 scottish cup
CREATE TABLE table_17598822_11 (league INTEGER, scottish_cup VARCHAR)
SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = "Toby Roth"
How many districts had results related to incumbent Toby Roth?
CREATE TABLE table_1341472_51 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone"
How many 2006 subscribers are named Vodafone?
CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ VARCHAR, provider VARCHAR)
SELECT score FROM table_name_28 WHERE game > 32 AND points < 42 AND december > 19 AND record = "18–12–5"
Which Score has a Game larger than 32, and Points smaller than 42, and a December larger than 19, and a Record of 18–12–5?
CREATE TABLE table_name_28 (score VARCHAR, record VARCHAR, december VARCHAR, game VARCHAR, points VARCHAR)
SELECT AVG(matches) FROM table_name_81 WHERE round = "third qualifying round"
What is the average Matches, when Round is Third Qualifying Round?
CREATE TABLE table_name_81 (matches INTEGER, round VARCHAR)
SELECT MIN(catches) FROM table_27771406_1 WHERE player = "Clifford McWatt"
How many catches did Clifford McWatt have?
CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR)
SELECT elevated FROM table_name_23 WHERE elector = "matteo orsini rosso"
Which Elevated has an Elector of matteo orsini rosso?
CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR)
SELECT original_title FROM table_name_73 WHERE director = "ting shan-si" AND film_title_used_in_nomination = "the 800 heroes"
What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"?
CREATE TABLE table_name_73 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND points > 24
What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?
CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT record FROM table_21092444_1 WHERE black_knights_points = 54
Name the record for black knights points 54
CREATE TABLE table_21092444_1 (record VARCHAR, black_knights_points VARCHAR)
SELECT visitor FROM table_name_29 WHERE home = "ny rangers"
Name the visitor for home of ny rangers
CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)
SELECT COUNT(sunk_by_warship_or_raider) FROM table_name_30 WHERE german_submarines_lost = 20 AND sunk_by_aircraft > 21616
What is the total number sunk by warship or raider with 20 German submarines lost and more than 21616 sunk by aircraft?
CREATE TABLE table_name_30 (sunk_by_warship_or_raider VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR)
SELECT town_city FROM table_name_39 WHERE name = "garfield county museum"
What city is Garfield County Museum located in?
CREATE TABLE table_name_39 (town_city VARCHAR, name VARCHAR)
SELECT catalogue FROM table_name_73 WHERE song_title = "heart of rome"
What is Heart of Rome's catalogue number?
CREATE TABLE table_name_73 (catalogue VARCHAR, song_title VARCHAR)
SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 10
What is the number of losses when the goal difference was -8, and position is smaller than 10?
CREATE TABLE table_name_37 (losses VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT chief_judge FROM table_name_42 WHERE appointed_by = "reagan category:articles with hcards"
Which Chief Judge has Appointed by of reagan category:articles with hcards?
CREATE TABLE table_name_42 (chief_judge VARCHAR, appointed_by VARCHAR)
SELECT population FROM table_12108_1 WHERE "area__sq_mi_" = "area__sq_mi_"
what is the population where the area (sq. mi.) is area (sq. mi.)?
CREATE TABLE table_12108_1 (population VARCHAR)
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5
A list of the top 5 countries by number of invoices. List country name and number of invoices.
CREATE TABLE invoices (billing_country VARCHAR)
SELECT AVG(apps) FROM table_name_96 WHERE goals > 73 AND rank > 13
How many apps when the rank was after 13 and having more than 73 goals?
CREATE TABLE table_name_96 (apps INTEGER, goals VARCHAR, rank VARCHAR)
SELECT date FROM table_name_22 WHERE week = 1
Which date has 1 as the week?
CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR)
SELECT service_id, event_details FROM EVENTS
List the service id and details for the events.
CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR)
SELECT social_sec_leeds FROM table_name_62 WHERE media_officer = "jason james" AND treasurer = "james davidson"
What kind of Social Sec Leeds has a Media Officer of jason james and a Treasurer of james davidson?
CREATE TABLE table_name_62 (social_sec_leeds VARCHAR, media_officer VARCHAR, treasurer VARCHAR)
SELECT MIN(Ends) AS won FROM table_26209210_2 WHERE w = 8
What is the lowest ends won when w is 8?
CREATE TABLE table_26209210_2 (Ends INTEGER, w VARCHAR)
SELECT station FROM table_name_15 WHERE height_above_sea_level__m_ = "54m" AND "closed" = "closed"
Which station that sat 54m above seal level is now Closed?
CREATE TABLE table_name_15 (station VARCHAR, height_above_sea_level__m_ VARCHAR)
SELECT SUM(points) FROM table_name_39 WHERE club = "nevėžis-2 kėdainiai" AND goals_conceded > 35
What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?
CREATE TABLE table_name_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_38 WHERE position = "right wing" AND round = "sup"
What League's Round is Sup and Position is Right Wing?
CREATE TABLE table_name_38 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
SELECT discipline FROM table_name_93 WHERE session = "pre-race test"
What type of motorsport has a session of pre-race test?
CREATE TABLE table_name_93 (discipline VARCHAR, session VARCHAR)
SELECT AVG(gold) FROM table_name_90 WHERE total > 1 AND bronze < 10 AND nation = "switzerland" AND silver > 1
What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?
CREATE TABLE table_name_90 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT country FROM table_name_65 WHERE player = "craig stadler"
What is the country of Craig Stadler?
CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)
SELECT silver FROM table_name_78 WHERE nation = "turkey"
How many silvers did Turkey get?
CREATE TABLE table_name_78 (silver VARCHAR, nation VARCHAR)
SELECT COUNT(fastest_lap) FROM table_25322130_3 WHERE round = "14"
Name the fastest lap for round 14
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, round VARCHAR)
SELECT player FROM table_name_22 WHERE position = "forward" AND school_club_team = "georgia tech"
Which Player has a Position of forward, and a School/Club Team of georgia tech?
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT MIN(year) FROM table_22858557_1 WHERE outcome = "Runner-up"
What is the year where the runner-up outcome was at its basic minimum?
CREATE TABLE table_22858557_1 (year INTEGER, outcome VARCHAR)
SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16
How many object dates does episode #16 have?
CREATE TABLE table_29635868_1 (object_date VARCHAR, episode_number VARCHAR)
SELECT player FROM table_name_62 WHERE new_wnba_team = "miami sol" AND college_country_team = "north carolina state"
Who is the player who played for the Miami Sol and went to school at North Carolina State?
CREATE TABLE table_name_62 (player VARCHAR, new_wnba_team VARCHAR, college_country_team VARCHAR)
SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo"
Name the block A for shuji kondo
CREATE TABLE table_name_93 (block_a VARCHAR, toshizo VARCHAR)
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.20"
What is the name of the place with 582.20 square km area?
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT date FROM table_name_78 WHERE score = "3–2" AND tie_no = "35"
What is the Date of Tie no 35 with a Score of 3–2?
CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR, tie_no VARCHAR)
SELECT MAX(year_named) FROM table_16799784_13
When was the most recently named feature named?
CREATE TABLE table_16799784_13 (year_named INTEGER)
SELECT opponent FROM table_name_99 WHERE attendance = "80,079"
Who was the opponent when the attendance was 80,079?
CREATE TABLE table_name_99 (opponent VARCHAR, attendance VARCHAR)
SELECT package_option FROM table_name_51 WHERE television_service = "sky arte hd"
What package/option has sky arte hd as the television service?
CREATE TABLE table_name_51 (package_option VARCHAR, television_service VARCHAR)
SELECT type FROM table_name_81 WHERE country = "aut"
What is thr type in Aut country?
CREATE TABLE table_name_81 (type VARCHAR, country VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff"
Name the mountains classification for alexander kristoff
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)
SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = "5%" AND tns_sofres_5_28_09 = "4.5%"
Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?
CREATE TABLE table_name_96 (viavoice_5_15_09 VARCHAR, csa_5_14_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5
Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5?
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT MAX(attendance) FROM table_name_63 WHERE week < 1
What is the highest attendance for week 1?
CREATE TABLE table_name_63 (attendance INTEGER, week INTEGER)
SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = "modi nagar"
What is the electorates in 2009 for Modi Nagar?
CREATE TABLE table_name_6 (number_of_electorates__2009_ INTEGER, name VARCHAR)
SELECT score FROM table_name_71 WHERE date = "august 23, 2004"
What is the Score of the match on August 23, 2004?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT internet_plan FROM table_name_21 WHERE downstream = "4,096 kbit"
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 SUM(heat) FROM table_name_89 WHERE athlete = "anita pistone"
what is the heat when the athlete is anita pistone?
CREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR)
SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%"
what is the mccain % where obama got 19.3%
CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)
SELECT player FROM table_name_16 WHERE pick = "24"
Which player is the 24 pick?
CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR)
SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196
How many first downs were there when the attendance was 13196?
CREATE TABLE table_14877831_2 (first_downs INTEGER, attendance VARCHAR)
SELECT score FROM table_229059_2 WHERE year = 1978
What was the score in 1978?
CREATE TABLE table_229059_2 (score VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE player = "mike hyndman" AND assists > 119
How many total points does Mike Hyndman have with more than 119 assists?
CREATE TABLE table_name_98 (points INTEGER, player VARCHAR, assists VARCHAR)
SELECT nba_draft FROM table_name_58 WHERE college = "ohio state"
What is the NBA draft for ohio state?
CREATE TABLE table_name_58 (nba_draft VARCHAR, college VARCHAR)
SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141
What place has the score of 67-74=141?
CREATE TABLE table_name_2 (place VARCHAR, score VARCHAR)
SELECT AVG(total) FROM table_name_76 WHERE player = "jeff sluman"
Name the Total of jeff sluman?
CREATE TABLE table_name_76 (total INTEGER, player VARCHAR)
SELECT round FROM table_18328569_1 WHERE winners_from_previous_round = "8"
What is the round where winners from the previous round totals 8?
CREATE TABLE table_18328569_1 (round VARCHAR, winners_from_previous_round VARCHAR)
SELECT result FROM table_name_70 WHERE attendance = "41,429"
What are the results for a game with an attendance of 41,429?
CREATE TABLE table_name_70 (result VARCHAR, attendance VARCHAR)
SELECT candidates FROM table_1342331_6 WHERE first_elected = 1932 AND district = "California 8"
Who was the candidate in the election in the California 8 district where the incumbent was first elected in 1932?
CREATE TABLE table_1342331_6 (candidates VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT AVG(goal_difference) FROM table_name_2 WHERE draw = 7 AND played > 18
Name the average goal difference for draw of 7 and played more than 18
CREATE TABLE table_name_2 (goal_difference INTEGER, draw VARCHAR, played VARCHAR)
SELECT name FROM table_name_24 WHERE family = "canidae" AND species_authority = "canis rufus audubon & bachman, 1851"
Who has canidae as family and canis rufus audubon & bachman, 1851 as species/authority?
CREATE TABLE table_name_24 (name VARCHAR, family VARCHAR, species_authority VARCHAR)
SELECT location FROM table_name_10 WHERE game < 44 AND record = "20-16"
What is the location before game 44, and a 20-16 record?
CREATE TABLE table_name_10 (location VARCHAR, game VARCHAR, record VARCHAR)