instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Who had the high rebounds, and how many did he have, for the game played on April 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_24 WHERE date = "april 9" |
Write a SQL query that answers the following question: What date did a game have a time of 3:44? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_55 WHERE time = "3:44" |
Write a SQL query that answers the following question: What was the attendance for the game after game 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (attendance VARCHAR, game INTEGER) | SELECT attendance FROM table_name_96 WHERE game > 4 |
Write a SQL query that answers the following question: WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR) | SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572 |
Write a SQL query that answers the following question: WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR) | SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon" |
Write a SQL query that answers the following question: WHAT IS THE POPULATION OF 2007 WHEN 2010 POPULATION WAS SMALLER THAN 1282? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (population__2007_ VARCHAR, population__2010_ INTEGER) | SELECT COUNT(population__2007_) FROM table_name_2 WHERE population__2010_ < 1282 |
Write a SQL query that answers the following question: What is the number of points when the played is less than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (points VARCHAR, played INTEGER) | SELECT COUNT(points) FROM table_name_42 WHERE played < 30 |
Write a SQL query that answers the following question: What is the number of goals when the goal difference was less than 43, and the position less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (goals_for INTEGER, goal_difference VARCHAR, position VARCHAR) | SELECT SUM(goals_for) FROM table_name_27 WHERE goal_difference < 43 AND position < 3 |
Write a SQL query that answers the following question: What is the position when the points were less than 34, draws of 7, and a Club of sd eibar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (position INTEGER, club VARCHAR, points VARCHAR, draws VARCHAR) | SELECT AVG(position) FROM table_name_53 WHERE points < 34 AND draws = 7 AND club = "sd eibar" |
Write a SQL query that answers the following question: What is the number of goals against when the goal difference was less than 43, the Wins less than 13, and losses more than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (goals_against VARCHAR, losses VARCHAR, goal_difference VARCHAR, wins VARCHAR) | SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14 |
Write a SQL query that answers the following question: What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR) | SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30 |
Write a SQL query that answers the following question: Who is the producer for the director Richard Clark? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (producer VARCHAR, director VARCHAR) | SELECT producer FROM table_name_31 WHERE director = "richard clark" |
Write a SQL query that answers the following question: What is the lowest block for director Graeme Harper? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (block INTEGER, director VARCHAR) | SELECT MIN(block) FROM table_name_79 WHERE director = "graeme harper" |
Write a SQL query that answers the following question: What is the skip when the country is finland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (skip VARCHAR, country VARCHAR) | SELECT skip FROM table_name_1 WHERE country = "finland" |
Write a SQL query that answers the following question: What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (ends_lost INTEGER, stolen_ends_for VARCHAR, stolen_ends_against VARCHAR) | SELECT MIN(ends_lost) FROM table_name_16 WHERE stolen_ends_for < 13 AND stolen_ends_against = 6 |
Write a SQL query that answers the following question: What is the sum shot % when the country is finland, and an ends lost is larger than 49? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR) | SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49 |
Write a SQL query that answers the following question: What is the stolen ends against for a bank ends f/a of 4/7, and a country of china? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (stolen_ends_against VARCHAR, blank_ends_f_a VARCHAR, country VARCHAR) | SELECT stolen_ends_against FROM table_name_36 WHERE blank_ends_f_a = "4/7" AND country = "china" |
Write a SQL query that answers the following question: what is the location when the year is after 1974 and the date is september 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (location VARCHAR, year VARCHAR, date VARCHAR) | SELECT location FROM table_name_36 WHERE year > 1974 AND date = "september 19" |
Write a SQL query that answers the following question: what is the location when the year is before 1979 and the result is 19-17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (location VARCHAR, year VARCHAR, result VARCHAR) | SELECT location FROM table_name_68 WHERE year < 1979 AND result = "19-17" |
Write a SQL query that answers the following question: what is the result for 1970 at yankee stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (result VARCHAR, year VARCHAR, location VARCHAR) | SELECT result FROM table_name_7 WHERE year = 1970 AND location = "yankee stadium" |
Write a SQL query that answers the following question: what is the year when the location is yankee stadium and the result is 23-23 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, result VARCHAR) | SELECT AVG(year) FROM table_name_74 WHERE location = "yankee stadium" AND result = "23-23" |
Write a SQL query that answers the following question: Which Total has a Name of eoin jess category:articles with hcards, and a Scottish Cup larger than 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (total INTEGER, name VARCHAR, scottish_cup VARCHAR) | SELECT MIN(total) FROM table_name_47 WHERE name = "eoin jess category:articles with hcards" AND scottish_cup > 23 |
Write a SQL query that answers the following question: Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR) | SELECT AVG(total) FROM table_name_25 WHERE name = "alex mcleish category:articles with hcards" AND league < 494 |
Write a SQL query that answers the following question: Which League Cup has a Scottish Cup larger than 69? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (league INTEGER, scottish_cup INTEGER) | SELECT SUM(league) AS Cup FROM table_name_42 WHERE scottish_cup > 69 |
Write a SQL query that answers the following question: Which Scottish Cup has a League smaller than 561, Years of 1989β1995 1997β2001, and Europe smaller than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR) | SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989β1995 1997β2001" AND europe < 11 |
Write a SQL query that answers the following question: What is the highest pick of the houston oilers NFL club, which has a round greater than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (pick INTEGER, nfl_club VARCHAR, round VARCHAR) | SELECT MAX(pick) FROM table_name_87 WHERE nfl_club = "houston oilers" AND round > 10 |
Write a SQL query that answers the following question: What is the round of the new york jets NFL club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (round VARCHAR, nfl_club VARCHAR) | SELECT round FROM table_name_63 WHERE nfl_club = "new york jets" |
Write a SQL query that answers the following question: What is the sum of the round of the new york jets NFL club, which has a pick less than 166? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (round INTEGER, nfl_club VARCHAR, pick VARCHAR) | SELECT SUM(round) FROM table_name_60 WHERE nfl_club = "new york jets" AND pick < 166 |
Write a SQL query that answers the following question: WHAT IS THE 2012 PERFORMANCE FOR THE MADRID MASTERS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (tournament VARCHAR) | SELECT 2012 FROM table_name_25 WHERE tournament = "madrid masters" |
Write a SQL query that answers the following question: WHAT IS THE 2011 PERFORMANCE FOR TOURNAMENTS PLAYED? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (tournament VARCHAR) | SELECT 2011 FROM table_name_48 WHERE tournament = "tournaments played" |
Write a SQL query that answers the following question: WHAT IS THE 2010 PERFORMANCE THAT HAD 2009 0F 0, AND FINALS TOURNAMENT? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (tournament VARCHAR) | SELECT 2010 FROM table_name_19 WHERE 2009 = "0" AND tournament = "finals" |
Write a SQL query that answers the following question: WHAT IS THE 2009 PERFORMANCE FOR TOURNAMENTS PLAYED? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (tournament VARCHAR) | SELECT 2009 FROM table_name_68 WHERE tournament = "tournaments played" |
Write a SQL query that answers the following question: Who were the scorers in round 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (scorers VARCHAR, round VARCHAR) | SELECT scorers FROM table_name_83 WHERE round = "round 3" |
Write a SQL query that answers the following question: What is the H/A in the semi-final round where oldham athletic were the opponents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (h___a VARCHAR, opponents VARCHAR, round VARCHAR) | SELECT h___a FROM table_name_90 WHERE opponents = "oldham athletic" AND round = "semi-final" |
Write a SQL query that answers the following question: Who were the scorers in the semi-final round where oldham athletic were the opponents? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (scorers VARCHAR, opponents VARCHAR, round VARCHAR) | SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final" |
Write a SQL query that answers the following question: Where was the tournament where the score was 1β6, 6β3, 3β6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_66 WHERE score = "1β6, 6β3, 3β6" |
Write a SQL query that answers the following question: Who did thomaz bellucci play against when the score was 4β6, 6β4, 6β2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_80 WHERE score = "4β6, 6β4, 6β2" |
Write a SQL query that answers the following question: What was the outcome of the tournament with Akiko Yonemura as a partner on a hard surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (outcome VARCHAR, surface VARCHAR, partner VARCHAR) | SELECT outcome FROM table_name_18 WHERE surface = "hard" AND partner = "akiko yonemura" |
Write a SQL query that answers the following question: Which tournament has 1r in 2011, 1r in 2012, A in 2005, and 1r in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (tournament VARCHAR) | SELECT tournament FROM table_name_62 WHERE 2011 = "1r" AND 2012 = "1r" AND 2005 = "a" AND 2010 = "1r" |
Write a SQL query that answers the following question: What is the 2010 value with a 1r in 2012 and an A in 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (Id VARCHAR) | SELECT 2010 FROM table_name_75 WHERE 2012 = "1r" AND 2005 = "a" |
Write a SQL query that answers the following question: What is the tournament with a 2r in 2009 and a 2r in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (tournament VARCHAR) | SELECT tournament FROM table_name_96 WHERE 2009 = "2r" AND 2010 = "2r" |
Write a SQL query that answers the following question: What is the 2011 value of the 2012 grand slam tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (Id VARCHAR) | SELECT 2011 FROM table_name_10 WHERE 2012 = "grand slam tournaments" |
Write a SQL query that answers the following question: What was the record after game 45? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_13 WHERE game = "45" |
Write a SQL query that answers the following question: What was the date of the game at the delta center when the record was 35-14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, location_attendance VARCHAR, record VARCHAR) | SELECT date FROM table_name_35 WHERE location_attendance = "delta center" AND record = "35-14" |
Write a SQL query that answers the following question: Who was the opponent, during the game at the location of keyarena at seattle center? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (opponent VARCHAR, location_attendance VARCHAR) | SELECT opponent FROM table_name_50 WHERE location_attendance = "keyarena at seattle center" |
Write a SQL query that answers the following question: What is the label of release we are the rage with a cd format? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (label VARCHAR, format VARCHAR, release VARCHAR) | SELECT label FROM table_name_28 WHERE format = "cd" AND release = "we are the rage" |
Write a SQL query that answers the following question: Who was the winning team before 1956 on October 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (winner VARCHAR, year VARCHAR, date VARCHAR) | SELECT winner FROM table_name_43 WHERE year < 1956 AND date = "october 21" |
Write a SQL query that answers the following question: Who was the loser when the New York Giants were the winners on November 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (loser VARCHAR, winner VARCHAR, date VARCHAR) | SELECT loser FROM table_name_71 WHERE winner = "new york giants" AND date = "november 14" |
Write a SQL query that answers the following question: Who was the winner when the Philadelphia eagles were the losers after 1958 at Yankee Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (winner VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR) | SELECT winner FROM table_name_62 WHERE loser = "philadelphia eagles" AND location = "yankee stadium" AND year > 1958 |
Write a SQL query that answers the following question: What location was the game with the result of 29-14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (location VARCHAR, result VARCHAR) | SELECT location FROM table_name_11 WHERE result = "29-14" |
Write a SQL query that answers the following question: What is the score of the wigan athletic home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_3 WHERE home_team = "wigan athletic" |
Write a SQL query that answers the following question: What is the away team with a 2 tie no.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_6 WHERE tie_no = "2" |
Write a SQL query that answers the following question: What is the away team for the home team wigan athletic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_23 WHERE home_team = "wigan athletic" |
Write a SQL query that answers the following question: What is the score on 23 November 1983 with exeter city as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_31 WHERE date = "23 november 1983" AND away_team = "exeter city" |
Write a SQL query that answers the following question: Who had the high assists when the record was 33β15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (high_assists VARCHAR, record VARCHAR) | SELECT high_assists FROM table_name_6 WHERE record = "33β15" |
Write a SQL query that answers the following question: What date was the location attendance at&t center 18,797, and a game earlier than 57? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, location_attendance VARCHAR, game VARCHAR) | SELECT date FROM table_name_24 WHERE location_attendance = "at&t center 18,797" AND game < 57 |
Write a SQL query that answers the following question: What player had the high assists when the Score was l 107β112 (ot)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (high_assists VARCHAR, score VARCHAR) | SELECT high_assists FROM table_name_27 WHERE score = "l 107β112 (ot)" |
Write a SQL query that answers the following question: Which company had a market value less than $5.59 billion, assets greater than $27.46 billion, and a rank above 39? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (name VARCHAR, assets__bn$_ VARCHAR, market_value__bn$_ VARCHAR, rank VARCHAR) | SELECT name FROM table_name_87 WHERE market_value__bn$_ < 5.59 AND rank > 39 AND assets__bn$_ > 27.46 |
Write a SQL query that answers the following question: How many ranks have assets of $70.74 billion and market value greater than $11.29 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (rank VARCHAR, assets__bn$_ VARCHAR, market_value__bn$_ VARCHAR) | SELECT COUNT(rank) FROM table_name_49 WHERE assets__bn$_ = 70.74 AND market_value__bn$_ > 11.29 |
Write a SQL query that answers the following question: What is the sum of revenue in Hong Kong with a rank greater than 42, less than $3.46 billion in assets, and greater than $0.17 billion in profits? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (revenue__bn INTEGER, rank VARCHAR, profit__bn$_ VARCHAR, assets__bn$_ VARCHAR, headquarters VARCHAR) | SELECT SUM(revenue__bn) AS $_ FROM table_name_98 WHERE assets__bn$_ < 3.46 AND headquarters = "hong kong" AND profit__bn$_ > 0.17 AND rank > 42 |
Write a SQL query that answers the following question: What is the highest number of gold medals when the silver is less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (gold INTEGER, silver INTEGER) | SELECT MAX(gold) FROM table_name_57 WHERE silver < 0 |
Write a SQL query that answers the following question: How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (sri_lankans_admitted INTEGER, year VARCHAR, nepalis_admitted VARCHAR) | SELECT SUM(sri_lankans_admitted) FROM table_name_96 WHERE year = "2004" AND nepalis_admitted > 594 |
Write a SQL query that answers the following question: How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) | SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575 |
Write a SQL query that answers the following question: What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (nepalis_admitted INTEGER, bangladeshis_admitted INTEGER) | SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896 |
Write a SQL query that answers the following question: What is the frequency that the magazine issues that was first published on april 27, 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (frequency VARCHAR, first_published VARCHAR) | SELECT frequency FROM table_name_67 WHERE first_published = "april 27, 2010" |
Write a SQL query that answers the following question: What was the type of the magazine that was named dengeki game appli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (magazine_type VARCHAR, title VARCHAR) | SELECT magazine_type FROM table_name_32 WHERE title = "dengeki game appli" |
Write a SQL query that answers the following question: What is the name of the video game magazine that was issued bimonthly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (title VARCHAR, magazine_type VARCHAR, frequency VARCHAR) | SELECT title FROM table_name_36 WHERE magazine_type = "video game" AND frequency = "bimonthly" |
Write a SQL query that answers the following question: What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (parent_magazine VARCHAR, title VARCHAR, frequency VARCHAR, magazine_type VARCHAR) | SELECT parent_magazine FROM table_name_6 WHERE frequency = "bimonthly" AND magazine_type = "manga" AND title = "dengeki moeoh" |
Write a SQL query that answers the following question: What was the parent magazine of the magazine that was first published on december 16, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (parent_magazine VARCHAR, first_published VARCHAR) | SELECT parent_magazine FROM table_name_88 WHERE first_published = "december 16, 2004" |
Write a SQL query that answers the following question: WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR) | SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10 |
Write a SQL query that answers the following question: WHAT POSITION HAS A 23 PICK? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_50 WHERE pick = 23 |
Write a SQL query that answers the following question: WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR) | SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = "rb" |
Write a SQL query that answers the following question: WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (overall VARCHAR, round VARCHAR, pick VARCHAR) | SELECT COUNT(overall) FROM table_name_73 WHERE round > 7 AND pick = 21 |
Write a SQL query that answers the following question: WHAT POSITION IS 273? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (position VARCHAR, overall VARCHAR) | SELECT position FROM table_name_26 WHERE overall = 273 |
Write a SQL query that answers the following question: What is the lowest Stls, when Rebs is greater than 8.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (stls INTEGER, rebs INTEGER) | SELECT MIN(stls) FROM table_name_27 WHERE rebs > 8.6 |
Write a SQL query that answers the following question: What is the sum of Blks, when Stls is 1, and when Rebs is greater than 8.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (blks INTEGER, stls VARCHAR, rebs VARCHAR) | SELECT SUM(blks) FROM table_name_49 WHERE stls = 1 AND rebs > 8.6 |
Write a SQL query that answers the following question: Which opponent played in game 3 before October 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (opponent VARCHAR, october VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_72 WHERE october < 18 AND game = 3 |
Write a SQL query that answers the following question: Which game was after October 24 and had a record of 6-2-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (game VARCHAR, october VARCHAR, record VARCHAR) | SELECT game FROM table_name_70 WHERE october > 24 AND record = "6-2-1" |
Write a SQL query that answers the following question: What was the lowest pick for the kicker after round 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (pick INTEGER, round VARCHAR, position VARCHAR) | SELECT MIN(pick) FROM table_name_23 WHERE round > 12 AND position = "kicker" |
Write a SQL query that answers the following question: How many picks had less than 11 rounds and a player of Charley Casey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (pick INTEGER, round VARCHAR, player VARCHAR) | SELECT SUM(pick) FROM table_name_29 WHERE round < 11 AND player = "charley casey" |
Write a SQL query that answers the following question: How many rounds had a position of kicker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (round INTEGER, position VARCHAR) | SELECT SUM(round) FROM table_name_13 WHERE position = "kicker" |
Write a SQL query that answers the following question: Which position had a pick larger than 80 and Walt Mainer as a player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR, player VARCHAR) | SELECT position FROM table_name_7 WHERE pick > 80 AND player = "walt mainer" |
Write a SQL query that answers the following question: What is the score of the match with deportes savio as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (score VARCHAR, away VARCHAR) | SELECT score FROM table_name_57 WHERE away = "deportes savio" |
Write a SQL query that answers the following question: What is the total attendance of the match with a 1:2 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (attendance VARCHAR, score VARCHAR) | SELECT COUNT(attendance) FROM table_name_92 WHERE score = "1:2" |
Write a SQL query that answers the following question: What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR) | SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 2008" |
Write a SQL query that answers the following question: What is the highest attendance of the match with a 2:0 score and vida as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (attendance INTEGER, score VARCHAR, away VARCHAR) | SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida" |
Write a SQL query that answers the following question: What is the score of the home team olimpia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_14 WHERE home = "olimpia" |
Write a SQL query that answers the following question: What is the score of the match with an attendance of 2248? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_66 WHERE attendance = 2248 |
Write a SQL query that answers the following question: Which Seats up for election have an Election result larger than 8, and Staying councillors of 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (seats_up_for_election INTEGER, election_result VARCHAR, staying_councillors VARCHAR) | SELECT MAX(seats_up_for_election) FROM table_name_96 WHERE election_result > 8 AND staying_councillors = 24 |
Write a SQL query that answers the following question: Which New council has an Election result larger than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (new_council INTEGER, election_result INTEGER) | SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24 |
Write a SQL query that answers the following question: Which Staying councillors have a New council of 7, and a Previous council larger than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR) | SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8 |
Write a SQL query that answers the following question: What was the record when they played in the Miami Arena, before game 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (record VARCHAR, game VARCHAR, location VARCHAR) | SELECT record FROM table_name_67 WHERE game < 24 AND location = "miami arena" |
Write a SQL query that answers the following question: Who was the opponent when they played after Game 26 and their record was 23-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (opponent VARCHAR, game VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_2 WHERE game > 26 AND record = "23-4" |
Write a SQL query that answers the following question: On what date did they play in Boston Garden with a record of 22-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, location VARCHAR, record VARCHAR) | SELECT date FROM table_name_24 WHERE location = "boston garden" AND record = "22-4" |
Write a SQL query that answers the following question: What was their record on Wed. Dec. 5, when they played in Boston Garden? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (record VARCHAR, location VARCHAR, date VARCHAR) | SELECT record FROM table_name_11 WHERE location = "boston garden" AND date = "wed. dec. 5" |
Write a SQL query that answers the following question: What place in Lon Hinkle in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_18 WHERE player = "lon hinkle" |
Write a SQL query that answers the following question: What country does Mark Hayes play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_33 WHERE player = "mark hayes" |
Write a SQL query that answers the following question: What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) | SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973" |
Write a SQL query that answers the following question: What is Player, when Total is greater than 288, and when Country is "South Africa"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (player VARCHAR, total VARCHAR, country VARCHAR) | SELECT player FROM table_name_54 WHERE total > 288 AND country = "south africa" |
Write a SQL query that answers the following question: What is Year(s) Won, when To Par is greater than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (year_s__won VARCHAR, to_par INTEGER) | SELECT year_s__won FROM table_name_24 WHERE to_par > 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.