instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What location was listed on 1977-11-23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (location VARCHAR, listed VARCHAR) | SELECT location FROM table_name_25 WHERE listed = "1977-11-23" |
Write a SQL query that answers the following question: What are the listings in the Valdez-cordova (census area) Borough? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (listed VARCHAR, borough VARCHAR) | SELECT listed FROM table_name_93 WHERE borough = "valdez-cordova (census area)" |
Write a SQL query that answers the following question: What is the name of the building listed on 1977-11-23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (name VARCHAR, listed VARCHAR) | SELECT name FROM table_name_81 WHERE listed = "1977-11-23" |
Write a SQL query that answers the following question: What was the Maple Leafs' record on game 52? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_51 WHERE game = 52 |
Write a SQL query that answers the following question: What was Germany's lowest sales when the profit was smaller than 6.7 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (sales__billion_ INTEGER, headquarters VARCHAR, profits__billion_$_ VARCHAR) | SELECT MIN(sales__billion_) AS $_ FROM table_name_43 WHERE headquarters = "germany" AND profits__billion_$_ < 6.7 |
Write a SQL query that answers the following question: For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (industry VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) | SELECT industry FROM table_name_83 WHERE profits__billion_$_ < 14.2 AND assets__billion_$_ > 2 OFFSET 467.9 |
Write a SQL query that answers the following question: What is the average rank for USA when the market value is 407.2 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (rank INTEGER, headquarters VARCHAR, market_value__billion_$_ VARCHAR) | SELECT AVG(rank) FROM table_name_31 WHERE headquarters = "usa" AND market_value__billion_$_ > 407.2 |
Write a SQL query that answers the following question: What was date was the attendance larger than 875 against Platense? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR, home VARCHAR) | SELECT date FROM table_name_26 WHERE attendance > 875 AND home = "platense" |
Write a SQL query that answers the following question: Who was the home team with 3305 in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (home VARCHAR, attendance VARCHAR) | SELECT home FROM table_name_27 WHERE attendance = 3305 |
Write a SQL query that answers the following question: What was the highest attendance for the Hispano team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR) | SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano" |
Write a SQL query that answers the following question: What country has the player Tiger Woods? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_60 WHERE player = "tiger woods" |
Write a SQL query that answers the following question: What is the Money ($) player Loren Roberts has made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (money___ INTEGER, player VARCHAR) | SELECT MAX(money___) AS $__ FROM table_name_93 WHERE player = "loren roberts" |
Write a SQL query that answers the following question: What is the Pinnacle height for Metcalf, Georgia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (pinnacle_height VARCHAR, town VARCHAR) | SELECT pinnacle_height FROM table_name_17 WHERE town = "metcalf, georgia" |
Write a SQL query that answers the following question: Who placed t7 with a score of 70-71=141? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_16 WHERE place = "t7" AND score = 70 - 71 = 141 |
Write a SQL query that answers the following question: What country scored 71-69=140? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_30 WHERE score = 71 - 69 = 140 |
Write a SQL query that answers the following question: What nation had more than 3 bronze, 0 gold, and a total of 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9 |
Write a SQL query that answers the following question: What's the earliest year the new york giants lost at new meadowlands stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (year INTEGER, loser VARCHAR, location VARCHAR) | SELECT MIN(year) FROM table_name_31 WHERE loser = "new york giants" AND location = "new meadowlands stadium" |
Write a SQL query that answers the following question: How many years did the new york giants lose at metlife stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (year VARCHAR, location VARCHAR, loser VARCHAR) | SELECT COUNT(year) FROM table_name_15 WHERE location = "metlife stadium" AND loser = "new york giants" |
Write a SQL query that answers the following question: How many years did the new york giants win with a result of 15-7 at lincoln financial field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (year VARCHAR, result VARCHAR, location VARCHAR, winner VARCHAR) | SELECT COUNT(year) FROM table_name_53 WHERE location = "lincoln financial field" AND winner = "new york giants" AND result = "15-7" |
Write a SQL query that answers the following question: Who lost when the philadelphia eagles won at lincoln financial field on september 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) | SELECT loser FROM table_name_24 WHERE location = "lincoln financial field" AND winner = "philadelphia eagles" AND date = "september 30" |
Write a SQL query that answers the following question: What date did the new york giants win after 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (date VARCHAR, winner VARCHAR, year VARCHAR) | SELECT date FROM table_name_96 WHERE winner = "new york giants" AND year > 2011 |
Write a SQL query that answers the following question: What is Official Name, when Census Ranking is 769 of 5,008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (official_name VARCHAR, census_ranking VARCHAR) | SELECT official_name FROM table_name_70 WHERE census_ranking = "769 of 5,008" |
Write a SQL query that answers the following question: What is Status, when Area km 2 is greater than 303.73? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (status VARCHAR, area_km_2 INTEGER) | SELECT status FROM table_name_93 WHERE area_km_2 > 303.73 |
Write a SQL query that answers the following question: What is Area km 2, when Population is greater than 1,395? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER) | SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395 |
Write a SQL query that answers the following question: What is the Place of the Player from Zimbabwe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_75 WHERE country = "zimbabwe" |
Write a SQL query that answers the following question: What is the Place of the Player with a Score of 73-68-71=212? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_16 WHERE score = 73 - 68 - 71 = 212 |
Write a SQL query that answers the following question: What is the Place of the Player with a +3 To par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR) | SELECT place FROM table_name_19 WHERE to_par = "+3" |
Write a SQL query that answers the following question: What is the Score of Stewart Cink with a To par of +4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_50 WHERE to_par = "+4" AND player = "stewart cink" |
Write a SQL query that answers the following question: What T10 Place Player has a Score of 74-73-68=215? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_96 WHERE place = "t10" AND score = 74 - 73 - 68 = 215 |
Write a SQL query that answers the following question: What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pick INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) | SELECT MAX(pick) FROM table_name_16 WHERE position = "wr" AND college = "michigan" AND overall > 255 |
Write a SQL query that answers the following question: What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (round INTEGER, pick VARCHAR, position VARCHAR, name VARCHAR) | SELECT SUM(round) FROM table_name_95 WHERE position = "db" AND name = "jeff welch" AND pick < 21 |
Write a SQL query that answers the following question: What is Player, when Year(s) Won is 1978 , 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_41 WHERE year_s__won = "1978 , 1985" |
Write a SQL query that answers the following question: WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (pick INTEGER, college VARCHAR, round VARCHAR) | SELECT AVG(pick) FROM table_name_49 WHERE college = "purdue" AND round < 5 |
Write a SQL query that answers the following question: WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR) | SELECT MAX(pick) FROM table_name_11 WHERE position = "te" AND round < 2 |
Write a SQL query that answers the following question: WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (overall INTEGER, name VARCHAR) | SELECT AVG(overall) FROM table_name_56 WHERE name = "mark fischer" |
Write a SQL query that answers the following question: WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (pick INTEGER, name VARCHAR, round VARCHAR) | SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 7 |
Write a SQL query that answers the following question: WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR, overall VARCHAR) | SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191 |
Write a SQL query that answers the following question: Who is the player with a score of 68-71=139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139 |
Write a SQL query that answers the following question: What is the to par of player jerry pate, who has a 70-69=139 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_66 WHERE score = 70 - 69 = 139 AND player = "jerry pate" |
Write a SQL query that answers the following question: What is the to par of the player with a t9 place and a score of 72-67=139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (to_par VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_86 WHERE place = "t9" AND score = 72 - 67 = 139 |
Write a SQL query that answers the following question: What is the place of the player witha 69-69=138 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_45 WHERE score = 69 - 69 = 138 |
Write a SQL query that answers the following question: What team played the Jazz at game 68? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (team VARCHAR, game VARCHAR) | SELECT team FROM table_name_50 WHERE game = 68 |
Write a SQL query that answers the following question: What date did mehmet okur (24) have the most points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, high_points VARCHAR) | SELECT date FROM table_name_14 WHERE high_points = "mehmet okur (24)" |
Write a SQL query that answers the following question: What week had attendance of 64,146? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (week INTEGER, attendance VARCHAR) | SELECT MIN(week) FROM table_name_3 WHERE attendance = 64 OFFSET 146 |
Write a SQL query that answers the following question: What is the attendance of week 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR) | SELECT MIN(attendance) FROM table_name_63 WHERE week = 12 |
Write a SQL query that answers the following question: What is the attendance from November 3, 1974? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_35 WHERE date = "november 3, 1974" |
Write a SQL query that answers the following question: What is the attendance of week 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (attendance VARCHAR, week VARCHAR) | SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8 |
Write a SQL query that answers the following question: Who was the loser against the New York Giants in 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (loser VARCHAR, year VARCHAR, winner VARCHAR) | SELECT loser FROM table_name_43 WHERE year = 2001 AND winner = "new york giants" |
Write a SQL query that answers the following question: What was the location with the 24-21 result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (location VARCHAR, result VARCHAR) | SELECT location FROM table_name_54 WHERE result = "24-21" |
Write a SQL query that answers the following question: Who was the winner with the 24-21 result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (winner VARCHAR, result VARCHAR) | SELECT winner FROM table_name_60 WHERE result = "24-21" |
Write a SQL query that answers the following question: What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (to_par INTEGER, place VARCHAR, player VARCHAR) | SELECT AVG(to_par) FROM table_name_33 WHERE place = "t3" AND player = "ben hogan" |
Write a SQL query that answers the following question: What is the average To Par, when Player is "Julius Boros"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (to_par INTEGER, player VARCHAR) | SELECT AVG(to_par) FROM table_name_22 WHERE player = "julius boros" |
Write a SQL query that answers the following question: What is the highest To Par, when Score is "72-73=145"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (to_par INTEGER, score VARCHAR) | SELECT MAX(to_par) FROM table_name_35 WHERE score = 72 - 73 = 145 |
Write a SQL query that answers the following question: What is Score, when Place is "T1"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR) | SELECT score FROM table_name_15 WHERE place = "t1" |
Write a SQL query that answers the following question: What is Place, when To Par is "5", and when Score is "72-73=145"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (place VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT place FROM table_name_30 WHERE to_par = 5 AND score = 72 - 73 = 145 |
Write a SQL query that answers the following question: What is the highest pick # after round 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (pick__number INTEGER, round INTEGER) | SELECT MAX(pick__number) FROM table_name_33 WHERE round > 11 |
Write a SQL query that answers the following question: Which college has a pick # 84 in round 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (college VARCHAR, round VARCHAR, pick__number VARCHAR) | SELECT college FROM table_name_47 WHERE round = 3 AND pick__number = 84 |
Write a SQL query that answers the following question: What was the pick # for round 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (pick__number VARCHAR, round VARCHAR) | SELECT pick__number FROM table_name_68 WHERE round = 11 |
Write a SQL query that answers the following question: Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR) | SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = "kenny fells" AND overall > 297 |
Write a SQL query that answers the following question: Which Position has a Round larger than 7, and a Name of wayne asberry? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position VARCHAR, round VARCHAR, name VARCHAR) | SELECT position FROM table_name_92 WHERE round > 7 AND name = "wayne asberry" |
Write a SQL query that answers the following question: Which Overall has a Name of markus koch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (overall INTEGER, name VARCHAR) | SELECT SUM(overall) FROM table_name_39 WHERE name = "markus koch" |
Write a SQL query that answers the following question: Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (position VARCHAR, overall VARCHAR, round VARCHAR, pick VARCHAR) | SELECT position FROM table_name_17 WHERE round < 8 AND pick = 20 AND overall < 186 |
Write a SQL query that answers the following question: What is the score when Fulham is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_55 WHERE away_team = "fulham" |
Write a SQL query that answers the following question: Which away team has a tie number of 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_62 WHERE tie_no = "14" |
Write a SQL query that answers the following question: What is the tie number in the game on 5 January 1986 where Exeter City is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_26 WHERE date = "5 january 1986" AND away_team = "exeter city" |
Write a SQL query that answers the following question: What is the total average for McCain% of 55.0% and Obama# higher than 3,487? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (total INTEGER, mccain_percentage VARCHAR, obama_number VARCHAR) | SELECT AVG(total) FROM table_name_52 WHERE mccain_percentage = "55.0%" AND obama_number > 3 OFFSET 487 |
Write a SQL query that answers the following question: what is 2010 when 2009 is w and 2007 is qf? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Id VARCHAR) | SELECT 2010 FROM table_name_8 WHERE 2009 = "w" AND 2007 = "qf" |
Write a SQL query that answers the following question: what is 2000 when 2012 is 4r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (Id VARCHAR) | SELECT 2000 FROM table_name_4 WHERE 2012 = "4r" |
Write a SQL query that answers the following question: what is 2000 when 2012 is w and 2011 is 4r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (Id VARCHAR) | SELECT 2000 FROM table_name_54 WHERE 2012 = "w" AND 2011 = "4r" |
Write a SQL query that answers the following question: what is 2010 when 2006 is 3r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (Id VARCHAR) | SELECT 2010 FROM table_name_24 WHERE 2006 = "3r" |
Write a SQL query that answers the following question: what is 2013 when 2001 is qf and 2011 is 4r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (Id VARCHAR) | SELECT 2013 FROM table_name_11 WHERE 2001 = "qf" AND 2011 = "4r" |
Write a SQL query that answers the following question: What is the average round for the record of 1-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (round INTEGER, record VARCHAR) | SELECT AVG(round) FROM table_name_25 WHERE record = "1-1" |
Write a SQL query that answers the following question: What method had a record 12-2-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_87 WHERE record = "12-2-3" |
Write a SQL query that answers the following question: What Hanyu Pinyin is in the Jinning Township? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (hanyu_pinyin VARCHAR, name VARCHAR) | SELECT hanyu_pinyin FROM table_name_66 WHERE name = "jinning township" |
Write a SQL query that answers the following question: How many times did Sham Kwok Fai score in the game that was played on 22 February 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR) | SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006" |
Write a SQL query that answers the following question: The home team york city has what score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_44 WHERE home_team = "york city" |
Write a SQL query that answers the following question: What is the total number of Week(s), when Attendance is 61,603? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (week VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_23 WHERE attendance = "61,603" |
Write a SQL query that answers the following question: What is Opponent, when Attendance is 62,170? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_52 WHERE attendance = "62,170" |
Write a SQL query that answers the following question: HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (points INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MIN(points) FROM table_name_43 WHERE driver = "alex sperafico" AND grid > 17 |
Write a SQL query that answers the following question: WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR) | SELECT MIN(laps) FROM table_name_22 WHERE points > 5 AND team = "forsythe racing" AND grid = 5 |
Write a SQL query that answers the following question: WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_2 WHERE competition = "1978 world cup qualification" |
Write a SQL query that answers the following question: What is the average pick number for jerry hackenbruck who was overall pick less than 282? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (pick INTEGER, name VARCHAR, overall VARCHAR) | SELECT AVG(pick) FROM table_name_78 WHERE name = "jerry hackenbruck" AND overall < 282 |
Write a SQL query that answers the following question: What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR) | SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147 |
Write a SQL query that answers the following question: What position did the player have who was from the college of california? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_55 WHERE college = "california" |
Write a SQL query that answers the following question: What college did jerry hackenbruck come from who had an overall pick less than 344? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (college VARCHAR, overall VARCHAR, name VARCHAR) | SELECT college FROM table_name_60 WHERE overall < 344 AND name = "jerry hackenbruck" |
Write a SQL query that answers the following question: What team was the opponent on 03/18/08? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_41 WHERE date = "03/18/08" |
Write a SQL query that answers the following question: What is the site where the game was held in the city of Delaware? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (site VARCHAR, city VARCHAR) | SELECT site FROM table_name_39 WHERE city = "delaware" |
Write a SQL query that answers the following question: What city was the game held in when the opponent was Towson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (city VARCHAR, opponent VARCHAR) | SELECT city FROM table_name_93 WHERE opponent = "towson" |
Write a SQL query that answers the following question: What team was opponen in baltimore, at 2:00pm, on 4/06/08? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR, city VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_11 WHERE city = "baltimore" AND time = "2:00pm" AND date = "4/06/08" |
Write a SQL query that answers the following question: What date was the game held at UMBC Field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (date VARCHAR, site VARCHAR) | SELECT date FROM table_name_47 WHERE site = "umbc field" |
Write a SQL query that answers the following question: What date was the game held in Towson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (date VARCHAR, city VARCHAR) | SELECT date FROM table_name_76 WHERE city = "towson" |
Write a SQL query that answers the following question: Which season premiered on 29 October 1990 and had more than 6 episodes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (series INTEGER, premiere VARCHAR, episodes VARCHAR) | SELECT MAX(series) FROM table_name_94 WHERE premiere = "29 october 1990" AND episodes > 6 |
Write a SQL query that answers the following question: WHAT DATE HAD A SCORE OF 71-64? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_46 WHERE score = "71-64" |
Write a SQL query that answers the following question: WHAT SCORE WAS ON SEPTEMBER 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_50 WHERE date = "september 21" |
Write a SQL query that answers the following question: WHAT SCORE HAD A RECORD OF 1-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_42 WHERE record = "1-1" |
Write a SQL query that answers the following question: WHAT OPPONENT HAD A DATE OF SEPTEMBER 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_17 WHERE date = "september 28" |
Write a SQL query that answers the following question: WHAT SCORE HAD A LOSS AND RECORD OF 1-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR) | SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1" |
Write a SQL query that answers the following question: Who is the alternate for Andy Brown, and Nick Grady? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR) | SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady" |
Write a SQL query that answers the following question: Which captain has Gintare Karpaviciute as an alternate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR) | SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" |
Write a SQL query that answers the following question: Which coach works with Robert Harvey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (coach VARCHAR, captain VARCHAR) | SELECT coach FROM table_name_1 WHERE captain = "robert harvey" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.