instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What's the lowest Overall average that has a College of Arkansas, and a Round larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_51 WHERE college = "arkansas" AND round > 3
Write a SQL query that answers the following question: Which highest Overall has a Pick # of 4, and a Round larger than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number = 4 AND round > 7
Write a SQL query that answers the following question: What's the overall average that has a round less than 7, and a Pick # of 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT AVG(overall) FROM table_name_63 WHERE round < 7 AND pick__number = 4
Write a SQL query that answers the following question: Who is the no. 4 team that has the no. 5 player Susana Telmo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (no4 VARCHAR, no5 VARCHAR)
SELECT no4 FROM table_name_46 WHERE no5 = "susana telmo"
Write a SQL query that answers the following question: Who is the no. 9 team that has a no. 6 player of paulo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (no9 VARCHAR, no6 VARCHAR)
SELECT no9 FROM table_name_85 WHERE no6 = "paulo"
Write a SQL query that answers the following question: Who this the no. 8 team that has a no. 9 player, Telmo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (no8 VARCHAR, no9 VARCHAR)
SELECT no8 FROM table_name_72 WHERE no9 = "telmo"
Write a SQL query that answers the following question: Name the nickname with age of 4.9
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (nickname VARCHAR, age___ma__ VARCHAR)
SELECT nickname FROM table_name_73 WHERE age___ma__ = "4.9"
Write a SQL query that answers the following question: Name the island with age ma of 1.0
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (island VARCHAR, age___ma__ VARCHAR)
SELECT island FROM table_name_73 WHERE age___ma__ = "1.0"
Write a SQL query that answers the following question: Name the elevation of the gathering place
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (elevation VARCHAR, nickname VARCHAR)
SELECT elevation FROM table_name_79 WHERE nickname = "the gathering place"
Write a SQL query that answers the following question: Game site of kingdome, and a Result of w 24-6 has what record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (record VARCHAR, game_site VARCHAR, result VARCHAR)
SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-6"
Write a SQL query that answers the following question: Date of september 25, 1983 is what game site?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_68 WHERE date = "september 25, 1983"
Write a SQL query that answers the following question: What stadium held the game that had a score of 6–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (stadium VARCHAR, score VARCHAR)
SELECT stadium FROM table_name_71 WHERE score = "6–3"
Write a SQL query that answers the following question: What was the date of the game that had a loss of Reed (0–2)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_29 WHERE loss = "reed (0–2)"
Write a SQL query that answers the following question: On which Date was there a record of 11-8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_37 WHERE record = "11-8"
Write a SQL query that answers the following question: How many podiums associated with 1 vuelta and over 7 tours?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (total VARCHAR, vuelta VARCHAR, tour VARCHAR)
SELECT COUNT(total) FROM table_name_1 WHERE vuelta = 1 AND tour > 7
Write a SQL query that answers the following question: What is the total for miguel induráin with a Vuelta larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (total INTEGER, name VARCHAR, vuelta VARCHAR)
SELECT MIN(total) FROM table_name_33 WHERE name = "miguel induráin" AND vuelta > 1
Write a SQL query that answers the following question: What is the grid associated with a Time/Retired of + 1 lap, and under 7 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (grid INTEGER, time_retired VARCHAR, points VARCHAR)
SELECT MIN(grid) FROM table_name_99 WHERE time_retired = "+ 1 lap" AND points < 7
Write a SQL query that answers the following question: What grid is associated with 67 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (grid VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_45 WHERE laps = 67
Write a SQL query that answers the following question: Name the nation for 8 june 1983 for marlies gohr
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (nation VARCHAR, date VARCHAR, athlete VARCHAR)
SELECT nation FROM table_name_27 WHERE date = "8 june 1983" AND athlete = "marlies gohr"
Write a SQL query that answers the following question: Name the athlete for bulgaria with rank less than 22
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (athlete VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = "bulgaria"
Write a SQL query that answers the following question: What engine was used by Ram Penthouse Rizla Racing in 1978?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (engine VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = "ram penthouse rizla racing"
Write a SQL query that answers the following question: Which College has a Year smaller than 1962, and a Position of rb?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (college VARCHAR, year VARCHAR, position VARCHAR)
SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb"
Write a SQL query that answers the following question: Which Year has a College of nebraska, and a Pick of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year VARCHAR, college VARCHAR, pick VARCHAR)
SELECT year FROM table_name_96 WHERE college = "nebraska" AND pick = "2"
Write a SQL query that answers the following question: Which Pick has a Year larger than 1983, and a Player name of brian jozwiak?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (pick VARCHAR, year VARCHAR, player_name VARCHAR)
SELECT pick FROM table_name_56 WHERE year > 1983 AND player_name = "brian jozwiak"
Write a SQL query that answers the following question: Which lowest year has a Position of rb, and a College of louisiana state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (year INTEGER, position VARCHAR, college VARCHAR)
SELECT MIN(year) FROM table_name_27 WHERE position = "rb" AND college = "louisiana state"
Write a SQL query that answers the following question: How many years have a Player name of ronnie bull?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (year INTEGER, player_name VARCHAR)
SELECT SUM(year) FROM table_name_75 WHERE player_name = "ronnie bull"
Write a SQL query that answers the following question: Who was the recipient of an award of £4,203?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (recipient VARCHAR, award VARCHAR)
SELECT recipient FROM table_name_22 WHERE award = "£4,203"
Write a SQL query that answers the following question: Who directed the film that received an award of £6,245?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (director_s_ VARCHAR, award VARCHAR)
SELECT director_s_ FROM table_name_10 WHERE award = "£6,245"
Write a SQL query that answers the following question: Who directed the film that Avie Luthra received an award for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (director_s_ VARCHAR, recipient VARCHAR)
SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"
Write a SQL query that answers the following question: Who directed the film Antonio's Breakfast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (director_s_ VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_44 WHERE film = "antonio's breakfast"
Write a SQL query that answers the following question: Who was the director of the film that Sister Films received an award for on 2/3/05?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (director_s_ VARCHAR, date VARCHAR, recipient VARCHAR)
SELECT director_s_ FROM table_name_48 WHERE date = "2/3/05" AND recipient = "sister films"
Write a SQL query that answers the following question: What is the score of the game on June 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_75 WHERE date = "june 9"
Write a SQL query that answers the following question: What is the usual attendance for july 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE date = "july 2"
Write a SQL query that answers the following question: What was the value for deleted for CERCLIS ID of il0210090049?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (deleted VARCHAR, cerclis_id VARCHAR)
SELECT deleted FROM table_name_53 WHERE cerclis_id = "il0210090049"
Write a SQL query that answers the following question: What is the date construction is completed in Jo Daviess county?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (construction_completed VARCHAR, county VARCHAR)
SELECT construction_completed FROM table_name_70 WHERE county = "jo daviess"
Write a SQL query that answers the following question: Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (author VARCHAR, release_air_date VARCHAR, role VARCHAR, year VARCHAR)
SELECT author FROM table_name_62 WHERE role = "narrator" AND year > 2009 AND release_air_date = "7 october 2010"
Write a SQL query that answers the following question: Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)
SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008"
Write a SQL query that answers the following question: Radio Station/Production Company that has a Role of interviewee & monologues is what radio station?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (radio_station_production_company VARCHAR, role VARCHAR)
SELECT radio_station_production_company FROM table_name_73 WHERE role = "interviewee & monologues"
Write a SQL query that answers the following question: What was the position of the Racing Organisation Course team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (pos VARCHAR, team VARCHAR)
SELECT pos FROM table_name_79 WHERE team = "racing organisation course"
Write a SQL query that answers the following question: Who were the co-drivers for the Racing Organisation Course team in years before 2011, who had a position of DNF?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (co_drivers VARCHAR, team VARCHAR, pos VARCHAR, year VARCHAR)
SELECT co_drivers FROM table_name_92 WHERE pos = "dnf" AND year < 2011 AND team = "racing organisation course"
Write a SQL query that answers the following question: Who were the co-drivers in years after 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (co_drivers VARCHAR, year INTEGER)
SELECT co_drivers FROM table_name_49 WHERE year > 2010
Write a SQL query that answers the following question: What is the date made that has an associated fleet number of 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (date_made VARCHAR, fleet_numbers VARCHAR)
SELECT date_made FROM table_name_99 WHERE fleet_numbers = "4"
Write a SQL query that answers the following question: What is the withdrawal date associated with a date made of 1904?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date_withdrawn VARCHAR, date_made VARCHAR)
SELECT date_withdrawn FROM table_name_92 WHERE date_made = "1904"
Write a SQL query that answers the following question: Name the game site with result of l 7-38
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (game_site VARCHAR, result VARCHAR)
SELECT game_site FROM table_name_36 WHERE result = "l 7-38"
Write a SQL query that answers the following question: Name the result for arrowhead stadium
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (result VARCHAR, game_site VARCHAR)
SELECT result FROM table_name_45 WHERE game_site = "arrowhead stadium"
Write a SQL query that answers the following question: Name the least attendance for opponent of new orleans saints and week more than 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = "new orleans saints"
Write a SQL query that answers the following question: What amount of earnings corresponds with a Top 10s rank of 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (earnings___$__ VARCHAR, top_10s VARCHAR)
SELECT earnings___$__ FROM table_name_7 WHERE top_10s = 23
Write a SQL query that answers the following question: What 2012 amount of earnings corresponds with less than 28 tournaments played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (earnings___$__ VARCHAR, tournaments_played VARCHAR, year VARCHAR)
SELECT earnings___$__ FROM table_name_59 WHERE tournaments_played < 28 AND year = "2012"
Write a SQL query that answers the following question: Tell me the year with Laps less than 197 and start of 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year VARCHAR, laps VARCHAR, start VARCHAR)
SELECT year FROM table_name_96 WHERE laps < 197 AND start = "2"
Write a SQL query that answers the following question: Name the qual with start of totals
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (qual VARCHAR, start VARCHAR)
SELECT qual FROM table_name_61 WHERE start = "totals"
Write a SQL query that answers the following question: Name the total number of laps with rank of 8
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (laps VARCHAR, rank VARCHAR)
SELECT COUNT(laps) FROM table_name_90 WHERE rank = "8"
Write a SQL query that answers the following question: Name the start with Laps of 199 with qual of 224.838
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (start VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT start FROM table_name_13 WHERE laps = 199 AND qual = "224.838"
Write a SQL query that answers the following question: On what date was the score 1-2 at Athens Olympic Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, score VARCHAR, venue VARCHAR)
SELECT date FROM table_name_37 WHERE score = "1-2" AND venue = "athens olympic stadium"
Write a SQL query that answers the following question: What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (match_report VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT match_report FROM table_name_89 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND date = "november 17, 2007"
Write a SQL query that answers the following question: What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-2"
Write a SQL query that answers the following question: On what date was the score 2-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_38 WHERE score = "2-1"
Write a SQL query that answers the following question: On what date was the Competition of Friendly held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_70 WHERE competition = "friendly"
Write a SQL query that answers the following question: What was the score at Pankritio Stadium on June 6, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (score VARCHAR, venue VARCHAR, date VARCHAR)
SELECT score FROM table_name_81 WHERE venue = "pankritio stadium" AND date = "june 6, 2007"
Write a SQL query that answers the following question: On what date was there a draw at Sydney Cricket Ground?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_83 WHERE result = "draw" AND venue = "sydney cricket ground"
Write a SQL query that answers the following question: In what venue was the result a draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_20 WHERE result = "draw"
Write a SQL query that answers the following question: On what date was the result Wi by 1 run?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_24 WHERE result = "wi by 1 run"
Write a SQL query that answers the following question: What venue had a draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_77 WHERE result = "draw"
Write a SQL query that answers the following question: What is the total number of points for entrants with a Jordan 192 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (pts INTEGER, chassis VARCHAR)
SELECT SUM(pts) FROM table_name_98 WHERE chassis = "jordan 192"
Write a SQL query that answers the following question: Which entrant had a chassis of March CG891?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (entrant VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_20 WHERE chassis = "march cg891"
Write a SQL query that answers the following question: What is the lowest number of points for an entrant with a Jordan 192 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (pts INTEGER, chassis VARCHAR)
SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192"
Write a SQL query that answers the following question: What Opponent has the Attendance of 14,029?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_77 WHERE attendance = "14,029"
Write a SQL query that answers the following question: Can you tell me the Attendance that has the Date of april 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_63 WHERE date = "april 12"
Write a SQL query that answers the following question: Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235"
Write a SQL query that answers the following question: Can you tell me the Score that has the Attendance of 4,567?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_94 WHERE attendance = "4,567"
Write a SQL query that answers the following question: What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR)
SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio"
Write a SQL query that answers the following question: Name the engine with entrant of larrousse f1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1"
Write a SQL query that answers the following question: Name the average yeara for engine of renault v10 with points more than 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE engine = "renault v10" AND points > 4
Write a SQL query that answers the following question: Name the sumof points for year less than 1994 and chassis of lola lc89b
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b"
Write a SQL query that answers the following question: Name the entrant for year more than 1991 and chassis of lotus 109
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_92 WHERE year > 1991 AND chassis = "lotus 109"
Write a SQL query that answers the following question: Name the sum of points for 1991
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (points INTEGER, year VARCHAR)
SELECT SUM(points) FROM table_name_79 WHERE year = 1991
Write a SQL query that answers the following question: Which type has turin to monza as a course?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (type VARCHAR, course VARCHAR)
SELECT type FROM table_name_85 WHERE course = "turin to monza"
Write a SQL query that answers the following question: Which course has km (mi) as a type?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR)
SELECT course FROM table_name_15 WHERE type = "km (mi)"
Write a SQL query that answers the following question: What winner has the sanremo to cuneo as the course?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR)
SELECT winner FROM table_name_51 WHERE course = "sanremo to cuneo"
Write a SQL query that answers the following question: Name the distance for stage of 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (distance VARCHAR, stage VARCHAR)
SELECT distance FROM table_name_5 WHERE stage = "2"
Write a SQL query that answers the following question: Name the route with winner of sébastien rosseler
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (route VARCHAR, winner VARCHAR)
SELECT route FROM table_name_27 WHERE winner = "sébastien rosseler"
Write a SQL query that answers the following question: Name the route for 170.8km distance
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR)
SELECT route FROM table_name_14 WHERE distance = "170.8km"
Write a SQL query that answers the following question: Name the date for luciano pagliarini
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_68 WHERE winner = "luciano pagliarini"
Write a SQL query that answers the following question: Name the date for mark cavendish
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_10 WHERE winner = "mark cavendish"
Write a SQL query that answers the following question: Name the laps for qual of 144.665
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (laps INTEGER, qual VARCHAR)
SELECT SUM(laps) FROM table_name_94 WHERE qual = "144.665"
Write a SQL query that answers the following question: Name the total number of Laps for year of 1961
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR)
SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961"
Write a SQL query that answers the following question: Name the finish for start of 28
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_76 WHERE start = "28"
Write a SQL query that answers the following question: Name the laps for rank of 14 and start of 16
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (laps VARCHAR, rank VARCHAR, start VARCHAR)
SELECT laps FROM table_name_67 WHERE rank = "14" AND start = "16"
Write a SQL query that answers the following question: Name the qual for year of 1960
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_25 WHERE year = "1960"
Write a SQL query that answers the following question: What is the name of the player in position lb and an overall of 128?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, overall VARCHAR)
SELECT player FROM table_name_65 WHERE position = "lb" AND overall = 128
Write a SQL query that answers the following question: What is the total overall when Kenny Lewis is the player in a round after 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (overall VARCHAR, player VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_98 WHERE player = "kenny lewis" AND round > 5
Write a SQL query that answers the following question: What is the college when the over is larger than 15 in round 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR)
SELECT college FROM table_name_41 WHERE overall > 15 AND round = 7
Write a SQL query that answers the following question: What is the position with an overall less than 128 for Brigham Young college?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (position VARCHAR, overall VARCHAR, college VARCHAR)
SELECT position FROM table_name_87 WHERE overall < 128 AND college = "brigham young"
Write a SQL query that answers the following question: How many attended the game on 4 February 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003"
Write a SQL query that answers the following question: yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (auckland VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT auckland FROM table_name_74 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND gold_coast = "yes"
Write a SQL query that answers the following question: yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes"
Write a SQL query that answers the following question: yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR)
SELECT gold_coast FROM table_name_2 WHERE melbourne = "yes" AND adelaide = "yes" AND auckland = "yes"
Write a SQL query that answers the following question: yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT melbourne FROM table_name_92 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "no"
Write a SQL query that answers the following question: yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (sydney VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR)
SELECT sydney FROM table_name_43 WHERE melbourne = "yes" AND perth = "no" AND auckland = "no" AND gold_coast = "no"
Write a SQL query that answers the following question: yes or no for the melbourne that has no for adelaide, no for gold coast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR)
SELECT melbourne FROM table_name_90 WHERE adelaide = "yes" AND gold_coast = "no"
Write a SQL query that answers the following question: How many losses did the team with 0 wins and more than 72 runs allowed have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR)
SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72