instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What attendance does 1-6 record have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (attendance INTEGER, record VARCHAR)
SELECT SUM(attendance) FROM table_name_46 WHERE record = "1-6"
Write a SQL query that answers the following question: What is the record of Tampa Bay Buccaneers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_69 WHERE opponent = "tampa bay buccaneers"
Write a SQL query that answers the following question: What Nationality has a Position of right wing, with a #20 pick?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT nationality FROM table_name_79 WHERE position = "right wing" AND pick__number = "20"
Write a SQL query that answers the following question: What College/junior/club team has a Position of centre, and pick is #22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (college_junior_club_team VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT college_junior_club_team FROM table_name_31 WHERE position = "centre" AND pick__number = "22"
Write a SQL query that answers the following question: What is the NHL team that had pick number 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT nhl_team FROM table_name_72 WHERE pick__number = "32"
Write a SQL query that answers the following question: What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR)
SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
Write a SQL query that answers the following question: What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (player VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_22 WHERE nhl_team = "new york rangers" AND pick__number = "31"
Write a SQL query that answers the following question: Which sum of Seasons in league has a Best Position of 5th (2007)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (seasons_in_league INTEGER, best_position VARCHAR)
SELECT SUM(seasons_in_league) FROM table_name_82 WHERE best_position = "5th (2007)"
Write a SQL query that answers the following question: Which City has Seasons in league of 17, and a Club of shakhter?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (city VARCHAR, seasons_in_league VARCHAR, club VARCHAR)
SELECT city FROM table_name_99 WHERE seasons_in_league = 17 AND club = "shakhter"
Write a SQL query that answers the following question: What team won after 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (team VARCHAR, season INTEGER)
SELECT team FROM table_name_9 WHERE season > 2008
Write a SQL query that answers the following question: What team has fewer than 203 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (team VARCHAR, points INTEGER)
SELECT team FROM table_name_66 WHERE points < 203
Write a SQL query that answers the following question: What is total amount of points for the 2007 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (points INTEGER, season VARCHAR)
SELECT SUM(points) FROM table_name_69 WHERE season = 2007
Write a SQL query that answers the following question: Who is the driver for team Collé Racing with more than 206 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (driver VARCHAR, team VARCHAR, points VARCHAR)
SELECT driver FROM table_name_66 WHERE team = "collé racing" AND points > 206
Write a SQL query that answers the following question: What was the result when the couple was steve & anna?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (result VARCHAR, couple VARCHAR)
SELECT result FROM table_name_97 WHERE couple = "steve & anna"
Write a SQL query that answers the following question: What was the score when the couple was shannon & derek?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (score VARCHAR, couple VARCHAR)
SELECT score FROM table_name_72 WHERE couple = "shannon & derek"
Write a SQL query that answers the following question: What music did Mario & Karina perform?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (music VARCHAR, couple VARCHAR)
SELECT music FROM table_name_30 WHERE couple = "mario & karina"
Write a SQL query that answers the following question: What was the result for Steve & Anna when the score was 21 (7, 7, 7)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (result VARCHAR, score VARCHAR, couple VARCHAR)
SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna"
Write a SQL query that answers the following question: What was the result when the score was 21 (7, 6, 8)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_28 WHERE score = "21 (7, 6, 8)"
Write a SQL query that answers the following question: Which Points have a Score of 3–3, and a Date of november 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (points VARCHAR, score VARCHAR, date VARCHAR)
SELECT points FROM table_name_4 WHERE score = "3–3" AND date = "november 11"
Write a SQL query that answers the following question: Which Date has a Home of pittsburgh, and a Record of 3–6–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_22 WHERE home = "pittsburgh" AND record = "3–6–5"
Write a SQL query that answers the following question: Which Record has a Score of 4–4, and Points of 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (record VARCHAR, score VARCHAR, points VARCHAR)
SELECT record FROM table_name_91 WHERE score = "4–4" AND points = 17
Write a SQL query that answers the following question: What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (loses INTEGER, wins VARCHAR, pos VARCHAR)
SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3
Write a SQL query that answers the following question: Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (rank VARCHAR, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(rank) FROM table_name_6 WHERE bronze > 1 AND silver > 0 AND nation = "norway (host nation)" AND total > 16
Write a SQL query that answers the following question: Which Bronze has a Total of 11, and a Silver smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6
Write a SQL query that answers the following question: Which Bronze has a Nation of canada, and a Rank smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (bronze INTEGER, nation VARCHAR, rank VARCHAR)
SELECT AVG(bronze) FROM table_name_5 WHERE nation = "canada" AND rank < 6
Write a SQL query that answers the following question: Which Gold has a Bronze larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (gold INTEGER, bronze INTEGER)
SELECT MIN(gold) FROM table_name_34 WHERE bronze > 6
Write a SQL query that answers the following question: Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (gold INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT SUM(gold) FROM table_name_25 WHERE rank > 6 AND nation = "netherlands" AND bronze < 0
Write a SQL query that answers the following question: What is the torque of the 1.6 petrol with daewoo power?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR, power VARCHAR)
SELECT torque FROM table_name_49 WHERE name = "1.6 petrol" AND power = "daewoo"
Write a SQL query that answers the following question: What is the torque of 1.2 petrol?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR)
SELECT torque FROM table_name_49 WHERE name = "1.2 petrol"
Write a SQL query that answers the following question: What is the power of 1.9 diesel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (power VARCHAR, name VARCHAR)
SELECT power FROM table_name_66 WHERE name = "1.9 diesel"
Write a SQL query that answers the following question: What is the current map designation of the feature for which derain crater was the namesake?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (current_map VARCHAR, namesake VARCHAR)
SELECT current_map FROM table_name_25 WHERE namesake = "derain crater"
Write a SQL query that answers the following question: What is the Albedo name for Neruda?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (albedo_feature_name VARCHAR, name VARCHAR)
SELECT albedo_feature_name FROM table_name_65 WHERE name = "neruda"
Write a SQL query that answers the following question: What number is Kuiper?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (number VARCHAR, name VARCHAR)
SELECT number FROM table_name_28 WHERE name = "kuiper"
Write a SQL query that answers the following question: What is the current map designation of the feature which was named for discovery rupes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (current_map VARCHAR, namesake VARCHAR)
SELECT current_map FROM table_name_63 WHERE namesake = "discovery rupes"
Write a SQL query that answers the following question: What is the current map designation for Debussy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (current_map VARCHAR, name VARCHAR)
SELECT current_map FROM table_name_24 WHERE name = "debussy"
Write a SQL query that answers the following question: What is the current map designation for Beethoven?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (current_map VARCHAR, name VARCHAR)
SELECT current_map FROM table_name_72 WHERE name = "beethoven"
Write a SQL query that answers the following question: What is the overall FHT points for Denis Kornilov?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (overall_fht_points VARCHAR, name VARCHAR)
SELECT overall_fht_points FROM table_name_90 WHERE name = "denis kornilov"
Write a SQL query that answers the following question: What is the lowest 2nd (m) when the points were larger than 251.6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (points INTEGER)
SELECT MIN(2 AS nd__m_) FROM table_name_99 WHERE points > 251.6
Write a SQL query that answers the following question: What city ranked 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (city VARCHAR, rank VARCHAR)
SELECT city FROM table_name_20 WHERE rank = 7
Write a SQL query that answers the following question: How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR)
SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3
Write a SQL query that answers the following question: What is the rank of Etihad Tower 5, with less than 62 floors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (rank INTEGER, floors VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = "etihad tower 5"
Write a SQL query that answers the following question: What city has a building ranked greater than 15 with floors greater than 43?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (city VARCHAR, rank VARCHAR, floors VARCHAR)
SELECT city FROM table_name_45 WHERE rank > 15 AND floors > 43
Write a SQL query that answers the following question: Which league is for baseball with Laredo Apaches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (league VARCHAR, sport VARCHAR, club VARCHAR)
SELECT league FROM table_name_31 WHERE sport = "baseball" AND club = "laredo apaches"
Write a SQL query that answers the following question: Which league has arena football in the club Laredo Lobos?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (league VARCHAR, sport VARCHAR, club VARCHAR)
SELECT league FROM table_name_70 WHERE sport = "arena football" AND club = "laredo lobos"
Write a SQL query that answers the following question: Which was the home team for game 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (home_team VARCHAR, game VARCHAR)
SELECT home_team FROM table_name_14 WHERE game = "game 3"
Write a SQL query that answers the following question: What was the TV time for Chicago's road game against Phoenix on June 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (tv_time VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT tv_time FROM table_name_66 WHERE road_team = "phoenix" AND date = "june 18"
Write a SQL query that answers the following question: What was the TV time for the road game against Phoenix where the score was 98-99?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (tv_time VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT tv_time FROM table_name_30 WHERE home_team = "phoenix" AND result = "98-99"
Write a SQL query that answers the following question: Who was the home team on June 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_90 WHERE date = "june 9"
Write a SQL query that answers the following question: What was the TV time for the game on June 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (tv_time VARCHAR, date VARCHAR)
SELECT tv_time FROM table_name_29 WHERE date = "june 9"
Write a SQL query that answers the following question: At which Conference was the Division in the East, and the Home Stadium named fedexfield?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)
SELECT conference FROM table_name_94 WHERE division = "east" AND home_stadium = "fedexfield"
Write a SQL query that answers the following question: What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (home_stadium VARCHAR, city VARCHAR, division VARCHAR, conference VARCHAR)
SELECT home_stadium FROM table_name_64 WHERE division = "south" AND conference = "national" AND city = "charlotte, north carolina"
Write a SQL query that answers the following question: Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (home_stadium VARCHAR, conference VARCHAR, city VARCHAR)
SELECT home_stadium FROM table_name_25 WHERE conference = "american" AND city = "nashville, tennessee"
Write a SQL query that answers the following question: What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)
SELECT conference FROM table_name_69 WHERE division = "south" AND home_stadium = "georgia dome"
Write a SQL query that answers the following question: Which Division does the City being jacksonville, florida belong to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (division VARCHAR, city VARCHAR)
SELECT division FROM table_name_14 WHERE city = "jacksonville, florida"
Write a SQL query that answers the following question: What score has 1/22 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_11 WHERE date = "1/22"
Write a SQL query that answers the following question: What score has 12/1 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_86 WHERE date = "12/1"
Write a SQL query that answers the following question: Which source has a Cost free, and an Activity of some, and an Editor of markitup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (open_source VARCHAR, editor VARCHAR, cost___us$__ VARCHAR, activity VARCHAR)
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
Write a SQL query that answers the following question: Which site has a Cost free and a Editor of jsvi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (site VARCHAR, cost___us$__ VARCHAR, editor VARCHAR)
SELECT site FROM table_name_46 WHERE cost___us$__ = "free" AND editor = "jsvi"
Write a SQL query that answers the following question: What is the cost of an Open Source that is no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (cost___us$__ VARCHAR, open_source VARCHAR)
SELECT cost___us$__ FROM table_name_66 WHERE open_source = "no"
Write a SQL query that answers the following question: What venue has a weight (kg) greater than 55, and won as the result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (venue VARCHAR, weight__kg_ VARCHAR, result VARCHAR)
SELECT venue FROM table_name_64 WHERE weight__kg_ > 55 AND result = "won"
Write a SQL query that answers the following question: Which group has a weight (kg) less than 55?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (group VARCHAR, weight__kg_ INTEGER)
SELECT group FROM table_name_18 WHERE weight__kg_ < 55
Write a SQL query that answers the following question: Which position has 45 picks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (position VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_54 WHERE pick__number = 45
Write a SQL query that answers the following question: What is the record of the game before week 5 and a bye game site?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (record VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye"
Write a SQL query that answers the following question: Which Seasons have Entries larger than 52, and Poles of 33?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR)
SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33
Write a SQL query that answers the following question: Which Seasons have a Poles larger than 29, and Entries larger than 191?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (seasons VARCHAR, poles VARCHAR, entries VARCHAR)
SELECT seasons FROM table_name_66 WHERE poles > 29 AND entries > 191
Write a SQL query that answers the following question: What ist the Away Leg with an Opposition that is aarhus gymnastik forening?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (away_leg VARCHAR, opposition VARCHAR)
SELECT away_leg FROM table_name_60 WHERE opposition = "aarhus gymnastik forening"
Write a SQL query that answers the following question: What 2007 has 236 for 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (Id VARCHAR)
SELECT 2007 FROM table_name_70 WHERE 2006 = "236"
Write a SQL query that answers the following question: What 2011 has 2r as 2010, and a 2008 of A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (Id VARCHAR)
SELECT 2011 FROM table_name_72 WHERE 2010 = "2r" AND 2008 = "a"
Write a SQL query that answers the following question: What is the 2012 that has tournament played as the tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT 2012 FROM table_name_4 WHERE tournament = "tournament played"
Write a SQL query that answers the following question: Which artist had a place larger than 1 with 229 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (artist VARCHAR, place VARCHAR, points VARCHAR)
SELECT artist FROM table_name_51 WHERE place > 1 AND points = 229
Write a SQL query that answers the following question: Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (january INTEGER, opponent VARCHAR, points VARCHAR)
SELECT MIN(january) FROM table_name_13 WHERE opponent = "florida panthers" AND points < 59
Write a SQL query that answers the following question: Which Record has a Game of 41?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_97 WHERE game = 41
Write a SQL query that answers the following question: Which Score has a January larger than 21, and Points of 63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR)
SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
Write a SQL query that answers the following question: How many Points have a Record of 25–10–11, and a January larger than 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (points VARCHAR, record VARCHAR, january VARCHAR)
SELECT COUNT(points) FROM table_name_21 WHERE record = "25–10–11" AND january > 28
Write a SQL query that answers the following question: what province was established in 1870
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (province VARCHAR, established VARCHAR)
SELECT province FROM table_name_72 WHERE established = 1870
Write a SQL query that answers the following question: Who is the Incumbent that has a District of ohio 13 in Democratic Party?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_3 WHERE district = "ohio 13"
Write a SQL query that answers the following question: What is the score of champion Ken Rosewall in 1957?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)
SELECT score FROM table_name_39 WHERE champion = "ken rosewall" AND year = "1957"
Write a SQL query that answers the following question: What is the surface of the match with Brian Gottfried as the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (surface VARCHAR, runner_up VARCHAR)
SELECT surface FROM table_name_47 WHERE runner_up = "brian gottfried"
Write a SQL query that answers the following question: What is the score of the match with anders järryd as the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (score VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_93 WHERE runner_up = "anders järryd"
Write a SQL query that answers the following question: What is the low bronze total for the team with 4 total and under 1 gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_66 WHERE total = 4 AND gold < 1
Write a SQL query that answers the following question: What is the average total for teams with over 3 bronzes and over 8 golds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_33 WHERE bronze > 3 AND gold > 8
Write a SQL query that answers the following question: What is the low silver total associated with under 1 total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (silver INTEGER, total INTEGER)
SELECT MIN(silver) FROM table_name_99 WHERE total < 1
Write a SQL query that answers the following question: What is the number of points associated with the highest position under 9 and a current position of 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR)
SELECT points FROM table_name_92 WHERE highest_position < 9 AND position = 22
Write a SQL query that answers the following question: Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
SELECT performer_1 FROM table_name_93 WHERE performer_3 = "paul merton" AND performer_4 = "sandi toksvig"
Write a SQL query that answers the following question: Episode of 16 involves which performer 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR)
SELECT performer_1 FROM table_name_64 WHERE episode = 16
Write a SQL query that answers the following question: Performer 2 of compilation 1 had what performer 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (performer_1 VARCHAR, performer_2 VARCHAR)
SELECT performer_1 FROM table_name_55 WHERE performer_2 = "compilation 1"
Write a SQL query that answers the following question: Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
SELECT schwaben FROM table_name_98 WHERE oberbayern = "fc ingolstadt 04" AND mittelfranken = "sv seligenporten"
Write a SQL query that answers the following question: Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii"
Write a SQL query that answers the following question: Who was the incumbent for south carolina 3 district?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_64 WHERE district = "south carolina 3"
Write a SQL query that answers the following question: When was the incumbent from the south carolina 1 district first elected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_56 WHERE district = "south carolina 1"
Write a SQL query that answers the following question: Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold"
Write a SQL query that answers the following question: Who was the incumbent that retired to run for the senate democratic hold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (incumbent VARCHAR, result VARCHAR)
SELECT incumbent FROM table_name_82 WHERE result = "retired to run for the senate democratic hold"
Write a SQL query that answers the following question: What was the result of W. Jasper Talbert who was first elected in 1892?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "w. jasper talbert"
Write a SQL query that answers the following question: Which Nationality has a 2.24 of xo, and a 2.20 of xo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (nationality VARCHAR)
SELECT nationality FROM table_name_35 WHERE 224 = "xo" AND 220 = "xo"
Write a SQL query that answers the following question: Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (athlete VARCHAR)
SELECT athlete FROM table_name_8 WHERE 224 = "xo" AND 220 = "o" AND 215 = "o"
Write a SQL query that answers the following question: What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT MIN(election) FROM table_name_69 WHERE _number_of_candidates_nominated > 7 AND _percentage_of_popular_vote = "2.75%" AND _number_of_seats_won < 0
Write a SQL query that answers the following question: How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT SUM(played) FROM table_name_22 WHERE lost > 14 AND drawn = 8 AND team = "ipatinga"
Write a SQL query that answers the following question: How many Drawn have a Difference of 3, and Points smaller than 52?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (drawn VARCHAR, difference VARCHAR, points VARCHAR)
SELECT COUNT(drawn) FROM table_name_55 WHERE difference = "3" AND points < 52
Write a SQL query that answers the following question: Which Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (points INTEGER, drawn VARCHAR, position VARCHAR, team VARCHAR)
SELECT MAX(points) FROM table_name_80 WHERE position < 4 AND team = "são paulo" AND drawn > 12
Write a SQL query that answers the following question: How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (lost INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
SELECT SUM(lost) FROM table_name_18 WHERE points > 40 AND position = 11 AND played < 38