answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(group) FROM table_1358608_4 WHERE distance = "2020 m"
How many races were for a distance of 2020 m?
CREATE TABLE table_1358608_4 (group VARCHAR, distance VARCHAR)
SELECT SUM(no_built) FROM table_name_19 WHERE unit_nos = "375301-310"
How many number Builts had unit numbers of 375301-310?
CREATE TABLE table_name_19 (no_built INTEGER, unit_nos VARCHAR)
SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0
How many Malaysia Cups have a total less than 0?
CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)
SELECT COUNT(game) FROM table_23453931_8 WHERE opponent = "Carolina Hurricanes"
How many games did they play the carolina hurricanes?
CREATE TABLE table_23453931_8 (game VARCHAR, opponent VARCHAR)
SELECT team_2 FROM table_name_9 WHERE team_1 = "omonia"
What was team 2 when team 1 was omonia?
CREATE TABLE table_name_9 (team_2 VARCHAR, team_1 VARCHAR)
SELECT date FROM table_name_12 WHERE attendance = "56,271"
Which game had an attendance of 56,271?
CREATE TABLE table_name_12 (date VARCHAR, attendance VARCHAR)
SELECT kit_manufacturer FROM table_name_50 WHERE captain = "gareth southgate"
What company is the kit manufacturer that Gareth Southgate belongs to?
CREATE TABLE table_name_50 (kit_manufacturer VARCHAR, captain VARCHAR)
SELECT written_by FROM table_18734298_1 WHERE no_in_series = 14
Who wrote the series number 14?
CREATE TABLE table_18734298_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT date_of_appointment FROM table_27091128_2 WHERE replaced_by = "Ergün Penbe"
What was date of appointment for Ergün Penbe?
CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT song_title FROM table_23981771_1 WHERE artist = "Dixie Chicks"
What is the song for Dixie Chicks?
CREATE TABLE table_23981771_1 (song_title VARCHAR, artist VARCHAR)
SELECT release_price___usd__ FROM table_name_53 WHERE model_number = "atom z510pt"
What was the release price of the Atom Z510PT processor?
CREATE TABLE table_name_53 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT death FROM table_name_69 WHERE birth = "1309"
What is the date of death of the Countess of Flanders who was born in 1309?
CREATE TABLE table_name_69 (death VARCHAR, birth VARCHAR)
SELECT COUNT(ion_torrent_pgm) FROM table_127511_1 WHERE sanger_3730xl = "$2400 USD"
How many times was Sanger 3730xl $2400 usd?
CREATE TABLE table_127511_1 (ion_torrent_pgm VARCHAR, sanger_3730xl VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE rank = "7th" AND draw < 4
What is the average number of points when the ranking is 7th and the draw is less than 4?
CREATE TABLE table_name_63 (points INTEGER, rank VARCHAR, draw VARCHAR)
SELECT AVG(UnitPrice) FROM TRACK
What is the average unit price of all the tracks?
CREATE TABLE TRACK (UnitPrice INTEGER)
SELECT date FROM table_name_96 WHERE score = "2–0"
What is the Date of the Competition with a Score of 2–0?
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = "mike wolfe (3)"
Which Oil Pattern has a Winner (Title #) of mike wolfe (3)?
CREATE TABLE table_name_58 (oil_pattern VARCHAR, winner__title__number_ VARCHAR)
SELECT nat FROM table_name_76 WHERE app_l_c_e_ = "0 (0/0/0)" AND name = "yahaya"
What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)?
CREATE TABLE table_name_76 (nat VARCHAR, app_l_c_e_ VARCHAR, name VARCHAR)
SELECT MAX(rank) FROM table_name_95 WHERE lost < 12 AND played > 20 AND Avg.points > 1.73
Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73?
CREATE TABLE table_name_95 (rank INTEGER, lost VARCHAR, played VARCHAR)
SELECT winner FROM table_name_64 WHERE score = "71-62"
who is the winner when the score is 71-62?
CREATE TABLE table_name_64 (winner VARCHAR, score VARCHAR)
SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4
How many episodes are numbered 4 in the season?
CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR)
SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = "James Madison"
Name the number of conference tournament for james madison
CREATE TABLE table_22849575_6 (conference VARCHAR, tournament_winner VARCHAR)
SELECT away_team FROM table_name_97 WHERE venue = "princes park"
What was the away team that played at Princes Park?
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
SELECT name FROM table_name_96 WHERE time > 53.06 AND lane < 8 AND rank > 2 AND nationality = "japan"
Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan?
CREATE TABLE table_name_96 (name VARCHAR, nationality VARCHAR, rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT intercontinental_cup_1993 FROM table_name_23 WHERE supercopa_sudamericana_1993 = "round of 16"
What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?
CREATE TABLE table_name_23 (intercontinental_cup_1993 VARCHAR, supercopa_sudamericana_1993 VARCHAR)
SELECT points FROM table_10705060_1 WHERE team_name = "DAMS"
what is the score for the dams?
CREATE TABLE table_10705060_1 (points VARCHAR, team_name VARCHAR)
SELECT MIN(dances) FROM table_25931938_1 WHERE celebrity = "John Barnes"
How many dances did John Barnes have?
CREATE TABLE table_25931938_1 (dances INTEGER, celebrity VARCHAR)
SELECT chassis FROM table_21977627_1 WHERE engine = "Maserati L6s"
What chasis did the maserati l6s have?
CREATE TABLE table_21977627_1 (chassis VARCHAR, engine VARCHAR)
SELECT MIN(first_elected) FROM table_1341598_22 WHERE incumbent = "Ed Markey"
What is the minimum first elected for ed markey?
CREATE TABLE table_1341598_22 (first_elected INTEGER, incumbent VARCHAR)
SELECT COUNT(*) FROM Tasks
How many tasks are there in total?
CREATE TABLE Tasks (Id VARCHAR)
SELECT score FROM table_name_22 WHERE tie_no = "1"
Which Score has a Tie no of 1?
CREATE TABLE table_name_22 (score VARCHAR, tie_no VARCHAR)
SELECT frequency FROM table_name_59 WHERE number = 161
What is the frequency of number 161?
CREATE TABLE table_name_59 (frequency VARCHAR, number VARCHAR)
SELECT theme FROM table_name_28 WHERE paper_type = "tullis russell coatings" AND date_of_issue = "1 october 2008"
What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?
CREATE TABLE table_name_28 (theme VARCHAR, paper_type VARCHAR, date_of_issue VARCHAR)
SELECT MIN(episodes) FROM table_name_90 WHERE premiere = "february5,2007"
What is the earliest season with a premiere of february5,2007?
CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR)
SELECT rank__week_ FROM table_26200084_1 WHERE _number = 19
What was the ranking of episode #19?
CREATE TABLE table_26200084_1 (rank__week_ VARCHAR, _number VARCHAR)
SELECT college FROM table_name_80 WHERE pick__number = "327"
What college is draft pick #327 from?
CREATE TABLE table_name_80 (college VARCHAR, pick__number VARCHAR)
SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448
Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?
CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_6 WHERE time = "18:45"
What is the Date with a Time that is 18:45?
CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR)
SELECT home_team FROM table_name_92 WHERE visiting_team = "san francisco 49ers" AND result = "42-14"
Who is the home team when the san francisco 49ers are visiting with a result of 42-14?
CREATE TABLE table_name_92 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR)
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT outcome FROM table_18183850_12 WHERE opponent = "Magdaléna Rybáriková"
What was the outcome of the game when the opponent was Magdaléna Rybáriková?
CREATE TABLE table_18183850_12 (outcome VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_42 WHERE rank__number = "4"
What was the attendance when they had a ranking of #4?
CREATE TABLE table_name_42 (attendance VARCHAR, rank__number VARCHAR)
SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = "dave adams category:articles with hcards" AND year > 1963
What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?
CREATE TABLE table_name_88 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)
SELECT date FROM table_name_33 WHERE region = "yugoslavia"
What is Date, when Region is Yugoslavia?
CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR)
SELECT competition FROM table_name_63 WHERE score = "1-3"
What is the name of the competition that ended with a score of 1-3?
CREATE TABLE table_name_63 (competition VARCHAR, score VARCHAR)
SELECT COUNT(size__steps_) FROM table_name_44 WHERE size__cents_ = 58.54 AND just_ratio = "28:27" AND just__cents_ > 62.96
size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?
CREATE TABLE table_name_44 (size__steps_ VARCHAR, just__cents_ VARCHAR, size__cents_ VARCHAR, just_ratio VARCHAR)
SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991"
What tournament was played on Feb 3, 1991?
CREATE TABLE table_name_5 (tournament VARCHAR, date VARCHAR)
SELECT power__kw_ FROM table_name_26 WHERE frequency = "98.7mhz"
What is the Power (kW) for the station with the frequency of 98.7mhz?
CREATE TABLE table_name_26 (power__kw_ VARCHAR, frequency VARCHAR)
SELECT strongs__number FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
What is the strongs # of the english spelling word jehojakin?
CREATE TABLE table_1242447_1 (strongs__number VARCHAR, english_spelling VARCHAR)
SELECT home_ground FROM table_name_40 WHERE region = "nzl"
What is the home ground in region NZL?
CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR)
SELECT MAX(assists) FROM table_name_48 WHERE goals < 0
what is the most assists when the goals is less than 0?
CREATE TABLE table_name_48 (assists INTEGER, goals INTEGER)
SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54
What years did number 54 play for the jazz
CREATE TABLE table_11545282_4 (years_for_jazz VARCHAR, no VARCHAR)
SELECT AVG(extra_points_1_point) FROM table_name_22 WHERE total_points < 30 AND touchdowns__5_points_ = 5
Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?
CREATE TABLE table_name_22 (extra_points_1_point INTEGER, total_points VARCHAR, touchdowns__5_points_ VARCHAR)
SELECT film_title_used_in_nomination FROM table_12842068_1 WHERE submitting_country = "Lebanon"
What was the title of the movie from lebanon?
CREATE TABLE table_12842068_1 (film_title_used_in_nomination VARCHAR, submitting_country VARCHAR)
SELECT record_company FROM table_name_51 WHERE pianist = "solomon cutner"
What record company did pianist Solomon Cutner record for?
CREATE TABLE table_name_51 (record_company VARCHAR, pianist VARCHAR)
SELECT horse FROM table_name_5 WHERE rank = "69"
what is the horse that ranked 69?
CREATE TABLE table_name_5 (horse VARCHAR, rank VARCHAR)
SELECT siena_2002 FROM table_name_96 WHERE president = "andrew jackson"
what is siena 2002 when the president is andrew jackson?
CREATE TABLE table_name_96 (siena_2002 VARCHAR, president VARCHAR)
SELECT grid FROM table_name_61 WHERE laps > 8 AND manufacturer = "honda" AND time_retired = "retirement"
Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?
CREATE TABLE table_name_61 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT location FROM table_name_1 WHERE game = 7
What is the location of game 7?
CREATE TABLE table_name_1 (location VARCHAR, game VARCHAR)
SELECT hereditary_peers FROM table_name_15 WHERE total = 1
Which Hereditary peers have a Total of 1?
CREATE TABLE table_name_15 (hereditary_peers VARCHAR, total VARCHAR)
SELECT COUNT(pick) FROM table_name_51 WHERE round > 1 AND draft < 2002 AND college_high_school_club = "western kentucky"
What is the total pick number of the player from a round greater than 1, a draft before 2002, and with the college/high school/club of western kentucky?
CREATE TABLE table_name_51 (pick VARCHAR, college_high_school_club VARCHAR, round VARCHAR, draft VARCHAR)
SELECT SUM(round) FROM table_name_84 WHERE method = "submission (ankle lock)" AND location = "tokyo, japan" AND record = "13-5-2"
What is the total number of Round with a Method of submission (ankle lock), a Location of tokyo, japan, and a Record of 13-5-2?
CREATE TABLE table_name_84 (round INTEGER, record VARCHAR, method VARCHAR, location VARCHAR)
SELECT AVG(laps) FROM table_name_21 WHERE start = "25" AND qual = "138.063"
What's the average number of Laps, that had a start of 25, with a Qual of 138.063?
CREATE TABLE table_name_21 (laps INTEGER, start VARCHAR, qual VARCHAR)
SELECT notes FROM table_name_95 WHERE tournament = "hypo-meeting" AND year = 2012
What is the notes for the hypo-meeting tournament in 2012?
CREATE TABLE table_name_95 (notes VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT 2004 FROM table_name_24 WHERE 2000 = "2r"
What's the 2004 tournament that has a 2R in 2000?
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT drivers FROM table_name_88 WHERE chassis = "season cancelled"
Name the drivers for chassis of season cancelled
CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR)
SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "14"
Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?
CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR)
SELECT title FROM table_22580855_1 WHERE written_by = "Timothy J. Lea" AND directed_by = "Norberto Barba"
what is the name of the episode whose writer is Timothy J. Lea and the director is Norberto Barba?
CREATE TABLE table_22580855_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT title FROM table_name_80 WHERE label = "mother / mvp / polydor"
What was the title for the label mother / mvp / polydor?
CREATE TABLE table_name_80 (title VARCHAR, label VARCHAR)
SELECT COUNT(*) FROM Companies
How many companies are there?
CREATE TABLE Companies (Id VARCHAR)
SELECT position FROM table_name_74 WHERE competition = "european u23 championships"
What is the Position for the European U23 Championships?
CREATE TABLE table_name_74 (position VARCHAR, competition VARCHAR)
SELECT COUNT(tdp___w__) FROM table_name_3 WHERE codename = "sb850"
What is the TDP (w) of the chipset with a codename sb850?
CREATE TABLE table_name_3 (tdp___w__ VARCHAR, codename VARCHAR)
SELECT round FROM table_name_59 WHERE prize_money = "£120,000"
What is the Round with a Prize of money that is £120,000?
CREATE TABLE table_name_59 (round VARCHAR, prize_money VARCHAR)
SELECT location_attendance FROM table_name_43 WHERE opponent = "san francisco warriors" AND game = 25
What was the attendance of game 25 when the played the San Francisco Warriors?
CREATE TABLE table_name_43 (location_attendance VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT robin FROM table_19744915_3 WHERE jason = "2.5"
what is robin's stat when jason was 2.5
CREATE TABLE table_19744915_3 (robin VARCHAR, jason VARCHAR)
SELECT district FROM table_name_58 WHERE name = "brough"
What is the district for the parish, Brough?
CREATE TABLE table_name_58 (district VARCHAR, name VARCHAR)
SELECT name FROM table_name_49 WHERE circuit = "monza"
Which name had the circuit Monza?
CREATE TABLE table_name_49 (name VARCHAR, circuit VARCHAR)
SELECT SUM(total) FROM table_name_31 WHERE league_cup < 0
League Cup smaller than 0 is what sum of the total?
CREATE TABLE table_name_31 (total INTEGER, league_cup INTEGER)
SELECT first_operational FROM table_13636_1 WHERE programming = "Not programmable—single purpose"
what's the first operational with programming being not programmable—single purpose
CREATE TABLE table_13636_1 (first_operational VARCHAR, programming VARCHAR)
SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18
How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?
CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR)
SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac"
What was the 2nd leg score in the matchup with a team 2 of KK Borac?
CREATE TABLE table_name_77 (team__number2 VARCHAR)
SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-TV"
What is the ch# of dwlj-tv?
CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR)
SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"
How many record data were written when Devin Harris (6) was High Assists?
CREATE TABLE table_27700375_8 (record VARCHAR, high_assists VARCHAR)
SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43
Where was the delegate belonging to the Judiciary committee of district 43 born?
CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR)
SELECT party FROM table_1341586_39 WHERE district = "Pennsylvania 21"
what's party with district being pennsylvania 21
CREATE TABLE table_1341586_39 (party VARCHAR, district VARCHAR)
SELECT fee__if_applicable_ FROM table_25965003_3 WHERE countries_and_territories = "Norway"
What is the fee (if applicable) for Norway?
CREATE TABLE table_25965003_3 (fee__if_applicable_ VARCHAR, countries_and_territories VARCHAR)
SELECT venue FROM table_name_98 WHERE result = "4-5" AND score = "1-1"
Where was there a result of 4-5 and a score of 1-1?
CREATE TABLE table_name_98 (venue VARCHAR, result VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_69 WHERE player = "mike weir"
What score to par did Mike Weir have?
CREATE TABLE table_name_69 (to_par VARCHAR, player VARCHAR)
SELECT method FROM table_name_35 WHERE opponent = "joe kielur"
What ws the method of resolution for the fight against joe kielur?
CREATE TABLE table_name_35 (method VARCHAR, opponent VARCHAR)
SELECT MAX(wins) FROM table_name_31 WHERE draws > 0
What is the most wins for draws greater than 0?
CREATE TABLE table_name_31 (wins INTEGER, draws INTEGER)
SELECT college FROM table_10812403_4 WHERE player = "Calvin McCarty"
What college did Calvin McCarty play at?
CREATE TABLE table_10812403_4 (college VARCHAR, player VARCHAR)
SELECT weight FROM table_name_95 WHERE name = "damir burić"
What is the weight of Damir Burić?
CREATE TABLE table_name_95 (weight VARCHAR, name VARCHAR)
SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4
What is the total number of Draws with less than 4 matches?
CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER)
SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31
Name the most world rank for asian rank being 31
CREATE TABLE table_2249029_1 (world_rank INTEGER, asian_rank VARCHAR)
SELECT stadium FROM table_name_32 WHERE visiting_team = "tennessee titans"
I want to know the stadium for tennessee titans visiting
CREATE TABLE table_name_32 (stadium VARCHAR, visiting_team VARCHAR)
SELECT venue FROM table_name_75 WHERE away_team = "geelong"
Where did Geelong play as the away team?
CREATE TABLE table_name_75 (venue VARCHAR, away_team VARCHAR)
SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
Show different tourist attractions' names, ids, and the corresponding number of visits.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT method FROM table_name_4 WHERE opponent = "chalid arrab"
What is Method, when Opponent is "Chalid Arrab"?
CREATE TABLE table_name_4 (method VARCHAR, opponent VARCHAR)
SELECT title FROM table_28212888_2 WHERE us_viewers__millions_ = "12.85"
What's the title of the episode seen by 12.85 millions of people in the US?
CREATE TABLE table_28212888_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2012-present"
What school did the player that has been in Toronto from 2012-present come from?
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR)