instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Name the team for school of milford
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
SELECT team FROM table_name_44 WHERE school = "milford"
Write a SQL query that answers the following question: Name the average points for chassis of stevens and year less than 1950
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950
Write a SQL query that answers the following question: Name the least points for chassis of kurtis kraft 500a
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR)
SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a"
Write a SQL query that answers the following question: Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
Write a SQL query that answers the following question: Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)
SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high"
Write a SQL query that answers the following question: Who was the visiting team at Raymond James Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR)
SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium"
Write a SQL query that answers the following question: What date had the Houston Texans as visitors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"
Write a SQL query that answers the following question: Name the year with percentage of 9.66%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR)
SELECT year FROM table_name_55 WHERE percentage = "9.66%"
Write a SQL query that answers the following question: Name the total number of popular votes for mn attorney general in 1994
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR)
SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994
Write a SQL query that answers the following question: Name the average popular votes in years after 1990 with percentage of 4.94%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)
SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990
Write a SQL query that answers the following question: Name the least popular votes for year less than 1994 and percentage of 0.96%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR)
SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%"
Write a SQL query that answers the following question: What United States player holds the place of t8?`
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states"
Write a SQL query that answers the following question: What country of argentina has the To par of 68?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina"
Write a SQL query that answers the following question: What is the To par and holds the t8 place of the United States player Tiger Woods?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
Write a SQL query that answers the following question: What country does miguel ángel jiménez player for and has a score of 69?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez"
Write a SQL query that answers the following question: What is the date of the race at Truro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR)
SELECT date FROM table_name_32 WHERE track = "truro"
Write a SQL query that answers the following question: Which Year has a nominated outstanding actor in a musical?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)
SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical"
Write a SQL query that answers the following question: Which Award has a nominated, and outstanding choreography?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR)
SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography"
Write a SQL query that answers the following question: Which Award has best performance by a leading actor in a musical
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical"
Write a SQL query that answers the following question: What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
Write a SQL query that answers the following question: What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR)
SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df"
Write a SQL query that answers the following question: What is the total number of Years that has the Group, Method Fest Independent Film Festival?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival"
Write a SQL query that answers the following question: What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
Write a SQL query that answers the following question: Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR)
SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama"
Write a SQL query that answers the following question: After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama"
Write a SQL query that answers the following question: What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR)
SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"
Write a SQL query that answers the following question: What is the Film/Show, when the Year is 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR)
SELECT film_show FROM table_name_19 WHERE year = 2010
Write a SQL query that answers the following question: Which year is that has a Entrant of belond equa-flow / calif. muffler?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler"
Write a SQL query that answers the following question: If the Ovrs is less than 2, what's the average in Wkts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER)
SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2
Write a SQL query that answers the following question: If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR)
SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges"
Write a SQL query that answers the following question: How many sacks have 2006 as the year, and a solo less than 62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR)
SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62
Write a SQL query that answers the following question: What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)
SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
Write a SQL query that answers the following question: How many sacks have 72 as the solo and a TTkl less than 112?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)
SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112
Write a SQL query that answers the following question: How many TTkl have 2004 as the year, and a pass def greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR)
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5
Write a SQL query that answers the following question: What is the highest decile of Tarras school, which had a state authority?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school"
Write a SQL query that answers the following question: What is the decile of the school with a roll larger than 513?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER)
SELECT SUM(decile) FROM table_name_36 WHERE roll > 513
Write a SQL query that answers the following question: What is the area of Cromwell Primary school, which has a state authority?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"
Write a SQL query that answers the following question: Which player has figures of 4/14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
SELECT player FROM table_name_46 WHERE figures = "4/14"
Write a SQL query that answers the following question: How many overs occurred at Waca Ground against Queensland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR)
SELECT overs FROM table_name_31 WHERE ground = "waca ground" AND opponent = "queensland"
Write a SQL query that answers the following question: At which ground did Dirk Nannes have a figure of 4/23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)
SELECT ground FROM table_name_37 WHERE figures = "4/23"
Write a SQL query that answers the following question: Who was the opponent when Steven Smith had 3.3 overs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR)
SELECT opponent FROM table_name_45 WHERE overs = 3.3
Write a SQL query that answers the following question: Name the average year for brookvale oval and margin more than 46
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR)
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
Write a SQL query that answers the following question: Name the most year for brookvale oval
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale oval"
Write a SQL query that answers the following question: Name the average year for manly-warringah sea eagles
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR)
SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles"
Write a SQL query that answers the following question: Who is the partner with a score of 6–1, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4"
Write a SQL query that answers the following question: what is the best supported club with a 25 Goal and a per game larger than 1,156?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)
SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156
Write a SQL query that answers the following question: What are the age groups for the Big League World Series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR)
SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"
Write a SQL query that answers the following question: How often is the table tennis competition held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)
SELECT held_every FROM table_name_13 WHERE sport = "table tennis"
Write a SQL query that answers the following question: How often is the cricket competition held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR)
SELECT held_every FROM table_name_97 WHERE sport = "cricket"
Write a SQL query that answers the following question: What was the attendance of the Blue Jays' game when their record was 47-43?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR)
SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43"
Write a SQL query that answers the following question: Which year had a Cosworth V8 engine and 12 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR)
SELECT year FROM table_name_36 WHERE points = 12 AND engine = "cosworth v8"
Write a SQL query that answers the following question: How many points did the ATS Wheels entrant with an ATS D2 chassis have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2"
Write a SQL query that answers the following question: How many races have less than 2 podiums and 19th position before 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009
Write a SQL query that answers the following question: Which co drivers are 3rd in Joest racing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR)
SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing"
Write a SQL query that answers the following question: When was radek necas with less than 2.04 height born?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04
Write a SQL query that answers the following question: How tall was the member of Nymburk, who was born in 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR)
SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk"
Write a SQL query that answers the following question: What Kerry number does Taylor county have with more than 65 others#?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65
Write a SQL query that answers the following question: What is the smallest bush# with 66.0% bush and less than 65 others#?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65
Write a SQL query that answers the following question: Who was the captain of the away team at Adelaide Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval"
Write a SQL query that answers the following question: What is the final score at Melbourne Cricket Ground?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground"
Write a SQL query that answers the following question: Name the score for april 28
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_66 WHERE date = "april 28"
Write a SQL query that answers the following question: What is the average Heat for anjelika solovieva?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
Write a SQL query that answers the following question: What is the average lane with Netherlands Antilles Nationality?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR)
SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"
Write a SQL query that answers the following question: What is the finish of the year with start 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_42 WHERE start = "5"
Write a SQL query that answers the following question: What is the rank in 1940?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_26 WHERE year = "1940"
Write a SQL query that answers the following question: What is the highest laps of the year when the rank was 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
Write a SQL query that answers the following question: What year had 134 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
Write a SQL query that answers the following question: What is the finish when there was more than 192 laps and a qual of 135.736?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
Write a SQL query that answers the following question: Witch opponent has a loss of Glynn (0-2)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
Write a SQL query that answers the following question: Who was the previous champion of the title won on July 7, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
Write a SQL query that answers the following question: When did Bonecrusher win the championship at Bayamón, Puerto Rico?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
Write a SQL query that answers the following question: Who is the champion of the title previously held by Lash?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)
SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash"
Write a SQL query that answers the following question: Which championship was won on July 7, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
Write a SQL query that answers the following question: Who has 6/1 odds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
Write a SQL query that answers the following question: What is the total dist with Johnny Murtagh and less than 26 runners?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)
SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "johnny murtagh" AND runners < 26
Write a SQL query that answers the following question: Who has 5/1 odds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)
SELECT jockey FROM table_name_55 WHERE odds = "5/1"
Write a SQL query that answers the following question: What course did Fergal Lynch end up with 5/1 odds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)
SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1"
Write a SQL query that answers the following question: What place has a To par of +4 and a score of 74-70-74-74=292?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
Write a SQL query that answers the following question: What place in the United States has a To par of e?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"
Write a SQL query that answers the following question: What is the To par for the place in the United States and a score of 74-69-71-74=288?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_87 WHERE country = "united states" AND score = 74 - 69 - 71 - 74 = 288
Write a SQL query that answers the following question: What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR)
SELECT venue FROM table_name_27 WHERE year < 2005 AND position = "10th (sf)"
Write a SQL query that answers the following question: What's the average Year for the Position of 7th (sf)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year INTEGER, position VARCHAR)
SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)"
Write a SQL query that answers the following question: What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_67 WHERE event = "800 m" AND venue = "santiago de chile"
Write a SQL query that answers the following question: What Venue has a Position of 12th (sf)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR)
SELECT venue FROM table_name_97 WHERE position = "12th (sf)"
Write a SQL query that answers the following question: Which engine has an Entrant of team lotus, and a Year larger than 1962?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT engine FROM table_name_47 WHERE entrant = "team lotus" AND year > 1962
Write a SQL query that answers the following question: How many points have a Year larger than 1966?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (points VARCHAR, year INTEGER)
SELECT COUNT(points) FROM table_name_69 WHERE year > 1966
Write a SQL query that answers the following question: What is the smallest number of points with an Engine of climax v8, and a Year of 1966?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE engine = "climax v8" AND year = 1966
Write a SQL query that answers the following question: How many points did Team Rothmans International have after 1975 when their Chassis was a March 771?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = "team rothmans international" AND chassis = "march 771"
Write a SQL query that answers the following question: What Nationality of the person who has a Rank of 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_59 WHERE lane < 4 AND rank = 4
Write a SQL query that answers the following question: Name the score on october 14
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_59 WHERE date = "october 14"
Write a SQL query that answers the following question: What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
Write a SQL query that answers the following question: How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
Write a SQL query that answers the following question: How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44
Write a SQL query that answers the following question: What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR)
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38
Write a SQL query that answers the following question: When did Manny Pacquiao win his first championship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE fighter = "manny pacquiao"
Write a SQL query that answers the following question: Which sport did the United States win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)
SELECT sport FROM table_name_29 WHERE nation_represented = "united states"
Write a SQL query that answers the following question: What is the latest result where a person from the Philippines won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
Write a SQL query that answers the following question: Which nation won the boxing championship in 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR)
SELECT nation_represented FROM table_name_1 WHERE year = 2012
Write a SQL query that answers the following question: What is the total number of seats of the Christian Democratic Union (CDU) party?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR)
SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)"
Write a SQL query that answers the following question: What seat has a vote percentage of 100.0%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (seat_percentage VARCHAR, vote_percentage VARCHAR)
SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = "100.0%"