answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000
CREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR)
What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?
SELECT SUM(melbourne) FROM table_name_93 WHERE episode_number_production_number = "19 2-06" AND sydney < 389 OFFSET 000
CREATE TABLE table_name_93 (melbourne INTEGER, episode_number_production_number VARCHAR, sydney VARCHAR)
What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?
SELECT COUNT(round) FROM table_name_25 WHERE time = "5:00" AND event = "ufc 155"
CREATE TABLE table_name_25 (round VARCHAR, time VARCHAR, event VARCHAR)
How many rounds had a time of 5:00 at UFC 155?
SELECT event FROM table_name_86 WHERE time = "2:34"
CREATE TABLE table_name_86 (event VARCHAR, time VARCHAR)
Which event had a time of 2:34?
SELECT opponent FROM table_name_47 WHERE res = "win" AND time = "1:21"
CREATE TABLE table_name_47 (opponent VARCHAR, res VARCHAR, time VARCHAR)
Who was the opponent in the bout that led to a win in a time of 1:21?
SELECT method FROM table_name_31 WHERE opponent = "akihiro gono"
CREATE TABLE table_name_31 (method VARCHAR, opponent VARCHAR)
What is the method of resolution for the fight against akihiro gono?
SELECT AVG(round) FROM table_name_52 WHERE record = "1-1"
CREATE TABLE table_name_52 (round INTEGER, record VARCHAR)
What is the average number of rounds that Lance Gibson fought when his record was 1-1?
SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206
CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR)
What is the Country of the Player with a Score of 69-71-66=206?
SELECT place FROM table_name_36 WHERE country = "scotland"
CREATE TABLE table_name_36 (place VARCHAR, country VARCHAR)
What is the Place of the Player from Scotland?
SELECT place FROM table_name_78 WHERE player = "steve lowery"
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
What is Steve Lowery's Place?
SELECT qual FROM table_name_98 WHERE year = "1961"
CREATE TABLE table_name_98 (qual VARCHAR, year VARCHAR)
What was 1961's qual?
SELECT finish FROM table_name_10 WHERE start = "13"
CREATE TABLE table_name_10 (finish VARCHAR, start VARCHAR)
What was 13's finish?
SELECT laps FROM table_name_95 WHERE year = "1969"
CREATE TABLE table_name_95 (laps VARCHAR, year VARCHAR)
How many laps were in 1969?
SELECT rank FROM table_name_68 WHERE qual = "145.144"
CREATE TABLE table_name_68 (rank VARCHAR, qual VARCHAR)
Which Rank has a Qual of 145.144?
SELECT sources_of_pop___area FROM table_name_37 WHERE city = "bandung"
CREATE TABLE table_name_37 (sources_of_pop___area VARCHAR, city VARCHAR)
What is the sources for Bandung?
SELECT race FROM table_name_91 WHERE track = "iowa speedway"
CREATE TABLE table_name_91 (race VARCHAR, track VARCHAR)
What race happened at Iowa Speedway?
SELECT winner FROM table_name_14 WHERE race = "food world 250"
CREATE TABLE table_name_14 (winner VARCHAR, race VARCHAR)
Who won the Food World 250?
SELECT race FROM table_name_24 WHERE track = "pocono" AND date = "08-02-2008"
CREATE TABLE table_name_24 (race VARCHAR, track VARCHAR, date VARCHAR)
What race happened at pocono on 08-02-2008?
SELECT race FROM table_name_1 WHERE date = "04-25-2008"
CREATE TABLE table_name_1 (race VARCHAR, date VARCHAR)
What race happened on 04-25-2008?
SELECT track FROM table_name_34 WHERE date = "09-13-2008"
CREATE TABLE table_name_34 (track VARCHAR, date VARCHAR)
Where was the race on 09-13-2008?
SELECT MIN(game) FROM table_name_17 WHERE record = "26-30-10" AND march > 11
CREATE TABLE table_name_17 (game INTEGER, record VARCHAR, march VARCHAR)
Which game number was played after March 11 and ended with a record of 26-30-10?
SELECT SUM(game) FROM table_name_77 WHERE opponent = "@ boston bruins"
CREATE TABLE table_name_77 (game INTEGER, opponent VARCHAR)
How many games total were played against @ Boston Bruins this season?
SELECT MIN(march) FROM table_name_32 WHERE record = "25-29-10"
CREATE TABLE table_name_32 (march INTEGER, record VARCHAR)
When was the earliest game date in March where the match ended with a record of 25-29-10?
SELECT points FROM table_name_58 WHERE season < 1977 AND winner = "john vopni"
CREATE TABLE table_name_58 (points VARCHAR, season VARCHAR, winner VARCHAR)
How many points when John Vopni won a season before 1977?
SELECT points FROM table_name_95 WHERE winner = "bill benson"
CREATE TABLE table_name_95 (points VARCHAR, winner VARCHAR)
How many points when Bill Benson was the winner?
SELECT team FROM table_name_10 WHERE high_rebounds = "tyson chandler (7)"
CREATE TABLE table_name_10 (team VARCHAR, high_rebounds VARCHAR)
Which team did Tyson Chandler (7) have high rebounds for?
SELECT high_assists FROM table_name_10 WHERE date = "november 27"
CREATE TABLE table_name_10 (high_assists VARCHAR, date VARCHAR)
How many high assists were on November 27?
SELECT winning_score FROM table_name_51 WHERE year = 1980
CREATE TABLE table_name_51 (winning_score VARCHAR, year VARCHAR)
What was the winning score in 1980?
SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = "u.s. women's open"
CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR)
What was the winning score in 1985 for Championship of u.s. women's open?
SELECT year FROM table_name_35 WHERE runner_up = "jane geddes"
CREATE TABLE table_name_35 (year VARCHAR, runner_up VARCHAR)
When was the runner-up Jane Geddes?
SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)
CREATE TABLE table_name_17 (championship VARCHAR, year VARCHAR, winning_score VARCHAR)
Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?
SELECT method FROM table_name_77 WHERE opponent = "jake brown"
CREATE TABLE table_name_77 (method VARCHAR, opponent VARCHAR)
What was the method of resolution for the fight against jake brown?
SELECT team FROM table_name_44 WHERE round_winner = "john bowe" AND circuit = "winton motor raceway"
CREATE TABLE table_name_44 (team VARCHAR, round_winner VARCHAR, circuit VARCHAR)
On what team did John Bowe round winner at Winton Motor Raceway belong to?
SELECT team FROM table_name_41 WHERE circuit = "oran park raceway"
CREATE TABLE table_name_41 (team VARCHAR, circuit VARCHAR)
What was the team features at Oran Park Raceway?
SELECT location___state FROM table_name_19 WHERE circuit = "eastern creek raceway"
CREATE TABLE table_name_19 (location___state VARCHAR, circuit VARCHAR)
Where is the Eastern Creek Raceway located?
SELECT state FROM table_name_9 WHERE name = "dai"
CREATE TABLE table_name_9 (state VARCHAR, name VARCHAR)
Which state was Dai from?
SELECT title FROM table_name_6 WHERE name = "mu"
CREATE TABLE table_name_6 (title VARCHAR, name VARCHAR)
What was Mu's title?
SELECT MAX(attendance) FROM table_name_34 WHERE week = 3
CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR)
what is the highest attendance for week 3?
SELECT result FROM table_name_16 WHERE week > 7 AND date = "november 4, 1979"
CREATE TABLE table_name_16 (result VARCHAR, week VARCHAR, date VARCHAR)
what is the result for the week higher than 7 on november 4, 1979?
SELECT MIN(week) FROM table_name_2 WHERE date = "september 16, 1979" AND attendance < 54 OFFSET 212
CREATE TABLE table_name_2 (week INTEGER, date VARCHAR, attendance VARCHAR)
what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212?
SELECT competition FROM table_name_98 WHERE man_of_the_match = "stuart potts"
CREATE TABLE table_name_98 (competition VARCHAR, man_of_the_match VARCHAR)
Which competition has stuart potts as the man of the match?
SELECT venue FROM table_name_15 WHERE result = "lost 5-4"
CREATE TABLE table_name_15 (venue VARCHAR, result VARCHAR)
Which venue had a lost 5-4 result?
SELECT venue FROM table_name_9 WHERE opponent = "wightlink raiders"
CREATE TABLE table_name_9 (venue VARCHAR, opponent VARCHAR)
What is the venue of the match with the wightlink raiders as the opponent?
SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard"
CREATE TABLE table_name_45 (result VARCHAR, man_of_the_match VARCHAR, competition VARCHAR, opponent VARCHAR)
What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match?
SELECT attendance FROM table_name_35 WHERE opponent = "slough jets" AND date = "2nd"
CREATE TABLE table_name_35 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
What is the attendance of the match on the 2nd with the slough jets as the opponent?
SELECT score FROM table_name_89 WHERE total = "75–53"
CREATE TABLE table_name_89 (score VARCHAR, total VARCHAR)
What was the score when the total was 75–53?
SELECT total FROM table_name_80 WHERE set_3 = "25–14"
CREATE TABLE table_name_80 (total VARCHAR, set_3 VARCHAR)
What was the total when the set 3 was 25–14?
SELECT date FROM table_name_12 WHERE set_1 = "25–23" AND set_3 = "25–14"
CREATE TABLE table_name_12 (date VARCHAR, set_1 VARCHAR, set_3 VARCHAR)
What date was the set 1 25–23, and a Set 3 of 25–14?
SELECT date FROM table_name_79 WHERE set_3 = "12–25"
CREATE TABLE table_name_79 (date VARCHAR, set_3 VARCHAR)
What date was the Set 3 of 12–25?
SELECT set_3 FROM table_name_26 WHERE total = "53–75"
CREATE TABLE table_name_26 (set_3 VARCHAR, total VARCHAR)
What is the Set 3 when the total was 53–75?
SELECT AVG(wins) FROM table_name_99 WHERE top_5 > 2 AND top_10 < 5
CREATE TABLE table_name_99 (wins INTEGER, top_5 VARCHAR, top_10 VARCHAR)
What is the average win with a top 5 greater than 2 and a top 10 less than 5?
SELECT COUNT(poles) FROM table_name_20 WHERE starts = 4 AND position = "46th"
CREATE TABLE table_name_20 (poles VARCHAR, starts VARCHAR, position VARCHAR)
How many poles have 4 Starts of 4 and position of 46th?
SELECT SUM(rank) FROM table_name_41 WHERE director_s_ = "m. night shyamalan"
CREATE TABLE table_name_41 (rank INTEGER, director_s_ VARCHAR)
Sum of m. night shyamalan ranks?
SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones"
CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR)
Director for Star Wars Episode II: attack of the clones?
SELECT tie_no FROM table_name_39 WHERE away_team = "oxford city"
CREATE TABLE table_name_39 (tie_no VARCHAR, away_team VARCHAR)
What was the tie no when Oxford city was the away team?
SELECT tie_no FROM table_name_97 WHERE away_team = "wrexham"
CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR)
What was the tie no when Wrexham was the away team?
SELECT score FROM table_name_67 WHERE away_team = "spennymoor united"
CREATE TABLE table_name_67 (score VARCHAR, away_team VARCHAR)
What was the score when Spennymoor United as the away team?
SELECT date FROM table_name_34 WHERE away_team = "grimsby town"
CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR)
What date was Grimsby Town the away team?
SELECT name FROM table_name_33 WHERE eliminated = "banana night"
CREATE TABLE table_name_33 (name VARCHAR, eliminated VARCHAR)
Who was eliminated on Banana Night?
SELECT special_guest FROM table_name_28 WHERE category = "vocal groups" AND name = "romantic"
CREATE TABLE table_name_28 (special_guest VARCHAR, category VARCHAR, name VARCHAR)
Who was the special guest when the category was vocal groups and the name was Romantic?
SELECT date FROM table_name_43 WHERE eliminated = "final night"
CREATE TABLE table_name_43 (date VARCHAR, eliminated VARCHAR)
On what date was elimination on final night?
SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington"
CREATE TABLE table_name_89 (game VARCHAR, opponent VARCHAR)
What is the total number of games for the opponent in Washington?
SELECT stories FROM table_name_53 WHERE height__m_ < 138 AND year_of_completion = 1971
CREATE TABLE table_name_53 (stories VARCHAR, height__m_ VARCHAR, year_of_completion VARCHAR)
How many stories have a height less than 138 meters with a completion date in 1971?
SELECT MAX(stories) FROM table_name_38 WHERE location = "recife" AND year_of_completion > 2007 AND height__m_ < 135
CREATE TABLE table_name_38 (stories INTEGER, height__m_ VARCHAR, location VARCHAR, year_of_completion VARCHAR)
What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?
SELECT sanskrit FROM table_name_26 WHERE english = "mindfulness of breathing"
CREATE TABLE table_name_26 (sanskrit VARCHAR, english VARCHAR)
Which Sanskrit has an English of mindfulness of breathing?
SELECT sanskrit FROM table_name_74 WHERE chinese = "β€”" AND english = "cultivation of settling"
CREATE TABLE table_name_74 (sanskrit VARCHAR, chinese VARCHAR, english VARCHAR)
Which Sanskrit has a Chinese of β€”, and an English of cultivation of settling?
SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing"
CREATE TABLE table_name_54 (pali VARCHAR, english VARCHAR)
Which Pali has an English of mindfulness of breathing?
SELECT pali FROM table_name_74 WHERE english = "meditative concentration"
CREATE TABLE table_name_74 (pali VARCHAR, english VARCHAR)
Which Pali has an English of meditative concentration?
SELECT chinese FROM table_name_59 WHERE pali = "atappa"
CREATE TABLE table_name_59 (chinese VARCHAR, pali VARCHAR)
Which Chinese has a Pali of atappa?
SELECT english FROM table_name_42 WHERE sanskrit = "samādhi"
CREATE TABLE table_name_42 (english VARCHAR, sanskrit VARCHAR)
Which English has a Sanskrit of samādhi?
SELECT player FROM table_name_60 WHERE round < 8 AND position = "guard" AND school_club_team = "stephen f. austin"
CREATE TABLE table_name_60 (player VARCHAR, school_club_team VARCHAR, round VARCHAR, position VARCHAR)
Who is the player in guard position from Stephen F. Austin in a round less than 8?
SELECT position FROM table_name_31 WHERE pick < 41 AND school_club_team = "ohio state"
CREATE TABLE table_name_31 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
Which position has a pick less than 41 from Ohio State?
SELECT 2006 FROM table_name_52 WHERE 2002 = "grand slam tournaments"
CREATE TABLE table_name_52 (Id VARCHAR)
What shows for 2006 when 2002 is Grand Slam Tournaments?
SELECT 2002 FROM table_name_65 WHERE 2006 = "grand slam tournaments"
CREATE TABLE table_name_65 (Id VARCHAR)
What shows for 2002 when 2006 is Grand Slam Tournaments?
SELECT 2005 FROM table_name_16 WHERE 2002 = "0–1"
CREATE TABLE table_name_16 (Id VARCHAR)
What shows for 2005 when 2002 shows 0–1?
SELECT 2006 FROM table_name_96 WHERE 2002 = "0–1"
CREATE TABLE table_name_96 (Id VARCHAR)
What shows for 2006 when 2002 is 0–1?
SELECT 2002 FROM table_name_40 WHERE 2004 = "a" AND 2005 = "1r"
CREATE TABLE table_name_40 (Id VARCHAR)
What shows for 2002 when the 2004 is A, and the 2005 is 1r?
SELECT 2004 FROM table_name_60 WHERE 2005 = "a" AND 2006 = "a" AND tournament = "us open"
CREATE TABLE table_name_60 (tournament VARCHAR)
What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open?
SELECT opponent FROM table_name_8 WHERE date = "december 2, 1962"
CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR)
Who was the opponent on December 2, 1962?
SELECT MAX(population) FROM table_name_70 WHERE status = "town" AND census_ranking = "1,379 of 5,008" AND area_km_2 < 8.35
CREATE TABLE table_name_70 (population INTEGER, area_km_2 VARCHAR, status VARCHAR, census_ranking VARCHAR)
What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35?
SELECT official_name FROM table_name_50 WHERE area_km_2 = 16.13
CREATE TABLE table_name_50 (official_name VARCHAR, area_km_2 VARCHAR)
What is the Official Name of the Community with an Area km 2 of 16.13?
SELECT country FROM table_name_48 WHERE to_par = "–2" AND player = "tsuneyuki nakajima"
CREATE TABLE table_name_48 (country VARCHAR, to_par VARCHAR, player VARCHAR)
What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"?
SELECT country FROM table_name_40 WHERE score = 72 - 65 = 137
CREATE TABLE table_name_40 (country VARCHAR, score VARCHAR)
What is Country, when Score is "72-65=137"?
SELECT country FROM table_name_44 WHERE place = "t3" AND player = "jim thorpe"
CREATE TABLE table_name_44 (country VARCHAR, place VARCHAR, player VARCHAR)
What is Country, when Place is "T3", and when Player is "Jim Thorpe"?
SELECT team FROM table_name_79 WHERE game = 34
CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR)
Who was the team for game 34?
SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60
CREATE TABLE table_name_45 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR, team VARCHAR)
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against?
SELECT AVG(goals_for) FROM table_name_19 WHERE drawn > 7 AND goals_against < 86 AND lost > 11 AND played > 42
CREATE TABLE table_name_19 (goals_for INTEGER, played VARCHAR, lost VARCHAR, drawn VARCHAR, goals_against VARCHAR)
What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?
SELECT MAX(lost) FROM table_name_75 WHERE drawn > 11 AND position < 17 AND goals_for > 61
CREATE TABLE table_name_75 (lost INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR)
What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals?
SELECT name FROM table_name_31 WHERE title = "ruler"
CREATE TABLE table_name_31 (name VARCHAR, title VARCHAR)
Who held the title of Ruler?
SELECT type FROM table_name_54 WHERE title = "ruler"
CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR)
What type of state did the ruler have a title?
SELECT state FROM table_name_2 WHERE title = "marquis" AND name = "jing"
CREATE TABLE table_name_2 (state VARCHAR, title VARCHAR, name VARCHAR)
In what state did Jing have the title of Marquis?
SELECT title FROM table_name_37 WHERE name = "gongbo"
CREATE TABLE table_name_37 (title VARCHAR, name VARCHAR)
What was Gongbo's title?
SELECT state FROM table_name_49 WHERE name = "yi"
CREATE TABLE table_name_49 (state VARCHAR, name VARCHAR)
What is the name of Yi's state?
SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0"
CREATE TABLE table_name_19 (devices_per_channel VARCHAR, name VARCHAR)
What is the Devices per channel where the Name is sata revision 3.0?
SELECT raw_bandwidth__mbit_s_ FROM table_name_8 WHERE name = "sas 300"
CREATE TABLE table_name_8 (raw_bandwidth__mbit_s_ VARCHAR, name VARCHAR)
What is the Raw bandwidth (Mbit/s) for the SAS 300?
SELECT away_team AS score FROM table_name_3 WHERE away_team = "st kilda" AND crowd = 8157
CREATE TABLE table_name_3 (away_team VARCHAR, crowd VARCHAR)
Name the Away team score which has an Away team of st kilda, and a Crowd of 8157?
SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march"
CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR)
Name the Away team which have a Ground of colonial stadium on friday, 2 march?
SELECT team FROM table_name_85 WHERE points = "71" AND f_laps = "4"
CREATE TABLE table_name_85 (team VARCHAR, points VARCHAR, f_laps VARCHAR)
Which team has 71 Points and F/Laps of 4?
SELECT poles FROM table_name_2 WHERE team = "team jva"
CREATE TABLE table_name_2 (poles VARCHAR, team VARCHAR)
What Poles do Team jva have?
SELECT points FROM table_name_64 WHERE races = "11" AND season > 2008
CREATE TABLE table_name_64 (points VARCHAR, races VARCHAR, season VARCHAR)
If the Season is later than 2008 and Races is 11, what ate the Points?