instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the highest Week, when Result is W 34-21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_89 WHERE result = "w 34-21" |
Write a SQL query that answers the following question: What is the most recent year with a finish in 2nd position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (season INTEGER, position VARCHAR) | SELECT MAX(season) FROM table_name_22 WHERE position = "2nd" |
Write a SQL query that answers the following question: What is the position in the 2004 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (position VARCHAR, season INTEGER) | SELECT position FROM table_name_62 WHERE season > 2004 |
Write a SQL query that answers the following question: What is the division for the season earlier than 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (division VARCHAR, season INTEGER) | SELECT division FROM table_name_60 WHERE season < 2004 |
Write a SQL query that answers the following question: What is Team, when Qual 1 is 1:16.417? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_70 WHERE qual_1 = "1:16.417" |
Write a SQL query that answers the following question: What is Team, when Qual 1 is 1:16.417? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417" |
Write a SQL query that answers the following question: What is Team when Qual 1 is 1:20.139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_57 WHERE qual_1 = "1:20.139" |
Write a SQL query that answers the following question: What is Name when Qual 2 is 1:15.582? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (name VARCHAR, qual_2 VARCHAR) | SELECT name FROM table_name_36 WHERE qual_2 = "1:15.582" |
Write a SQL query that answers the following question: What is Name, when Best is 1:15.673? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (name VARCHAR, best VARCHAR) | SELECT name FROM table_name_44 WHERE best = "1:15.673" |
Write a SQL query that answers the following question: Where was the tournament that happened in 1987 on a clay surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay" |
Write a SQL query that answers the following question: Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (opponent_in_the_final VARCHAR, score VARCHAR, date VARCHAR, partnering VARCHAR) | SELECT opponent_in_the_final FROM table_name_48 WHERE date < 1990 AND partnering = "yannick noah" AND score = "4–6, 6–3, 6–4" |
Write a SQL query that answers the following question: WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (seats_in_hamburgische_bürgerschaft VARCHAR, ideology VARCHAR) | SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics" |
Write a SQL query that answers the following question: WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (abbr VARCHAR, votes__2011_ VARCHAR) | SELECT abbr FROM table_name_70 WHERE votes__2011_ = "11.2%" |
Write a SQL query that answers the following question: WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (seats_in_hamburgische_bürgerschaft VARCHAR, abbr VARCHAR) | SELECT COUNT(seats_in_hamburgische_bürgerschaft) FROM table_name_18 WHERE abbr = "bündnis 90 / die grünen (gal)" |
Write a SQL query that answers the following question: WHAT IS THE GERMAN NAME OF LIBERALISM? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (name__german_ VARCHAR, ideology VARCHAR) | SELECT name__german_ FROM table_name_85 WHERE ideology = "liberalism" |
Write a SQL query that answers the following question: WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (seats_in_hamburgische_bürgerschaft VARCHAR, name__english_ VARCHAR) | SELECT seats_in_hamburgische_bürgerschaft FROM table_name_57 WHERE name__english_ = "alliance '90/the greens" |
Write a SQL query that answers the following question: What is the earliest game played at the TD Waterhouse Centre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (game INTEGER, location VARCHAR) | SELECT MIN(game) FROM table_name_99 WHERE location = "td waterhouse centre" |
Write a SQL query that answers the following question: Who was the opponent on April 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_56 WHERE date = "april 2" |
Write a SQL query that answers the following question: What was the highest game number when the opponent was the Miami Heat? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR) | SELECT MAX(game) FROM table_name_5 WHERE opponent = "miami heat" |
Write a SQL query that answers the following question: What is Website, when License is Apache License 2.0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (website VARCHAR, license VARCHAR) | SELECT website FROM table_name_55 WHERE license = "apache license 2.0" |
Write a SQL query that answers the following question: What is Source Version, when Target Version is Java 7, 6, 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (source_version VARCHAR, target_version VARCHAR) | SELECT source_version FROM table_name_10 WHERE target_version = "java 7, 6, 5" |
Write a SQL query that answers the following question: What is Source Version, when License is LGPL or MPL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (source_version VARCHAR, license VARCHAR) | SELECT source_version FROM table_name_42 WHERE license = "lgpl or mpl" |
Write a SQL query that answers the following question: What is Target Version, when Last Release is 2009-08-09, 1.2.9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (target_version VARCHAR, last_release VARCHAR) | SELECT target_version FROM table_name_91 WHERE last_release = "2009-08-09, 1.2.9" |
Write a SQL query that answers the following question: What is Website, when Last Release is 2009-08-09, 1.2.9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (website VARCHAR, last_release VARCHAR) | SELECT website FROM table_name_25 WHERE last_release = "2009-08-09, 1.2.9" |
Write a SQL query that answers the following question: What is Target Version, when License is LGPL or MPL? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (target_version VARCHAR, license VARCHAR) | SELECT target_version FROM table_name_68 WHERE license = "lgpl or mpl" |
Write a SQL query that answers the following question: What is the class for the ERP W of 500? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (class VARCHAR, erp_w VARCHAR) | SELECT class FROM table_name_12 WHERE erp_w = 500 |
Write a SQL query that answers the following question: What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR, frequency_mhz VARCHAR) | SELECT AVG(erp_w) FROM table_name_59 WHERE call_sign = "k248bj" AND frequency_mhz > 97.5 |
Write a SQL query that answers the following question: In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) | SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000 |
Write a SQL query that answers the following question: In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) | SELECT city_of_license FROM table_name_28 WHERE frequency_mhz > 102.3 AND call_sign = "k292eu" |
Write a SQL query that answers the following question: What was sweden's purse in USD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (purse___us_ INTEGER, country VARCHAR) | SELECT SUM(purse___us_) AS $__ FROM table_name_58 WHERE country = "sweden" |
Write a SQL query that answers the following question: What was 2003's To Par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (to_par VARCHAR, year VARCHAR) | SELECT to_par FROM table_name_31 WHERE year = 2003 |
Write a SQL query that answers the following question: What is the highest laps for the grid of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (laps INTEGER, grid VARCHAR) | SELECT MAX(laps) FROM table_name_82 WHERE grid = 7 |
Write a SQL query that answers the following question: What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_4 WHERE time_retired = "+16.874 secs" AND grid < 5 |
Write a SQL query that answers the following question: What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (points INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT MAX(points) FROM table_name_88 WHERE time_retired = "+32.256 secs" AND grid > 12 |
Write a SQL query that answers the following question: What is biggest grid when the laps are 65? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR) | SELECT MAX(grid) FROM table_name_86 WHERE laps = 65 |
Write a SQL query that answers the following question: What team has a grid of 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (team VARCHAR, grid VARCHAR) | SELECT team FROM table_name_6 WHERE grid = 15 |
Write a SQL query that answers the following question: What is the average new council number when the election result is smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (new_council INTEGER, election_result INTEGER) | SELECT AVG(new_council) FROM table_name_57 WHERE election_result < 0 |
Write a SQL query that answers the following question: How many seats were up for election during the vote where the election result was 9 and the new council 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (seats_up_for_election INTEGER, election_result VARCHAR, new_council VARCHAR) | SELECT SUM(seats_up_for_election) FROM table_name_10 WHERE election_result = 9 AND new_council > 27 |
Write a SQL query that answers the following question: How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR) | SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = "conservatives" AND new_council < 27 |
Write a SQL query that answers the following question: What opponent did the Broncos play on November 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_93 WHERE date = "november 16" |
Write a SQL query that answers the following question: What was the Bronco's record when they played the Detroit Lions at Mile High Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_98 WHERE game_site = "mile high stadium" AND opponent = "detroit lions" |
Write a SQL query that answers the following question: What was the score of the game on November 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_8 WHERE date = "november 22" |
Write a SQL query that answers the following question: What is the lowest number of points scored when there were 1,500 in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (points INTEGER, attendance VARCHAR) | SELECT MIN(points) FROM table_name_50 WHERE attendance = "1,500" |
Write a SQL query that answers the following question: what is 2001 when the year is ebitda and 2009 is less than 3,600? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (year VARCHAR) | SELECT SUM(2001) FROM table_name_73 WHERE year = "ebitda" AND 2009 < 3 OFFSET 600 |
Write a SQL query that answers the following question: who is the author for harry potter and the deathly hallows? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (author VARCHAR, title VARCHAR) | SELECT author FROM table_name_17 WHERE title = "harry potter and the deathly hallows" |
Write a SQL query that answers the following question: what is the title when the citation is honor and the narrator is lincoln hoppe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (title VARCHAR, citation VARCHAR, narrator VARCHAR) | SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe" |
Write a SQL query that answers the following question: who is the producer when the narrator is katherine kellgren, the year is before 2013 and the author is karen cushman? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (producer VARCHAR, author VARCHAR, narrator VARCHAR, year VARCHAR) | SELECT producer FROM table_name_17 WHERE narrator = "katherine kellgren" AND year < 2013 AND author = "karen cushman" |
Write a SQL query that answers the following question: what is the year when the citation is honor and the author is kadir nelson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR) | SELECT SUM(year) FROM table_name_37 WHERE citation = "honor" AND author = "kadir nelson" |
Write a SQL query that answers the following question: What is Opponent In The Final, when Year is "1942"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, year VARCHAR) | SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942 |
Write a SQL query that answers the following question: What is the average Year, when Outcome is "Winner"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year INTEGER, outcome VARCHAR) | SELECT AVG(year) FROM table_name_98 WHERE outcome = "winner" |
Write a SQL query that answers the following question: What tournament did Pemra Özgen play against julia kimmelmann in the finals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT tournament FROM table_name_54 WHERE opponent_in_the_final = "julia kimmelmann" |
Write a SQL query that answers the following question: Which Home has a Visitor of nashville? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_44 WHERE visitor = "nashville" |
Write a SQL query that answers the following question: Which Visitor has a Decision of osgood, and a Date of february 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (visitor VARCHAR, decision VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_63 WHERE decision = "osgood" AND date = "february 15" |
Write a SQL query that answers the following question: Which Date has a Record of 36–11–7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_15 WHERE record = "36–11–7" |
Write a SQL query that answers the following question: Which Date has a Visitor of edmonton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_24 WHERE visitor = "edmonton" |
Write a SQL query that answers the following question: What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (bronze INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_49 WHERE gold < 1 AND total > 1 AND rank = 10 |
Write a SQL query that answers the following question: What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT AVG(bronze) FROM table_name_78 WHERE rank > 6 AND nation = "italy (ita)" AND total < 1 |
Write a SQL query that answers the following question: What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT SUM(total) FROM table_name_14 WHERE silver > 1 AND rank = 9 AND bronze > 0 |
Write a SQL query that answers the following question: What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR) | SELECT AVG(gold) FROM table_name_95 WHERE total = 2 AND silver < 1 AND rank > 5 |
Write a SQL query that answers the following question: What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (rank INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT SUM(rank) FROM table_name_32 WHERE bronze < 1 AND nation = "switzerland (sui)" AND total < 2 |
Write a SQL query that answers the following question: What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 1 |
Write a SQL query that answers the following question: What is Player, when To Par is "7", and when Score is "73-72-67-75=287"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_10 WHERE to_par = 7 AND score = 73 - 72 - 67 - 75 = 287 |
Write a SQL query that answers the following question: What is the average To Par, when Player is "Billy Casper"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (to_par INTEGER, player VARCHAR) | SELECT AVG(to_par) FROM table_name_20 WHERE player = "billy casper" |
Write a SQL query that answers the following question: What is the highest Money ( $ ), when To Par is less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (money___ INTEGER, to_par INTEGER) | SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2 |
Write a SQL query that answers the following question: What event in guam did Tetsuji Kato win against patrick madayag? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (event VARCHAR, opponent VARCHAR, res VARCHAR, location VARCHAR) | SELECT event FROM table_name_39 WHERE res = "win" AND location = "guam" AND opponent = "patrick madayag" |
Write a SQL query that answers the following question: What was the result of the fight when Tetsuji Kato's record was 19-9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (res VARCHAR, record VARCHAR) | SELECT res FROM table_name_73 WHERE record = "19-9" |
Write a SQL query that answers the following question: How many receptions were smaller than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (reception VARCHAR, long INTEGER) | SELECT COUNT(reception) FROM table_name_12 WHERE long < 7 |
Write a SQL query that answers the following question: What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (yards INTEGER, player VARCHAR, games VARCHAR, reception VARCHAR) | SELECT AVG(yards) FROM table_name_81 WHERE games > 15 AND reception > 2 AND player = "jimmie giles" |
Write a SQL query that answers the following question: What year had a league position of 8/12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (year VARCHAR, league_position VARCHAR) | SELECT year FROM table_name_63 WHERE league_position = "8/12" |
Write a SQL query that answers the following question: What league has a position of 8/13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (league VARCHAR, league_position VARCHAR) | SELECT league FROM table_name_88 WHERE league_position = "8/13" |
Write a SQL query that answers the following question: What year did the malaysia premier league get a position of 8/12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year VARCHAR, league VARCHAR, league_position VARCHAR) | SELECT year FROM table_name_93 WHERE league = "malaysia premier league" AND league_position = "8/12" |
Write a SQL query that answers the following question: What year had a cup position of round 1 and a league position of 5/12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (year VARCHAR, cup_position VARCHAR, league_position VARCHAR) | SELECT year FROM table_name_70 WHERE cup_position = "round 1" AND league_position = "5/12" |
Write a SQL query that answers the following question: What year had a domestic cup of singapore cup? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year VARCHAR, domestic_cup VARCHAR) | SELECT year FROM table_name_9 WHERE domestic_cup = "singapore cup" |
Write a SQL query that answers the following question: How many Laps have Rider of olivier jacque, and a Grid larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (laps INTEGER, rider VARCHAR, grid VARCHAR) | SELECT SUM(laps) FROM table_name_75 WHERE rider = "olivier jacque" AND grid > 7 |
Write a SQL query that answers the following question: Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_93 WHERE manufacturer = "suzuki" AND grid < 16 |
Write a SQL query that answers the following question: How many Laps have a Grid larger than 9, and a Time/Retired of +32.354? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT COUNT(laps) FROM table_name_87 WHERE grid > 9 AND time_retired = "+32.354" |
Write a SQL query that answers the following question: What is Record, when Date is Oct 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_30 WHERE date = "oct 19" |
Write a SQL query that answers the following question: What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_1 WHERE opponent = "montreal alouettes" AND date = "oct 4" |
Write a SQL query that answers the following question: What is Opponent, when Result is Win, and when Date is Aug 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7" |
Write a SQL query that answers the following question: what is the date when the score is 115-93? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_68 WHERE score = "115-93" |
Write a SQL query that answers the following question: what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR, venue VARCHAR) | SELECT AVG(crowd) FROM table_name_64 WHERE away_team = "new zealand breakers" AND venue = "cairns convention centre" |
Write a SQL query that answers the following question: how many times is the home team wollongong hawks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks" |
Write a SQL query that answers the following question: what is the date when the venue is gold coast convention centre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_70 WHERE venue = "gold coast convention centre" |
Write a SQL query that answers the following question: Which Score has Points smaller than 67, and a Home of calgary flames? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (score VARCHAR, points VARCHAR, home VARCHAR) | SELECT score FROM table_name_45 WHERE points < 67 AND home = "calgary flames" |
Write a SQL query that answers the following question: Whic Date has a Score of 4–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_33 WHERE score = "4–2" |
Write a SQL query that answers the following question: Which Decision has a Record of 29–18–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR) | SELECT decision FROM table_name_53 WHERE record = "29–18–6" |
Write a SQL query that answers the following question: Which Date has a Score of 4–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_14 WHERE score = "4–2" |
Write a SQL query that answers the following question: How many losses did the coach who served under 1 season and in 1975 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (lost VARCHAR, years VARCHAR, seasons VARCHAR) | SELECT COUNT(lost) FROM table_name_93 WHERE years = "1975" AND seasons < 1 |
Write a SQL query that answers the following question: What is the number of seasons coached by Kathy Graham? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (seasons INTEGER, name VARCHAR) | SELECT MIN(seasons) FROM table_name_2 WHERE name = "kathy graham" |
Write a SQL query that answers the following question: What is the result on September 25, 1966? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_80 WHERE date = "september 25, 1966" |
Write a SQL query that answers the following question: What is the attendance of the game on November 20, 1966 after week 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966" |
Write a SQL query that answers the following question: Who is the opponent on week 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_73 WHERE week = 2 |
Write a SQL query that answers the following question: Who is the opponent on November 20, 1966? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966" |
Write a SQL query that answers the following question: What is the attendance of the game with the NY Islanders as home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (attendance VARCHAR, home VARCHAR) | SELECT COUNT(attendance) FROM table_name_59 WHERE home = "ny islanders" |
Write a SQL query that answers the following question: What was the date of the game against seattle? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_52 WHERE opponent = "seattle" |
Write a SQL query that answers the following question: Who were the opponents during game 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_82 WHERE game = 30 |
Write a SQL query that answers the following question: What was the record during the game with a score of 78-59? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_52 WHERE score = "78-59" |
Write a SQL query that answers the following question: Which mlb team is located in maryland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (team VARCHAR, state_province VARCHAR, league VARCHAR) | SELECT team FROM table_name_95 WHERE state_province = "maryland" AND league = "mlb" |
Write a SQL query that answers the following question: What team is located in brooklyn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (team VARCHAR, city VARCHAR) | SELECT team FROM table_name_5 WHERE city = "brooklyn" |
Write a SQL query that answers the following question: In what year was the cfl team in edmonton, alberta established? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (est VARCHAR, city VARCHAR, state_province VARCHAR, league VARCHAR) | SELECT est FROM table_name_6 WHERE state_province = "alberta" AND league = "cfl" AND city = "edmonton" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.