instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the surface of the palermo, italy championship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (surface VARCHAR, championship VARCHAR)
SELECT surface FROM table_name_61 WHERE championship = "palermo, italy"
Write a SQL query that answers the following question: In what Round was OL Player Richard Zulys picked?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT SUM(round) FROM table_name_92 WHERE position = "ol" AND player = "richard zulys"
Write a SQL query that answers the following question: What is the Player from McGill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_30 WHERE school_club_team = "mcgill"
Write a SQL query that answers the following question: Which College had an Overall pick of 171?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (college VARCHAR, overall VARCHAR)
SELECT college FROM table_name_53 WHERE overall = 171
Write a SQL query that answers the following question: Who had the overall pick of 72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (name VARCHAR, overall VARCHAR)
SELECT name FROM table_name_36 WHERE overall = 72
Write a SQL query that answers the following question: What primary conference does the team nicknamed Phoenix belongs to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (primary_conference VARCHAR, team_nickname VARCHAR)
SELECT primary_conference FROM table_name_39 WHERE team_nickname = "phoenix"
Write a SQL query that answers the following question: Where is the location for the home rink Triangle sports plex/Greensboro ice house?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (location VARCHAR, home_rink VARCHAR)
SELECT location FROM table_name_36 WHERE home_rink = "triangle sports plex/greensboro ice house"
Write a SQL query that answers the following question: What pick was a player that previously played for the Minnesota Lynx?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (pick INTEGER, former_wnba_team VARCHAR)
SELECT SUM(pick) FROM table_name_60 WHERE former_wnba_team = "minnesota lynx"
Write a SQL query that answers the following question: Which player was picked after 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (player VARCHAR, pick INTEGER)
SELECT player FROM table_name_89 WHERE pick > 23
Write a SQL query that answers the following question: What is the nationality of the player who went to college at Mississippi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (nationality VARCHAR, college_country_team VARCHAR)
SELECT nationality FROM table_name_74 WHERE college_country_team = "mississippi"
Write a SQL query that answers the following question: Who is the player who played for the Miami Sol and went to school at North Carolina State?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (player VARCHAR, new_wnba_team VARCHAR, college_country_team VARCHAR)
SELECT player FROM table_name_62 WHERE new_wnba_team = "miami sol" AND college_country_team = "north carolina state"
Write a SQL query that answers the following question: WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331
Write a SQL query that answers the following question: WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (ast_avg INTEGER, rank VARCHAR, games VARCHAR)
SELECT SUM(ast_avg) FROM table_name_20 WHERE rank = 5 AND games > 108
Write a SQL query that answers the following question: Which Round has a Name of john goodyear?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (round VARCHAR, name VARCHAR)
SELECT round FROM table_name_55 WHERE name = "john goodyear"
Write a SQL query that answers the following question: Which Round has a College of appalachian state, and an Overall smaller than 156?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (round VARCHAR, college VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_64 WHERE college = "appalachian state" AND overall < 156
Write a SQL query that answers the following question: Which Pick has a Round larger than 17, and a Name of gene stewart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, name VARCHAR)
SELECT COUNT(pick) FROM table_name_46 WHERE round > 17 AND name = "gene stewart"
Write a SQL query that answers the following question: What was the result when the opponent was Rory Markham?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_96 WHERE opponent = "rory markham"
Write a SQL query that answers the following question: Which Branding has a frequency of 1080khz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_27 WHERE frequency = "1080khz"
Write a SQL query that answers the following question: Which frequency is located in Dagupan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (frequency VARCHAR, location VARCHAR)
SELECT frequency FROM table_name_23 WHERE location = "dagupan"
Write a SQL query that answers the following question: What frequency does branding dzec radyo agila 1062 have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_name_33 WHERE branding = "dzec radyo agila 1062"
Write a SQL query that answers the following question: Which frequency has 40kw power?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (frequency VARCHAR, power__kw_ VARCHAR)
SELECT frequency FROM table_name_5 WHERE power__kw_ = "40kw"
Write a SQL query that answers the following question: Which frequency is located in Davao?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (frequency VARCHAR, location VARCHAR)
SELECT frequency FROM table_name_35 WHERE location = "davao"
Write a SQL query that answers the following question: what is the peak population (year) for scranton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (peak_population__year_ VARCHAR, city VARCHAR)
SELECT peak_population__year_ FROM table_name_34 WHERE city = "scranton"
Write a SQL query that answers the following question: what is the numeric decline from peak population when the perfect decline from peak population is -16.76%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (numeric_decline_from_peak_population VARCHAR, percent_decline_from_peak_population VARCHAR)
SELECT numeric_decline_from_peak_population FROM table_name_99 WHERE percent_decline_from_peak_population = "-16.76%"
Write a SQL query that answers the following question: what is the state when the peak population (year) is 134995 (1950)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR)
SELECT state FROM table_name_33 WHERE peak_population__year_ = "134995 (1950)"
Write a SQL query that answers the following question: what is the percent decline from peak population when the peak population (year) is 178320 (1960)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (percent_decline_from_peak_population VARCHAR, peak_population__year_ VARCHAR)
SELECT percent_decline_from_peak_population FROM table_name_98 WHERE peak_population__year_ = "178320 (1960)"
Write a SQL query that answers the following question: WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (rank VARCHAR, studio VARCHAR, director VARCHAR)
SELECT rank FROM table_name_7 WHERE studio = "universal" AND director = "john hughes"
Write a SQL query that answers the following question: WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (title VARCHAR, rank VARCHAR, director VARCHAR)
SELECT title FROM table_name_98 WHERE rank > 10 AND director = "walter hill"
Write a SQL query that answers the following question: WHAT IS THE STUDIO WITH THE TITLE MASK?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (studio VARCHAR, title VARCHAR)
SELECT studio FROM table_name_41 WHERE title = "mask"
Write a SQL query that answers the following question: WHAT IS THE RANK WITH A GROSS OF $96,773,200?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR)
SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200"
Write a SQL query that answers the following question: How many times was the player drawn that had less than 12 losses and a goal difference of +20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR)
SELECT drawn FROM table_name_44 WHERE lost < 12 AND goal_difference = "+20"
Write a SQL query that answers the following question: What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (position INTEGER, played VARCHAR, goal_difference VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT SUM(position) FROM table_name_36 WHERE drawn = 10 AND lost < 25 AND goal_difference = "+20" AND played < 42
Write a SQL query that answers the following question: What is the highest number played when there were less than 13 losses and a goal difference of +46?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (played INTEGER, lost VARCHAR, goal_difference VARCHAR)
SELECT MAX(played) FROM table_name_89 WHERE lost < 13 AND goal_difference = "+46"
Write a SQL query that answers the following question: What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (points_1 VARCHAR, lost VARCHAR, position VARCHAR, goals_for VARCHAR)
SELECT points_1 FROM table_name_75 WHERE position > 4 AND goals_for = 54 AND lost > 11
Write a SQL query that answers the following question: Who was the worship leader that had a lead supporting vocal Marcus Temu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (worship_leader VARCHAR, lead_supporting_vocal VARCHAR)
SELECT worship_leader FROM table_name_33 WHERE lead_supporting_vocal = "marcus temu"
Write a SQL query that answers the following question: Who was the lead supporting vocalist on the song that was 4:54 long?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (lead_supporting_vocal VARCHAR, time VARCHAR)
SELECT lead_supporting_vocal FROM table_name_32 WHERE time = "4:54"
Write a SQL query that answers the following question: Who was the Worship Leader for the song that was 7:05 long?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (worship_leader VARCHAR, time VARCHAR)
SELECT worship_leader FROM table_name_17 WHERE time = "7:05"
Write a SQL query that answers the following question: What is the song name that featured Marcus Temu as the lead supporting vocalist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (song VARCHAR, lead_supporting_vocal VARCHAR)
SELECT song FROM table_name_12 WHERE lead_supporting_vocal = "marcus temu"
Write a SQL query that answers the following question: What's the lowest diameter when the longitude is 71.1w?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (diameter INTEGER, longitude VARCHAR)
SELECT MIN(diameter) FROM table_name_71 WHERE longitude = "71.1w"
Write a SQL query that answers the following question: What is dardanus sulcus' lowest diameter?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (diameter INTEGER, name VARCHAR)
SELECT MIN(diameter) FROM table_name_7 WHERE name = "dardanus sulcus"
Write a SQL query that answers the following question: How many years is ur sulcus listed with a diameter less than 1,145.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)
SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
Write a SQL query that answers the following question: When the attendance was 3188 what was the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_78 WHERE attendance = 3188
Write a SQL query that answers the following question: What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (attendance INTEGER, date VARCHAR, home VARCHAR)
SELECT MAX(attendance) FROM table_name_69 WHERE date = "16 august 2008" AND home = "deportes savio"
Write a SQL query that answers the following question: What team was the away team when the Deportes Savio was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_49 WHERE home = "deportes savio"
Write a SQL query that answers the following question: What was the away team when the score was 3:1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (away VARCHAR, score VARCHAR)
SELECT away FROM table_name_93 WHERE score = "3:1"
Write a SQL query that answers the following question: When Platense was the away team on 16 August 2008 how many people attended the game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR)
SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"
Write a SQL query that answers the following question: What was the score when 2441 people were in attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_17 WHERE attendance = 2441
Write a SQL query that answers the following question: Which driver had 35+3 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (driver VARCHAR, points VARCHAR)
SELECT driver FROM table_name_77 WHERE points = "35+3"
Write a SQL query that answers the following question: What was the time/retired for the driver with 14 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (time_retired VARCHAR, points VARCHAR)
SELECT time_retired FROM table_name_78 WHERE points = "14"
Write a SQL query that answers the following question: What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT total FROM table_name_79 WHERE league_cup_goals = "4" AND fa_cup_goals = "0"
Write a SQL query that answers the following question: What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (fa_cup_goals VARCHAR, club VARCHAR, total VARCHAR, league_cup_goals VARCHAR)
SELECT fa_cup_goals FROM table_name_78 WHERE total > 16 AND league_cup_goals = "1" AND club = "norwich city"
Write a SQL query that answers the following question: What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (league_goals VARCHAR, league_cup_goals VARCHAR, scorer VARCHAR)
SELECT league_goals FROM table_name_66 WHERE league_cup_goals = "0" AND scorer = "bill dearden"
Write a SQL query that answers the following question: What is the name of the player with a transfer window in summer, an undisclosed transfer fee, and is moving from brussels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (name VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_15 WHERE transfer_window = "summer" AND transfer_fee = "undisclosed" AND moving_from = "brussels"
Write a SQL query that answers the following question: What is the type of bulykin, which has a summer transfer window?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (type VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT type FROM table_name_79 WHERE transfer_window = "summer" AND name = "bulykin"
Write a SQL query that answers the following question: What is the country of cordier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_70 WHERE name = "cordier"
Write a SQL query that answers the following question: What is the country of the player moving from belgrano with a summer transfer window?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (country VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)
SELECT country FROM table_name_69 WHERE transfer_window = "summer" AND moving_from = "belgrano"
Write a SQL query that answers the following question: What is the transfer window of the player moving from barueri?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT transfer_window FROM table_name_40 WHERE moving_from = "barueri"
Write a SQL query that answers the following question: What is the type of the player moving from belgrano?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (type VARCHAR, moving_from VARCHAR)
SELECT type FROM table_name_11 WHERE moving_from = "belgrano"
Write a SQL query that answers the following question: Average round for 22 pick that is overall smaller than 229?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (round INTEGER, pick VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_94 WHERE pick = 22 AND overall < 229
Write a SQL query that answers the following question: What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (country VARCHAR)
SELECT AVG(2002) FROM table_name_88 WHERE country = "peru" AND 2007 > 1 OFFSET 200
Write a SQL query that answers the following question: What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (Id VARCHAR)
SELECT MIN(2009) FROM table_name_81 WHERE 2005 < 640 AND 2011 = 425 AND 2003 < 500
Write a SQL query that answers the following question: How many Bronze medals did the Nation with 0 Silver receive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (bronze INTEGER, silver INTEGER)
SELECT MAX(bronze) FROM table_name_37 WHERE silver < 0
Write a SQL query that answers the following question: How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_88 WHERE total < 8 AND bronze < 1 AND silver < 1
Write a SQL query that answers the following question: How many Total medals did the Nation the got 0 Bronze medals receive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (total INTEGER, bronze INTEGER)
SELECT AVG(total) FROM table_name_47 WHERE bronze < 0
Write a SQL query that answers the following question: What Nation had a more than 1 Total medal including less than 3 Silver, less than 4 Gold and a Rank of 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT nation FROM table_name_46 WHERE silver < 3 AND total > 1 AND gold < "4" AND rank = "4"
Write a SQL query that answers the following question: How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT SUM(silver) FROM table_name_21 WHERE gold < 1 AND rank = "8" AND total > 1
Write a SQL query that answers the following question: What is the start date with Luke Jacobz hosting and Dannii Minogue as a winning mentor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (start VARCHAR, main_host VARCHAR, winning_mentor VARCHAR)
SELECT start FROM table_name_16 WHERE main_host = "luke jacobz" AND winning_mentor = "dannii minogue"
Write a SQL query that answers the following question: Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (third_place VARCHAR, winning_mentor VARCHAR, runner_up VARCHAR)
SELECT third_place FROM table_name_59 WHERE winning_mentor = "guy sebastian" AND runner_up = "andrew wishart"
Write a SQL query that answers the following question: In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (election INTEGER, mayor VARCHAR, inhabitants VARCHAR)
SELECT SUM(election) FROM table_name_64 WHERE mayor = "adalberto mosaner" AND inhabitants < 16 OFFSET 170
Write a SQL query that answers the following question: In what Election year were there less than 16,170 Inhabitants?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (election VARCHAR, inhabitants INTEGER)
SELECT COUNT(election) FROM table_name_14 WHERE inhabitants < 16 OFFSET 170
Write a SQL query that answers the following question: What is the Mayor of Riva del Garda in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)
SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = "riva del garda"
Write a SQL query that answers the following question: How many Inhabitants were there after 2009 in the Municipality with a Party of union for trentino?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (inhabitants INTEGER, party VARCHAR, election VARCHAR)
SELECT AVG(inhabitants) FROM table_name_7 WHERE party = "union for trentino" AND election > 2009
Write a SQL query that answers the following question: What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (enrollment INTEGER, founded VARCHAR, joined_conference VARCHAR)
SELECT MIN(enrollment) FROM table_name_19 WHERE founded = "1992" AND joined_conference < 1998
Write a SQL query that answers the following question: Which foot ball team played soccer at wooster, and Gold in Ashland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (football VARCHAR, soccer VARCHAR, golf VARCHAR)
SELECT football FROM table_name_2 WHERE soccer = "wooster" AND golf = "ashland"
Write a SQL query that answers the following question: What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 2 AND rank < 4 AND silver < 1
Write a SQL query that answers the following question: How many silver for the team with more than 2 bronze and more than 7 gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_53 WHERE bronze > 2 AND gold > 7
Write a SQL query that answers the following question: What is the total for the team with 0 bronze and 3 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT SUM(total) FROM table_name_41 WHERE bronze = 0 AND silver = 3
Write a SQL query that answers the following question: What is the total number of Rounds held in Nevada, United States in which the time was 1:55?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (round VARCHAR, location VARCHAR, time VARCHAR)
SELECT COUNT(round) FROM table_name_5 WHERE location = "nevada, united states" AND time = "1:55"
Write a SQL query that answers the following question: What was the time when his opponent was Rudy Martin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_5 WHERE opponent = "rudy martin"
Write a SQL query that answers the following question: What was the method when the fight's time was 1:52?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_31 WHERE time = "1:52"
Write a SQL query that answers the following question: What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (overs INTEGER, economy_rate VARCHAR, team VARCHAR, best_bowling VARCHAR)
SELECT MIN(overs) FROM table_name_29 WHERE team = "chennai super kings" AND best_bowling = "2/17" AND economy_rate < 5.92
Write a SQL query that answers the following question: What is the lowest number of Overs for the Royal Challengers Bangalore?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (overs INTEGER, team VARCHAR)
SELECT MIN(overs) FROM table_name_50 WHERE team = "royal challengers bangalore"
Write a SQL query that answers the following question: What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (strike_rate INTEGER, matches VARCHAR, average VARCHAR)
SELECT MAX(strike_rate) FROM table_name_15 WHERE matches < 13 AND average < 50.25
Write a SQL query that answers the following question: What is the venue of the race where Lineth Chepkurui placed 4th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (venue VARCHAR, position VARCHAR)
SELECT venue FROM table_name_12 WHERE position = "4th"
Write a SQL query that answers the following question: What is the venue of the team race that was before 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (venue VARCHAR, notes VARCHAR, year VARCHAR)
SELECT venue FROM table_name_13 WHERE notes = "team" AND year < 2010
Write a SQL query that answers the following question: What is the venue of the team race that was after 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_23 WHERE year > 2008 AND notes = "team"
Write a SQL query that answers the following question: What competition did Lineth Chepkurui place 5th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (competition VARCHAR, position VARCHAR)
SELECT competition FROM table_name_27 WHERE position = "5th"
Write a SQL query that answers the following question: How many votes did Lee Teng-Hui receive when he was elected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)
SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"
Write a SQL query that answers the following question: What was the score for a match before 13, and a home game on April 21, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR, match VARCHAR, home_away VARCHAR)
SELECT score FROM table_name_11 WHERE match < 13 AND home_away = "home" AND date = "april 21, 2008"
Write a SQL query that answers the following question: What home/away game is on February 29, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (home_away VARCHAR, date VARCHAR)
SELECT home_away FROM table_name_19 WHERE date = "february 29, 2008"
Write a SQL query that answers the following question: What team was the home team when Manchester City was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_88 WHERE away_team = "manchester city"
Write a SQL query that answers the following question: What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR)
SELECT SUM(points) FROM table_name_39 WHERE equipment = "zabel-bsu" AND position = 42
Write a SQL query that answers the following question: What is Equipment, when Points is less than 6, and when Position is 53?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (equipment VARCHAR, points VARCHAR, position VARCHAR)
SELECT equipment FROM table_name_79 WHERE points < 6 AND position = 53
Write a SQL query that answers the following question: What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (second VARCHAR, equipment VARCHAR, position VARCHAR, points VARCHAR)
SELECT second FROM table_name_51 WHERE position > 33 AND points > 12 AND equipment = "zabel-vmc"
Write a SQL query that answers the following question: What is Equipment, when Position is greater than 28, and when Points is greater than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (equipment VARCHAR, position VARCHAR, points VARCHAR)
SELECT equipment FROM table_name_51 WHERE position > 28 AND points > 10
Write a SQL query that answers the following question: When Hawthorn is the away team, what is their score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: Which ground has a crowd over 41,185?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (ground VARCHAR, crowd INTEGER)
SELECT ground FROM table_name_79 WHERE crowd > 41 OFFSET 185
Write a SQL query that answers the following question: What place has a 67-68-78-77=290 score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_25 WHERE score = 67 - 68 - 78 - 77 = 290
Write a SQL query that answers the following question: What is the highest to par of the player from the United States with a t3 place and a 74-73-72-69=288 place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (to_par INTEGER, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT MAX(to_par) FROM table_name_30 WHERE country = "united states" AND place = "t3" AND score = 74 - 73 - 72 - 69 = 288
Write a SQL query that answers the following question: What is the place of player peter oosterhuis, who has $7,500?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_7 WHERE money___$__ = "7,500" AND player = "peter oosterhuis"