question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What are December 10's high points?
CREATE TABLE table_27712451_6 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27712451_6 WHERE date = "December 10"
What is the smallest timeslot rank when the rating is smaller than 2.6?
CREATE TABLE table_name_29 (rank__timeslot_ INTEGER, rating INTEGER)
SELECT MIN(rank__timeslot_) FROM table_name_29 WHERE rating < 2.6
What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?
CREATE TABLE table_name_1 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR, class VARCHAR)
SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = "500cc" AND team = "norton" AND year > 1955
How much did Kenny Brack win?
CREATE TABLE table_25146455_1 (winnings VARCHAR, driver VARCHAR)
SELECT winnings FROM table_25146455_1 WHERE driver = "Kenny Brack"
What longitude is tatman township?
CREATE TABLE table_18600760_20 (longitude VARCHAR, township VARCHAR)
SELECT longitude FROM table_18600760_20 WHERE township = "Tatman"
What was the decision when montreal was at home?
CREATE TABLE table_name_12 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_12 WHERE home = "montreal"
What is the home team score when the away team was Hawthorn?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_1 WHERE away_team = "hawthorn"
How many floors does detroit marriott at the renaissance center have?
CREATE TABLE table_name_70 (floors INTEGER, name VARCHAR)
SELECT MAX(floors) FROM table_name_70 WHERE name = "detroit marriott at the renaissance center"
Where did Ra'fat Ali play on August 17, 1999?
CREATE TABLE table_name_35 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_35 WHERE date = "august 17, 1999"
What day(s) did the team play indiana?
CREATE TABLE table_17340355_7 (date VARCHAR, team VARCHAR)
SELECT date FROM table_17340355_7 WHERE team = "Indiana"
What is the smallest ERP for allentown, pennsylvania?
CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR)
SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania"
What is the average number of yards on a red tee that has a hole of 1 and a par above 4?
CREATE TABLE table_name_27 (yards__red_tees_ INTEGER, hole VARCHAR, par__white_tees_ VARCHAR)
SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = "1" AND par__white_tees_ > 4
How many of the cmdlets are the 2008 version?
CREATE TABLE table_14465871_2 (cmdlets VARCHAR, version VARCHAR)
SELECT COUNT(cmdlets) FROM table_14465871_2 WHERE version = "2008"
What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?
CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR)
SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets"
Who was the home team when Fitzroy was the away team?
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_76 WHERE away_team = "fitzroy"
What is the date of the GC competition when the opponents are 1. FC Nuremberg?
CREATE TABLE table_name_59 (date VARCHAR, opponents VARCHAR, competition VARCHAR)
SELECT date FROM table_name_59 WHERE opponents = "1. fc nuremberg" AND competition = "gc"
What Date has a label of alfa records?
CREATE TABLE table_name_35 (date VARCHAR, label VARCHAR)
SELECT date FROM table_name_35 WHERE label = "alfa records"
What is the bayonet lug status for a m4 hbar and m4le carbine equipped?
CREATE TABLE table_12834315_5 (bayonet_lug VARCHAR, barrel_profile VARCHAR, name VARCHAR)
SELECT bayonet_lug FROM table_12834315_5 WHERE barrel_profile = "M4 HBAR" AND name = "M4LE Carbine"
What is the Frequency MHz of Trinidad, Colorado?
CREATE TABLE table_name_6 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_name_6 WHERE city_of_license = "trinidad, colorado"
What is the lowest Share, when Rating is greater than 1.3, and when Air Date is May 28, 2008?
CREATE TABLE table_name_63 (share INTEGER, rating VARCHAR, air_date VARCHAR)
SELECT MIN(share) FROM table_name_63 WHERE rating > 1.3 AND air_date = "may 28, 2008"
Wins smaller than 0 had what sum of year?
CREATE TABLE table_name_16 (year INTEGER, wins INTEGER)
SELECT SUM(year) FROM table_name_16 WHERE wins < 0
What's the location for the country of platte?
CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR)
SELECT location FROM table_name_64 WHERE county = "platte"
What is the highest Shooting Total with a Bronze less than 0?
CREATE TABLE table_name_40 (total INTEGER, sport VARCHAR, bronze VARCHAR)
SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0
Name the least position
CREATE TABLE table_16034882_5 (position INTEGER)
SELECT MIN(position) FROM table_16034882_5
How many nationalities are the pick 193?
CREATE TABLE table_1013129_8 (nationality VARCHAR, pick VARCHAR)
SELECT COUNT(nationality) FROM table_1013129_8 WHERE pick = 193
How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?
CREATE TABLE table_name_70 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_70 WHERE rank < 5 AND gold > 2 AND total = 9 AND silver < 4
What is the number listed under against when there were less than 13 losses and less than 2 byes?
CREATE TABLE table_name_72 (against VARCHAR, losses VARCHAR, byes VARCHAR)
SELECT COUNT(against) FROM table_name_72 WHERE losses < 13 AND byes < 2
Which competition has goals less than 2?
CREATE TABLE table_name_98 (competition VARCHAR, goal INTEGER)
SELECT competition FROM table_name_98 WHERE goal < 2
Which city lives most of staffs? List the city name and number of staffs.
CREATE TABLE Staff (staff_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT T1.city, COUNT(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY COUNT(*) DESC LIMIT 1
In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)
SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
Who had the highest rebounds on December 30?
CREATE TABLE table_name_4 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_4 WHERE date = "december 30"
What is the lost for span 2006- when conv is 0?
CREATE TABLE table_name_63 (lost VARCHAR, conv VARCHAR, span VARCHAR)
SELECT lost FROM table_name_63 WHERE conv = "0" AND span = "2006-"
What tournament is lesley joseph the opponent?
CREATE TABLE table_name_11 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_11 WHERE opponent = "lesley joseph"
What is the chassis after 1991?
CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER)
SELECT chassis FROM table_name_64 WHERE year > 1991
What is the Outcome of the match with a Score of 6–1, 6–1?
CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
What is Venue, when Status is "Test Match", and when Against is "12"?
CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR)
SELECT venue FROM table_name_16 WHERE status = "test match" AND against = 12
Which seaosn had a player of rohan ricketts?
CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR)
SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts"
What year had a quantity made of 11 and a wheel arrangement of 4-6-2?
CREATE TABLE table_name_44 (year_made VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR)
SELECT year_made FROM table_name_44 WHERE wheel_arrangement = "4-6-2" AND quantity_made = "11"
Find the number of classes in each department.
CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR)
SELECT COUNT(*), dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code
What tournament did Nadal win and had a nadal of 16?
CREATE TABLE table_name_75 (tournament VARCHAR, winner VARCHAR)
SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16
What was the attendance on June 27?
CREATE TABLE table_name_6 (att INTEGER, date VARCHAR)
SELECT MIN(att) FROM table_name_6 WHERE date = "june 27"
What was St Kilda's score as the Away team?
CREATE TABLE table_name_59 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_59 WHERE away_team = "st kilda"
What was the grid of Alex Yoong?
CREATE TABLE table_name_77 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_77 WHERE driver = "alex yoong"
what is the react when the country is sweden and the lane is higher than 6?
CREATE TABLE table_name_65 (react INTEGER, country VARCHAR, lane VARCHAR)
SELECT SUM(react) FROM table_name_65 WHERE country = "sweden" AND lane > 6
What is the highest Against for a game against Bristol City?
CREATE TABLE table_name_7 (against INTEGER, opposing_team VARCHAR)
SELECT MAX(against) FROM table_name_7 WHERE opposing_team = "bristol city"
What nationality has a lane larger than 4 and a Time of 2:00.37?
CREATE TABLE table_name_70 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_70 WHERE lane > 4 AND time = "2:00.37"
In how many locations did Game 13 take place?
CREATE TABLE table_17058116_5 (location_attendance VARCHAR, game VARCHAR)
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13
Name the number of international frieghts for domestic mail of 260
CREATE TABLE table_1754531_4 (international_freight VARCHAR, domestic_mail VARCHAR)
SELECT COUNT(international_freight) FROM table_1754531_4 WHERE domestic_mail = 260
how many premieres had the episode that had 12.68 millions of north american viewers?
CREATE TABLE table_2791668_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(original_air_date) FROM table_2791668_1 WHERE us_viewers__millions_ = "12.68"
Lee Trevino of the United States with a total greater than 294 had what To par?
CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino"
How many total League goals does Player John O'Flynn have?
CREATE TABLE table_name_45 (league_goals INTEGER, player VARCHAR)
SELECT SUM(league_goals) FROM table_name_45 WHERE player = "john o'flynn"
What is the position of the player from round 2 from Sweden?
CREATE TABLE table_name_21 (position VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden"
Name the song title for europe
CREATE TABLE table_22457674_1 (song_title VARCHAR, artist VARCHAR)
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe"
What season was the overall record 24-10?
CREATE TABLE table_14609295_4 (season VARCHAR, overall VARCHAR)
SELECT season FROM table_14609295_4 WHERE overall = "24-10"
What team had a finish of 25 in a smaller than 28?
CREATE TABLE table_name_82 (team VARCHAR, start VARCHAR, finish VARCHAR)
SELECT team FROM table_name_82 WHERE start < 28 AND finish = 25
What is a colt racing entrant engine?
CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_17 WHERE entrant = "colt racing"
What is Date, when H/A/N is "H", and when Score is 112-118?
CREATE TABLE table_name_77 (date VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT date FROM table_name_77 WHERE h_a_n = "h" AND score = "112-118"
How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?
CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR)
SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%"
Which Start has a Qual of 207.590?
CREATE TABLE table_name_55 (start VARCHAR, qual VARCHAR)
SELECT start FROM table_name_55 WHERE qual = "207.590"
What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?
CREATE TABLE table_name_62 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_62 WHERE total < 2 AND rank = 17 AND silver > 0
What is the lowest number for draw when the points are less than 17, and the lost is 13?
CREATE TABLE table_name_4 (draw INTEGER, points VARCHAR, lost VARCHAR)
SELECT MIN(draw) FROM table_name_4 WHERE points < 17 AND lost = 13
Who played 20 questions during the issue in which Pamela Horton is on the cover?
CREATE TABLE table_24425491_3 (cover_model VARCHAR)
SELECT 20 AS _questions FROM table_24425491_3 WHERE cover_model = "Pamela Horton"
Find the title of course whose prerequisite is course Differential Geometry.
CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')
If the title if the Lost Boy, how many directors were there?
CREATE TABLE table_19517621_3 (directed_by VARCHAR, title VARCHAR)
SELECT COUNT(directed_by) FROM table_19517621_3 WHERE title = "The Lost Boy"
Who constructed stefan johansson's car with a grid under 14?
CREATE TABLE table_name_52 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_52 WHERE grid < 14 AND driver = "stefan johansson"
What was the April 7, 2008 score on a clay surface?
CREATE TABLE table_name_71 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_71 WHERE surface = "clay" AND date = "april 7, 2008"
What venue had a competition of World Junior Championships before 2011?
CREATE TABLE table_name_29 (venue VARCHAR, year VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_29 WHERE year < 2011 AND competition = "world junior championships"
What is the total number of losses for a draw of 7, and 1 points less than 33?
CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR)
SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33
Which player had a position of t1 and played in the united states?
CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"
What was the score for t9 place for Harold Mcspaden?
CREATE TABLE table_name_9 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_9 WHERE place = "t9" AND player = "harold mcspaden"
How much Total has a Rank of 5, and a Bronze larger than 3?
CREATE TABLE table_name_44 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT SUM(total) FROM table_name_44 WHERE rank = "5" AND bronze > 3
Who is the sprint classification where Francisco Ventoso wins?
CREATE TABLE table_29332810_14 (sprint_classification VARCHAR, winner VARCHAR)
SELECT sprint_classification FROM table_29332810_14 WHERE winner = "Francisco Ventoso"
What score did vasil levski national stadium, sofia, which was friendly during competition, earn?
CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia"
What place has Canada as the country?
CREATE TABLE table_name_53 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_53 WHERE country = "canada"
Name the most for fløysvik for 8
CREATE TABLE table_28677723_14 (tor_fløysvik INTEGER, karianne_gulliksen VARCHAR)
SELECT MAX(tor_fløysvik) FROM table_28677723_14 WHERE karianne_gulliksen = 8
with distribution of 20.6% what is the code name?
CREATE TABLE table_name_90 (code_name VARCHAR, distribution VARCHAR)
SELECT code_name FROM table_name_90 WHERE distribution = "20.6%"
how many new points does the player roberta vinci have?
CREATE TABLE table_29572583_20 (new_points INTEGER, player VARCHAR)
SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci"
During what years was Christine Kehoe in Assembly?
CREATE TABLE table_name_71 (years_in_assembly VARCHAR, name VARCHAR)
SELECT years_in_assembly FROM table_name_71 WHERE name = "christine kehoe"
What day was kibawe created?
CREATE TABLE table_261222_1 (date_of_creation VARCHAR, city___municipality VARCHAR)
SELECT date_of_creation FROM table_261222_1 WHERE city___municipality = "Kibawe"
Who was the visiting team when the record was 28–14–6–2?
CREATE TABLE table_name_86 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_86 WHERE record = "28–14–6–2"
What single(s) released in 2008 and had 4000 copies?
CREATE TABLE table_18710512_3 (single VARCHAR, date VARCHAR, other_details VARCHAR)
SELECT single FROM table_18710512_3 WHERE date = 2008 AND other_details = "4000 copies"
Which Country has a Year(s) won of 1963?
CREATE TABLE table_name_62 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_62 WHERE year_s__won = "1963"
Where is the station that was launched on 17 July 1997 transmitting from?
CREATE TABLE table_name_18 (transmitting_from VARCHAR, launched VARCHAR)
SELECT transmitting_from FROM table_name_18 WHERE launched = "17 july 1997"
What is the sum of silvers for countries in rank 8 with totals over 3?
CREATE TABLE table_name_25 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_25 WHERE rank = "8" AND total > 3
With a less than 4 rank, and a time less than 24.42 what is the smallest lane?
CREATE TABLE table_name_52 (lane INTEGER, rank VARCHAR, time VARCHAR)
SELECT MIN(lane) FROM table_name_52 WHERE rank < 4 AND time < 24.42
What category was in 1964?
CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR)
SELECT category FROM table_name_14 WHERE year = 1964
How many boroughs with different ranks have a total Asian population of 33338?
CREATE TABLE table_19149550_9 (rank VARCHAR, total_asian_population VARCHAR)
SELECT COUNT(rank) FROM table_19149550_9 WHERE total_asian_population = 33338
What was the maximum rank-final score on the floor exercise?
CREATE TABLE table_26681728_1 (rank_final INTEGER, apparatus VARCHAR)
SELECT MAX(rank_final) FROM table_26681728_1 WHERE apparatus = "Floor Exercise"
What is the score of the away team that played at Kardinia Park?
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia park"
Which Label has a Region of canada?
CREATE TABLE table_name_12 (label VARCHAR, region VARCHAR)
SELECT label FROM table_name_12 WHERE region = "canada"
How many different finales had the English title "Beyond the Realm of Conscience"?
CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR)
SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = "Beyond the Realm of Conscience"
What is 1998, when 1994 is Grand Slam Tournaments?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT 1998 FROM table_name_86 WHERE 1994 = "grand slam tournaments"
What college team did draft pick 18 come from?
CREATE TABLE table_2850912_1 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT college_junior_club_team FROM table_2850912_1 WHERE pick__number = 18
Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_neutral_site VARCHAR)
SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = "MU, 2-1"
What was the winning score for oldsmobile lpga classic?
CREATE TABLE table_name_64 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_64 WHERE tournament = "oldsmobile lpga classic"
Name the representing for englar alheimsins
CREATE TABLE table_name_35 (representing VARCHAR, original_title VARCHAR)
SELECT representing FROM table_name_35 WHERE original_title = "englar alheimsins"
Name the record for rose garden 20,565 attendance
CREATE TABLE table_23286158_8 (record VARCHAR, location_attendance VARCHAR)
SELECT record FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565"
Which engine has an Entrant of team lotus, and a Year larger than 1962?
CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT engine FROM table_name_47 WHERE entrant = "team lotus" AND year > 1962
how many overall championships does concordia university have
CREATE TABLE table_14115168_4 (national_titles INTEGER, school VARCHAR)
SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = "Concordia University"
What is the number of locations with the fastest times of 11.13?
CREATE TABLE table_1231316_7 (location VARCHAR, fastest_time__s_ VARCHAR)
SELECT COUNT(location) FROM table_1231316_7 WHERE fastest_time__s_ = "11.13"