instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the average number of games associated with 6 points and under 2 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (games INTEGER, points VARCHAR, lost VARCHAR) | SELECT AVG(games) FROM table_name_80 WHERE points = 6 AND lost < 2 |
Write a SQL query that answers the following question: What is the low point total when there are over 5 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (points INTEGER, games INTEGER) | SELECT MIN(points) FROM table_name_56 WHERE games > 5 |
Write a SQL query that answers the following question: What was the share of votes when there were more than 56 electors and the year was more recent than 1950? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (share_of_votes VARCHAR, electors VARCHAR, year VARCHAR) | SELECT share_of_votes FROM table_name_95 WHERE electors > 56 AND year > 1950 |
Write a SQL query that answers the following question: What is the total of electors when the share of votes was 11,0%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (electors INTEGER, share_of_votes VARCHAR) | SELECT SUM(electors) FROM table_name_70 WHERE share_of_votes = "11,0%" |
Write a SQL query that answers the following question: Which Lost has Games larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (lost INTEGER, games INTEGER) | SELECT AVG(lost) FROM table_name_54 WHERE games > 7 |
Write a SQL query that answers the following question: Which Points have a Lost smaller than 1, and Games larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (points INTEGER, lost VARCHAR, games VARCHAR) | SELECT MAX(points) FROM table_name_81 WHERE lost < 1 AND games > 7 |
Write a SQL query that answers the following question: Which Lost has Points larger than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (lost INTEGER, points INTEGER) | SELECT AVG(lost) FROM table_name_91 WHERE points > 13 |
Write a SQL query that answers the following question: Which Points have a Drawn larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (points INTEGER, drawn INTEGER) | SELECT AVG(points) FROM table_name_98 WHERE drawn > 1 |
Write a SQL query that answers the following question: Which Diameter has a Year of Issue of 1977? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (diameter VARCHAR, year_of_issue VARCHAR) | SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977 |
Write a SQL query that answers the following question: Which Year of Issue has a Thickness of 1.42mm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (year_of_issue INTEGER, thickness VARCHAR) | SELECT MAX(year_of_issue) FROM table_name_52 WHERE thickness = "1.42mm" |
Write a SQL query that answers the following question: Which Diameter has a Thickness of 1.3mm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (diameter VARCHAR, thickness VARCHAR) | SELECT diameter FROM table_name_93 WHERE thickness = "1.3mm" |
Write a SQL query that answers the following question: Which party's candidate is Grech Louis Grech? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (party VARCHAR, candidate VARCHAR) | SELECT party FROM table_name_36 WHERE candidate = "grech louis grech" |
Write a SQL query that answers the following question: What is the sport played in Iowa City on February 14, 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (sport VARCHAR, site VARCHAR, date VARCHAR) | SELECT sport FROM table_name_17 WHERE site = "iowa city" AND date = "february 14, 2009" |
Write a SQL query that answers the following question: What is the series of the winning team in Iowa, for softball? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (series VARCHAR, winning_team VARCHAR, sport VARCHAR) | SELECT series FROM table_name_24 WHERE winning_team = "iowa" AND sport = "softball" |
Write a SQL query that answers the following question: What is the score of the match that was against alberto berasategui? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR) | SELECT score_in_the_final FROM table_name_25 WHERE opponent_in_the_final = "alberto berasategui" |
Write a SQL query that answers the following question: How many rebounds does Ann Wauters have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (rebounds VARCHAR, name VARCHAR) | SELECT COUNT(rebounds) FROM table_name_89 WHERE name = "ann wauters" |
Write a SQL query that answers the following question: Who played 10 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR) | SELECT name FROM table_name_56 WHERE games = 10 |
Write a SQL query that answers the following question: What is the total number of rebounds values for Ann Wauters? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (rebounds VARCHAR, name VARCHAR) | SELECT COUNT(rebounds) FROM table_name_56 WHERE name = "ann wauters" |
Write a SQL query that answers the following question: Who did the Colts play against on September 25, 1966? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_8 WHERE date = "september 25, 1966" |
Write a SQL query that answers the following question: What is the date of the game with 40,005 in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_61 WHERE attendance = "40,005" |
Write a SQL query that answers the following question: What is the lowest week number for the game that was at milwaukee county stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (week INTEGER, game_site VARCHAR) | SELECT MIN(week) FROM table_name_18 WHERE game_site = "milwaukee county stadium" |
Write a SQL query that answers the following question: After week 11, what was the Result on December 13, 1964? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR, date VARCHAR) | SELECT result FROM table_name_49 WHERE week > 11 AND date = "december 13, 1964" |
Write a SQL query that answers the following question: After week 8, what was the Attendance on November 1, 1964? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_43 WHERE date = "november 1, 1964" AND week > 8 |
Write a SQL query that answers the following question: What is the alternate of the nation with Piotras Gerasimovici as the second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (alternate VARCHAR, second VARCHAR) | SELECT alternate FROM table_name_19 WHERE second = "piotras gerasimovici" |
Write a SQL query that answers the following question: What is the alternate of the nation with hubert grΓΌndhammer as the second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (alternate VARCHAR, second VARCHAR) | SELECT alternate FROM table_name_97 WHERE second = "hubert grΓΌndhammer" |
Write a SQL query that answers the following question: What is the alternate of the nation with Erkki Lill as the skip? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (alternate VARCHAR, skip VARCHAR) | SELECT alternate FROM table_name_55 WHERE skip = "erkki lill" |
Write a SQL query that answers the following question: Who is the skip of the nation with Laurens van der Windt as the alternate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (skip VARCHAR, alternate VARCHAR) | SELECT skip FROM table_name_74 WHERE alternate = "laurens van der windt" |
Write a SQL query that answers the following question: Who is the lead of the nation with Juha Pekaristo as the alternate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (lead VARCHAR, alternate VARCHAR) | SELECT lead FROM table_name_46 WHERE alternate = "juha pekaristo" |
Write a SQL query that answers the following question: What is the highest round in which a player was picked for the Center position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (round INTEGER, position VARCHAR) | SELECT MAX(round) FROM table_name_24 WHERE position = "center" |
Write a SQL query that answers the following question: What is John Flatters' nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_10 WHERE player = "john flatters" |
Write a SQL query that answers the following question: What is Jeremy Duchesne's position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_67 WHERE player = "jeremy duchesne" |
Write a SQL query that answers the following question: When was the attendance 1,034? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR) | SELECT MIN(date) FROM table_name_51 WHERE attendance = "1,034" |
Write a SQL query that answers the following question: what was the opponent on 26 october 1889? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_51 WHERE date = "26 october 1889" |
Write a SQL query that answers the following question: 1950 larger than 80, and a 1960 of 196, and a 1990 larger than 131 what is the lowest 1996[2]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (Id VARCHAR) | SELECT MIN(1996)[2] FROM table_name_80 WHERE 1950 > 80 AND 1960 = 196 AND 1990 > 131 |
Write a SQL query that answers the following question: 1960 larger than 196, and a 1996[2] smaller than 726, and a 1980 larger than 125, and a 1990 larger than 848, what is the highest 1950? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (Id VARCHAR) | SELECT MAX(1950) FROM table_name_13 WHERE 1960 > 196 AND 1996[2] < 726 AND 1980 > 125 AND 1990 > 848 |
Write a SQL query that answers the following question: 1980 smaller than 719, and a 1960 smaller than 205, and a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (Id VARCHAR) | SELECT MAX(1990) FROM table_name_94 WHERE 1980 < 719 AND 1960 < 205 AND 1996[2] < 364 AND 1970 > 251 |
Write a SQL query that answers the following question: 1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (Id VARCHAR) | SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119 |
Write a SQL query that answers the following question: 1996[2] of 127, and a 1990 smaller than 120 is the sum of 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (Id VARCHAR) | SELECT SUM(1980) FROM table_name_89 WHERE 1996[2] = 127 AND 1990 < 120 |
Write a SQL query that answers the following question: Who was the opponent at the game with a result of w 14β6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_60 WHERE result = "w 14β6" |
Write a SQL query that answers the following question: What was the result of the game with a record of 2β3β2 before week 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR, record VARCHAR) | SELECT result FROM table_name_38 WHERE week < 8 AND record = "2β3β2" |
Write a SQL query that answers the following question: What was the earliest week with a game at the Braves Field on October 2, 1932? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (week INTEGER, game_site VARCHAR, date VARCHAR) | SELECT MIN(week) FROM table_name_78 WHERE game_site = "braves field" AND date = "october 2, 1932" |
Write a SQL query that answers the following question: What was the record at the game on November 13, 1932? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_38 WHERE date = "november 13, 1932" |
Write a SQL query that answers the following question: What role is Kevin Bishop the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (role VARCHAR, actor VARCHAR) | SELECT role FROM table_name_18 WHERE actor = "kevin bishop" |
Write a SQL query that answers the following question: What is the duration for mike walling as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_47 WHERE actor = "mike walling" |
Write a SQL query that answers the following question: What is the duration that has 3 for appearances, and james garret as the character? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (duration VARCHAR, appearances VARCHAR, character VARCHAR) | SELECT duration FROM table_name_20 WHERE appearances = "3" AND character = "james garret" |
Write a SQL query that answers the following question: What is the duration for nickolas grace as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_36 WHERE actor = "nickolas grace" |
Write a SQL query that answers the following question: Time ( ET ) of 1:00pm, and a Result of w 34β14 has what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (record VARCHAR, time___et__ VARCHAR, result VARCHAR) | SELECT record FROM table_name_67 WHERE time___et__ = "1:00pm" AND result = "w 34β14" |
Write a SQL query that answers the following question: Date of sun. oct. 1 has what location? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_29 WHERE date = "sun. oct. 1" |
Write a SQL query that answers the following question: Record of 3β3 has what result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (result VARCHAR, record VARCHAR) | SELECT result FROM table_name_83 WHERE record = "3β3" |
Write a SQL query that answers the following question: Date of sun. oct. 29 has what time (et)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (time___et__ VARCHAR, date VARCHAR) | SELECT time___et__ FROM table_name_65 WHERE date = "sun. oct. 29" |
Write a SQL query that answers the following question: How many games have more than 10 points and more than 2 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (games VARCHAR, points VARCHAR, drawn VARCHAR) | SELECT COUNT(games) FROM table_name_13 WHERE points = 10 AND drawn > 2 |
Write a SQL query that answers the following question: What is the sum of losses that have points of 11 and more than 1 draw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR) | SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1 |
Write a SQL query that answers the following question: What is the greatest points value that have draws under 2 and 2 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (points INTEGER, drawn VARCHAR, lost VARCHAR) | SELECT MAX(points) FROM table_name_67 WHERE drawn < 2 AND lost = 2 |
Write a SQL query that answers the following question: How many losses have draw values under 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (lost VARCHAR, drawn INTEGER) | SELECT COUNT(lost) FROM table_name_36 WHERE drawn < 1 |
Write a SQL query that answers the following question: What's the lowest February for less than 57 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (february INTEGER, points INTEGER) | SELECT MIN(february) FROM table_name_32 WHERE points < 57 |
Write a SQL query that answers the following question: What's the February for the game against the Montreal Canadiens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (february INTEGER, opponent VARCHAR) | SELECT SUM(february) FROM table_name_88 WHERE opponent = "montreal canadiens" |
Write a SQL query that answers the following question: What's the record for Game 58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_22 WHERE game = 58 |
Write a SQL query that answers the following question: Which Winner has a Season of 2005β06? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (winner VARCHAR, season VARCHAR) | SELECT winner FROM table_name_15 WHERE season = "2005β06" |
Write a SQL query that answers the following question: Which Runner-up played in the Season of 2000β01? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (runner_up VARCHAR, season VARCHAR) | SELECT runner_up FROM table_name_72 WHERE season = "2000β01" |
Write a SQL query that answers the following question: What was the venue during the Season of 2010β11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (venue VARCHAR, season VARCHAR) | SELECT venue FROM table_name_88 WHERE season = "2010β11" |
Write a SQL query that answers the following question: Which Winner has a Runner-up of larne, and a Season of 2003β04? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (winner VARCHAR, runner_up VARCHAR, season VARCHAR) | SELECT winner FROM table_name_13 WHERE runner_up = "larne" AND season = "2003β04" |
Write a SQL query that answers the following question: Which Winner has a Score of 1 β 0, and a Season of 2011β12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (winner VARCHAR, score VARCHAR, season VARCHAR) | SELECT winner FROM table_name_30 WHERE score = "1 β 0" AND season = "2011β12" |
Write a SQL query that answers the following question: What position does Martin Rucker play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (position VARCHAR, name VARCHAR) | SELECT position FROM table_name_78 WHERE name = "martin rucker" |
Write a SQL query that answers the following question: What was the lowest round for Paul Hubbard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (round INTEGER, name VARCHAR) | SELECT MIN(round) FROM table_name_21 WHERE name = "paul hubbard" |
Write a SQL query that answers the following question: What was the lowest round for a tight end position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (round INTEGER, position VARCHAR) | SELECT MIN(round) FROM table_name_94 WHERE position = "tight end" |
Write a SQL query that answers the following question: What years did the person coach who had more than 31 ties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (years VARCHAR, ties INTEGER) | SELECT years FROM table_name_5 WHERE ties > 31 |
Write a SQL query that answers the following question: What is the average number of wins for the person who coached from 1951 to 1956 and had less than 174 losses and less than 6 ties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (wins INTEGER, ties VARCHAR, losses VARCHAR, years VARCHAR) | SELECT AVG(wins) FROM table_name_70 WHERE losses < 174 AND years = "1951 to 1956" AND ties < 6 |
Write a SQL query that answers the following question: Who was the coach who had 215 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (coach VARCHAR, losses VARCHAR) | SELECT coach FROM table_name_33 WHERE losses = 215 |
Write a SQL query that answers the following question: What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR) | SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174 |
Write a SQL query that answers the following question: What years did the person coach who had less than 82 wins and more than 24 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (years VARCHAR, wins VARCHAR, losses VARCHAR) | SELECT years FROM table_name_99 WHERE wins < 82 AND losses > 24 |
Write a SQL query that answers the following question: Which Points have a Game larger than 25, and an Opponent of dallas stars? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (points INTEGER, game VARCHAR, opponent VARCHAR) | SELECT AVG(points) FROM table_name_75 WHERE game > 25 AND opponent = "dallas stars" |
Write a SQL query that answers the following question: Which Record has a December smaller than 28, and Points smaller than 38, and a Game smaller than 26, and a Score of 0β1 ot? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (record VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR, points VARCHAR) | SELECT record FROM table_name_53 WHERE december < 28 AND points < 38 AND game < 26 AND score = "0β1 ot" |
Write a SQL query that answers the following question: Which Opponent has a Game of 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_56 WHERE game = 31 |
Write a SQL query that answers the following question: Which Record has Points smaller than 40, and a Game larger than 25, and a Score of 2β0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (record VARCHAR, score VARCHAR, points VARCHAR, game VARCHAR) | SELECT record FROM table_name_49 WHERE points < 40 AND game > 25 AND score = "2β0" |
Write a SQL query that answers the following question: Episode of 9 in which performer 3 had? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (performer_3 VARCHAR, episode VARCHAR) | SELECT performer_3 FROM table_name_82 WHERE episode = 9 |
Write a SQL query that answers the following question: Date of 8 july 1994 involves which performer 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (performer_1 VARCHAR, date VARCHAR) | SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994" |
Write a SQL query that answers the following question: Date of 15 july 1994 involves which performer 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (performer_3 VARCHAR, date VARCHAR) | SELECT performer_3 FROM table_name_56 WHERE date = "15 july 1994" |
Write a SQL query that answers the following question: Performer 2 of chip esten has what performer 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (performer_3 VARCHAR, performer_2 VARCHAR) | SELECT performer_3 FROM table_name_40 WHERE performer_2 = "chip esten" |
Write a SQL query that answers the following question: Which Name has a Pennant number of f82? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (name VARCHAR, pennant_number VARCHAR) | SELECT name FROM table_name_56 WHERE pennant_number = "f82" |
Write a SQL query that answers the following question: What is the Launched which is on 3 may 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR) | SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001" |
Write a SQL query that answers the following question: What is the Homeport that has a Laid down on 14 december 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR) | SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985" |
Write a SQL query that answers the following question: What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (launched VARCHAR, homeport__as_of_july_2013_ VARCHAR, pennant_number VARCHAR) | SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = "sold to chile" AND pennant_number = "f80" |
Write a SQL query that answers the following question: Which player had more than 25 events? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (player VARCHAR, events INTEGER) | SELECT player FROM table_name_60 WHERE events > 25 |
Write a SQL query that answers the following question: What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (prize_money___$__ VARCHAR, country VARCHAR, rank VARCHAR, events VARCHAR) | SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = "fiji" |
Write a SQL query that answers the following question: What is the least amount of prize money when there are 21 events? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (prize_money___ INTEGER, events VARCHAR) | SELECT MIN(prize_money___) AS $__ FROM table_name_96 WHERE events = 21 |
Write a SQL query that answers the following question: Which series episode has a netflix figure of s04e21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (series_ep VARCHAR, netflix VARCHAR) | SELECT series_ep FROM table_name_45 WHERE netflix = "s04e21" |
Write a SQL query that answers the following question: Which segment a's netflix figure is s04e24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (segment_a VARCHAR, netflix VARCHAR) | SELECT segment_a FROM table_name_77 WHERE netflix = "s04e24" |
Write a SQL query that answers the following question: How many episodes have a segment d that is goalie masks (part 2)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR) | SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = "goalie masks (part 2)" |
Write a SQL query that answers the following question: Which episode's segment b is s hacksaw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR) | SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw" |
Write a SQL query that answers the following question: When was Lachlan Dale born? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (dob VARCHAR, surname VARCHAR, first VARCHAR) | SELECT dob FROM table_name_47 WHERE surname = "dale" AND first = "lachlan" |
Write a SQL query that answers the following question: Which batter played P and was born 18 April 1984? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (bats VARCHAR, position VARCHAR, dob VARCHAR) | SELECT bats FROM table_name_12 WHERE position = "p" AND dob = "18 april 1984" |
Write a SQL query that answers the following question: Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (surname VARCHAR, dob VARCHAR, bats VARCHAR, position VARCHAR) | SELECT surname FROM table_name_73 WHERE bats = "r" AND position = "p" AND dob = "20 may 1989" |
Write a SQL query that answers the following question: Which Position has Throws of r, and a DOB of 12 february 1983? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (position VARCHAR, throws VARCHAR, dob VARCHAR) | SELECT position FROM table_name_59 WHERE throws = "r" AND dob = "12 february 1983" |
Write a SQL query that answers the following question: How many throws did Needle have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (throws VARCHAR, surname VARCHAR) | SELECT throws FROM table_name_10 WHERE surname = "needle" |
Write a SQL query that answers the following question: Which DOB has Bats of s, and a Position of inf? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (dob VARCHAR, bats VARCHAR, position VARCHAR) | SELECT dob FROM table_name_8 WHERE bats = "s" AND position = "inf" |
Write a SQL query that answers the following question: What is the Lap Length of the race with a Grand Prix Fia Category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (lap_length VARCHAR, category VARCHAR) | SELECT lap_length FROM table_name_50 WHERE category = "grand prix fia" |
Write a SQL query that answers the following question: What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR) | SELECT race FROM table_name_47 WHERE category = "formula 2 fia, non-championship" AND date = "july 30, 1950" |
Write a SQL query that answers the following question: What was his record when the match went for 3:05? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (record VARCHAR, time VARCHAR) | SELECT record FROM table_name_62 WHERE time = "3:05" |
Write a SQL query that answers the following question: How many rounds did the match go for the Bellator 72 event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (round INTEGER, event VARCHAR) | SELECT SUM(round) FROM table_name_62 WHERE event = "bellator 72" |
Write a SQL query that answers the following question: What is the sum of the live viewers for episodes with share over 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (live VARCHAR, share INTEGER, viewers_ INTEGER) | SELECT SUM(viewers_)[live] AS __m_ FROM table_name_77 WHERE share > 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.