question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many were in attendance on October 27, 1963?
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_33 WHERE date = "october 27, 1963"
How many Overall went in a round larger than 7 with a pick less than 7?
CREATE TABLE table_name_39 (overall VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 7
What's the nationality of Ray norton with a time of 20.6?
CREATE TABLE table_name_70 (nationality VARCHAR, time VARCHAR, athlete VARCHAR)
SELECT nationality FROM table_name_70 WHERE time = "20.6" AND athlete = "ray norton"
What was the time for a grid more than 6 in less than 23 laps with a Honda CBR1000RR?
CREATE TABLE table_name_31 (time VARCHAR, laps VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT time FROM table_name_31 WHERE grid > 6 AND bike = "honda cbr1000rr" AND laps < 23
what Area has the frequency of 100.3 and an On-air ID of yass fm?
CREATE TABLE table_name_94 (area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR)
SELECT area_served FROM table_name_94 WHERE frequency = "100.3" AND on_air_id = "yass fm"
Who is the Tuesday presenter of Celebrity Big Brother 8?
CREATE TABLE table_11748792_2 (tuesday VARCHAR, series VARCHAR)
SELECT tuesday FROM table_11748792_2 WHERE series = "Celebrity Big Brother 8"
Which Top-5 is the lowest one that has Wins smaller than 0?
CREATE TABLE table_name_27 (top_5 INTEGER, wins INTEGER)
SELECT MIN(top_5) FROM table_name_27 WHERE wins < 0
Which venue has 16 against?
CREATE TABLE table_name_5 (venue VARCHAR, against VARCHAR)
SELECT venue FROM table_name_5 WHERE against = 16
Who was perfomer one on 30 January 1988?
CREATE TABLE table_14934885_1 (performer_1 VARCHAR, date VARCHAR)
SELECT performer_1 FROM table_14934885_1 WHERE date = "30 January 1988"
In 2011, how many wins did Michael Meadows have?
CREATE TABLE table_name_2 (wins INTEGER, year VARCHAR, drivers VARCHAR)
SELECT SUM(wins) FROM table_name_2 WHERE year = 2011 AND drivers = "michael meadows"
If the pick is under 28 and the position is k, what's the highest Overall pick?
CREATE TABLE table_name_55 (overall INTEGER, position VARCHAR, pick VARCHAR)
SELECT MAX(overall) FROM table_name_55 WHERE position = "k" AND pick < 28
What are the names of all unix shell with PowerShell (Cmdlet) of select-string?
CREATE TABLE table_14465871_1 (unix_shell VARCHAR, powershell__cmdlet_ VARCHAR)
SELECT unix_shell FROM table_14465871_1 WHERE powershell__cmdlet_ = "Select-String"
What is the status of the match with 24 against?
CREATE TABLE table_name_19 (status VARCHAR, against VARCHAR)
SELECT status FROM table_name_19 WHERE against = 24
Who is the color commentator for ESPN from 1990 to 1992?
CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR)
SELECT color_commentator_s_ FROM table_name_70 WHERE network = "espn"
What is the score of the game before January 22 with a 30-7-7 record?
CREATE TABLE table_name_54 (score VARCHAR, january VARCHAR, record VARCHAR)
SELECT score FROM table_name_54 WHERE january < 22 AND record = "30-7-7"
Name the outcome that had an opponent in final of nina bratchikova kathrin wörle
CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR)
SELECT outcome FROM table_name_56 WHERE opponent_in_final = "nina bratchikova kathrin wörle"
Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?
CREATE TABLE table_name_64 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_64 WHERE score = "6–3, 7–6 (7–3)"
The box office was $961,147 in what year?
CREATE TABLE table_name_18 (year VARCHAR, box_office VARCHAR)
SELECT year FROM table_name_18 WHERE box_office = "$961,147"
What Song has a Draw of less than 4 with a Percentage of 32.22%?
CREATE TABLE table_name_72 (song VARCHAR, draw VARCHAR, percentage VARCHAR)
SELECT song FROM table_name_72 WHERE draw < 4 AND percentage = "32.22%"
What is the investor that has invested in the most number of entrepreneurs?
CREATE TABLE entrepreneur (Investor VARCHAR)
SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1
Who is the together we can do more when democratic coalition is rené alinco ( ppd )?
CREATE TABLE table_2651755_1 (together_we_can_do_more VARCHAR, democratic_coalition VARCHAR)
SELECT together_we_can_do_more FROM table_2651755_1 WHERE democratic_coalition = "René Alinco ( PPD )"
In how many stages did Jose Vicente Garcia Acosta won?
CREATE TABLE table_15088557_1 (stage VARCHAR, winner VARCHAR)
SELECT COUNT(stage) FROM table_15088557_1 WHERE winner = "Jose Vicente Garcia Acosta"
What is the total rank of team roanne, which has less than 14 games?
CREATE TABLE table_name_58 (rank VARCHAR, team VARCHAR, games VARCHAR)
SELECT COUNT(rank) FROM table_name_58 WHERE team = "roanne" AND games < 14
How many episode numbers had US viewership of 4.26 million?
CREATE TABLE table_27905664_1 (COUNT VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT AS № FROM table_27905664_1 WHERE us_viewers__million_ = "4.26"
Which Event has a Record of 19-9?
CREATE TABLE table_name_47 (event VARCHAR, record VARCHAR)
SELECT event FROM table_name_47 WHERE record = "19-9"
What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?
CREATE TABLE table_name_5 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)
SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = "cockermouth rural district" AND name = "plumbland"
What player went to montreal college?
CREATE TABLE table_20170644_5 (player VARCHAR, college VARCHAR)
SELECT player FROM table_20170644_5 WHERE college = "Montreal"
Where was the game on May 9 played?
CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)
SELECT site_stadium FROM table_name_21 WHERE date = "may 9"
Who is the player when the category is steals per game?
CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
SELECT player FROM table_28628309_9 WHERE category = "Steals per game"
What is the lowest wins with less than 2 Byes?
CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER)
SELECT MIN(wins) FROM table_name_15 WHERE byes < 2
What is the result of the game after week 5 against the st. louis rams?
CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_52 WHERE week > 5 AND opponent = "st. louis rams"
Name the tier 1 ratio for irish life and permanent
CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR)
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent"
When was the player with 51 caps from a Club/province of clermont born?
CREATE TABLE table_name_4 (date_of_birth__age_ VARCHAR, caps VARCHAR, club_province VARCHAR)
SELECT date_of_birth__age_ FROM table_name_4 WHERE caps = 51 AND club_province = "clermont"
What was the tries again llanishen rfc?
CREATE TABLE table_name_35 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc"
Who was the Independent Socialist candidate for the office of comptroller?
CREATE TABLE table_name_35 (independent_socialist_ticket VARCHAR, office VARCHAR)
SELECT independent_socialist_ticket FROM table_name_35 WHERE office = "comptroller"
What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?
CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR)
SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix
CREATE TABLE table_name_77 (winning_constructor VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT winning_constructor FROM table_name_77 WHERE fastest_lap = "mark webber" AND grand_prix = "malaysian grand prix"
For the game ending with a record of 31-43-2, what was the decision?
CREATE TABLE table_name_10 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_10 WHERE record = "31-43-2"
What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic?
CREATE TABLE table_name_46 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_46 WHERE opponents_in_the_final = "vitalia diatchenko irena pavlovic"
What is the version aired on SBS 6 called?
CREATE TABLE table_27487310_5 (name VARCHAR, network VARCHAR)
SELECT name FROM table_27487310_5 WHERE network = "SBS 6"
Name the erin and jake for week 4
CREATE TABLE table_2311410_5 (erin_and_jake VARCHAR, week VARCHAR)
SELECT erin_and_jake FROM table_2311410_5 WHERE week = 4
What high assists have uic pavilion 3,520 as the location/attendance?
CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520"
What is the production code for the episode that had 9.18 million viewers (U.S.)?
CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"
The player for what club had 2 tests?
CREATE TABLE table_27771406_1 (club VARCHAR, tests VARCHAR)
SELECT club FROM table_27771406_1 WHERE tests = 2
What is the highest win for losses less than 2?
CREATE TABLE table_name_65 (wins INTEGER, losses INTEGER)
SELECT MAX(wins) FROM table_name_65 WHERE losses < 2
Who won the April 11 race?
CREATE TABLE table_25773116_2 (winning_driver VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_25773116_2 WHERE date = "April 11"
Can you tell me the Venue that has the Position in 2005 of 8?
CREATE TABLE table_name_77 (venue VARCHAR, position_in_2005 VARCHAR)
SELECT venue FROM table_name_77 WHERE position_in_2005 = "8"
What is the save of the game with rice as the opponent?
CREATE TABLE table_name_49 (save VARCHAR, opponent VARCHAR)
SELECT save FROM table_name_49 WHERE opponent = "rice"
What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8?
CREATE TABLE table_name_9 (goal_difference VARCHAR, goals_for VARCHAR, position VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_9 WHERE goals_for < 49 AND position < 8
What is the venue of the competition with a result of 1st before 2009?
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT venue FROM table_name_93 WHERE year < 2009 AND result = "1st"
When 21 is the number in series what is the air date?
CREATE TABLE table_2409041_2 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21
How many rounds did the match last with Sam Sotello as the opponent?
CREATE TABLE table_name_78 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_78 WHERE opponent = "sam sotello"
what is the district where the incumbent is james a. haley?
CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341672_10 WHERE incumbent = "James A. Haley"
Show the title and director for all films.
CREATE TABLE film (title VARCHAR, directed_by VARCHAR)
SELECT title, directed_by FROM film
Name the build date for total produced of 146
CREATE TABLE table_name_65 (build_date VARCHAR, total_produced VARCHAR)
SELECT build_date FROM table_name_65 WHERE total_produced = 146
What is the lowest year with tyres in g and less than 0 points?
CREATE TABLE table_name_32 (year INTEGER, tyres VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_32 WHERE tyres = "g" AND points < 0
Name the lineup for washington dc
CREATE TABLE table_name_21 (lineup VARCHAR, location VARCHAR)
SELECT lineup FROM table_name_21 WHERE location = "washington dc"
How many million U.S. viewers was written by Matt Pelfrey?
CREATE TABLE table_29545336_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT us_viewers__millions_ FROM table_29545336_2 WHERE written_by = "Matt Pelfrey"
what is the pole position for france?
CREATE TABLE table_29686983_1 (pole_position VARCHAR, country VARCHAR)
SELECT pole_position FROM table_29686983_1 WHERE country = "France"
How many points were made in game 70?
CREATE TABLE table_16864968_8 (points VARCHAR, game VARCHAR)
SELECT COUNT(points) FROM table_16864968_8 WHERE game = 70
What game has a platform(s) of playstation 3, when the genre is platform game?
CREATE TABLE table_name_33 (game VARCHAR, platform_s_ VARCHAR, genre VARCHAR)
SELECT game FROM table_name_33 WHERE platform_s_ = "playstation 3" AND genre = "platform game"
How many points are there for rank 5 with more than 34 games?
CREATE TABLE table_name_80 (points VARCHAR, rank VARCHAR, games VARCHAR)
SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34
what is the party for the district south carolina 4?
CREATE TABLE table_1341423_40 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341423_40 WHERE district = "South Carolina 4"
how many times is the nation listed as united states with the total more than 1?
CREATE TABLE table_name_44 (silver VARCHAR, nation VARCHAR, total VARCHAR)
SELECT COUNT(silver) FROM table_name_44 WHERE nation = "united states" AND total > 1
Which Frequency MHz has a Call Sign of K218BE?
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT frequency_mhz FROM table_name_7 WHERE call_sign = "k218be"
Who was the team captain of tus koblenz?
CREATE TABLE table_name_11 (team VARCHAR)
SELECT team AS captain FROM table_name_11 WHERE team = "tus koblenz"
Name the work for years before 2007 that won blockbuster entertainment awards
CREATE TABLE table_name_47 (work VARCHAR, year VARCHAR, award VARCHAR)
SELECT work FROM table_name_47 WHERE year < 2007 AND award = "blockbuster entertainment awards"
What is the average duration of songs that have mp3 format and resolution below 800?
CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR)
SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800
What is the time of frida svensson's race that had sa/b under the notes?
CREATE TABLE table_name_81 (time VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT time FROM table_name_81 WHERE notes = "sa/b" AND athlete = "frida svensson"
What is the state for the royal house of ying?
CREATE TABLE table_name_58 (state VARCHAR, royal_house VARCHAR)
SELECT state FROM table_name_58 WHERE royal_house = "ying"
Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?
CREATE TABLE table_name_47 (manufacturer VARCHAR, grid VARCHAR, time VARCHAR)
SELECT manufacturer FROM table_name_47 WHERE grid < 9 AND time = "+22.517"
Find the names of customers who have no policies associated.
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR)
SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id
How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6?
CREATE TABLE table_name_14 (seats_2005 INTEGER, in_de_creased_by VARCHAR, percentage_in_de_crease VARCHAR, governorate VARCHAR)
SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = "50.0%" AND governorate = "dhi qar governorate" AND in_de_creased_by > 6
What is the name in Basque of the municipality whose official name is Kuartango?
CREATE TABLE table_300283_1 (name_in_basque VARCHAR, official_name VARCHAR)
SELECT name_in_basque FROM table_300283_1 WHERE official_name = "Kuartango"
What was the record for July 26?
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_16 WHERE date = "july 26"
What is the colonized year for the chartered year 1958?
CREATE TABLE table_name_83 (colonized VARCHAR, chartered VARCHAR)
SELECT colonized FROM table_name_83 WHERE chartered = "1958"
In what place was the golfer that had a score of 69?
CREATE TABLE table_name_62 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_62 WHERE score = 69
What is the team located at philips arena 18,227?
CREATE TABLE table_11961582_6 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_11961582_6 WHERE location_attendance = "Philips Arena 18,227"
What is the name of the deity that the state of Bihar was named after?
CREATE TABLE table_name_29 (name_of_deity VARCHAR, name_of_the_state_where_found_in_india VARCHAR)
SELECT name_of_deity FROM table_name_29 WHERE name_of_the_state_where_found_in_india = "bihar"
Which season had f/laps is 0 and races is 2?
CREATE TABLE table_27631002_1 (season VARCHAR, f_laps VARCHAR, races VARCHAR)
SELECT season FROM table_27631002_1 WHERE f_laps = 0 AND races = 2
What institution has the nickname Penmen?
CREATE TABLE table_12936521_2 (institution VARCHAR, nickname VARCHAR)
SELECT institution FROM table_12936521_2 WHERE nickname = "Penmen"
How many points are in the scored category for the team that played less than 18 games?
CREATE TABLE table_name_41 (scored INTEGER, played INTEGER)
SELECT SUM(scored) FROM table_name_41 WHERE played < 18
What venue had an event on 17 November 1963?
CREATE TABLE table_name_16 (venue VARCHAR, season VARCHAR, date VARCHAR)
SELECT venue FROM table_name_16 WHERE season = 1963 AND date = "17 november 1963"
What's the distance for the chieti to macerata course?
CREATE TABLE table_name_66 (distance VARCHAR, course VARCHAR)
SELECT distance FROM table_name_66 WHERE course = "chieti to macerata"
Which lyricist has a song with a length of 6:14?
CREATE TABLE table_10848177_1 (lyricist VARCHAR, length VARCHAR)
SELECT lyricist FROM table_10848177_1 WHERE length = "6:14"
Who is the home team that played at venue MCG?
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_3 WHERE venue = "mcg"
What is the home for the away of 4-0?
CREATE TABLE table_name_1 (home VARCHAR, away VARCHAR)
SELECT home FROM table_name_1 WHERE away = "4-0"
What is the earliest season that has a position over 12?
CREATE TABLE table_name_80 (season INTEGER, position INTEGER)
SELECT MIN(season) FROM table_name_80 WHERE position > 12
What team did the player represent that was picked after 196?
CREATE TABLE table_name_35 (nfl_club VARCHAR, pick INTEGER)
SELECT nfl_club FROM table_name_35 WHERE pick > 196
What opponent had a record of 37-27?
CREATE TABLE table_name_19 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_19 WHERE record = "37-27"
Which team had 64 laps and 13 points?
CREATE TABLE table_name_39 (team VARCHAR, laps VARCHAR, points VARCHAR)
SELECT team FROM table_name_39 WHERE laps = 64 AND points = 13
What is the customer id, first and last name with most number of accounts.
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
What was the round when he fought Joe Stevenson?
CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson"
What is the Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)?
CREATE TABLE table_name_10 (dance VARCHAR, highest_score VARCHAR, best_dancer_s_ VARCHAR)
SELECT dance FROM table_name_10 WHERE highest_score < 30 AND best_dancer_s_ = "stacy keibler"
What is the date of the game where Richmond was the away team?
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_70 WHERE away_team = "richmond"
What is the genre of the game developed by Nintendo EAD?
CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR)
SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead"
What date was the score 1-8?
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_96 WHERE score = "1-8"
When victoria coren and rhod gilbert are both on the lees team what is the score?
CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR)
SELECT scores FROM table_23575917_6 WHERE lees_team = "Victoria Coren and Rhod Gilbert"
What were the high rebounds when the score was l 101–109 (ot)?
CREATE TABLE table_name_19 (high_rebounds VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_name_19 WHERE score = "l 101–109 (ot)"
Who sponsors Josele Garza in all rounds?
CREATE TABLE table_name_60 (sponsor_s_ VARCHAR, rounds VARCHAR, driver_s_ VARCHAR)
SELECT sponsor_s_ FROM table_name_60 WHERE rounds = "all" AND driver_s_ = "josele garza"