answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT to_par FROM table_name_65 WHERE country = "canada" | What is the to par of canada? | CREATE TABLE table_name_65 (to_par VARCHAR, country VARCHAR) |
SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3" | Release date of 2008 q3 has what release price? | CREATE TABLE table_name_69 (release_price___usd__ VARCHAR, release_date VARCHAR) |
SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77 | Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77? | CREATE TABLE table_name_19 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR) |
SELECT 2004 FROM table_name_34 WHERE 2003 = "1r" AND tournament = "wimbledon" | Which in 2004 has a 2003 of 1r and Wimbledon Tournament | CREATE TABLE table_name_34 (tournament VARCHAR) |
SELECT location FROM table_name_62 WHERE home_team = "slovakia" | What was the location of the home game for Slovakia? | CREATE TABLE table_name_62 (location VARCHAR, home_team VARCHAR) |
SELECT COUNT(opponents) FROM table_24560733_1 WHERE opponent = "at Ole Miss" | How many opponents' points numbers are associated with the game at Ole Miss? | CREATE TABLE table_24560733_1 (opponents VARCHAR, opponent VARCHAR) |
SELECT MAX(season) FROM table_name_2 WHERE third_driver = "jimmy davies" | What is the largest season with a Third Driver of jimmy davies? | CREATE TABLE table_name_2 (season INTEGER, third_driver VARCHAR) |
SELECT period FROM table_21100348_10 WHERE player = "Ricky Ponting" | During what period did Ricky Ponting play? | CREATE TABLE table_21100348_10 (period VARCHAR, player VARCHAR) |
SELECT engine FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR" | When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type? | CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR) |
SELECT club_team FROM table_name_37 WHERE nationality = "canada" AND overall = "15" | What is the Overall of 15 Club team with a Nationality of Canada? | CREATE TABLE table_name_37 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) |
SELECT time FROM table_name_35 WHERE lane = 8 | Can you tell me the Time that has the Lane of 8? | CREATE TABLE table_name_35 (time VARCHAR, lane VARCHAR) |
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38 | What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"? | CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR) |
SELECT manhattan FROM table_name_21 WHERE richmond_[staten_is] = "78%" | Which Manhattan number appeared when Richmond (Staten Island) was 78%? | CREATE TABLE table_name_21 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) |
SELECT COUNT(player) FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Running back" | How many players were the running back draft pick for the New England Patriots? | CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR, position VARCHAR) |
SELECT score FROM table_25461946_5 WHERE team = "Virginia Tech" | What was the final score when the Temple Owls beat Virginia Tech? | CREATE TABLE table_25461946_5 (score VARCHAR, team VARCHAR) |
SELECT COUNT(*) FROM address WHERE district = 'California' | How many addresses are in the district of California? | CREATE TABLE address (district VARCHAR) |
SELECT Fname FROM Student WHERE Major = 600 | Show first name for all students with major 600. | CREATE TABLE Student (Fname VARCHAR, Major VARCHAR) |
SELECT country FROM table_name_53 WHERE date = "april 27" | What country was the race in on April 27? | CREATE TABLE table_name_53 (country VARCHAR, date VARCHAR) |
SELECT division FROM table_name_27 WHERE position = "4th" | In what division did they place 4th? | CREATE TABLE table_name_27 (division VARCHAR, position VARCHAR) |
SELECT home FROM table_name_81 WHERE visitor = "kings" | Name the home with visitor of kings | CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR) |
SELECT MIN(cuts_made) FROM table_name_63 WHERE top_25 < 6 AND wins < 0 | What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0? | CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 VARCHAR, wins VARCHAR) |
SELECT height FROM table_14966667_19 WHERE name = "Braxton Kelley" | How tall is Braxton Kelley? | CREATE TABLE table_14966667_19 (height VARCHAR, name VARCHAR) |
SELECT COUNT(*) FROM dorm | How many dorms are there? | CREATE TABLE dorm (Id VARCHAR) |
SELECT date FROM table_name_31 WHERE visitor = "philadelphia" | What day did philadelphia visit? | CREATE TABLE table_name_31 (date VARCHAR, visitor VARCHAR) |
SELECT surface FROM table_name_96 WHERE opponent_in_the_final = "stéphane robert" | Which Surface has an Opponent in the final of stéphane robert? | CREATE TABLE table_name_96 (surface VARCHAR, opponent_in_the_final VARCHAR) |
SELECT constructor FROM table_name_14 WHERE grid < 18 AND driver = "mika häkkinen" | Which constructor has a Grid smaller than 18, and a Driver of mika häkkinen? | CREATE TABLE table_name_14 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) |
SELECT captain FROM table_name_59 WHERE kit_manufacturer = "pony" AND manager = "harry redknapp" | Who is the captain for the manufacturer Pony, and the manager Harry Redknapp? | CREATE TABLE table_name_59 (captain VARCHAR, kit_manufacturer VARCHAR, manager VARCHAR) |
SELECT result FROM table_name_21 WHERE coach = "dave farrish" AND division = "southwest" AND season = "2000-01" | What was the result of the 2000-01 season in which the IceGators were part of the Southwest division and were coached by Dave Farrish? | CREATE TABLE table_name_21 (result VARCHAR, season VARCHAR, coach VARCHAR, division VARCHAR) |
SELECT player FROM table_name_68 WHERE tries = "11" | which player has 11 tries? | CREATE TABLE table_name_68 (player VARCHAR, tries VARCHAR) |
SELECT place FROM table_name_23 WHERE score < 71 AND player = "des smyth" | In what place did Des Smyth, who scored less than 71, finish? | CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR, player VARCHAR) |
SELECT score FROM table_name_2 WHERE money___$__ = "32,200" AND player = "chip beck" | What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck? | CREATE TABLE table_name_2 (score VARCHAR, money___$__ VARCHAR, player VARCHAR) |
SELECT COUNT(goals_for) FROM table_name_40 WHERE draws = 3 AND losses > 18 AND played < 38 | What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38? | CREATE TABLE table_name_40 (goals_for VARCHAR, played VARCHAR, draws VARCHAR, losses VARCHAR) |
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain" | When was the incumbent first elected in the district where the result was a democratic-republican gain? | CREATE TABLE table_2668401_17 (first_elected VARCHAR, result VARCHAR) |
SELECT date_of_birth__age_ FROM table_name_47 WHERE club_province = "blues" AND caps > 0 AND player = "tom james" | Which Date of Birth (Age) has a Club/province of blues, and Caps larger than 0, and a Player of tom james? | CREATE TABLE table_name_47 (date_of_birth__age_ VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR) |
SELECT pennant_number FROM table_name_20 WHERE current_status = "retired" | what builder is now retired | CREATE TABLE table_name_20 (pennant_number VARCHAR, current_status VARCHAR) |
SELECT MAX(employees) FROM table_name_50 WHERE company = "nokia" AND rank < 3 | How many employees at nokia, ranked under 3? | CREATE TABLE table_name_50 (employees INTEGER, company VARCHAR, rank VARCHAR) |
SELECT MAX(week) FROM table_name_63 WHERE attendance = "63,001" | What was the latest week of a game that had an attendance of 63,001? | CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR) |
SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 | Show all locations where a gas station for company with market value greater than 100 is located. | CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR) |
SELECT director FROM table_name_85 WHERE title = "“some lapse of time”" | What is the Director for the episode titled “some lapse of time”? | CREATE TABLE table_name_85 (director VARCHAR, title VARCHAR) |
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in | Show the ids of the students who don't participate in any activity. | CREATE TABLE Participates_in (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR) |
SELECT club FROM table_name_15 WHERE location = "thomson, victoria" | Which club is located in Thomson, Victoria? | CREATE TABLE table_name_15 (club VARCHAR, location VARCHAR) |
SELECT launched FROM table_name_18 WHERE name = "harusame" | What is the launched date for the Harusame ship? | CREATE TABLE table_name_18 (launched VARCHAR, name VARCHAR) |
SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 1965" | What is the largest attendance at Memorial Stadium on December 12, 1965? | CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR) |
SELECT week FROM table_name_77 WHERE result = "w 23–22" | Which Week has a Result of w 23–22? | CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR) |
SELECT venue FROM table_name_48 WHERE home_team = "st kilda" | Where does St Kilda play? | CREATE TABLE table_name_48 (venue VARCHAR, home_team VARCHAR) |
SELECT co_drivers FROM table_name_45 WHERE laps < 329 AND class = "gt2" AND team = "risi competizione" AND pos = "dnf" | Who are the co-drivers the risi competizione gt2 class that went under 329 laps and recorded a DNF? | CREATE TABLE table_name_45 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR, laps VARCHAR, class VARCHAR) |
SELECT visitor FROM table_name_8 WHERE date = "april 5" | Who is the visitor on April 5? | CREATE TABLE table_name_8 (visitor VARCHAR, date VARCHAR) |
SELECT year FROM table_name_47 WHERE chassis = "lotus 25" | What year was there a lotus 25 Chassis? | CREATE TABLE table_name_47 (year VARCHAR, chassis VARCHAR) |
SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080 | Who played as the home team when the attendance was more than 30,080? | CREATE TABLE table_name_21 (home_team VARCHAR, crowd INTEGER) |
SELECT visitor FROM table_name_48 WHERE home = "chicago black hawks" AND record = "1-1" | What visiting team played at the home of the Chicago Black Hawks with a record of 1-1? | CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR) |
SELECT song_choice FROM table_27614571_1 WHERE original_artist = "Patricia Marx" | What was Barreto's song choice where the original artist was Patricia Marx? | CREATE TABLE table_27614571_1 (song_choice VARCHAR, original_artist VARCHAR) |
SELECT time_retired FROM table_name_68 WHERE laps < 77 AND grid = 16 | Which Time/Retired has less than 77 laps, and a Grid of 16? | CREATE TABLE table_name_68 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT chassis FROM table_name_5 WHERE points = "39" | What chassis had 39 points? | CREATE TABLE table_name_5 (chassis VARCHAR, points VARCHAR) |
SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the id and last name of the student that has the most behavior incidents? | CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR) |
SELECT loss FROM table_name_19 WHERE record = "16–15" | What was the loss of the game when the record was 16–15? | CREATE TABLE table_name_19 (loss VARCHAR, record VARCHAR) |
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann" | Which tournament was Dieter Kindlmann a partner? | CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR) |
SELECT race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch" | What Brands Hatch race had Niki Lauda as its Fastest Lap? | CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT opponent FROM table_name_91 WHERE week = 12 | Who did the Browns play week 12? | CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR) |
SELECT incumbent FROM table_1342393_10 WHERE district = "Georgia 5" | who won in the race in the section georgia 5 | CREATE TABLE table_1342393_10 (incumbent VARCHAR, district VARCHAR) |
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s" | what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s? | CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT display_size FROM table_11703336_1 WHERE calculator = "TI-82" | what is the display size for the calculator ti-82? | CREATE TABLE table_11703336_1 (display_size VARCHAR, calculator VARCHAR) |
SELECT MIN(draws) FROM table_name_62 WHERE losses = 5 AND byes > 0 | What is the lowest draw that has 5 losses and byes greater than 0? | CREATE TABLE table_name_62 (draws INTEGER, losses VARCHAR, byes VARCHAR) |
SELECT MAX(week) FROM table_name_63 WHERE result = "l 38–21" | What week was the result of l 38–21? | CREATE TABLE table_name_63 (week INTEGER, result VARCHAR) |
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston" | Tell me the wekk for eastern #2 of houston | CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) |
SELECT constructor FROM table_name_53 WHERE grid < 24 AND laps > 77 AND driver = "jean-pierre beltoise" | Which Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of jean-pierre beltoise? | CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT original_canadian_air_date FROM table_name_25 WHERE director = "mark rydell" | What was the Original Canadian air-date for the episode directed by mark rydell? | CREATE TABLE table_name_25 (original_canadian_air_date VARCHAR, director VARCHAR) |
SELECT author FROM table_name_87 WHERE first_issue = "september 2010" | What is the Author of the Title with a First Issue of September 2010? | CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR) |
SELECT 1 AS st__m_ FROM table_14407512_24 WHERE nationality = "NOR" | Name the 1st m for nor | CREATE TABLE table_14407512_24 (nationality VARCHAR) |
SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = "at tb" AND week > 7 | Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7? | CREATE TABLE table_name_98 (average INTEGER, week VARCHAR, yards VARCHAR, team VARCHAR) |
SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london" | What is the lowest Year with an Album that is live love in London? | CREATE TABLE table_name_34 (year INTEGER, album VARCHAR) |
SELECT COUNT(no) FROM table_20360535_3 WHERE directed_by = "Ben Jones" AND written_by = "Paul Dini" | How many episodes directed by ben jones and written by paul dini? | CREATE TABLE table_20360535_3 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT score FROM table_name_63 WHERE date = "december 19, 2009" | What was the score of the match on December 19, 2009? | CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR) |
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151 | When was the attendance at a venue bigger than 35,151? | CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER) |
SELECT score FROM table_name_86 WHERE date = "23 july 1992" | I want the score for 23 july 1992 | CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR) |
SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese" | How may population figures are given for Settimo Torinese | CREATE TABLE table_1449176_1 (population VARCHAR, common_of VARCHAR) |
SELECT SUM(starts) FROM table_name_66 WHERE winnings = "$1,636,827" AND avg_start < 37 | How many starts had an avg start of less than 37 and won $1,636,827? | CREATE TABLE table_name_66 (starts INTEGER, winnings VARCHAR, avg_start VARCHAR) |
SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)" | What is the share of votes in the 2000 (2nd) election? | CREATE TABLE table_name_20 (share_of_votes VARCHAR, election VARCHAR) |
SELECT santee_sisseton FROM table_1499774_5 WHERE yankton_yanktonai = "wičháša" | Name the santee sisseton for wičháša | CREATE TABLE table_1499774_5 (santee_sisseton VARCHAR, yankton_yanktonai VARCHAR) |
SELECT directed_by FROM table_228973_11 WHERE original_air_date = "February 4, 2005" | Who directed the episode which originally aired February 4, 2005? | CREATE TABLE table_228973_11 (directed_by VARCHAR, original_air_date VARCHAR) |
SELECT MIN(year) FROM table_name_86 WHERE wins > 0 AND team = "linto" AND points < 15 | What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins? | CREATE TABLE table_name_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR) |
SELECT time FROM table_20626467_1 WHERE weight__kg_ = "54.4kg" | What time for the entrant weighing 54.4kg? | CREATE TABLE table_20626467_1 (time VARCHAR, weight__kg_ VARCHAR) |
SELECT MAX(laps) FROM table_name_16 WHERE driver = "mike hailwood" AND grid > 7 | What was Mike Hailwood's highest laps when he had a grid more than 7? | CREATE TABLE table_name_16 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT COUNT(yes_votes) FROM table_256286_41 WHERE no_votes < 299939.1619948521 AND _percentage_yes = "66.49%" | What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49% | CREATE TABLE table_256286_41 (yes_votes VARCHAR, no_votes VARCHAR, _percentage_yes VARCHAR) |
SELECT game FROM table_name_1 WHERE date = "may 29" | What game was played on May 29? | CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR) |
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli" | What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli? | CREATE TABLE table_name_87 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT date FROM table_name_74 WHERE week > 16 | What was the date for the game after week 16? | CREATE TABLE table_name_74 (date VARCHAR, week INTEGER) |
SELECT score FROM table_name_29 WHERE record = "36–61" | Which Score has a Record of 36–61? | CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) |
SELECT current_champion_s_ FROM table_name_44 WHERE championship = "necw heavyweight champion" | Who is the current champion in the NECW Heavyweight Championship? | CREATE TABLE table_name_44 (current_champion_s_ VARCHAR, championship VARCHAR) |
SELECT MIN(first_issued) FROM table_name_51 WHERE color = "green" | When was Color of green first issued? | CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR) |
SELECT 2 AS nd_runner_up FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = "Rochelle Romero Ong" | Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong? | CREATE TABLE table_24430894_20 (mutya_ng_pilipinas_asia_pacific VARCHAR) |
SELECT SUM(points) FROM table_name_9 WHERE record = "21–36–9" AND attendance > 14 OFFSET 768 | Which Points have a Record of 21–36–9, and an Attendance larger than 14,768? | CREATE TABLE table_name_9 (points INTEGER, record VARCHAR, attendance VARCHAR) |
SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß" | When spvgg vohenstrauß is the oberpfalz what is the season? | CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR) |
SELECT college FROM table_name_72 WHERE round < 4 | The draft pick that was taken before round 4 went to what college? | CREATE TABLE table_name_72 (college VARCHAR, round INTEGER) |
SELECT name FROM table_name_75 WHERE lost = 2 AND position > 1 | Who lost 2 and had a position bigger than 1? | CREATE TABLE table_name_75 (name VARCHAR, lost VARCHAR, position VARCHAR) |
SELECT COUNT(frequency) FROM table_23028629_2 WHERE model_number = "Core i5-655K" | How many frequencies have a model number of core i5-655k? | CREATE TABLE table_23028629_2 (frequency VARCHAR, model_number VARCHAR) |
SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010 | What is the highest goal for a GEO nat., that ended after 2010? | CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR) |
SELECT largest_ethnic_group__2002_ FROM table_2562572_46 WHERE settlement = "Sočica" | What was the largest ethnic group in sočica? | CREATE TABLE table_2562572_46 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR) |
SELECT record FROM table_name_26 WHERE opponent = "cleveland cavaliers" | What is the record for the opponent the Cleveland Cavaliers? | CREATE TABLE table_name_26 (record VARCHAR, opponent VARCHAR) |
SELECT month FROM table_name_73 WHERE sort_restore < 39 AND deaths = "2" | Which month had a sort value under 39 and 2 deaths? | CREATE TABLE table_name_73 (month VARCHAR, sort_restore VARCHAR, deaths VARCHAR) |
SELECT country FROM table_name_61 WHERE format = "cd" AND label = "sony music" AND catalogue_no = "sicp-2055" | What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055? | CREATE TABLE table_name_61 (country VARCHAR, catalogue_no VARCHAR, format VARCHAR, label VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.