answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT fielding_team FROM table_name_61 WHERE wicket = "1st" | Which fielding team had 1st wicket? | CREATE TABLE table_name_61 (fielding_team VARCHAR, wicket VARCHAR) |
SELECT high_rebounds FROM table_29846807_4 WHERE team = "Mount St. Mary's" | Who is every high rebound when the team is Mount St. Mary's? | CREATE TABLE table_29846807_4 (high_rebounds VARCHAR, team VARCHAR) |
SELECT Writer FROM book ORDER BY Writer | List the writers of the books in ascending alphabetical order. | CREATE TABLE book (Writer VARCHAR) |
SELECT MIN(laps) FROM table_name_92 WHERE grid < 22 AND time = "+35.268" | What is the lowest laps a grid less than 22 with a time of +35.268 has? | CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, time VARCHAR) |
SELECT SUM(pick) FROM table_name_36 WHERE pba_team = "san miguel beermen" AND college = "san sebastian" | What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian? | CREATE TABLE table_name_36 (pick INTEGER, pba_team VARCHAR, college VARCHAR) |
SELECT MIN(top_5) FROM table_name_36 WHERE cuts_made = 1 | What is the least Top-5 when 1 is the cuts made? | CREATE TABLE table_name_36 (top_5 INTEGER, cuts_made VARCHAR) |
SELECT tv_series FROM table_name_33 WHERE species = "boar" | What show has a boar? | CREATE TABLE table_name_33 (tv_series VARCHAR, species VARCHAR) |
SELECT name FROM program ORDER BY launch DESC LIMIT 1 | find the name of the program that was launched most recently. | CREATE TABLE program (name VARCHAR, launch VARCHAR) |
SELECT name FROM table_name_32 WHERE mark = "8.19" AND lane = 3 | What name has 8.19 as the mark, with 3 as the lane? | CREATE TABLE table_name_32 (name VARCHAR, mark VARCHAR, lane VARCHAR) |
SELECT pixie_and_dixie FROM table_19860361_3 WHERE ep = 7 | What is the Pixie and Dixie skit in episode 7? | CREATE TABLE table_19860361_3 (pixie_and_dixie VARCHAR, ep VARCHAR) |
SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = "Tunisia" | What are the changes from 2009 to 2010 in Tunisia? | CREATE TABLE table_14752049_2 (change__2009_to_2010_ VARCHAR, country VARCHAR) |
SELECT MAX(version) FROM table_name_38 WHERE release_date = "2011-04-01" | What is the highest Version, when Release Date is "2011-04-01"? | CREATE TABLE table_name_38 (version INTEGER, release_date VARCHAR) |
SELECT studio_s_ FROM table_name_22 WHERE year = 2012 AND movie = "dabangg" | Which Studio has the Year of 2012 listed and the Movie, Dabangg? | CREATE TABLE table_name_22 (studio_s_ VARCHAR, year VARCHAR, movie VARCHAR) |
SELECT MIN(no_in_season) FROM table_23117208_4 WHERE written_by = "Jessica Ball" | Name the least number in season for jessica ball | CREATE TABLE table_23117208_4 (no_in_season INTEGER, written_by VARCHAR) |
SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = "Victor Carbone" AND location = "Braselton, Georgia" | Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap? | CREATE TABLE table_25773116_2 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT player FROM table_name_54 WHERE span = "1997-2009" | What player has a span of 1997-2009? | CREATE TABLE table_name_54 (player VARCHAR, span VARCHAR) |
SELECT runner_up_a FROM table_22756549_1 WHERE constituency = "Nagapattinam" | Who was the runner up for the Nagapattinam constituency? | CREATE TABLE table_22756549_1 (runner_up_a VARCHAR, constituency VARCHAR) |
SELECT sspec_number FROM table_name_2 WHERE part_number_s_ = "cw8064701470802" | what is the sspec number when the part number is cw8064701470802? | CREATE TABLE table_name_2 (sspec_number VARCHAR, part_number_s_ VARCHAR) |
SELECT AVG(number) FROM table_name_23 WHERE player = "larry centers" AND yards < 600 | What is Larry Centers' average number when there were less than 600 yards? | CREATE TABLE table_name_23 (number INTEGER, player VARCHAR, yards VARCHAR) |
SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite" | What is the name and number in 1962 when livery was Br Bauxite? | CREATE TABLE table_name_18 (number_ VARCHAR, _name VARCHAR, date VARCHAR, livery VARCHAR) |
SELECT AVG(total) FROM table_name_25 WHERE name = "alex mcleish category:articles with hcards" AND league < 494 | Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494? | CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR) |
SELECT constructor FROM table_name_46 WHERE winning_driver = "jack brabham" AND race = "monaco grand prix" | What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix? | CREATE TABLE table_name_46 (constructor VARCHAR, winning_driver VARCHAR, race VARCHAR) |
SELECT launched FROM table_name_55 WHERE name = "ushio dd-54" | What is the launch date for the Ushio dd-54? | CREATE TABLE table_name_55 (launched VARCHAR, name VARCHAR) |
SELECT release_date FROM table_name_61 WHERE subtitles = "english" AND publisher = "magna pacific" | What is the release date that has english as the subtitles, and magna pacific as the publisher? | CREATE TABLE table_name_61 (release_date VARCHAR, subtitles VARCHAR, publisher VARCHAR) |
SELECT attribute FROM table_1507852_5 WHERE cancelable = "Yes" | what's the attribute with cancelable being yes | CREATE TABLE table_1507852_5 (attribute VARCHAR, cancelable VARCHAR) |
SELECT lost FROM table_name_32 WHERE played = "26" AND points = "83" | What is the lost number when the team played 26 games and there were 83 points? | CREATE TABLE table_name_32 (lost VARCHAR, played VARCHAR, points VARCHAR) |
SELECT date FROM table_name_34 WHERE game = 3 | What date was game number 3? | CREATE TABLE table_name_34 (date VARCHAR, game VARCHAR) |
SELECT attendance FROM table_name_38 WHERE date = "november 18, 1990" | What are the Attendance numbers for november 18, 1990? | CREATE TABLE table_name_38 (attendance VARCHAR, date VARCHAR) |
SELECT screen_size, pixels FROM table_name_69 WHERE model = "s6400" | Tell me the screen size for pixels of model s6400 | CREATE TABLE table_name_69 (screen_size VARCHAR, pixels VARCHAR, model VARCHAR) |
SELECT country FROM table_name_35 WHERE player = "raymond floyd" | What country is player Raymond Floyd from? | CREATE TABLE table_name_35 (country VARCHAR, player VARCHAR) |
SELECT quattroporte_iv FROM table_1245350_1 WHERE units_produced = 340 | What type of quattroporte iv only produced 340 units? | CREATE TABLE table_1245350_1 (quattroporte_iv VARCHAR, units_produced VARCHAR) |
SELECT MIN(interview) FROM table_name_86 WHERE state = "texas" AND average > 9.531 | What is the lowest interview of Texas, with an average larger than 9.531? | CREATE TABLE table_name_86 (interview INTEGER, state VARCHAR, average VARCHAR) |
SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston" | Who is the home captain that played at Edgbaston? | CREATE TABLE table_name_41 (home_captain VARCHAR, venue VARCHAR) |
SELECT heat_semifinal_final FROM table_name_41 WHERE time = "48.97" | Which heat, semifinal or final has a time of 48.97? | CREATE TABLE table_name_41 (heat_semifinal_final VARCHAR, time VARCHAR) |
SELECT driver FROM table_name_80 WHERE points < 36 AND team = "bob holden motors" AND race_1 = "7" | Which driver for Bob Holden Motors has fewer than 36 points and placed 7 in race 1? | CREATE TABLE table_name_80 (driver VARCHAR, race_1 VARCHAR, points VARCHAR, team VARCHAR) |
SELECT rich_savage FROM table_name_82 WHERE undecided = "68%" | What is the Rich Savage percentage in the poll that had undecideds at 68%? | CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR) |
SELECT country FROM table_name_3 WHERE rank = 6 | what is the country for rank 6? | CREATE TABLE table_name_3 (country VARCHAR, rank VARCHAR) |
SELECT round FROM table_name_67 WHERE overall = 208 | Overall of 208 occurred in what round? | CREATE TABLE table_name_67 (round VARCHAR, overall VARCHAR) |
SELECT score FROM table_name_70 WHERE tie_no = "replay" | What's the score when the tie number was replay? | CREATE TABLE table_name_70 (score VARCHAR, tie_no VARCHAR) |
SELECT title FROM table_name_29 WHERE year > 1986 AND format_s_ = "album" | Which title has a year later than 1986 with an album as the format? | CREATE TABLE table_name_29 (title VARCHAR, year VARCHAR, format_s_ VARCHAR) |
SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992" | How many titles were released on 21 October 1992? | CREATE TABLE table_18590048_1 (rank VARCHAR, release_date VARCHAR) |
SELECT sport FROM table_name_40 WHERE established = 1935 AND league = "vsl" | What League of VSL Sport was Established in 1935? | CREATE TABLE table_name_40 (sport VARCHAR, established VARCHAR, league VARCHAR) |
SELECT position FROM table_name_95 WHERE round = 27 | What Position has a Round of 27? | CREATE TABLE table_name_95 (position VARCHAR, round VARCHAR) |
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" | What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia? | CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) |
SELECT term_in_office FROM table_name_27 WHERE party = "liberal" AND state = "sa" AND member = "ian mclachlan" | Name the term in office for liberal and state of sa for ian mclachlan | CREATE TABLE table_name_27 (term_in_office VARCHAR, member VARCHAR, party VARCHAR, state VARCHAR) |
SELECT COUNT(external_link) FROM table_2140071_7 WHERE premier_date = "July 24, 2006" | How many episodes have a premier date of july 24, 2006 | CREATE TABLE table_2140071_7 (external_link VARCHAR, premier_date VARCHAR) |
SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 | What are the dates in which the mean sea level pressure was between 30.3 and 31? | CREATE TABLE weather (date VARCHAR, mean_sea_level_pressure_inches INTEGER) |
SELECT COUNT(*), t2.fullname FROM model_list AS t1 JOIN car_makers AS t2 ON t1.maker = t2.id GROUP BY t2.id | How many car models are produced by each maker ? Only list the count and the maker full name . | CREATE TABLE model_list (maker VARCHAR); CREATE TABLE car_makers (fullname VARCHAR, id VARCHAR) |
SELECT coronie FROM table_16886076_1 WHERE marowijne = "6.8%" | Name the coronie for marowijne being 6.8% | CREATE TABLE table_16886076_1 (coronie VARCHAR, marowijne VARCHAR) |
SELECT date FROM table_name_52 WHERE tournament = "joué-lès-tours" | what is the date for the tournament joué-lès-tours? | CREATE TABLE table_name_52 (date VARCHAR, tournament VARCHAR) |
SELECT song_title FROM table_name_78 WHERE chart_peak = "#1" AND track = 20 | What was the title of the song that peaked the charts at #1 with track 20? | CREATE TABLE table_name_78 (song_title VARCHAR, chart_peak VARCHAR, track VARCHAR) |
SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = "8.01" | how many maximum # when viewers (m) is 8.01 | CREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR) |
SELECT film_or_series FROM table_name_2 WHERE result = "nominated" AND category = "best fansite" | Which film or series was nominated in the category of best fansite? | CREATE TABLE table_name_2 (film_or_series VARCHAR, result VARCHAR, category VARCHAR) |
SELECT date FROM table_name_37 WHERE opponent = "st. george illawarra dragons" | On what date was the match against the St. George Illawarra Dragons? | CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR) |
SELECT reason_for_change FROM table_2159571_2 WHERE district = "Washington 3rd" | What is every reason for change for the Washington 3rd District? | CREATE TABLE table_2159571_2 (reason_for_change VARCHAR, district VARCHAR) |
SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1 | In 2014, what are the id and rank of the team that has the largest average number of attendance? | CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER) |
SELECT COUNT(*) FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY" | How many times does ROY SWEAZY has reserved a room. | CREATE TABLE Reservations (FirstName VARCHAR, LastName VARCHAR) |
SELECT record FROM table_name_1 WHERE date = "march 30" | What record has march 30 as the date? | CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) |
SELECT country FROM table_name_52 WHERE base = "mecklenburg" AND play = "the libation bearers" | What Country has the Play The Libation Bearers a Base of Mecklenburg? | CREATE TABLE table_name_52 (country VARCHAR, base VARCHAR, play VARCHAR) |
SELECT original_performer FROM table_29547777_1 WHERE episode = "Casting" | Who is the original performer when the episode is casting? | CREATE TABLE table_29547777_1 (original_performer VARCHAR, episode VARCHAR) |
SELECT nationality FROM table_name_25 WHERE goals = 50 AND ranking = 3 | What is the nationality of the person with 50 goals and rank 3? | CREATE TABLE table_name_25 (nationality VARCHAR, goals VARCHAR, ranking VARCHAR) |
SELECT institution FROM table_28211213_2 WHERE location = "Indianapolis, Indiana" | When indianapolis, indiana is the location what is the institution? | CREATE TABLE table_28211213_2 (institution VARCHAR, location VARCHAR) |
SELECT score FROM table_name_94 WHERE date = "october 13" | What was the score on October 13? | CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR) |
SELECT MIN(christer_tornell) FROM table_28677723_10 WHERE karianne_gulliksen = 7 | What is listed under chister tornell when karianne gulliksen is 7? | CREATE TABLE table_28677723_10 (christer_tornell INTEGER, karianne_gulliksen VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_68 WHERE agg = "4-9" | What is the 2nd leg of the 4-9 agg.? | CREATE TABLE table_name_68 (agg VARCHAR) |
SELECT venue FROM table_name_19 WHERE state = "colorado" | What Venue is in Colorado? | CREATE TABLE table_name_19 (venue VARCHAR, state VARCHAR) |
SELECT MAX(year) FROM table_name_14 WHERE engine = "maserati straight-6" AND entrant = "h h gould" | For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year? | CREATE TABLE table_name_14 (year INTEGER, engine VARCHAR, entrant VARCHAR) |
SELECT score FROM table_name_65 WHERE result = "11–0" | Which score has a Result of 11–0? | CREATE TABLE table_name_65 (score VARCHAR, result VARCHAR) |
SELECT home_team AS score FROM table_name_87 WHERE away_team = "north melbourne" | What is the home teams score when north melbourne is the away team? | CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR) |
SELECT extra_points_1_point FROM table_25711913_14 WHERE player = "Germany Schultz" | How many extra points did Germany Schultz score? | CREATE TABLE table_25711913_14 (extra_points_1_point VARCHAR, player VARCHAR) |
SELECT MIN(game) FROM table_name_99 WHERE attendance = 24 OFFSET 694 | Where was the game that the attendance was 24,694? | CREATE TABLE table_name_99 (game INTEGER, attendance VARCHAR) |
SELECT id, country, city, name FROM airport ORDER BY name | List the id, country, city and name of the airports ordered alphabetically by the name. | CREATE TABLE airport (id VARCHAR, country VARCHAR, city VARCHAR, name VARCHAR) |
SELECT races FROM table_name_43 WHERE series = "gp2 series" AND fl = "0" AND position = "17th" | What races have gp2 series, 0 F.L. and a 17th position? | CREATE TABLE table_name_43 (races VARCHAR, position VARCHAR, series VARCHAR, fl VARCHAR) |
SELECT AVG(draw) FROM table_name_99 WHERE language = "swedish" AND points < 10 | What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points? | CREATE TABLE table_name_99 (draw INTEGER, language VARCHAR, points VARCHAR) |
SELECT player FROM table_name_31 WHERE nationality = "usa" AND pick = 33 | Which player is Pick 33 and has a Nationality of USA? | CREATE TABLE table_name_31 (player VARCHAR, nationality VARCHAR, pick VARCHAR) |
SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "santos" | Which Supercopa Sudamericana 1992 has a Team of santos? | CREATE TABLE table_name_83 (supercopa_sudamericana_1992 VARCHAR, team VARCHAR) |
SELECT date FROM table_name_46 WHERE winning_score = –20(68 - 67 - 65 - 64 = 264) | On what date was the winning score –20 (68-67-65-64=264)? | CREATE TABLE table_name_46 (date VARCHAR, winning_score VARCHAR) |
SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 | what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5? | CREATE TABLE table_name_77 (Id VARCHAR) |
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | Find the busiest source airport that runs most number of routes in China. | CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR) |
SELECT date FROM table_name_17 WHERE opposing_teams = "wales" | What day was Wales the opposing team? | CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR) |
SELECT location_attendance FROM table_17311759_9 WHERE high_assists = "Mike Bibby (9)" | When mike bibby (9) has the highest amount of assists what is the location and attendance? | CREATE TABLE table_17311759_9 (location_attendance VARCHAR, high_assists VARCHAR) |
SELECT club FROM table_1676073_12 WHERE points_against = "608" | What clubs had 608 points against? | CREATE TABLE table_1676073_12 (club VARCHAR, points_against VARCHAR) |
SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = "chris myers" AND ratings = "9.9/22" | What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings? | CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR) |
SELECT COUNT(percentage_yield) FROM table_222448_1 WHERE percent_defective = "6.7%" | How many percentage yield figures are there when 6.7% are defective? | CREATE TABLE table_222448_1 (percentage_yield VARCHAR, percent_defective VARCHAR) |
SELECT compression_ratio FROM table_1123802_1 WHERE engine = "Wasp Jr. T1B2" | What was the compression ration when the engine was Wasp Jr. T1B2? | CREATE TABLE table_1123802_1 (compression_ratio VARCHAR, engine VARCHAR) |
SELECT american FROM table_name_65 WHERE australian = "əʉ" | What does American have if Australia has əʉ? | CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR) |
SELECT airdate FROM table_23122988_1 WHERE headliner = "Sean Lock" | What date did the show air when Sean Lock was the headliner? | CREATE TABLE table_23122988_1 (airdate VARCHAR, headliner VARCHAR) |
SELECT february FROM table_name_91 WHERE game = 40 | Which February has a Game of 40? | CREATE TABLE table_name_91 (february VARCHAR, game VARCHAR) |
SELECT t3.headquartered_city, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city | Find the number of stores in each city. | CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR) |
SELECT winning_driver FROM table_1137702_3 WHERE grand_prix = "Pacific grand_prix" | Who was the winning driver in the grand prix at Pacific Grand Prix? | CREATE TABLE table_1137702_3 (winning_driver VARCHAR, grand_prix VARCHAR) |
SELECT COUNT(strongs_transliteration) FROM table_1242447_1 WHERE english_spelling = "Jehojakin" | How many strongs transliteration of the english spelling of the work jehojakin? | CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, english_spelling VARCHAR) |
SELECT date FROM table_name_86 WHERE record = "2–3–1" | What is the Date of the game with a Record of 2–3–1? | CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR) |
SELECT finish FROM table_name_71 WHERE player = "bob tway" | In what place did Bob Tway finish? | CREATE TABLE table_name_71 (finish VARCHAR, player VARCHAR) |
SELECT Party FROM people ORDER BY Age LIMIT 1 | What is the party of the youngest people? | CREATE TABLE people (Party VARCHAR, Age VARCHAR) |
SELECT name FROM table_name_65 WHERE height = "head coach: tamás faragó" | Who has a Height of head coach: tamás faragó? | CREATE TABLE table_name_65 (name VARCHAR, height VARCHAR) |
SELECT second FROM table_name_86 WHERE skip = "martynas norkus" | Who was second when Martynas Norkus was the skip? | CREATE TABLE table_name_86 (second VARCHAR, skip VARCHAR) |
SELECT last_appearance FROM table_11240028_3 WHERE relationship = "Late wife of Mac Taylor" | What episode had the last appearances of the late wife of mac taylor? | CREATE TABLE table_11240028_3 (last_appearance VARCHAR, relationship VARCHAR) |
SELECT COUNT(air_date) FROM table_11274401_3 WHERE viewers__m_ = "1.82" | What's the total number of episodes whose original airings were viewed by 1.82 million viewers? | CREATE TABLE table_11274401_3 (air_date VARCHAR, viewers__m_ VARCHAR) |
SELECT week_3 FROM table_name_99 WHERE team = "mark/jennifer" | Name the week 3 for team of mark/jennifer | CREATE TABLE table_name_99 (week_3 VARCHAR, team VARCHAR) |
SELECT MIN(pa) FROM table_29565601_2 WHERE pf = 73 | What is the PA when the PF is 73? | CREATE TABLE table_29565601_2 (pa INTEGER, pf VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.