instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR)
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943"
Write a SQL query that answers the following question: What is Born-Died, when Term End is 19 January 1943?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR)
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943"
Write a SQL query that answers the following question: What is the Score of the game with a Record of 5–4–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_2 WHERE record = "5–4–3"
Write a SQL query that answers the following question: What is the Score on January 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE date = "january 23"
Write a SQL query that answers the following question: What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (visitor VARCHAR, home VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_78 WHERE home = "montreal canadiens" AND record = "6–4–4"
Write a SQL query that answers the following question: What is the Date of the game with a Record of 12–7–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_20 WHERE record = "12–7–6"
Write a SQL query that answers the following question: What is the Record of the Montreal Canadiens Home game on March 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE home = "montreal canadiens" AND date = "march 23"
Write a SQL query that answers the following question: What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (tournament_location VARCHAR, margin_of_victory VARCHAR, purse___$__ VARCHAR)
SELECT tournament_location FROM table_name_81 WHERE margin_of_victory = "1 stroke" AND purse___$__ = "1,200,000"
Write a SQL query that answers the following question: What tournament location has south korea as the country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR)
SELECT tournament_location FROM table_name_43 WHERE country = "south korea"
Write a SQL query that answers the following question: What is the land area of Switzerland with a population density fewer than 188 km²?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (land_area__km²_ INTEGER, country VARCHAR, population_density__pop_per_km²_ VARCHAR)
SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188
Write a SQL query that answers the following question: What lost has 86 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (lost VARCHAR, points VARCHAR)
SELECT lost FROM table_name_67 WHERE points = "86"
Write a SQL query that answers the following question: With 37 tries against, what is the try bonus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37"
Write a SQL query that answers the following question: How many points against when 41 is the tries for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (points_against VARCHAR, tries_for VARCHAR)
SELECT points_against FROM table_name_59 WHERE tries_for = "41"
Write a SQL query that answers the following question: With a lost of lost what was the losing bonus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (losing_bonus VARCHAR)
SELECT losing_bonus FROM table_name_52 WHERE "lost" = "lost"
Write a SQL query that answers the following question: What points has points for as points for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (points VARCHAR, points_for VARCHAR)
SELECT points FROM table_name_25 WHERE points_for = "points for"
Write a SQL query that answers the following question: What is the points when the club is Barry RFC with a 5 as the try bonus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (points VARCHAR, try_bonus VARCHAR, club VARCHAR)
SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc"
Write a SQL query that answers the following question: What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61
Write a SQL query that answers the following question: What is the lowest Silver, when Bronze is 1, and when Total is less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_23 WHERE bronze = 1 AND total < 3
Write a SQL query that answers the following question: What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = "3"
Write a SQL query that answers the following question: Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams"
Write a SQL query that answers the following question: What is the grid average with a +1 lap time and more than 27 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 27
Write a SQL query that answers the following question: Which lap has more than 17 grids with tetsuya harada?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 17 AND rider = "tetsuya harada"
Write a SQL query that answers the following question: Prior to 1978, what is the Danish of the Film directed by Bent Christensen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (danish_title VARCHAR, year VARCHAR, director VARCHAR)
SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = "bent christensen"
Write a SQL query that answers the following question: Who is the Director of the Olsen Gang Sees Red?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (director VARCHAR, english_title VARCHAR)
SELECT director FROM table_name_11 WHERE english_title = "the olsen gang sees red"
Write a SQL query that answers the following question: What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR)
SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon"
Write a SQL query that answers the following question: What is the Year of submission of the Film The Art of Crying?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (year INTEGER, english_title VARCHAR)
SELECT MIN(year) FROM table_name_70 WHERE english_title = "the art of crying"
Write a SQL query that answers the following question: Which Home Town had the weight of 201?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR)
SELECT home_town FROM table_name_67 WHERE weight = 201
Write a SQL query that answers the following question: What Position did the sophomore Darnell Jackson play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR)
SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson"
Write a SQL query that answers the following question: what kind of 2007 has a 1999 of —, and a Model of seat mii?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (model VARCHAR)
SELECT 2007 FROM table_name_16 WHERE 1999 = "—" AND model = "seat mii"
Write a SQL query that answers the following question: Which 2005 has a 2006 of 126,511?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (Id VARCHAR)
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511"
Write a SQL query that answers the following question: Name the 2004 which has a 2003 of 36,026?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (Id VARCHAR)
SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026"
Write a SQL query that answers the following question: Name the 2007 which has a 2011 of 191,183? Question 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (Id VARCHAR)
SELECT 2007 FROM table_name_14 WHERE 2011 = "191,183"
Write a SQL query that answers the following question: Name the 2011 which has a 2002 of —, and a Model of seat marbella?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (model VARCHAR)
SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella"
Write a SQL query that answers the following question: Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (Id VARCHAR)
SELECT 2003 FROM table_name_33 WHERE 2000 = "—" AND 2007 = "—" AND 2010 = "—"
Write a SQL query that answers the following question: Who is affiliated with the Dukes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes"
Write a SQL query that answers the following question: What school is in Radford, Va?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_74 WHERE location = "radford, va"
Write a SQL query that answers the following question: What school has a public nickname, founded after 1838 in Harrisonburg, Va?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR)
SELECT nickname FROM table_name_38 WHERE affiliation = "public" AND founded > 1838 AND location = "harrisonburg, va"
Write a SQL query that answers the following question: Lowest pick for mike flater?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (pick INTEGER, name VARCHAR)
SELECT MIN(pick) FROM table_name_21 WHERE name = "mike flater"
Write a SQL query that answers the following question: Who was the home team on January 2 with 23 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (home VARCHAR, points VARCHAR, date VARCHAR)
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 2"
Write a SQL query that answers the following question: What is the record when St. Louis is the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_56 WHERE visitor = "st. louis"
Write a SQL query that answers the following question: What was the score for the game on November 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "november 1"
Write a SQL query that answers the following question: What were the location and attendance for the game against New Jersey?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_33 WHERE team = "new jersey"
Write a SQL query that answers the following question: Where were the 2009 and 2011 Grand Slam Tournaments?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (Id VARCHAR)
SELECT 2011 FROM table_name_86 WHERE 2009 = "grand slam tournaments"
Write a SQL query that answers the following question: What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR)
SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = "gen. juan alonso" AND inaugurated = "15 march 1940"
Write a SQL query that answers the following question: What is Left Office, when Inaugurate is "15 March 1930"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR)
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930"
Write a SQL query that answers the following question: What is Second Vice President, when Inaugurated is "26 March 1928"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (second_vice_president VARCHAR, inaugurated VARCHAR)
SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928"
Write a SQL query that answers the following question: What is Second Vice President, when Inaugurated is "15 March 1935"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (second_vice_president VARCHAR, inaugurated VARCHAR)
SELECT second_vice_president FROM table_name_49 WHERE inaugurated = "15 march 1935"
Write a SQL query that answers the following question: What is Third Vice President, when Inaugurated is "15 March 1934"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR)
SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934"
Write a SQL query that answers the following question: What is Third Vice President, when Second Vice President is "Baudelio Palma"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (third_vice_president VARCHAR, second_vice_president VARCHAR)
SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = "baudelio palma"
Write a SQL query that answers the following question: What was the score of the game from July 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_30 WHERE date = "july 18"
Write a SQL query that answers the following question: What was the Attendance on Week 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE week = 9
Write a SQL query that answers the following question: What is the Opponent of the game with a Result of w 13–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_49 WHERE result = "w 13–0"
Write a SQL query that answers the following question: What was the score in January that was less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (score VARCHAR, january INTEGER)
SELECT score FROM table_name_92 WHERE january < 4
Write a SQL query that answers the following question: Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_55 WHERE margin_of_victory = "playoff" AND runner_s__up = "yueh-chyn huang"
Write a SQL query that answers the following question: What is the latitude of the point with a longitude of 147.1w?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR)
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w"
Write a SQL query that answers the following question: What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR)
SELECT isbn_uk FROM table_name_38 WHERE author = "dave martin" AND isbn_us = "n/a"
Write a SQL query that answers the following question: What is ISBN US, when Title is "Crisis In Space"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR)
SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space"
Write a SQL query that answers the following question: What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (author VARCHAR, tv_companions_featured VARCHAR, title VARCHAR)
SELECT author FROM table_name_1 WHERE tv_companions_featured = "peri brown" AND title = "race against time"
Write a SQL query that answers the following question: What is Title, when TV Companions Featured is "K-9"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (title VARCHAR, tv_companions_featured VARCHAR)
SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-9"
Write a SQL query that answers the following question: What is ISBN US, when Title is "Mission To Venus"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (isbn_us VARCHAR, title VARCHAR)
SELECT isbn_us FROM table_name_55 WHERE title = "mission to venus"
Write a SQL query that answers the following question: What is TV Companions Featured, when Author is "William Emms"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (tv_companions_featured VARCHAR, author VARCHAR)
SELECT tv_companions_featured FROM table_name_95 WHERE author = "william emms"
Write a SQL query that answers the following question: Which Date has a Result of 2–2, and a Venue of H?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_3 WHERE result = "2–2" AND venue = "h"
Write a SQL query that answers the following question: Which player had a to par score larger than 7 and a total score of 298?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298
Write a SQL query that answers the following question: In which location did he win the Superbrawl 16 event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR)
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16"
Write a SQL query that answers the following question: What was his record when the method was technical submission (forearm choke)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (record VARCHAR, method VARCHAR)
SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)"
Write a SQL query that answers the following question: Who was the opponent in round 2 of the UFC 49 event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_1 WHERE round = "2" AND event = "ufc 49"
Write a SQL query that answers the following question: What was the round when he fought Joe Stevenson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson"
Write a SQL query that answers the following question: On which date was the score 94-74 w?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_70 WHERE score = "94-74 w"
Write a SQL query that answers the following question: When they played at Chicago Bulls, what was the Location/Attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (location_attendance VARCHAR, opponent VARCHAR)
SELECT location_attendance FROM table_name_47 WHERE opponent = "at chicago bulls"
Write a SQL query that answers the following question: Who was the opponent in Game 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_98 WHERE game = "44"
Write a SQL query that answers the following question: Who was the opponent when they played at Delta Center with a record of 27-13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13"
Write a SQL query that answers the following question: What was the date for Game 41?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_33 WHERE game = "41"
Write a SQL query that answers the following question: Which Opposing Team has an Against of 3, and a Date of 11 february 1950?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (opposing_team VARCHAR, against VARCHAR, date VARCHAR)
SELECT opposing_team FROM table_name_97 WHERE against = 3 AND date = "11 february 1950"
Write a SQL query that answers the following question: Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (venue VARCHAR, opposing_team VARCHAR, round VARCHAR)
SELECT venue FROM table_name_79 WHERE opposing_team = "manchester united" AND round = "5th round replay"
Write a SQL query that answers the following question: Which Against has a Date of 28 january 1950?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (against INTEGER, date VARCHAR)
SELECT AVG(against) FROM table_name_49 WHERE date = "28 january 1950"
Write a SQL query that answers the following question: What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland"
Write a SQL query that answers the following question: What year did anna thompson have a 7th place result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year VARCHAR, result VARCHAR)
SELECT year FROM table_name_85 WHERE result = "7th"
Write a SQL query that answers the following question: What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR)
SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th"
Write a SQL query that answers the following question: What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (total_matches INTEGER, points__percentage VARCHAR, points_won VARCHAR, year VARCHAR)
SELECT MAX(total_matches) FROM table_name_4 WHERE points_won > 1.5 AND year = "2002" AND points__percentage < 50
Write a SQL query that answers the following question: WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (loss INTEGER, avg_g VARCHAR)
SELECT SUM(loss) FROM table_name_18 WHERE avg_g = 89.9
Write a SQL query that answers the following question: WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (loss VARCHAR, long VARCHAR, gain VARCHAR)
SELECT COUNT(loss) FROM table_name_15 WHERE long < 24 AND gain > 116
Write a SQL query that answers the following question: How many rounds did Brett go against Kevin Asplund?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_72 WHERE opponent = "kevin asplund"
Write a SQL query that answers the following question: How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR)
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz"
Write a SQL query that answers the following question: Which Opponent has a Record of 22-10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_36 WHERE record = "22-10"
Write a SQL query that answers the following question: Which Score has an Opponent of @ seattle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_71 WHERE opponent = "@ seattle"
Write a SQL query that answers the following question: Which Record has a Result of loss, and an Opponent of @ la clippers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (record VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_53 WHERE result = "loss" AND opponent = "@ la clippers"
Write a SQL query that answers the following question: Which Score has an Opponent of @ la lakers, and a Record of 8-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-6"
Write a SQL query that answers the following question: Which Opponent has a Result of win, and a Date of march 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_45 WHERE result = "win" AND date = "march 17"
Write a SQL query that answers the following question: Which Score has a Date of may 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_60 WHERE date = "may 4"
Write a SQL query that answers the following question: Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (pd_per_game INTEGER, pa_per_game VARCHAR, streak VARCHAR, rank VARCHAR, winning__percentage VARCHAR)
SELECT MIN(pd_per_game) FROM table_name_49 WHERE rank < 4 AND winning__percentage = "78.6%" AND streak = "w1" AND pa_per_game < 81.5
Write a SQL query that answers the following question: Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (loss INTEGER, pa_per_game VARCHAR, last_5 VARCHAR, streak VARCHAR)
SELECT AVG(loss) FROM table_name_80 WHERE last_5 = "4-1" AND streak = "w2" AND pa_per_game < 88.43
Write a SQL query that answers the following question: Which Last 5 has a Rank of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (last_5 VARCHAR, rank VARCHAR)
SELECT last_5 FROM table_name_31 WHERE rank = 7
Write a SQL query that answers the following question: Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR)
SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 4
Write a SQL query that answers the following question: Which PF per game has a Rank of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (pf_per_game INTEGER, rank VARCHAR)
SELECT MIN(pf_per_game) FROM table_name_22 WHERE rank = 5
Write a SQL query that answers the following question: What was the score in Round 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (record VARCHAR, round VARCHAR)
SELECT record FROM table_name_32 WHERE round = "3"
Write a SQL query that answers the following question: What was the record for opponent Matt Serra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_36 WHERE opponent = "matt serra"
Write a SQL query that answers the following question: What was the event for round 1 against Lance Wipf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf"
Write a SQL query that answers the following question: What is the total number of Area (km²), when Population (2007) is 6,176?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (area__km²_ VARCHAR, population__2007_ VARCHAR)
SELECT COUNT(area__km²_) FROM table_name_13 WHERE population__2007_ = 6 OFFSET 176
Write a SQL query that answers the following question: How many laps did car 23 do?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR)
SELECT laps FROM table_name_17 WHERE car_no = "23"
Write a SQL query that answers the following question: How many laps did the car do that had a final position of 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR)
SELECT laps FROM table_name_79 WHERE fin_pos = "17"