instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Partnering of franco ferreiro had what tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (tournament VARCHAR, partnering VARCHAR)
SELECT tournament FROM table_name_20 WHERE partnering = "franco ferreiro"
Write a SQL query that answers the following question: Date of april 10, 2006 had what surface?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_51 WHERE date = "april 10, 2006"
Write a SQL query that answers the following question: Surface of clay, and a Partnering of júlio silva had what score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (score VARCHAR, surface VARCHAR, partnering VARCHAR)
SELECT score FROM table_name_69 WHERE surface = "clay" AND partnering = "júlio silva"
Write a SQL query that answers the following question: Date of november 3, 2008 had what score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_15 WHERE date = "november 3, 2008"
Write a SQL query that answers the following question: Which Points have a Name of denis kornilov?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (points INTEGER, name VARCHAR)
SELECT AVG(points) FROM table_name_69 WHERE name = "denis kornilov"
Write a SQL query that answers the following question: Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)
SELECT SUM(rank) FROM table_name_29 WHERE name = "thomas morgenstern" AND points > 288.7
Write a SQL query that answers the following question: What is the overall number for Louisiana Tech college, and a pick more than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT SUM(overall) FROM table_name_59 WHERE college = "louisiana tech" AND pick__number > 10
Write a SQL query that answers the following question: What was the pick number for Deji Karim, in a round lower than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (pick__number INTEGER, name VARCHAR, round VARCHAR)
SELECT AVG(pick__number) FROM table_name_66 WHERE name = "deji karim" AND round < 6
Write a SQL query that answers the following question: Which college had an overall number more than 180?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (college VARCHAR, overall INTEGER)
SELECT college FROM table_name_39 WHERE overall > 180
Write a SQL query that answers the following question: What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (overall INTEGER, round VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT SUM(overall) FROM table_name_99 WHERE pick__number = 10 AND college = "louisiana tech" AND round > 3
Write a SQL query that answers the following question: What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_22 WHERE school_club_team = "alabama" AND round < 9
Write a SQL query that answers the following question: What's the sum of the Pick that has the Player of Robert Ingalls?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (pick VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls"
Write a SQL query that answers the following question: What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_69 WHERE position = "tackle" AND player = "woody adams" AND round > 22
Write a SQL query that answers the following question: What Position has a Round that's larger than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (position VARCHAR, round INTEGER)
SELECT position FROM table_name_86 WHERE round > 21
Write a SQL query that answers the following question: What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (europe INTEGER, position VARCHAR, others VARCHAR, league VARCHAR)
SELECT SUM(europe) FROM table_name_72 WHERE others = 0 AND league < 328 AND position = "mf"
Write a SQL query that answers the following question: Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)
SELECT investment_income FROM table_name_39 WHERE occupational_pensions = "7%" AND working_tax_credit = "2%" AND other_social_security_benefits = "6%"
Write a SQL query that answers the following question: Region of eastern england has what investment income?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (investment_income VARCHAR, region VARCHAR)
SELECT investment_income FROM table_name_30 WHERE region = "eastern england"
Write a SQL query that answers the following question: State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)
SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "2%"
Write a SQL query that answers the following question: Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR)
SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = "2%" AND state_pensions = "7%" AND working_tax_credit = "2%" AND employment___salaries_ & _wages_ = "66%"
Write a SQL query that answers the following question: Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (self_employed VARCHAR, investment_income VARCHAR, other_income_sources VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR)
SELECT self_employed FROM table_name_15 WHERE investment_income = "2%" AND other_income_sources = "3%" AND employment___salaries_ & _wages_ = "71%"
Write a SQL query that answers the following question: Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (working_tax_credit VARCHAR, occupational_pensions VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR)
SELECT working_tax_credit FROM table_name_20 WHERE employment___salaries_ & _wages_ = "64%" AND occupational_pensions = "6%"
Write a SQL query that answers the following question: How many Drawn is which has a Games smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (drawn INTEGER, games INTEGER)
SELECT SUM(drawn) FROM table_name_61 WHERE games < 6
Write a SQL query that answers the following question: What is the Points that has 61 - 15 Point difference and a Drawn larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (points INTEGER, points_difference VARCHAR, drawn VARCHAR)
SELECT AVG(points) FROM table_name_80 WHERE points_difference = "61 - 15" AND drawn > 1
Write a SQL query that answers the following question: How many Drawn has a Games larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (drawn INTEGER, games INTEGER)
SELECT SUM(drawn) FROM table_name_32 WHERE games > 6
Write a SQL query that answers the following question: What is the smallest electorate with 78,076 quota and less than 13 candidates?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (electorate INTEGER, quota VARCHAR, candidates VARCHAR)
SELECT MIN(electorate) FROM table_name_45 WHERE quota = "78,076" AND candidates < 13
Write a SQL query that answers the following question: What is the turnout with 15 candidates and more than 377,591 valid poll?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (turnout VARCHAR, candidates VARCHAR, valid_poll VARCHAR)
SELECT turnout FROM table_name_81 WHERE candidates = 15 AND valid_poll > 377 OFFSET 591
Write a SQL query that answers the following question: What country is ranked 79?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (country VARCHAR, rank VARCHAR)
SELECT country FROM table_name_19 WHERE rank = 79
Write a SQL query that answers the following question: What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (rank INTEGER, year VARCHAR, accolade VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE year > 1999 AND accolade = "the 100 greatest indie rock albums of all time"
Write a SQL query that answers the following question: Which Week is on sunday november 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_32 WHERE date = "sunday november 28"
Write a SQL query that answers the following question: How many weeks have an Opponent of at new york giants?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at new york giants"
Write a SQL query that answers the following question: When is the Opponent of new england patriots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)
SELECT time___et__ FROM table_name_3 WHERE opponent = "new england patriots"
Write a SQL query that answers the following question: Which week has a Result of w 23–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_79 WHERE result = "w 23–6"
Write a SQL query that answers the following question: How many people did Mayor Olav Martin Vik preside over?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (innhabitants INTEGER, mayor VARCHAR)
SELECT AVG(innhabitants) FROM table_name_87 WHERE mayor = "olav martin vik"
Write a SQL query that answers the following question: What's the area of askøy, with a Municipal code less than 1247?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (area INTEGER, name VARCHAR, municipal_code VARCHAR)
SELECT SUM(area) FROM table_name_34 WHERE name = "askøy" AND municipal_code < 1247
Write a SQL query that answers the following question: What Mayor is from the KRF Party?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (mayor VARCHAR, party VARCHAR)
SELECT mayor FROM table_name_97 WHERE party = "krf"
Write a SQL query that answers the following question: What's the Municipal code of the FRP Party with an area of 100?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR)
SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100
Write a SQL query that answers the following question: How many people does the KRF Party preside over?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (innhabitants INTEGER, party VARCHAR)
SELECT AVG(innhabitants) FROM table_name_51 WHERE party = "krf"
Write a SQL query that answers the following question: What is the total number of overall draft picks for player whose position is C and was picked after round 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_63 WHERE position = "c" AND round > 9
Write a SQL query that answers the following question: What position was Jafus White who was picked after round 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT position FROM table_name_87 WHERE round > 1 AND player = "jafus white"
Write a SQL query that answers the following question: What is the total number of overall draft picks for Fred Nixon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (overall VARCHAR, player VARCHAR)
SELECT COUNT(overall) FROM table_name_37 WHERE player = "fred nixon"
Write a SQL query that answers the following question: Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (player VARCHAR, position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT player FROM table_name_23 WHERE round < 9 AND overall > 143 AND position = "db"
Write a SQL query that answers the following question: What is the highest round of the player with an overall of 152?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (round INTEGER, overall VARCHAR)
SELECT MAX(round) FROM table_name_38 WHERE overall = 152
Write a SQL query that answers the following question: What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
SELECT AVG(round) FROM table_name_87 WHERE pick__number > 5 AND position = "defensive back" AND overall < 152
Write a SQL query that answers the following question: What is the average overall of John Ayres, who had a pick # greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
SELECT AVG(overall) FROM table_name_38 WHERE name = "john ayres" AND pick__number > 4
Write a SQL query that answers the following question: What is the name of the player with a pick # less than 5 and an overall of 284?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (name VARCHAR, pick__number VARCHAR, overall VARCHAR)
SELECT name FROM table_name_17 WHERE pick__number < 5 AND overall = 284
Write a SQL query that answers the following question: What is the average overall of Ken Whisenhunt, who has a pick # of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
SELECT AVG(overall) FROM table_name_77 WHERE pick__number = 5 AND name = "ken whisenhunt"
Write a SQL query that answers the following question: What is the lowest pick # of John Ayres?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (pick__number INTEGER, name VARCHAR)
SELECT MIN(pick__number) FROM table_name_15 WHERE name = "john ayres"
Write a SQL query that answers the following question: What is the name of team with Palmeiras 4-2 portuguesa as the last match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (team VARCHAR, last_match VARCHAR)
SELECT team FROM table_name_47 WHERE last_match = "palmeiras 4-2 portuguesa"
Write a SQL query that answers the following question: What was the manner of departure replaced by tita?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT manner_of_departure FROM table_name_34 WHERE replaced_by = "tita"
Write a SQL query that answers the following question: What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (last_match VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT last_match FROM table_name_8 WHERE manner_of_departure = "sacked" AND outgoing_manager = "geninho"
Write a SQL query that answers the following question: What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (last_match VARCHAR, date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
Write a SQL query that answers the following question: What is the last match with a resigned manner of departure and a round 1 date of vacancy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (last_match VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT last_match FROM table_name_96 WHERE manner_of_departure = "resigned" AND date_of_vacancy = "round 1"
Write a SQL query that answers the following question: What is the highest effic with an avg/g of 91.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (effic INTEGER, avg_g VARCHAR)
SELECT MAX(effic) FROM table_name_68 WHERE avg_g = 91.9
Write a SQL query that answers the following question: What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (att_cmp_int VARCHAR, effic VARCHAR, gp_gs VARCHAR)
SELECT att_cmp_int FROM table_name_73 WHERE effic < 117.88 AND gp_gs = "10-0"
Write a SQL query that answers the following question: What is the sum avg/g with an effic of 858.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (avg_g INTEGER, effic VARCHAR)
SELECT SUM(avg_g) FROM table_name_61 WHERE effic = 858.4
Write a SQL query that answers the following question: What is the mascot for the school in 32 Hendricks County?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (mascot VARCHAR, county VARCHAR)
SELECT mascot FROM table_name_11 WHERE county = "32 hendricks"
Write a SQL query that answers the following question: Where is Lafayette T. Jefferson School in 79 Tippecanoe county?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (location VARCHAR, county VARCHAR, school VARCHAR)
SELECT location FROM table_name_26 WHERE county = "79 tippecanoe" AND school = "lafayette t. jefferson"
Write a SQL query that answers the following question: Where is the school with Royals as their mascot?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_15 WHERE mascot = "royals"
Write a SQL query that answers the following question: What was the score for the game on February 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_79 WHERE date = "february 12"
Write a SQL query that answers the following question: What was the score for the game on February 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE date = "february 29"
Write a SQL query that answers the following question: Where was the home team in the game played against Chicago?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_64 WHERE visitor = "chicago"
Write a SQL query that answers the following question: Which Season has a Game of fcs midwest region, and a Score of 40-33?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (season INTEGER, game VARCHAR, score VARCHAR)
SELECT MAX(season) FROM table_name_29 WHERE game = "fcs midwest region" AND score = "40-33"
Write a SQL query that answers the following question: Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (game VARCHAR, season VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_37 WHERE result = "win" AND opponent = "new hampshire" AND season < 2008
Write a SQL query that answers the following question: Which Season has a Score of 39-27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (season INTEGER, score VARCHAR)
SELECT MAX(season) FROM table_name_26 WHERE score = "39-27"
Write a SQL query that answers the following question: What result has a goal of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_80 WHERE goal = 5
Write a SQL query that answers the following question: What's the record on May 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_42 WHERE date = "may 25"
Write a SQL query that answers the following question: What's greatest attendance on May 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE date = "may 7"
Write a SQL query that answers the following question: Which January has a Record of 28–14–8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (january VARCHAR, record VARCHAR)
SELECT january FROM table_name_17 WHERE record = "28–14–8"
Write a SQL query that answers the following question: Which Points is the highest one that has a Game smaller than 43, and a January larger than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (points INTEGER, game VARCHAR, january VARCHAR)
SELECT MAX(points) FROM table_name_64 WHERE game < 43 AND january > 8
Write a SQL query that answers the following question: What is the mean number of wins for the norton team in 1966, when there are 8 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (wins INTEGER, points VARCHAR, team VARCHAR, year VARCHAR)
SELECT AVG(wins) FROM table_name_8 WHERE team = "norton" AND year = 1966 AND points = 8
Write a SQL query that answers the following question: What is the most recent year for the ajs team when there are fewer than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (year INTEGER, team VARCHAR, wins VARCHAR)
SELECT MAX(year) FROM table_name_57 WHERE team = "ajs" AND wins < 0
Write a SQL query that answers the following question: What is the smallest point amount for years prior to 1958 when the class is 350cc?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (points INTEGER, year VARCHAR, class VARCHAR)
SELECT MIN(points) FROM table_name_91 WHERE year < 1958 AND class = "350cc"
Write a SQL query that answers the following question: What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR, class VARCHAR)
SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = "500cc" AND team = "norton" AND year > 1955
Write a SQL query that answers the following question: When was the game that had a first prize of $161,480?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (date VARCHAR, first_prize VARCHAR)
SELECT date FROM table_name_64 WHERE first_prize = "$161,480"
Write a SQL query that answers the following question: Who won on May 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_76 WHERE date = "may 2011"
Write a SQL query that answers the following question: What is the general classification with a 13 stage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (general_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_63 WHERE stage = "13"
Write a SQL query that answers the following question: What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
SELECT stage FROM table_name_36 WHERE points_classification = "daniele bennati" AND general_classification = "giovanni visconti"
Write a SQL query that answers the following question: What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (general_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
SELECT general_classification FROM table_name_21 WHERE points_classification = "daniele bennati" AND young_rider_classification = "morris possoni" AND stage = "3"
Write a SQL query that answers the following question: What is the general classification with riccardo riccò as the young rider classification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR)
SELECT general_classification FROM table_name_37 WHERE young_rider_classification = "riccardo riccò"
Write a SQL query that answers the following question: What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (points_classification VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)
SELECT points_classification FROM table_name_93 WHERE young_rider_classification = "chris anker sørensen" AND general_classification = "christian vande velde"
Write a SQL query that answers the following question: What is the point classification of stage 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points_classification VARCHAR, stage VARCHAR)
SELECT points_classification FROM table_name_92 WHERE stage = "15"
Write a SQL query that answers the following question: what week number was at memorial stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (week INTEGER, game_site VARCHAR)
SELECT AVG(week) FROM table_name_53 WHERE game_site = "memorial stadium"
Write a SQL query that answers the following question: before week 12 what was the attendance on 1983-11-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT SUM(attendance) FROM table_name_22 WHERE date = "1983-11-21" AND week < 12
Write a SQL query that answers the following question: on week 16, what was the lowest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_34 WHERE week = 16
Write a SQL query that answers the following question: At what venue is the margin of victory 7 strokes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (venue VARCHAR, margin_of_victory VARCHAR)
SELECT venue FROM table_name_82 WHERE margin_of_victory = "7 strokes"
Write a SQL query that answers the following question: What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (purse___ VARCHAR, champion VARCHAR, venue VARCHAR)
SELECT COUNT(purse___) AS $__ FROM table_name_41 WHERE champion = "sherri steinhauer" AND venue = "woburn golf and country club"
Write a SQL query that answers the following question: What is the exit date of the player who transferred to Cardiff City?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (exit_date VARCHAR, to_club VARCHAR)
SELECT exit_date FROM table_name_9 WHERE to_club = "cardiff city"
Write a SQL query that answers the following question: What is the exit date of the player who transferred to Portsmouth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (exit_date VARCHAR, to_club VARCHAR)
SELECT exit_date FROM table_name_58 WHERE to_club = "portsmouth"
Write a SQL query that answers the following question: Which player has a position of FW?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (player VARCHAR, pos VARCHAR)
SELECT player FROM table_name_25 WHERE pos = "fw"
Write a SQL query that answers the following question: Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (frequency_mhz VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT frequency_mhz FROM table_name_92 WHERE erp_w > 4 AND call_sign = "w218ap"
Write a SQL query that answers the following question: Which City of license has a Frequency MHz of 91.5 fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT city_of_license FROM table_name_42 WHERE frequency_mhz = "91.5 fm"
Write a SQL query that answers the following question: Which City of license has a Call sign of w220ba?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba"
Write a SQL query that answers the following question: Which ERP W has a Frequency MHz of 89.3 fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT MAX(erp_w) FROM table_name_98 WHERE frequency_mhz = "89.3 fm"
Write a SQL query that answers the following question: How many wins does Greg Norman have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (wins INTEGER, player VARCHAR)
SELECT SUM(wins) FROM table_name_15 WHERE player = "greg norman"
Write a SQL query that answers the following question: What is the lowest number played with a position of 6 and less than 1 draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (played INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MIN(played) FROM table_name_89 WHERE position = 6 AND drawn < 1
Write a SQL query that answers the following question: What is the highest against value for Palmeiras and position less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (against INTEGER, team VARCHAR, position VARCHAR)
SELECT MAX(against) FROM table_name_86 WHERE team = "palmeiras" AND position < 4
Write a SQL query that answers the following question: What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (played INTEGER, drawn VARCHAR, lost VARCHAR, team VARCHAR)
SELECT MAX(played) FROM table_name_69 WHERE lost > 2 AND team = "palmeiras" AND drawn < 1
Write a SQL query that answers the following question: What is the average number lost when the against value is less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (lost INTEGER, against INTEGER)
SELECT AVG(lost) FROM table_name_86 WHERE against < 5
Write a SQL query that answers the following question: How many values for a win by 2 or more goals correspond to a difference of 2, more than 9 points, and the America-RJ team when more than 7 are played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (won_by_2_or_more_goals_difference VARCHAR, played VARCHAR, team VARCHAR, difference VARCHAR, points VARCHAR)
SELECT COUNT(won_by_2_or_more_goals_difference) FROM table_name_3 WHERE difference = "2" AND points > 9 AND team = "america-rj" AND played > 7
Write a SQL query that answers the following question: What is the average total of the census after 1971 with 10,412 (32.88%) Serbs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (total INTEGER, year_of_census VARCHAR, serbs VARCHAR)
SELECT AVG(total) FROM table_name_90 WHERE year_of_census > 1971 AND serbs = "10,412 (32.88%)"