answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT home_team FROM table_name_86 WHERE away_team = "tottenham hotspur" | What team was the home team when Tottenham Hotspur is the away team? | CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "princes park" | Who was the team with the smallest crowd at the Princes Park venue? | CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(race_time) FROM table_22648285_1 WHERE driver = "Cale Yarborough" AND average_speed__mph_ = "88.924" | How many races did Cale Yarborough win at an average speed of 88.924 mph? | CREATE TABLE table_22648285_1 (race_time VARCHAR, driver VARCHAR, average_speed__mph_ VARCHAR) |
SELECT particle FROM table_name_37 WHERE isospin_i = "1⁄2" AND symbol = "ξ ∗0 (1530)" | Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)? | CREATE TABLE table_name_37 (particle VARCHAR, isospin_i VARCHAR, symbol VARCHAR) |
SELECT crowd FROM table_name_15 WHERE venue = "junction oval" | How many were in the crowd at the Junction Oval venue? | CREATE TABLE table_name_15 (crowd VARCHAR, venue VARCHAR) |
SELECT AVG(total) FROM table_name_44 WHERE finish = "t47" | What is the average Total, when Finish is "T47"? | CREATE TABLE table_name_44 (total INTEGER, finish VARCHAR) |
SELECT nation FROM table_name_95 WHERE record = "5.06m(16ft7in)" | What nation has a Record of 5.06m(16ft7in)? | CREATE TABLE table_name_95 (nation VARCHAR, record VARCHAR) |
SELECT MAX(lost) FROM table_name_91 WHERE win__percentage = "20%" AND opponent = "david nalbandian" | What is the largest number Lost to david nalbandian with a Win Rate of 20%? | CREATE TABLE table_name_91 (lost INTEGER, win__percentage VARCHAR, opponent VARCHAR) |
SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.71 | What is the highest Rank of Karen Pickering when she had a time of less than 55.71? | CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR) |
SELECT event FROM table_name_40 WHERE rank_points = "8" AND total = "20" | What event has 8 as the rank points, with 20 as the total? | CREATE TABLE table_name_40 (event VARCHAR, rank_points VARCHAR, total VARCHAR) |
SELECT remixed_by FROM table_name_74 WHERE length = "3:58" | Who remixed the version with a length of 3:58? | CREATE TABLE table_name_74 (remixed_by VARCHAR, length VARCHAR) |
SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 | Show all director names who have a movie in both year 1999 and 2000. | CREATE TABLE movie (director VARCHAR, YEAR VARCHAR) |
SELECT starting_point FROM table_name_27 WHERE terminus = "ecat/rosa park transit center" | What is the starting point of the route that has its terminus at Ecat/Rosa Park Transit Center? | CREATE TABLE table_name_27 (starting_point VARCHAR, terminus VARCHAR) |
SELECT opponent FROM table_name_24 WHERE record = "8-4" | Who was the opponent when the Washington Nationals had a record of 8-4? | CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR) |
SELECT MIN(french_open) FROM table_197638_7 WHERE player = "Serena Williams" | When is the French Open when serena williams is the player? | CREATE TABLE table_197638_7 (french_open INTEGER, player VARCHAR) |
SELECT score FROM table_name_7 WHERE to_par = "+1" AND player = "mike souchak" | What is Score, when To Par is "+1", and when Player is "Mike Souchak"? | CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT 2008 FROM table_name_32 WHERE 2011 = "1r" | What is the 2008 entry for the row that as a 2011 entry of 1R? | CREATE TABLE table_name_32 (Id VARCHAR) |
SELECT MIN(games) FROM table_name_96 WHERE pts_game > 1.4 AND points = 20 AND name = "susan day" | Can you tell me the lowest Games that has the Pts/game larger than 1.4 and the Points of 20, and the Name of susan day? | CREATE TABLE table_name_96 (games INTEGER, name VARCHAR, pts_game VARCHAR, points VARCHAR) |
SELECT date FROM table_name_36 WHERE attendance > 74 OFFSET 382 | When was the Attendance larger than 74,382? | CREATE TABLE table_name_36 (date VARCHAR, attendance INTEGER) |
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)" | During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? | CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR) |
SELECT drawn FROM table_name_90 WHERE tries_against = "0" | What Drawn has a Tries against of 0? | CREATE TABLE table_name_90 (drawn VARCHAR, tries_against VARCHAR) |
SELECT AVG(league_cup_goals) FROM table_name_78 WHERE position = "df" AND total_goals > 4 | what is the average league cup goals when the position is df and total goals is more than 4? | CREATE TABLE table_name_78 (league_cup_goals INTEGER, position VARCHAR, total_goals VARCHAR) |
SELECT home_team AS score FROM table_name_43 WHERE away_team = "geelong" | What was the home team that played Geelong? | CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) |
SELECT last_issue FROM table_name_55 WHERE title = "time and again" | What is the last issue entry of Time and Again? | CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR) |
SELECT result FROM table_name_37 WHERE date = "december 22, 1991" | What was the result of the game on December 22, 1991? | CREATE TABLE table_name_37 (result VARCHAR, date VARCHAR) |
SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle" | Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? | CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, pick__number VARCHAR, round VARCHAR) |
SELECT name FROM table_29050051_3 WHERE previous_school = "South Kent School / Brentwood HS" | Who previously attended south kent school / brentwood hs? | CREATE TABLE table_29050051_3 (name VARCHAR, previous_school VARCHAR) |
SELECT MIN(year) FROM table_name_43 WHERE location = "milan" AND champion = "guillermo vilas" | When is the earliest year in milan that guillermo vilas was champion? | CREATE TABLE table_name_43 (year INTEGER, location VARCHAR, champion VARCHAR) |
SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 | Show teams that have suffered more than three eliminations. | CREATE TABLE elimination (Team VARCHAR) |
SELECT AVG(cuts_made) FROM table_name_17 WHERE top_5 < 0 | What is the average number of cuts made for events with 0 top-5s? | CREATE TABLE table_name_17 (cuts_made INTEGER, top_5 INTEGER) |
SELECT T1.Customer_Event_ID, T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING COUNT(*) BETWEEN 1 AND 3 | Which events have the number of notes between one and three? List the event id and the property id. | CREATE TABLE Customer_Events (Customer_Event_ID VARCHAR, property_id VARCHAR, customer_event_id VARCHAR); CREATE TABLE Customer_Event_Notes (Customer_Event_ID VARCHAR) |
SELECT MIN(attendance) FROM table_name_34 WHERE week = 16 | on week 16, what was the lowest attendance? | CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR) |
SELECT MAX(kilometer) FROM table_206361_2 | What is the maximum number of km listed? | CREATE TABLE table_206361_2 (kilometer INTEGER) |
SELECT venue FROM table_17120964_5 WHERE date = "19th" | Name the venue for 19th date | CREATE TABLE table_17120964_5 (venue VARCHAR, date VARCHAR) |
SELECT MAX(points) FROM table_name_88 WHERE time_retired = "+32.256 secs" AND grid > 12 | What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12? | CREATE TABLE table_name_88 (points INTEGER, time_retired VARCHAR, grid VARCHAR) |
SELECT away_captain FROM table_name_72 WHERE result = "draw" AND venue = "lord's" | What is the Away captain when the Result was draw, and a Venue of lord's? | CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR) |
SELECT venue FROM table_name_86 WHERE runner_up = "£20,000" AND champion__average_in_final_ = "phil taylor (109.35)" | what is the venue when the runner-up is £20,000, the champion (average in final) is phil taylor (109.35)? | CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR) |
SELECT average FROM table_name_49 WHERE place = "6th" AND total = "165" | What is the average score for 6th place with a total of 165? | CREATE TABLE table_name_49 (average VARCHAR, place VARCHAR, total VARCHAR) |
SELECT circuit FROM table_14638077_2 WHERE rnd = 5 | what's the circuit with rnd being 5 | CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR) |
SELECT AVG(round) FROM table_name_3 WHERE player = "jake gardiner" | what is the round for jake gardiner? | CREATE TABLE table_name_3 (round INTEGER, player VARCHAR) |
SELECT MIN(overall) FROM table_name_88 WHERE position = "quarterback" AND round < 7 | What is the lowest overall for a quarterback with fewer than 7 rounds? | CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR) |
SELECT notes FROM table_name_39 WHERE fleet_size = 3 | What is the Notes when the fleet size is 3? | CREATE TABLE table_name_39 (notes VARCHAR, fleet_size VARCHAR) |
SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End" | How many draft picks are there at the Defensive End position? | CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR) |
SELECT decision FROM table_name_90 WHERE home = "montreal" | What was the decision of the game when Montreal was the home team? | CREATE TABLE table_name_90 (decision VARCHAR, home VARCHAR) |
SELECT name FROM table_name_50 WHERE nationality = "ukraine" AND 193 = "xxo" | What is the name for the play from the Ukraine, and a 1.93 xxo? | CREATE TABLE table_name_50 (name VARCHAR, nationality 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 SUM(round) FROM table_name_32 WHERE player = "tim hunter (rw)" AND pick < 54 | What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54? | CREATE TABLE table_name_32 (round INTEGER, player VARCHAR, pick VARCHAR) |
SELECT COUNT(lost) FROM table_name_65 WHERE points < 4 AND against > 340 | How many games lost for team(s) with less than 4 paints and against total of over 340? | CREATE TABLE table_name_65 (lost VARCHAR, points VARCHAR, against VARCHAR) |
SELECT stage FROM table_name_34 WHERE venue = "romania" | Which stage was being played in Romania? | CREATE TABLE table_name_34 (stage VARCHAR, venue VARCHAR) |
SELECT × FROM table_26173058_2 WHERE jeel = "1-1" AND ramtha = "1-1" | what the team where the record is 1-1 and the player is 1-1 | CREATE TABLE table_26173058_2 (× VARCHAR, jeel VARCHAR, ramtha VARCHAR) |
SELECT high_points FROM table_name_49 WHERE team = "utah" | What are Utah's high points? | CREATE TABLE table_name_49 (high_points VARCHAR, team VARCHAR) |
SELECT overall_place FROM table_name_47 WHERE combined_elapsed_time = "170d 11h 31m 10s" | What is the overall place that has 170d 11h 31m 10s as the combined elapsed time? | CREATE TABLE table_name_47 (overall_place VARCHAR, combined_elapsed_time VARCHAR) |
SELECT SUM(grid) FROM table_name_31 WHERE driver = "ralf schumacher" AND laps > 53 | What is the grid total for ralf schumacher racing over 53 laps? | CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1 | Which template type code is used by most number of documents? | CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR) |
SELECT date FROM table_name_57 WHERE race_title = "mallala" | When was the Mallala race held? | CREATE TABLE table_name_57 (date VARCHAR, race_title VARCHAR) |
SELECT record FROM table_23186738_6 WHERE team = "Houston" | Name the record for houston | CREATE TABLE table_23186738_6 (record VARCHAR, team VARCHAR) |
SELECT regular_season FROM table_name_64 WHERE year = "1994/95" | What place did the Nashville Metros place in the 1994/95 Season? | CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR) |
SELECT slalom FROM table_name_36 WHERE downhill = "4" | Which Slalom has a Downhill of 4? | CREATE TABLE table_name_36 (slalom VARCHAR, downhill VARCHAR) |
SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18 | How many gold medals when the total is more than 1 and 18 silver? | CREATE TABLE table_name_80 (gold INTEGER, total VARCHAR, silver VARCHAR) |
SELECT game FROM table_name_63 WHERE location = "chicago stadium" | Which game number was played at Chicago Stadium? | CREATE TABLE table_name_63 (game VARCHAR, location VARCHAR) |
SELECT result FROM table_name_70 WHERE week = 11 | The game in week 11 has what result? | CREATE TABLE table_name_70 (result VARCHAR, week VARCHAR) |
SELECT year FROM table_name_60 WHERE issue_price = "$16.95" AND artist = "s.a. allward" | What year was S.A. Allward's theme that had an issue price of $16.95 released? | CREATE TABLE table_name_60 (year VARCHAR, issue_price VARCHAR, artist VARCHAR) |
SELECT margin_of_victory FROM table_name_37 WHERE make = "dodge intrepid" | What is the margin of victory of the Dodge Intrepid? | CREATE TABLE table_name_37 (margin_of_victory VARCHAR, make VARCHAR) |
SELECT year_s_ FROM table_name_59 WHERE city = "kunming" | what is the year(s) when the city is kunming? | CREATE TABLE table_name_59 (year_s_ VARCHAR, city VARCHAR) |
SELECT lmp1_winning_team FROM table_19598014_2 WHERE rnd = 2 AND lmp2_winning_team = "Adrian Fernández Luis Díaz" | Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz | CREATE TABLE table_19598014_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR) |
SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39 | What is the highest GA when GF is 39? | CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR) |
SELECT date FROM table_20760407_1 WHERE game = 9 | What was the date for game 9? | CREATE TABLE table_20760407_1 (date VARCHAR, game VARCHAR) |
SELECT 2010 FROM table_name_9 WHERE 2006 = "2r" | Name the 2010 for 2006 of 2r | CREATE TABLE table_name_9 (Id VARCHAR) |
SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = "Pebble Technology" | What was the maximum total USD collected by Pebble Technology? | CREATE TABLE table_27155990_1 (total_usd INTEGER, creator VARCHAR) |
SELECT AVG(floors), MAX(floors), MIN(floors) FROM building | What are the average, maximum, and minimum number of floors for all buildings? | CREATE TABLE building (floors INTEGER) |
SELECT COUNT(rd) FROM table_1132568_3 WHERE grand_prix = "Austrian grand_prix" | How many on the list are called the Austrian Grand Prix? | CREATE TABLE table_1132568_3 (rd VARCHAR, grand_prix VARCHAR) |
SELECT tie_no FROM table_name_80 WHERE score = "1–1" AND home_team = "hull city" | What is the Tie no at the Hull City Home game with a Score of 1–1? | CREATE TABLE table_name_80 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR) |
SELECT erp_w FROM table_name_62 WHERE frequency_mhz = 95.1 | What ERP W has a 95.1 MHZ frequency? | CREATE TABLE table_name_62 (erp_w VARCHAR, frequency_mhz VARCHAR) |
SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING COUNT(*) >= 2 | Show the region name with at least two storms. | CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR) |
SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at new york giants" | How many weeks have an Opponent of at new york giants? | CREATE TABLE table_name_81 (week VARCHAR, opponent VARCHAR) |
SELECT record FROM table_name_90 WHERE round > 2 AND event = "raging wolf 6: mayhem in the mist" | What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist? | CREATE TABLE table_name_90 (record VARCHAR, round VARCHAR, event VARCHAR) |
SELECT MAX(share___percentage_) FROM table_name_42 WHERE channel = "anhui satellite tv" | Name the most share for anhui satellite tv | CREATE TABLE table_name_42 (share___percentage_ INTEGER, channel VARCHAR) |
SELECT game FROM table_name_86 WHERE team = "at san antonio" AND record = "3-3" | Which Game has a Team of at san antonio, and a Record of 3-3? | CREATE TABLE table_name_86 (game VARCHAR, team VARCHAR, record VARCHAR) |
SELECT wins FROM table_16034882_4 WHERE points = 42 | How many wins did the team with 42 points get? | CREATE TABLE table_16034882_4 (wins VARCHAR, points VARCHAR) |
SELECT freight___metric_tonnes__ FROM table_13836704_7 WHERE transit_passengers = 147791 | What are the total freights in metric tonnes when the total transit passengers is 147791? | CREATE TABLE table_13836704_7 (freight___metric_tonnes__ VARCHAR, transit_passengers VARCHAR) |
SELECT date FROM table_name_32 WHERE away_team = "richmond" | On what date was Richmond playing as an away team? | CREATE TABLE table_name_32 (date VARCHAR, away_team VARCHAR) |
SELECT date FROM table_name_74 WHERE venue = "princes park" | What date was the game played at princes park? | CREATE TABLE table_name_74 (date VARCHAR, venue VARCHAR) |
SELECT opponents FROM table_22801331_1 WHERE record = "1-0" | How many opponents have a 1-0 record against the Cowboys? | CREATE TABLE table_22801331_1 (opponents VARCHAR, record VARCHAR) |
SELECT COUNT(position) FROM table_11677691_5 WHERE hometown = "Olney, Maryland" | What position is associated with the hometown of Olney, Maryland? | CREATE TABLE table_11677691_5 (position VARCHAR, hometown VARCHAR) |
SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–11" | Year larger than 1975, and a Record of 13–11 is what playoffs? | CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR) |
SELECT player FROM table_10975034_5 WHERE position = "LB" AND cfl_team = "Saskatchewan Roughriders" | What is the player who is lb and cfl team is saskatchewan roughriders? | CREATE TABLE table_10975034_5 (player VARCHAR, position VARCHAR, cfl_team VARCHAR) |
SELECT june_10_11 FROM table_25287007_2 WHERE march_27_29 = "149" | How many solar eclipse during June 10-11 and march 27-29 is 149? | CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT pick FROM table_name_58 WHERE player = "chuck bryant" AND nfl_club = "san diego chargers" | Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers? | CREATE TABLE table_name_58 (pick VARCHAR, player VARCHAR, nfl_club VARCHAR) |
SELECT director FROM table_name_79 WHERE title = "the star packer" | Who directed the movie The Star Packer? | CREATE TABLE table_name_79 (director VARCHAR, title VARCHAR) |
SELECT transmitting_from FROM table_name_18 WHERE launched = "17 july 1997" | Where is the station that was launched on 17 July 1997 transmitting from? | CREATE TABLE table_name_18 (transmitting_from VARCHAR, launched VARCHAR) |
SELECT seats FROM table_name_86 WHERE outcome_of_election = "minority in parliament" AND number_of_pnc_votes = "186,226" | How many seats does the election with the outcome of election of minority in parliament and 186,226 PNC votes have? | CREATE TABLE table_name_86 (seats VARCHAR, outcome_of_election VARCHAR, number_of_pnc_votes VARCHAR) |
SELECT away_team AS score FROM table_name_79 WHERE venue = "arden street oval" | At the match which took place in arden street oval, how much did the away team score? | CREATE TABLE table_name_79 (away_team VARCHAR, venue VARCHAR) |
SELECT position FROM table_1213511_6 WHERE player = "Jim Johnston" | What position does Jim Johnston play? | CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR) |
SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13 | On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8? | CREATE TABLE table_name_74 (dvd_release_date VARCHAR, season VARCHAR, episodes VARCHAR) |
SELECT terminus FROM table_name_46 WHERE color = "diamond" | The color diamond is assigned to which Terminus? | CREATE TABLE table_name_46 (terminus VARCHAR, color VARCHAR) |
SELECT name FROM table_name_3 WHERE overall < 123 AND team = "detroit lions" | What is the Name with an overall of less than 123 for the Detroit Lions? | CREATE TABLE table_name_3 (name VARCHAR, overall VARCHAR, team VARCHAR) |
SELECT home FROM table_name_93 WHERE score = "4–3" | Who was the home team when the score was 4–3? | CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR) |
SELECT COUNT(DISTINCT cName) FROM tryout | How many different colleges do attend the tryout test? | CREATE TABLE tryout (cName VARCHAR) |
SELECT MIN(wins) FROM table_name_32 WHERE scored < 24 AND conceded = 27 AND played > 18 | What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played? | CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR) |
SELECT stuffit FROM table_name_99 WHERE bzip2 = "no" AND lha_lzh = "no" | What is the stuffit that has bzip and LHA/LZH of no? | CREATE TABLE table_name_99 (stuffit VARCHAR, bzip2 VARCHAR, lha_lzh VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.