instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Where was the game on May 9 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)
SELECT site_stadium FROM table_name_21 WHERE date = "may 9"
Write a SQL query that answers the following question: What is the greatest position when the points are less than 21, and the played greater than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (position INTEGER, points VARCHAR, played VARCHAR)
SELECT MAX(position) FROM table_name_78 WHERE points < 21 AND played > 14
Write a SQL query that answers the following question: What is the fewest lost with a difference of 9 and a less than 3 drawn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (lost INTEGER, difference VARCHAR, drawn VARCHAR)
SELECT MIN(lost) FROM table_name_69 WHERE difference = "9" AND drawn < 3
Write a SQL query that answers the following question: Team Estudantes Paulista with a position less than 4 has what average against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (against INTEGER, team VARCHAR, position VARCHAR)
SELECT AVG(against) FROM table_name_78 WHERE team = "estudantes paulista" AND position < 4
Write a SQL query that answers the following question: What was the margin of victory on Apr 8, 1979?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR)
SELECT margin_of_victory FROM table_name_28 WHERE date = "apr 8, 1979"
Write a SQL query that answers the following question: What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_69 WHERE margin_of_victory = "2 strokes" AND runner_s__up = "pat bradley"
Write a SQL query that answers the following question: What was the margin of victory when the winning score was −5 (69-69-73=211)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_21 WHERE winning_score = −5(69 - 69 - 73 = 211)
Write a SQL query that answers the following question: Which tournament had a winning score of −5 (69-69-73=211)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211)
Write a SQL query that answers the following question: When was the winning score −6 (69-69-73-71=282)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_7 WHERE winning_score = −6(69 - 69 - 73 - 71 = 282)
Write a SQL query that answers the following question: Who is the opponent of the game played on November 20, 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "november 20, 1995"
Write a SQL query that answers the following question: What is the highest Grid with a Name that is jamie whincup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (grid INTEGER, name VARCHAR)
SELECT MAX(grid) FROM table_name_67 WHERE name = "jamie whincup"
Write a SQL query that answers the following question: What is the Team with a Lap that is 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (team VARCHAR, laps VARCHAR)
SELECT team FROM table_name_48 WHERE laps = 5
Write a SQL query that answers the following question: What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_62 WHERE name = "justin forsett" AND pick > 233
Write a SQL query that answers the following question: What's the average round the position of RB was drafted?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (round INTEGER, position VARCHAR)
SELECT AVG(round) FROM table_name_90 WHERE position = "rb"
Write a SQL query that answers the following question: What's the average round Red Bryant was drafted with a pick larger than 121?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_29 WHERE name = "red bryant" AND pick > 121
Write a SQL query that answers the following question: Can you tell me the Overall Record that has the Away Team of miami?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (overall_record VARCHAR, away_team VARCHAR)
SELECT overall_record FROM table_name_46 WHERE away_team = "miami"
Write a SQL query that answers the following question: Can you tell me the Overall Record that has the Week of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (overall_record VARCHAR, week VARCHAR)
SELECT overall_record FROM table_name_81 WHERE week = 3
Write a SQL query that answers the following question: Can you tell me the Divisional Record that has the Away Team of dallas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (divisional_record VARCHAR, away_team VARCHAR)
SELECT divisional_record FROM table_name_58 WHERE away_team = "dallas"
Write a SQL query that answers the following question: Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (overall_record VARCHAR, away_team VARCHAR, week VARCHAR, divisional_record VARCHAR)
SELECT overall_record FROM table_name_42 WHERE week < 16 AND divisional_record = "(1-0)" AND away_team = "miami"
Write a SQL query that answers the following question: Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (week VARCHAR, away_team VARCHAR, overall_record VARCHAR, home_team VARCHAR, divisional_record VARCHAR)
SELECT week FROM table_name_40 WHERE home_team = "detroit" AND divisional_record = "(3-0)" AND overall_record = "(5-1)" AND away_team = "minnesota"
Write a SQL query that answers the following question: Who is the choreographer with the style pas de deux?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (choreographer_s_ VARCHAR, style VARCHAR)
SELECT choreographer_s_ FROM table_name_10 WHERE style = "pas de deux"
Write a SQL query that answers the following question: What is the title of the person who started their reign in 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (title VARCHAR, start_of_reign VARCHAR)
SELECT title FROM table_name_63 WHERE start_of_reign = 1999
Write a SQL query that answers the following question: What is the date of birth of the person who started their reign in 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (Birth VARCHAR, start_of_reign VARCHAR)
SELECT Birth AS name FROM table_name_61 WHERE start_of_reign = 1986
Write a SQL query that answers the following question: What is the average number for goals less than 73?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER)
SELECT COUNT(average) FROM table_name_23 WHERE goals < 73
Write a SQL query that answers the following question: What is the total average for 1990-1995, and goals less than 90?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (average VARCHAR, career VARCHAR, goals VARCHAR)
SELECT COUNT(average) FROM table_name_40 WHERE career = "1990-1995" AND goals < 90
Write a SQL query that answers the following question: What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (position INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR)
SELECT MIN(position) FROM table_name_43 WHERE lost < 3 AND difference = "1" AND played > 7
Write a SQL query that answers the following question: What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (played INTEGER, team VARCHAR, against VARCHAR)
SELECT SUM(played) FROM table_name_12 WHERE team = "vasco da gama" AND against < 12
Write a SQL query that answers the following question: What was the Difference of the Team that had a Position less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (difference VARCHAR, position INTEGER)
SELECT difference FROM table_name_8 WHERE position < 2
Write a SQL query that answers the following question: Which attendance number was taken on november 21, 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_54 WHERE date = "november 21, 2004"
Write a SQL query that answers the following question: Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_39 WHERE week < 16 AND opponent = "washington redskins"
Write a SQL query that answers the following question: How many weeks had the Green Bay packers as opponents?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (week INTEGER, opponent VARCHAR)
SELECT SUM(week) FROM table_name_74 WHERE opponent = "green bay packers"
Write a SQL query that answers the following question: What Country had a Score of 71-67=138?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_76 WHERE score = 71 - 67 = 138
Write a SQL query that answers the following question: What Country had a Score of 75-68=143?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_91 WHERE score = 75 - 68 = 143
Write a SQL query that answers the following question: How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (innings INTEGER, runs_scored VARCHAR, balls_faced VARCHAR, average VARCHAR, sr VARCHAR)
SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19
Write a SQL query that answers the following question: What is the number of averages having a balls faced over 297 and more than 7 innings?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (average VARCHAR, balls_faced VARCHAR, innings VARCHAR)
SELECT COUNT(average) FROM table_name_34 WHERE balls_faced > 297 AND innings > 7
Write a SQL query that answers the following question: What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (innings INTEGER, sr VARCHAR, balls_faced VARCHAR)
SELECT MIN(innings) FROM table_name_89 WHERE sr = 72.05 AND balls_faced < 297
Write a SQL query that answers the following question: What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (balls_faced INTEGER, average VARCHAR, sr VARCHAR, innings VARCHAR)
SELECT SUM(balls_faced) FROM table_name_99 WHERE sr > 48.28 AND innings = 3 AND average < 5
Write a SQL query that answers the following question: What is the Nation with a Date that is may 6, 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (nation VARCHAR, date VARCHAR)
SELECT nation FROM table_name_51 WHERE date = "may 6, 1991"
Write a SQL query that answers the following question: What is the Record with a Date that is may 20, 1961?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_73 WHERE date = "may 20, 1961"
Write a SQL query that answers the following question: Who was the partner of the winner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (partner VARCHAR, outcome VARCHAR)
SELECT partner FROM table_name_46 WHERE outcome = "winner"
Write a SQL query that answers the following question: How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (place__posición_ VARCHAR, won__pg_ VARCHAR, draw__pe_ VARCHAR, team__equipo_ VARCHAR)
SELECT COUNT(place__posición_) FROM table_name_53 WHERE draw__pe_ > 2 AND team__equipo_ = "paraíso" AND won__pg_ > 6
Write a SQL query that answers the following question: How many league cups have yeovil town as the club, with a league less than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (league VARCHAR, club VARCHAR)
SELECT COUNT(league) AS Cup FROM table_name_88 WHERE club = "yeovil town" AND league < 16
Write a SQL query that answers the following question: What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (fa_cup INTEGER, player VARCHAR, fa_trophy VARCHAR)
SELECT AVG(fa_cup) FROM table_name_15 WHERE player = "gary jones" AND fa_trophy > 5
Write a SQL query that answers the following question: What FA trophys have tony hemmings as the player, with a league greater than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)
SELECT SUM(fa_trophy) FROM table_name_98 WHERE player = "tony hemmings" AND league > 15
Write a SQL query that answers the following question: What is the score where the country is Japan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_95 WHERE country = "japan"
Write a SQL query that answers the following question: Which province has muju as the capital?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (province VARCHAR, capital VARCHAR)
SELECT province FROM table_name_82 WHERE capital = "muju"
Write a SQL query that answers the following question: What is the modern equivalent of 良州 in Hanja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (modern_equivalent VARCHAR, hanja VARCHAR)
SELECT modern_equivalent FROM table_name_17 WHERE hanja = "良州"
Write a SQL query that answers the following question: What is the capital of the province with 양주 in Hangul?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (capital VARCHAR, hangul VARCHAR)
SELECT capital FROM table_name_21 WHERE hangul = "양주"
Write a SQL query that answers the following question: What is the capital of the province with 漢州 in Hanja?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (capital VARCHAR, hanja VARCHAR)
SELECT capital FROM table_name_88 WHERE hanja = "漢州"
Write a SQL query that answers the following question: What is the Hanja for the sakju province?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR)
SELECT hanja FROM table_name_78 WHERE province = "sakju"
Write a SQL query that answers the following question: What is the fewest number of top-25s for events with more than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (top_25 INTEGER, wins INTEGER)
SELECT MIN(top_25) FROM table_name_17 WHERE wins > 0
Write a SQL query that answers the following question: What is the highest number of top-10s in events with more than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (top_10 INTEGER, wins INTEGER)
SELECT MAX(top_10) FROM table_name_46 WHERE wins > 0
Write a SQL query that answers the following question: What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (top_25 VARCHAR, top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)
SELECT top_25 FROM table_name_47 WHERE events < 13 AND cuts_made < 3 AND top_10 = 1
Write a SQL query that answers the following question: Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR)
SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar"
Write a SQL query that answers the following question: What is the highest season that had rank under 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (season INTEGER, rank INTEGER)
SELECT MAX(season) FROM table_name_45 WHERE rank < 1
Write a SQL query that answers the following question: Who was the professional partner in season 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (professional_partner VARCHAR, season VARCHAR)
SELECT professional_partner FROM table_name_29 WHERE season = 4
Write a SQL query that answers the following question: Who had the highest rebounds against detroit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_name_65 WHERE team = "detroit"
Write a SQL query that answers the following question: How much gold received by nation of uzbekistan (uzb)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (gold INTEGER, nation VARCHAR)
SELECT MAX(gold) FROM table_name_93 WHERE nation = "uzbekistan (uzb)"
Write a SQL query that answers the following question: Which team has the lowest gold and 0 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (gold INTEGER, silver INTEGER)
SELECT MIN(gold) FROM table_name_68 WHERE silver < 0
Write a SQL query that answers the following question: How much gold when silver, bronze and total is smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT MAX(gold) FROM table_name_27 WHERE silver < 1 AND bronze = 1 AND total < 1
Write a SQL query that answers the following question: What is the ICAO with commenced operations before 1989?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (icao VARCHAR, commenced_operations INTEGER)
SELECT icao FROM table_name_2 WHERE commenced_operations < 1989
Write a SQL query that answers the following question: What is the lowest commenced operations that has a nouvelair callsign?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (commenced_operations INTEGER, callsign VARCHAR)
SELECT MIN(commenced_operations) FROM table_name_90 WHERE callsign = "nouvelair"
Write a SQL query that answers the following question: What callsign has commenced operations in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (callsign VARCHAR, commenced_operations VARCHAR)
SELECT callsign FROM table_name_34 WHERE commenced_operations = 2011
Write a SQL query that answers the following question: What language is used when the service is sky primafila 10 and the package/option is qualsiasi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (language VARCHAR, package_option VARCHAR, television_service VARCHAR)
SELECT language FROM table_name_19 WHERE package_option = "qualsiasi" AND television_service = "sky primafila 10"
Write a SQL query that answers the following question: What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (content VARCHAR, package_option VARCHAR, television_service VARCHAR)
SELECT content FROM table_name_13 WHERE package_option = "qualsiasi" AND television_service = "sky primafila 14"
Write a SQL query that answers the following question: What is the HDTV that has television service of tv 8 mont blanc and content is general television?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (hdtv VARCHAR, content VARCHAR, television_service VARCHAR)
SELECT hdtv FROM table_name_26 WHERE content = "general television" AND television_service = "tv 8 mont blanc"
Write a SQL query that answers the following question: Which city's IATA is nkg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_64 WHERE iata = "nkg"
Write a SQL query that answers the following question: Which airport is in Xinjiang province in the city Kuqa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (airport VARCHAR, province VARCHAR, city VARCHAR)
SELECT airport FROM table_name_45 WHERE province = "xinjiang" AND city = "kuqa"
Write a SQL query that answers the following question: Which province's IATA is kix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (province VARCHAR, iata VARCHAR)
SELECT province FROM table_name_21 WHERE iata = "kix"
Write a SQL query that answers the following question: Which airport's IATA is pen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_31 WHERE iata = "pen"
Write a SQL query that answers the following question: Which Event has a Record of 4:02.54?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (event VARCHAR, record VARCHAR)
SELECT event FROM table_name_90 WHERE record = "4:02.54"
Write a SQL query that answers the following question: Whcih Date has an Event of 3000 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_6 WHERE event = "3000 m"
Write a SQL query that answers the following question: Which Record has a Date of 23 february 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_20 WHERE date = "23 february 1986"
Write a SQL query that answers the following question: Which Date has a Record of 8:39.49?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_95 WHERE record = "8:39.49"
Write a SQL query that answers the following question: Which Record has a Date of 3 march 2013?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_71 WHERE date = "3 march 2013"
Write a SQL query that answers the following question: Which Nation has a Record of 15.16 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (nation VARCHAR, record VARCHAR)
SELECT nation FROM table_name_84 WHERE record = "15.16 m"
Write a SQL query that answers the following question: What is the Nationality of the Player with more than 8 Goals and Apps of 52?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (nationality VARCHAR, goals VARCHAR, apps VARCHAR)
SELECT nationality FROM table_name_5 WHERE goals > 8 AND apps = 52
Write a SQL query that answers the following question: How many Apps did Player Gilberto with more than 1 Goals have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (apps INTEGER, player VARCHAR, goals VARCHAR)
SELECT AVG(apps) FROM table_name_64 WHERE player = "gilberto" AND goals > 1
Write a SQL query that answers the following question: On what date was the 4th round, with home team Itabuna, played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_4 WHERE round = "4th" AND home_team = "itabuna"
Write a SQL query that answers the following question: In the 6th round match with home team Bahia, who was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_96 WHERE round = "6th" AND home_team = "bahia"
Write a SQL query that answers the following question: For the 5th round match with away team of Bahia, what was the final score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (score VARCHAR, round VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_65 WHERE round = "5th" AND away_team = "bahia"
Write a SQL query that answers the following question: Which League has a Regular Season of 2nd, southeast?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (league VARCHAR, regular_season VARCHAR)
SELECT league FROM table_name_58 WHERE regular_season = "2nd, southeast"
Write a SQL query that answers the following question: Who Playoffs has a Regular Season of on hiatus.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR)
SELECT playoffs FROM table_name_99 WHERE regular_season = "on hiatus."
Write a SQL query that answers the following question: What is the population of Kragerø?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (population INTEGER, city VARCHAR)
SELECT MIN(population) FROM table_name_17 WHERE city = "kragerø"
Write a SQL query that answers the following question: What is the highest population of a city that has a town status of 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (population INTEGER, town_status VARCHAR)
SELECT MAX(population) FROM table_name_91 WHERE town_status = "2010"
Write a SQL query that answers the following question: What is the highest population within the municipality of Porsgrunn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (population INTEGER, municipality VARCHAR)
SELECT MAX(population) FROM table_name_28 WHERE municipality = "porsgrunn"
Write a SQL query that answers the following question: What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (birthplace VARCHAR, jersey_number VARCHAR, position VARCHAR, height__cm_ VARCHAR)
SELECT birthplace FROM table_name_79 WHERE position = "d" AND height__cm_ = 190 AND jersey_number = 11
Write a SQL query that answers the following question: What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12"
Write a SQL query that answers the following question: What's the least amount of points that Walter Wolf Racing had after 1974?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = "walter wolf racing"
Write a SQL query that answers the following question: What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
Write a SQL query that answers the following question: What is the highest Year, when the Venue is Beijing, PR China?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_54 WHERE venue = "beijing, pr china"
Write a SQL query that answers the following question: What is the average Year, when Competition is Oceania Youth Championships?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR)
SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships"
Write a SQL query that answers the following question: What is Event, when Position is 4th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (event VARCHAR, position VARCHAR)
SELECT event FROM table_name_94 WHERE position = "4th"
Write a SQL query that answers the following question: What is the Date with a Format that is cd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR)
SELECT date FROM table_name_87 WHERE format = "cd"
Write a SQL query that answers the following question: What is the Catalog with a Date that is march 13, 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_9 WHERE date = "march 13, 2002"
Write a SQL query that answers the following question: What is the Label with a Catalog that is mhcl-20017?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_45 WHERE catalog = "mhcl-20017"
Write a SQL query that answers the following question: What is the Catalog with a Date that is february 20, 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "february 20, 2002"
Write a SQL query that answers the following question: What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR)
SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = "f" AND birthdate = "march 19, 1980"
Write a SQL query that answers the following question: What is the Position, when the Birthplace is Buffalo, New York?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position VARCHAR, birthplace VARCHAR)
SELECT position FROM table_name_92 WHERE birthplace = "buffalo, new york"
Write a SQL query that answers the following question: What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)
SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = "march 3, 1980"