instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Who won the gold when Kim Hyang-Mi won the bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR) | SELECT gold FROM table_name_97 WHERE bronze = "kim hyang-mi" |
Write a SQL query that answers the following question: What was the earliest year that Park Jung-Ah won the gold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, gold VARCHAR) | SELECT MIN(year) FROM table_name_16 WHERE gold = "park jung-ah" |
Write a SQL query that answers the following question: Who won the bronze when the Asian Games were in Doha? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (bronze VARCHAR, location VARCHAR) | SELECT bronze FROM table_name_70 WHERE location = "doha" |
Write a SQL query that answers the following question: What was the Attendance on November 29, 1953? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_56 WHERE date = "november 29, 1953" |
Write a SQL query that answers the following question: Which NFL team picked Patrick Collins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (nfl_team VARCHAR, player VARCHAR) | SELECT nfl_team FROM table_name_30 WHERE player = "patrick collins" |
Write a SQL query that answers the following question: Which NFL team picked a player for the Wide Receiver position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (nfl_team VARCHAR, position VARCHAR) | SELECT nfl_team FROM table_name_19 WHERE position = "wide receiver" |
Write a SQL query that answers the following question: What result has a year after 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (result VARCHAR, year INTEGER) | SELECT result FROM table_name_35 WHERE year > 2002 |
Write a SQL query that answers the following question: What tournament has a year prior to 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tournament VARCHAR, year INTEGER) | SELECT tournament FROM table_name_26 WHERE year < 2001 |
Write a SQL query that answers the following question: On what date does visiting team Minnesota score higher than 47 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, points VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_34 WHERE points > 47 AND visitor = "minnesota" |
Write a SQL query that answers the following question: What date does visitor team Toronto score less than 49 points and has record of 18-17-7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR, visitor VARCHAR, points VARCHAR) | SELECT date FROM table_name_73 WHERE visitor = "toronto" AND points < 49 AND record = "18-17-7" |
Write a SQL query that answers the following question: What is the fleet number for the model of Gillig Phantom 3096TB? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (fleet_number VARCHAR, model VARCHAR) | SELECT fleet_number FROM table_name_95 WHERE model = "gillig phantom 3096tb" |
Write a SQL query that answers the following question: What is the width for the year of the 1970? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (width VARCHAR, year VARCHAR) | SELECT width FROM table_name_38 WHERE year = "1970" |
Write a SQL query that answers the following question: Which year has a fleet number of 603? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (year VARCHAR, fleet_number VARCHAR) | SELECT year FROM table_name_22 WHERE fleet_number = "603" |
Write a SQL query that answers the following question: What is the length of fleet number 501-506? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (length VARCHAR, fleet_number VARCHAR) | SELECT length FROM table_name_62 WHERE fleet_number = "501-506" |
Write a SQL query that answers the following question: What is fleet number for the year of 19xx? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (fleet_number VARCHAR, year VARCHAR) | SELECT fleet_number FROM table_name_62 WHERE year = "19xx" |
Write a SQL query that answers the following question: What is the fleet number of Model Orion 01.507? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (fleet_number VARCHAR, model VARCHAR) | SELECT fleet_number FROM table_name_23 WHERE model = "orion 01.507" |
Write a SQL query that answers the following question: What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (round INTEGER, player VARCHAR, pick VARCHAR, position VARCHAR) | SELECT MAX(round) FROM table_name_78 WHERE pick < 261 AND position = "halfback" AND player = "ed smith" |
Write a SQL query that answers the following question: What is the lowest round of Ed Smith, who had a pick lower than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR) | SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND pick > 19 |
Write a SQL query that answers the following question: Which player had a round of 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR) | SELECT player FROM table_name_4 WHERE round = 27 |
Write a SQL query that answers the following question: What is the position of the player with a round less than 20 from the school/club Washington? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_17 WHERE round < 20 AND school_club_team = "washington" |
Write a SQL query that answers the following question: Location of hemisfair arena had what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (record VARCHAR, location VARCHAR) | SELECT record FROM table_name_43 WHERE location = "hemisfair arena" |
Write a SQL query that answers the following question: Record of 20β4 involved what highest game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (game INTEGER, record VARCHAR) | SELECT MAX(game) FROM table_name_44 WHERE record = "20β4" |
Write a SQL query that answers the following question: Opponent of @ phoenix suns had what sum of game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (game INTEGER, opponent VARCHAR) | SELECT SUM(game) FROM table_name_52 WHERE opponent = "@ phoenix suns" |
Write a SQL query that answers the following question: Score of 122β105 had what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_68 WHERE score = "122β105" |
Write a SQL query that answers the following question: In the final, who are the opponents of partner Simon Aspelin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (opponents_in_the_final VARCHAR, partner VARCHAR) | SELECT opponents_in_the_final FROM table_name_9 WHERE partner = "simon aspelin" |
Write a SQL query that answers the following question: For the tournament played on 26 February 2006, what surface was used? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_35 WHERE date = "26 february 2006" |
Write a SQL query that answers the following question: Which Date has a Record of 58β10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_78 WHERE record = "58β10" |
Write a SQL query that answers the following question: Which Date has a Score of 106β112? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_58 WHERE score = "106β112" |
Write a SQL query that answers the following question: Who was second when Martynas Norkus was the skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (second VARCHAR, skip VARCHAR) | SELECT second FROM table_name_86 WHERE skip = "martynas norkus" |
Write a SQL query that answers the following question: Who was the second when Ilian Kirilov was the lead? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR) | SELECT second FROM table_name_2 WHERE lead = "ilian kirilov" |
Write a SQL query that answers the following question: Who was the lead when Jamie Meikle was the skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (lead VARCHAR, skip VARCHAR) | SELECT lead FROM table_name_11 WHERE skip = "jamie meikle" |
Write a SQL query that answers the following question: Who was the lead when Ritvars Gulbis was the skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (lead VARCHAR, skip VARCHAR) | SELECT lead FROM table_name_10 WHERE skip = "ritvars gulbis" |
Write a SQL query that answers the following question: Who came in third in England? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (third VARCHAR, nation VARCHAR) | SELECT third FROM table_name_60 WHERE nation = "england" |
Write a SQL query that answers the following question: In what nation did Darko Sovran place third? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (nation VARCHAR, third VARCHAR) | SELECT nation FROM table_name_19 WHERE third = "darko sovran" |
Write a SQL query that answers the following question: What is the tournament with a w/o score on November 5, 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_62 WHERE score = "w/o" AND date = "november 5, 2007" |
Write a SQL query that answers the following question: What is the surface of eckental tournament with a w/o score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (surface VARCHAR, tournament VARCHAR, score VARCHAR) | SELECT surface FROM table_name_94 WHERE tournament = "eckental" AND score = "w/o" |
Write a SQL query that answers the following question: What is the tournament with a hard surface and Ruben de Kleijn as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_64 WHERE surface = "hard" AND opponent = "ruben de kleijn" |
Write a SQL query that answers the following question: What is the score of the tournament on November 5, 2007 with a carpet surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR) | SELECT score FROM table_name_90 WHERE surface = "carpet" AND date = "november 5, 2007" |
Write a SQL query that answers the following question: What is the surface of the tournament with Sascha Kloer as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_37 WHERE opponent = "sascha kloer" |
Write a SQL query that answers the following question: what team scored in gomel | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, location VARCHAR) | SELECT team FROM table_name_10 WHERE location = "gomel" |
Write a SQL query that answers the following question: What is the average conceded number of the team with a position lower than 8 and more than 2 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (conceded INTEGER, position VARCHAR, wins VARCHAR) | SELECT AVG(conceded) FROM table_name_68 WHERE position > 8 AND wins > 2 |
Write a SQL query that answers the following question: What is the averaged scored number of team guaranΓ, which has less than 6 draws and less than 5 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (scored INTEGER, losses VARCHAR, draws VARCHAR, team VARCHAR) | SELECT AVG(scored) FROM table_name_30 WHERE draws < 6 AND team = "guaranΓ" AND losses < 5 |
Write a SQL query that answers the following question: What is the total number scored of the team positioned lower than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (scored VARCHAR, position INTEGER) | SELECT COUNT(scored) FROM table_name_72 WHERE position > 10 |
Write a SQL query that answers the following question: What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR) | SELECT MIN(wins) FROM table_name_32 WHERE scored < 24 AND conceded = 27 AND played > 18 |
Write a SQL query that answers the following question: What is the lowest number of points of the team with 2 losses and a lower than 1 position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR) | SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1 |
Write a SQL query that answers the following question: What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (intercontinental_cup_1993 VARCHAR, supercopa_sudamericana_1993 VARCHAR) | SELECT intercontinental_cup_1993 FROM table_name_23 WHERE supercopa_sudamericana_1993 = "round of 16" |
Write a SQL query that answers the following question: What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (november INTEGER, game VARCHAR, opponent VARCHAR) | SELECT MIN(november) FROM table_name_69 WHERE game > 22 AND opponent = "toronto maple leafs" |
Write a SQL query that answers the following question: What is the family friendly status of the punk genre song from the 1970s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (family_friendly VARCHAR, decade VARCHAR, genre VARCHAR) | SELECT family_friendly FROM table_name_8 WHERE decade = "1970s" AND genre = "punk" |
Write a SQL query that answers the following question: Who is the artist of the rock song? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (artist VARCHAR, genre VARCHAR) | SELECT artist FROM table_name_7 WHERE genre = "rock" |
Write a SQL query that answers the following question: What is the highest number of bronze medals for nations with under 0 golds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (bronze INTEGER, gold INTEGER) | SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0 |
Write a SQL query that answers the following question: How many points did Stuart have when he had 0 extra points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (points INTEGER, player VARCHAR, extra_points VARCHAR) | SELECT MIN(points) FROM table_name_53 WHERE player = "stuart" AND extra_points < 0 |
Write a SQL query that answers the following question: Who had the lowest field goals but had 10 points and more than 2 touchdowns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR) | SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2 |
Write a SQL query that answers the following question: How many points did Stuart have when he had less than 1 touchdown? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (points INTEGER, player VARCHAR, touchdowns VARCHAR) | SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1 |
Write a SQL query that answers the following question: Who had a points average with 0 extra points and 0 field goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (points INTEGER, extra_points VARCHAR, field_goals VARCHAR) | SELECT AVG(points) FROM table_name_33 WHERE extra_points = 0 AND field_goals > 0 |
Write a SQL query that answers the following question: What was the result in the Golden Reel Awards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (result VARCHAR, event VARCHAR) | SELECT result FROM table_name_38 WHERE event = "golden reel awards" |
Write a SQL query that answers the following question: Record of 16β29 is how many attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) | SELECT attendance FROM table_name_32 WHERE record = "16β29" |
Write a SQL query that answers the following question: Loss of peavy (4β3) is what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_5 WHERE loss = "peavy (4β3)" |
Write a SQL query that answers the following question: Score of 3β2, and a Opponent of reds had what sum of attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (attendance INTEGER, score VARCHAR, opponent VARCHAR) | SELECT SUM(attendance) FROM table_name_21 WHERE score = "3β2" AND opponent = "reds" |
Write a SQL query that answers the following question: Score of 6β4, and a Opponent of @ marlins had what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_96 WHERE score = "6β4" AND opponent = "@ marlins" |
Write a SQL query that answers the following question: Which Cuts made has a Tournament of totals, and Wins smaller than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (cuts_made INTEGER, tournament VARCHAR, wins VARCHAR) | SELECT AVG(cuts_made) FROM table_name_25 WHERE tournament = "totals" AND wins < 11 |
Write a SQL query that answers the following question: Which Top-25 has a Top-5 smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (top_25 INTEGER, top_5 INTEGER) | SELECT SUM(top_25) FROM table_name_3 WHERE top_5 < 0 |
Write a SQL query that answers the following question: Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR) | SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11 |
Write a SQL query that answers the following question: Which Top-5 is the highest one that has Wins of 0, and Events larger than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (top_5 INTEGER, wins VARCHAR, events VARCHAR) | SELECT MAX(top_5) FROM table_name_47 WHERE wins = 0 AND events > 6 |
Write a SQL query that answers the following question: Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR) | SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 |
Write a SQL query that answers the following question: Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR) | SELECT MAX(events) FROM table_name_39 WHERE top_10 > 7 AND wins < 2 |
Write a SQL query that answers the following question: When the surface is clay, and the tournament of barcelona what is the score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_29 WHERE surface = "clay" AND tournament = "barcelona" |
Write a SQL query that answers the following question: What was the surface when the opponent was judith wiesner, and the outcome was winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (surface VARCHAR, outcome VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_51 WHERE outcome = "winner" AND opponent = "judith wiesner" |
Write a SQL query that answers the following question: What is the opponent for the tournament of rio de janeiro? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (opponent VARCHAR, tournament VARCHAR) | SELECT opponent FROM table_name_22 WHERE tournament = "rio de janeiro" |
Write a SQL query that answers the following question: What is the opponent with the outcome of runner-up with a date of 19 september 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 1994" |
Write a SQL query that answers the following question: What was the opponent for the tournament of taranto? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (opponent VARCHAR, tournament VARCHAR) | SELECT opponent FROM table_name_97 WHERE tournament = "taranto" |
Write a SQL query that answers the following question: Who had the fastest lap where Joan Lascorz was the winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (fastest_lap VARCHAR, race_winner VARCHAR) | SELECT fastest_lap FROM table_name_45 WHERE race_winner = "joan lascorz" |
Write a SQL query that answers the following question: Who won the round in Europe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR) | SELECT race_winner FROM table_name_1 WHERE round = "europe" |
Write a SQL query that answers the following question: How many games have a Score of 3β0, and a January larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (game VARCHAR, score VARCHAR, january VARCHAR) | SELECT COUNT(game) FROM table_name_16 WHERE score = "3β0" AND january > 12 |
Write a SQL query that answers the following question: Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (opponent VARCHAR, score VARCHAR, january VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_77 WHERE january > 8 AND game < 48 AND score = "5β3" |
Write a SQL query that answers the following question: Which Game is the highest that has a January of 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (game INTEGER, january VARCHAR) | SELECT MAX(game) FROM table_name_51 WHERE january = 28 |
Write a SQL query that answers the following question: Which Score has a Game larger than 47, and a January smaller than 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR) | SELECT score FROM table_name_19 WHERE game > 47 AND january < 25 |
Write a SQL query that answers the following question: What stroke has a max power of 109 ps(80kw)@4000 rpm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (stroke VARCHAR, max_power VARCHAR) | SELECT stroke FROM table_name_39 WHERE max_power = "109 ps(80kw)@4000 rpm" |
Write a SQL query that answers the following question: The nissan primera p12 nissan almera n16 has what C.R.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (cr VARCHAR, vehicle VARCHAR) | SELECT cr FROM table_name_60 WHERE vehicle = "nissan primera p12 nissan almera n16" |
Write a SQL query that answers the following question: What displacement has the code yd22ddt? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (displacement VARCHAR, code VARCHAR) | SELECT displacement FROM table_name_22 WHERE code = "yd22ddt" |
Write a SQL query that answers the following question: What code has a C.R of 16.7:1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (code VARCHAR, cr VARCHAR) | SELECT code FROM table_name_97 WHERE cr = "16.7:1" |
Write a SQL query that answers the following question: What Outcome happened on a Date that was 20 november 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_61 WHERE date = "20 november 2011" |
Write a SQL query that answers the following question: Which Away team has a Score of 0β3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR) | SELECT away_team FROM table_name_4 WHERE score = "0β3" |
Write a SQL query that answers the following question: Which Attendance has a Tie number of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_63 WHERE tie_no = "5" |
Write a SQL query that answers the following question: Which Score has an Attendance of 23 january 1999, and a Tie # of 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (score VARCHAR, attendance VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_74 WHERE attendance = "23 january 1999" AND tie_no = "6" |
Write a SQL query that answers the following question: Which Tie #has an Attendance of 54,591? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (tie_no VARCHAR, attendance VARCHAR) | SELECT tie_no FROM table_name_16 WHERE attendance = "54,591" |
Write a SQL query that answers the following question: Which Home team has a Score of 1β1, and an Away team of tottenham hotspur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_68 WHERE score = "1β1" AND away_team = "tottenham hotspur" |
Write a SQL query that answers the following question: Which Attendance has a Tie # of 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_25 WHERE tie_no = "15" |
Write a SQL query that answers the following question: In what Year was the Position 11th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (year VARCHAR, position VARCHAR) | SELECT COUNT(year) FROM table_name_80 WHERE position = "11th" |
Write a SQL query that answers the following question: What was the name of the Competition in Rome, Italy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (competition VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_46 WHERE venue = "rome, italy" |
Write a SQL query that answers the following question: What Notes after 1983 have a Position of 18th? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR) | SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th" |
Write a SQL query that answers the following question: After 1983, what was the Position in Seoul, South Korea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position VARCHAR, year VARCHAR, venue VARCHAR) | SELECT position FROM table_name_92 WHERE year > 1983 AND venue = "seoul, south korea" |
Write a SQL query that answers the following question: How many Gold medals for the country with a Rank of 1 and less than 2 Total medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR) | SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" AND total < 2 |
Write a SQL query that answers the following question: How many Gold medals does the country with 2 Silver and more than 2 Bronze have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT COUNT(gold) FROM table_name_11 WHERE silver = 2 AND bronze > 2 |
Write a SQL query that answers the following question: What is the Age of dorothy Peel as of 1 February 2014 ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (age_as_of_1_february_2014 VARCHAR, name VARCHAR) | SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE name = "dorothy peel" |
Write a SQL query that answers the following question: Who is 111years, 358days Age as of 1 February 2014? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (name VARCHAR, age_as_of_1_february_2014 VARCHAR) | SELECT name FROM table_name_86 WHERE age_as_of_1_february_2014 = "111years, 358days" |
Write a SQL query that answers the following question: Which Capacity has a City of london, and a Stadium of queen's club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (capacity INTEGER, city VARCHAR, stadium VARCHAR) | SELECT AVG(capacity) FROM table_name_85 WHERE city = "london" AND stadium = "queen's club" |
Write a SQL query that answers the following question: Which Rank has a Name of thomas morgenstern, and Points larger than 368.9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (rank INTEGER, name VARCHAR, points VARCHAR) | SELECT AVG(rank) FROM table_name_38 WHERE name = "thomas morgenstern" AND points > 368.9 |
Write a SQL query that answers the following question: What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10 |
Write a SQL query that answers the following question: What is the highest number of silvers for ranks over 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER) | SELECT MAX(silver) FROM table_name_88 WHERE rank > 7 |
Write a SQL query that answers the following question: Who was the opponent when the record recorded was 64-78? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_51 WHERE record = "64-78" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.