question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the game number when the record is 30-22?
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)
SELECT AVG(game) FROM table_name_77 WHERE record = "30-22"
What rounds did Roy Salvadori drive for David Brown Corporation?
CREATE TABLE table_name_98 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_98 WHERE entrant = "david brown corporation" AND driver = "roy salvadori"
Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?
CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR)
SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp"
What was Stéphan Perrot rank average?
CREATE TABLE table_name_61 (rank INTEGER, name VARCHAR)
SELECT AVG(rank) FROM table_name_61 WHERE name = "stéphan perrot"
What years did Troy Hudson play for the Jazz?
CREATE TABLE table_name_29 (years_for_jazz VARCHAR, player VARCHAR)
SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson"
How many games have a Score of 1–0, and Points smaller than 66?
CREATE TABLE table_name_9 (game VARCHAR, score VARCHAR, points VARCHAR)
SELECT COUNT(game) FROM table_name_9 WHERE score = "1–0" AND points < 66
What was the most recent year that Kathy Ahern was a runner-up?
CREATE TABLE table_name_12 (year INTEGER, runner_s__up VARCHAR)
SELECT MAX(year) FROM table_name_12 WHERE runner_s__up = "kathy ahern"
WHAT IS THE NUMBER OF Attendance WITH A RECORD 94–36
CREATE TABLE table_name_70 (attendance INTEGER, save VARCHAR, record VARCHAR)
SELECT AVG(attendance) FROM table_name_70 WHERE save = "–" AND record = "94–36"
What date did the International Gold Cup take place?
CREATE TABLE table_name_69 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_69 WHERE name = "international gold cup"
What's the number of drawn games for the club with a tries for count of 76?
CREATE TABLE table_12886178_5 (drawn VARCHAR, tries_for VARCHAR)
SELECT drawn FROM table_12886178_5 WHERE tries_for = "76"
Which Year has a Result smaller than 20.26, and a Location of eugene?
CREATE TABLE table_name_80 (year INTEGER, result VARCHAR, location VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE result < 20.26 AND location = "eugene"
For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.
CREATE TABLE list (grade VARCHAR, classroom VARCHAR)
SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade
What's Italtrans Racing Team's, with 0 pts, class?
CREATE TABLE table_20016339_1 (class VARCHAR, pts VARCHAR, team VARCHAR)
SELECT class FROM table_20016339_1 WHERE pts = 0 AND team = "Italtrans Racing team"
Name the To par of payne stewart?
CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_4 WHERE player = "payne stewart"
Which Score has a Date of february 9?
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_24 WHERE date = "february 9"
Who had the high points on December 17?
CREATE TABLE table_17323042_6 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17323042_6 WHERE date = "December 17"
What is the smallest third place finish?
CREATE TABLE table_2146364_2 (third_place INTEGER)
SELECT MIN(third_place) FROM table_2146364_2
What country team had Thurles Sarsfields?
CREATE TABLE table_name_8 (county_team VARCHAR, club_team_s_ VARCHAR)
SELECT county_team FROM table_name_8 WHERE club_team_s_ = "thurles sarsfields"
Where was home on April 3?
CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_71 WHERE date = "april 3"
Which institution has a nickname of Blue Hens?
CREATE TABLE table_name_88 (institution VARCHAR, nickname VARCHAR)
SELECT institution FROM table_name_88 WHERE nickname = "blue hens"
Show all cities where at least one customer lives in but no performer lives in.
CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)
SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID
Which telescopes were sponsored by or originated in Belgium?
CREATE TABLE table_23851574_2 (name VARCHAR, nationality_sponsors VARCHAR)
SELECT name FROM table_23851574_2 WHERE nationality_sponsors = "Belgium"
What is the other mozilla that has 9.41% for the safari?
CREATE TABLE table_name_71 (other_mozilla VARCHAR, safari VARCHAR)
SELECT other_mozilla FROM table_name_71 WHERE safari = "9.41%"
What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
What was the term of office for the electorate warringah?
CREATE TABLE table_name_1 (term_of_office VARCHAR, electorate VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE electorate = "warringah"
Show the game name that has most number of hours played.
CREATE TABLE Plays_games (gameid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)
SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1
What is the date of the 21:12 Set 2?
CREATE TABLE table_name_17 (date VARCHAR, set_2 VARCHAR)
SELECT date FROM table_name_17 WHERE set_2 = "21:12"
What was the highest vote for others?
CREATE TABLE table_1756284_1 (others_number INTEGER)
SELECT MAX(others_number) FROM table_1756284_1
Name the driver for race 2 2
CREATE TABLE table_15530244_5 (driver VARCHAR, race_2 VARCHAR)
SELECT driver FROM table_15530244_5 WHERE race_2 = "2"
What are the total rounds for the texas college and has a pick smaller than 25?
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, pick VARCHAR)
SELECT COUNT(round) FROM table_name_39 WHERE college = "texas" AND pick < 25
How many grids have more than 24 laps with a time/retired of +1:12.208?
CREATE TABLE table_name_96 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_96 WHERE time_retired = "+1:12.208" AND laps > 24
Which Species/Authority has a Name of true's beaked whale?
CREATE TABLE table_name_44 (species_authority VARCHAR, name VARCHAR)
SELECT species_authority FROM table_name_44 WHERE name = "true's beaked whale"
Show the most common country across members.
CREATE TABLE member (Country VARCHAR)
SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
What's the score of the Nice International Championships where Björn Borg was the champion?
CREATE TABLE table_name_93 (score VARCHAR, name VARCHAR, champion VARCHAR)
SELECT score FROM table_name_93 WHERE name = "nice international championships" AND champion = "björn borg"
List the vote ids, phone numbers and states of all votes.
CREATE TABLE votes (vote_id VARCHAR, phone_number VARCHAR, state VARCHAR)
SELECT vote_id, phone_number, state FROM votes
What was the latest round with a running back from a California college?
CREATE TABLE table_name_55 (round INTEGER, position VARCHAR, college VARCHAR)
SELECT MAX(round) FROM table_name_55 WHERE position = "running back" AND college = "california"
who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?
CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR)
SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge"
What is the catalog of the record released on May 27, 2009?
CREATE TABLE table_name_94 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_94 WHERE date = "may 27, 2009"
What is the D43 associated with a D41 of r 21?
CREATE TABLE table_name_44 (d_43 VARCHAR, d_41 VARCHAR)
SELECT d_43 FROM table_name_44 WHERE d_41 = "r 21"
What driver has a grid greater than 19?
CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER)
SELECT driver FROM table_name_27 WHERE grid > 19
How many people wrote the episode directed by Arvin Brown?
CREATE TABLE table_30030227_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(written_by) FROM table_30030227_1 WHERE directed_by = "Arvin Brown"
What player played in 2000?
CREATE TABLE table_name_66 (player VARCHAR, year VARCHAR)
SELECT player FROM table_name_66 WHERE year = 2000
How many stories is the torre reforma building?
CREATE TABLE table_name_99 (stories VARCHAR, building VARCHAR)
SELECT COUNT(stories) FROM table_name_99 WHERE building = "torre reforma"
Which Articulatory class has and Aspirated stop of ㅍ?
CREATE TABLE table_name_34 (articulatory_class VARCHAR, aspirated_stop VARCHAR)
SELECT articulatory_class FROM table_name_34 WHERE aspirated_stop = "ㅍ"
When richmond played away, what was the largest number of people who watched?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_8 WHERE away_team = "richmond"
Name the rank on channel for pilot
CREATE TABLE table_24222929_4 (rank_on_channel VARCHAR, title VARCHAR)
SELECT rank_on_channel FROM table_24222929_4 WHERE title = "Pilot"
Name the number of overall nt points for 248.9
CREATE TABLE table_14407512_24 (overall_nt_points VARCHAR, points VARCHAR)
SELECT COUNT(overall_nt_points) FROM table_14407512_24 WHERE points = "248.9"
Which Attendance has a Tie # of 15?
CREATE TABLE table_name_25 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_25 WHERE tie_no = "15"
Which date was associated with the release in Europe on the Wichita Recordings label?
CREATE TABLE table_name_5 (date VARCHAR, region VARCHAR, label VARCHAR)
SELECT date FROM table_name_5 WHERE region = "europe" AND label = "wichita recordings"
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"
What is the total number of Lane, when Mark is "7.93", and when React is less than 0.145?
CREATE TABLE table_name_8 (lane VARCHAR, mark VARCHAR, react VARCHAR)
SELECT COUNT(lane) FROM table_name_8 WHERE mark = 7.93 AND react < 0.145
Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.
CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR)
SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
How many draws has lower than rank 10 in rumba/cha-cha/jazz dance?
CREATE TABLE table_name_65 (draw VARCHAR, rank VARCHAR, dance_styles VARCHAR)
SELECT COUNT(draw) FROM table_name_65 WHERE rank < 10 AND dance_styles = "rumba/cha-cha/jazz dance"
What are the names of poker players in descending order of earnings?
CREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
What is the result of the friendly match?
CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_37 WHERE competition = "friendly"
Which Home has a Record of 16–17–6?
CREATE TABLE table_name_5 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_5 WHERE record = "16–17–6"
What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?
CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993"
What away team has 12 as the tie no.?
CREATE TABLE table_name_89 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_89 WHERE tie_no = "12"
What is the number of votes for the party which got more than 28 seats?
CREATE TABLE table_name_67 (votes VARCHAR, seats INTEGER)
SELECT COUNT(votes) FROM table_name_67 WHERE seats > 28
Who is the opponent of the match at cua stadium?
CREATE TABLE table_name_7 (opponent VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_7 WHERE venue = "cua stadium"
Who built the under grid 6 car with under 49 laps?
CREATE TABLE table_name_94 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_94 WHERE grid < 6 AND laps < 49
what team lost the most points
CREATE TABLE table_name_56 (lost VARCHAR)
SELECT lost FROM table_name_56 WHERE "points" = "points"
What is the location where the frequency is 92.3mhz?
CREATE TABLE table_name_76 (location VARCHAR, frequency VARCHAR)
SELECT location FROM table_name_76 WHERE frequency = "92.3mhz"
What country offered a prize of 66400 US dollars?
CREATE TABLE table_29302711_13 (country VARCHAR, prize_money__usd_ VARCHAR)
SELECT country FROM table_29302711_13 WHERE prize_money__usd_ = 66400
What is the Musical Guest/Song with an original airdate of january 2008?
CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR)
SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 2008"
Who were the candidates in the Kentucky 9 district?
CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_2668254_8 WHERE district = "Kentucky 9"
What is the position that is shown for 2011?
CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR)
SELECT position FROM table_name_41 WHERE year = 2011
Which QB had a rating of 72.3?
CREATE TABLE table_19418696_3 (name VARCHAR, qb_rating VARCHAR)
SELECT name FROM table_19418696_3 WHERE qb_rating = "72.3"
Who is the entrant when the chassis is ferrari 125?
CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125"
What is the total number pick for seattle mariners team?
CREATE TABLE table_name_13 (pick VARCHAR, team VARCHAR)
SELECT COUNT(pick) FROM table_name_13 WHERE team = "seattle mariners"
What is the Purpose of the Callsign with a Freq currently of 4gld?
CREATE TABLE table_name_59 (purpose VARCHAR, freq_currently VARCHAR)
SELECT purpose FROM table_name_59 WHERE freq_currently = "4gld"
What was the date of the game at MCG?
CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "mcg"
On which date was the result w20-0?
CREATE TABLE table_name_66 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_66 WHERE result = "w20-0"
What game has a 6-12-8 record?
CREATE TABLE table_name_65 (game VARCHAR, record VARCHAR)
SELECT game FROM table_name_65 WHERE record = "6-12-8"
What date has friendly as the competition, with pretoria, South Africa as the venue?
CREATE TABLE table_name_79 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT date FROM table_name_79 WHERE competition = "friendly" AND venue = "pretoria, south africa"
List the names of poker players ordered by the final tables made in ascending order.
CREATE TABLE poker_player (People_ID VARCHAR, Final_Table_Made VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made
What type is σαεπ?
CREATE TABLE table_2538117_5 (type VARCHAR, letters VARCHAR)
SELECT type FROM table_2538117_5 WHERE letters = "ΣΑΕΠ"
What was the attendance when Fitzroy played as the away team?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_8 WHERE away_team = "fitzroy"
Name the least europa league
CREATE TABLE table (europa_league INTEGER)
SELECT MIN(europa_league) FROM table
What is the decay for the sattelite with an id that is 1990-081c?
CREATE TABLE table_2150068_1 (decay VARCHAR, nssdc_id VARCHAR)
SELECT decay FROM table_2150068_1 WHERE nssdc_id = "1990-081C"
Who led sprints classification when Chris Horner led general classification?
CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, general_classification VARCHAR)
SELECT sprints_classification FROM table_26257223_13 WHERE general_classification = "Chris Horner"
What is the lowest heat of the Lakeside race?
CREATE TABLE table_name_65 (heat INTEGER, race_title VARCHAR)
SELECT MIN(heat) FROM table_name_65 WHERE race_title = "lakeside"
What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award?
CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"
what is the total when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3?
CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_37 WHERE bronze > 1 AND nation = "hong kong (hkg)" AND gold < 3
What is the format for the label Mightier than Sword on January 12, 2010 in the United States?
CREATE TABLE table_name_50 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR)
SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
What is the name of the away team that played at Kardinia Park?
CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_2 WHERE venue = "kardinia park"
From brand Yes! FM 101.1, what was the frequency?
CREATE TABLE table_19874169_3 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_19874169_3 WHERE branding = "YES! FM 101.1"
When classic hits 102.1 cjcy is the branding who is the owner?
CREATE TABLE table_18536769_1 (owner VARCHAR, branding VARCHAR)
SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY"
What is the time/retired for a grid over 17 with 74 laps?
CREATE TABLE table_name_31 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74
What is the lowest grid number that a race took place doing more than 21 laps?
CREATE TABLE table_name_54 (grid INTEGER, laps INTEGER)
SELECT MIN(grid) FROM table_name_54 WHERE laps > 21
What is the total of TCKL in 2000 with a P/KO RET less than 14?
CREATE TABLE table_name_9 (tckl VARCHAR, year VARCHAR, p_ko_ret VARCHAR)
SELECT COUNT(tckl) FROM table_name_9 WHERE year = "2000" AND p_ko_ret < 14
How many times did the Denver Broncos face the Dallas Texans this season?
CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans"
How many numbers of dances for place 1?
CREATE TABLE table_26375386_28 (number_of_dances VARCHAR, place VARCHAR)
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1
What is the name of Season #15?
CREATE TABLE table_12564633_1 (title VARCHAR, season__number VARCHAR)
SELECT title FROM table_12564633_1 WHERE season__number = 15
How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?
CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR)
SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = "November 13, 2007"
What is the name of the airport in São Filipe that has an IATA of sfl?
CREATE TABLE table_name_3 (airportname VARCHAR, city___town VARCHAR, iata VARCHAR)
SELECT airportname FROM table_name_3 WHERE city___town = "são filipe" AND iata = "sfl"
Which date has tigers as the opponent?
CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_14 WHERE opponent = "tigers"
How many incumbents are there in district Louisiana 5?
CREATE TABLE table_1341690_18 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE district = "Louisiana 5"
Which rank is the start of totals?
CREATE TABLE table_name_78 (rank VARCHAR, start VARCHAR)
SELECT rank FROM table_name_78 WHERE start = "totals"
Who has the world record of 153kg in the clean & jerk?
CREATE TABLE table_name_27 (world_record VARCHAR)
SELECT 153 AS kg FROM table_name_27 WHERE world_record = "clean & jerk"