answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(pick) FROM table_name_7 WHERE round < 6 AND player = "kenneth green"
What is the average Pick when the round was less than 6 for kenneth green?
CREATE TABLE table_name_7 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = "benjamin harrison"
Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison?
CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR)
SELECT MAX(top_5) FROM table_name_97 WHERE wins > 1
what is the highest top-5 when wins is more than 1?
CREATE TABLE table_name_97 (top_5 INTEGER, wins INTEGER)
SELECT COUNT(DISTINCT class_code) FROM CLASS
How many different classes are there?
CREATE TABLE CLASS (class_code VARCHAR)
SELECT design FROM table_name_50 WHERE theme = "alpine skiing"
Which design uses the theme alpine skiing?
CREATE TABLE table_name_50 (design VARCHAR, theme VARCHAR)
SELECT final_position___vuelta FROM table_name_26 WHERE final_position___giro > 39 AND final_position___tour = 90
What is the final Vuelta position associated with a final Giro position over 39 and a final Tour position of 90?
CREATE TABLE table_name_26 (final_position___vuelta VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR)
SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2"
How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?
CREATE TABLE table_12834315_8 (barrel_length VARCHAR, rear_sight VARCHAR, barrel_profile VARCHAR)
SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía"
What is the place of player sergio garcía, who has £77,500?
CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR)
SELECT COUNT(goals_against) FROM table_name_40 WHERE position = 4
How many Goals Against have a Position of 4?
CREATE TABLE table_name_40 (goals_against VARCHAR, position VARCHAR)
SELECT score_in_the_final FROM table_name_48 WHERE partnering = "tessa price"
What was the final score for the match with a partnering of Tessa Price?
CREATE TABLE table_name_48 (score_in_the_final VARCHAR, partnering VARCHAR)
SELECT AVG(week) FROM table_name_56 WHERE result = "l 28–17"
Name the average week for result of l 28–17
CREATE TABLE table_name_56 (week INTEGER, result VARCHAR)
SELECT game_site FROM table_name_68 WHERE date = "september 25, 1983"
Date of september 25, 1983 is what game site?
CREATE TABLE table_name_68 (game_site VARCHAR, date VARCHAR)
SELECT Title, Issues FROM book
What are the title and issues of the books?
CREATE TABLE book (Title VARCHAR, Issues VARCHAR)
SELECT event FROM table_name_54 WHERE record = "3-0"
What event did tim Hague have a record of 3-0?
CREATE TABLE table_name_54 (event VARCHAR, record VARCHAR)
SELECT used FROM table_name_4 WHERE power__hp_ < 93 AND engine = "om324"
When was power (hp) less than 93 for the OM324 engine used?
CREATE TABLE table_name_4 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR)
SELECT amman FROM table_26173058_2 WHERE qadisiya = "2-1"
what is the place where the location is 2-1
CREATE TABLE table_26173058_2 (amman VARCHAR, qadisiya VARCHAR)
SELECT year FROM table_name_79 WHERE organization = "legatum institute"
What year for the legatum institute?
CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR)
SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = "saint lucia" AND total > 50
What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?
CREATE TABLE table_name_89 (gold INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT winning_team FROM table_name_15 WHERE winning_manufacturer = "audi" AND winning_driver = "timo scheider" AND date = "31 august"
What is the winning team of the race on 31 August with Audi as the winning manufacturer and Timo Scheider as the winning driver?
CREATE TABLE table_name_15 (winning_team VARCHAR, date VARCHAR, winning_manufacturer VARCHAR, winning_driver VARCHAR)
SELECT losingteam FROM table_11236195_2 WHERE season = 1993
What was the losing team in the 1993 season?
CREATE TABLE table_11236195_2 (losingteam VARCHAR, season VARCHAR)
SELECT MIN(lane) FROM table_name_18 WHERE name = "lenny krayzelburg"
Name the least lane for lenny krayzelburg
CREATE TABLE table_name_18 (lane INTEGER, name VARCHAR)
SELECT team FROM table_name_66 WHERE points < 203
What team has fewer than 203 points?
CREATE TABLE table_name_66 (team VARCHAR, points INTEGER)
SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id
Show invoice dates and order id and details for all invoices.
CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)
SELECT date FROM table_name_96 WHERE opponents = "notts county" AND league_position = "1st"
What date was Notts County the opponent and the league position was 1st?
CREATE TABLE table_name_96 (date VARCHAR, opponents VARCHAR, league_position VARCHAR)
SELECT team FROM table_name_77 WHERE home_city = "koprivnica"
What team has a home city of Koprivnica?
CREATE TABLE table_name_77 (team VARCHAR, home_city VARCHAR)
SELECT american FROM table_name_62 WHERE british = "ɛm"
Which American has British of ɛm?
CREATE TABLE table_name_62 (american VARCHAR, british VARCHAR)
SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4
what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?
CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR)
SELECT constituted FROM table_name_86 WHERE party = "labor" AND name = "scullin ministry"
Name the constituted for labor and scullin ministry
CREATE TABLE table_name_86 (constituted VARCHAR, party VARCHAR, name VARCHAR)
SELECT loss FROM table_name_69 WHERE opponent = "nationals" AND score = "7-1"
What's the loss of the game with the opponent of the Nationals with a score of 7-1?
CREATE TABLE table_name_69 (loss VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT winner FROM table_name_20 WHERE runner_up = "real salt lake"
Who was the Winner when the Runner-up was Real Salt Lake?
CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR)
SELECT frequency FROM table_name_18 WHERE on_air_id = "1way fm"
Name the frequency with on-air ID of 1way fm
CREATE TABLE table_name_18 (frequency VARCHAR, on_air_id VARCHAR)
SELECT name FROM table_name_70 WHERE weight = "head coach: aleksandr kabanov"
What is the name when weight shows head coach: Aleksandr Kabanov?
CREATE TABLE table_name_70 (name VARCHAR, weight VARCHAR)
SELECT source_model FROM table_name_27 WHERE architecture = "16-bit*"
Which Source model has a 16-bit* Architecture?
CREATE TABLE table_name_27 (source_model VARCHAR, architecture VARCHAR)
SELECT term_in_office FROM table_name_21 WHERE order = "9"
What is the Term in office with an Order that is 9?
CREATE TABLE table_name_21 (term_in_office VARCHAR, order VARCHAR)
SELECT COUNT(represents) FROM table_26301697_2 WHERE contestant = "Clary Sermina Delgado Cid"
Name the total number of represents for clary sermina delgado cid
CREATE TABLE table_26301697_2 (represents VARCHAR, contestant VARCHAR)
SELECT surface FROM table_name_28 WHERE date > 1982 AND partner = "guy forget"
Which surface had a date after 1982 and partner of Guy Forget?
CREATE TABLE table_name_28 (surface VARCHAR, date VARCHAR, partner VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE week = 11
what is the sum of attendance of week 11
CREATE TABLE table_name_62 (attendance INTEGER, week VARCHAR)
SELECT DISTINCT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9
List the name and country of origin for all singers who have produced songs with rating above 9.
CREATE TABLE song (artist_name VARCHAR, rating INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT MAX(enrollment) FROM table_28243691_1 WHERE founded = 1923
List the highest number of students in attendance for the institution that started in 1923.
CREATE TABLE table_28243691_1 (enrollment INTEGER, founded VARCHAR)
SELECT SUM(year) FROM table_name_65 WHERE publication = "vh1" AND rank > 11
What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11?
CREATE TABLE table_name_65 (year INTEGER, publication VARCHAR, rank VARCHAR)
SELECT oberliga_bayern FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND season = "1986-87"
Name the oberliga bayern for sv sandhausen for 1986-87
CREATE TABLE table_14242137_4 (oberliga_bayern VARCHAR, oberliga_baden_württemberg VARCHAR, season VARCHAR)
SELECT MAX(starts) FROM table_2725949_6 WHERE wins = 6
Name the most starts for 6 wins
CREATE TABLE table_2725949_6 (starts INTEGER, wins VARCHAR)
SELECT competition FROM table_name_66 WHERE date = "29 september 2007"
Which competition was on 29 September 2007?
CREATE TABLE table_name_66 (competition VARCHAR, date VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "at south carolina"
What was the date when the opponent was at South carolina?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT internet_explorer FROM table_name_97 WHERE chrome = "24.91%"
What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?
CREATE TABLE table_name_97 (internet_explorer VARCHAR, chrome VARCHAR)
SELECT national_share___percentage_ FROM table_171666_1 WHERE area__km²_ = 148064
What is the national share of the country whose area is 148064 km^2?
CREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(pick) FROM table_name_7 WHERE position = "wide receiver"
What is the total pick number for a wide receiver?
CREATE TABLE table_name_7 (pick VARCHAR, position VARCHAR)
SELECT MAX(free) FROM table_name_87 WHERE total = 81.167 AND rank > 23
what is the most free when the total is 81.167 and the rank is higher than 23?
CREATE TABLE table_name_87 (free INTEGER, total VARCHAR, rank VARCHAR)
SELECT bbc_three_weekly_ranking FROM table_24399615_10 WHERE cable_rank = "6"
List the number of bbc rankings with cable rankings of 6.
CREATE TABLE table_24399615_10 (bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008
What was the rank of a transfer fee larger than 13 million, and after 2008?
CREATE TABLE table_name_26 (rank VARCHAR, transfer_fee___€_million_ VARCHAR, year VARCHAR)
SELECT score FROM table_name_57 WHERE date = "march 3, 2008"
What was the score on March 3, 2008?
CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR)
SELECT weekly_rank FROM table_name_8 WHERE official_ratings__millions_ > 5.2 AND show = "live final"
Which Weekly Rank for a Live Final Show has an Official Ratings (millions) greater than 5.2?
CREATE TABLE table_name_8 (weekly_rank VARCHAR, official_ratings__millions_ VARCHAR, show VARCHAR)
SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0
Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR)
SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia"
What is the sum of the prominence in m of slovakia?
CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR)
SELECT position FROM table_name_64 WHERE competition = "world indoor championships" AND year > 2008
Which position was the World Indoor Championships in a year later than 2008?
CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Call of Destiny" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Works of Widenius")
Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.
CREATE TABLE Plays_games (StuID VARCHAR, GameID VARCHAR); CREATE TABLE Student (lname VARCHAR, sex VARCHAR, StuID VARCHAR); CREATE TABLE Video_games (GameID VARCHAR, Gname VARCHAR)
SELECT AVG(losses) FROM table_name_8 WHERE efficiency__percentage = "6.3%" AND draws < 1
what is the number of losses with draws less than 1 and 6.3% efficiency?
CREATE TABLE table_name_8 (losses INTEGER, efficiency__percentage VARCHAR, draws VARCHAR)
SELECT score FROM table_name_39 WHERE champion = "ken rosewall" AND year = "1957"
What is the score of champion Ken Rosewall in 1957?
CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)
SELECT visitor FROM table_name_29 WHERE home = "ottawa"
Who was the visitor in the game that had Ottawa as the home team?
CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)
SELECT stadium FROM table_21436373_11 WHERE type_of_record = "Regular season game"
Name the stadium for regular season game
CREATE TABLE table_21436373_11 (stadium VARCHAR, type_of_record VARCHAR)
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison"
What is the total points when the horse is Chippison?
CREATE TABLE table_name_96 (points VARCHAR, horse VARCHAR)
SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre"
Which Visiting Team has a Stadium of servus centre?
CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR)
SELECT tournament FROM table_name_59 WHERE runner_up = "tim henman"
Which tournament was Tim Henman the runner-up in?
CREATE TABLE table_name_59 (tournament VARCHAR, runner_up VARCHAR)
SELECT result FROM table_name_65 WHERE game = "game 5"
What is the result for game 5?
CREATE TABLE table_name_65 (result VARCHAR, game VARCHAR)
SELECT shipyard FROM table_291768_1 WHERE commissioned = "November 30, 1970"
which vessel area was called for on november 30, 1970
CREATE TABLE table_291768_1 (shipyard VARCHAR, commissioned VARCHAR)
SELECT configuration FROM table_name_25 WHERE country = "france" AND type = "accounting" AND wheels > 6
What is the configuration for the country France, with accounting as the type, and wheels greater than 6?
CREATE TABLE table_name_25 (configuration VARCHAR, wheels VARCHAR, country VARCHAR, type VARCHAR)
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DWHR-TV"
When dwhr-tv is the call sign how many station types are there?
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR)
SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller"
Who was the home team when the opposition was Buller?
CREATE TABLE table_26847237_1 (home_team VARCHAR, opposition VARCHAR)
SELECT high_school FROM table_24055352_1 WHERE number = 5
What is the high school of the player number 5?
CREATE TABLE table_24055352_1 (high_school VARCHAR, number VARCHAR)
SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases
What are the details of all sales and purchases?
CREATE TABLE purchases (sales_details VARCHAR, purchase_details VARCHAR); CREATE TABLE sales (sales_details VARCHAR, purchase_details VARCHAR)
SELECT opponent FROM table_name_24 WHERE week < 8 AND date = "october 9, 1960"
Who was the opponent in a week less than 8 on October 9, 1960?
CREATE TABLE table_name_24 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT score FROM table_name_14 WHERE city = "inglewood, california"
What was the final score of the player from Inglewood, California?
CREATE TABLE table_name_14 (score VARCHAR, city VARCHAR)
SELECT builder FROM table_name_43 WHERE pennant_number = "d03"
Who is the builder of Pennant d03?
CREATE TABLE table_name_43 (builder VARCHAR, pennant_number VARCHAR)
SELECT team FROM table_23338693_1 WHERE position = "NC" AND season = 2010
Which team has nc position for 2010 season?
CREATE TABLE table_23338693_1 (team VARCHAR, position VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_2 WHERE record = "44-28"
Which opponent has a record of 44-28?
CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR)
SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = "astro"
Which territory has a channel of 144 and a broadcaster of Astro?
CREATE TABLE table_name_23 (territory VARCHAR, channel VARCHAR, broadcaster VARCHAR)
SELECT national_title FROM table_name_11 WHERE miss_international = "ikumi yoshimatsu"
What's the national title of miss international ikumi yoshimatsu?
CREATE TABLE table_name_11 (national_title VARCHAR, miss_international VARCHAR)
SELECT date FROM table_name_97 WHERE format = "ed remaster cd"
On what date was the format of ed remaster cd?
CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR)
SELECT MAX(capacity) FROM table_name_23 WHERE kitmaker = "umbro"
What is umbro's highest capacity?
CREATE TABLE table_name_23 (capacity INTEGER, kitmaker VARCHAR)
SELECT nationality FROM table_name_73 WHERE school_club_team = "purdue"
What is the nationality of the Team Purdue?
CREATE TABLE table_name_73 (nationality VARCHAR, school_club_team VARCHAR)
SELECT cfl_team FROM table_16575609_1 WHERE player = "Dimitri Tsoumpas"
Who picked dimitri tsoumpas?
CREATE TABLE table_16575609_1 (cfl_team VARCHAR, player VARCHAR)
SELECT time_retired FROM table_name_43 WHERE rider = "olivier jacque"
What is Olivier Jacque's Time/Retired?
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
SELECT cfl_team FROM table_10975034_5 WHERE position = "OL"
What is the cfl team that has a position of ol?
CREATE TABLE table_10975034_5 (cfl_team VARCHAR, position VARCHAR)
SELECT COUNT(total_points) FROM table_name_48 WHERE rank > 9 AND ppg_avg > 13.4
How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4?
CREATE TABLE table_name_48 (total_points VARCHAR, rank VARCHAR, ppg_avg VARCHAR)
SELECT builder FROM table_22481967_1 WHERE date = "1930"
List the builder from 1930.
CREATE TABLE table_22481967_1 (builder VARCHAR, date VARCHAR)
SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0
Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?
CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR)
SELECT position FROM table_11734041_20 WHERE player = "Williams, Bernie Bernie Williams"
what's the position where player is williams, bernie bernie williams
CREATE TABLE table_11734041_20 (position VARCHAR, player VARCHAR)
SELECT country FROM table_name_61 WHERE label = "sony / sony bmg"
What is the country for Sony / Sony Bmg?
CREATE TABLE table_name_61 (country VARCHAR, label VARCHAR)
SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama"
Name the broadcast day and timings for tv saitama
CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR)
SELECT player FROM table_name_22 WHERE pick = "147"
Which player is it that has a pick of 147?
CREATE TABLE table_name_22 (player VARCHAR, pick VARCHAR)
SELECT date FROM table_name_86 WHERE loss = "jeriome robertson"
What is the date of the match where Jeriome Robertson lost?
CREATE TABLE table_name_86 (date VARCHAR, loss VARCHAR)
SELECT team_nickname FROM table_name_68 WHERE joined_tschl = 2010 AND home_arena = "kettering rec center" AND team_website = "dayton hockey"
what is the team nickname when joined tschl is 2010 and home arena is kettering rec center and the team website is dayton hockey?
CREATE TABLE table_name_68 (team_nickname VARCHAR, team_website VARCHAR, joined_tschl VARCHAR, home_arena VARCHAR)
SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa"
What is the Draw for match 10, and the team was skra warszawa?
CREATE TABLE table_name_76 (draw VARCHAR, match VARCHAR, team VARCHAR)
SELECT sideline_reporter_s_ FROM table_name_17 WHERE color_commentator_s_ = "frank gifford and dan dierdorf"
Which sideline reporters worked alongside Frank Gifford and Dan Dierdorf?
CREATE TABLE table_name_17 (sideline_reporter_s_ VARCHAR, color_commentator_s_ VARCHAR)
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500"
Which driver won the Indianapolis 500 the year the Chaparral team also won it?
CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR)
SELECT event FROM table_name_1 WHERE name = "cristina iovu"
What event did Cristina Iovu participate in?
CREATE TABLE table_name_1 (event VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_29 WHERE score = "100-86"
Which home team had a score of 100-86?
CREATE TABLE table_name_29 (home_team VARCHAR, score VARCHAR)
SELECT MIN(fa_cup) FROM table_name_58 WHERE name = "viduka" AND europe < 2
What is the low FA cup goals for viduka with under 2 europe goals?
CREATE TABLE table_name_58 (fa_cup INTEGER, name VARCHAR, europe VARCHAR)
SELECT directed_by FROM table_name_18 WHERE episode__number = 7
What is Directed By, when Episode # is 7?
CREATE TABLE table_name_18 (directed_by VARCHAR, episode__number VARCHAR)
SELECT manufacturer FROM table_2196127_1 WHERE driver = "Matt Kenseth" AND date = "March 7"
Who was the manufacturer for Matt Kenseth on March 7?
CREATE TABLE table_2196127_1 (manufacturer VARCHAR, driver VARCHAR, date VARCHAR)