answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(pick) FROM table_name_29 WHERE nationality = "canada" AND draft < 1985 AND player = "brian bradley"
CREATE TABLE table_name_29 (pick INTEGER, player VARCHAR, nationality VARCHAR, draft VARCHAR)
What was the lowest Pick number of Player Brian Bradley from Canada, in a Draft year before 1985?
SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell"
CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR)
Which Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?
SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1
CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR)
Name the total number of yards for avg of 9 and rec of 1
SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34
CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR)
What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?
SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)"
CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)
Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?
SELECT senior_list FROM table_name_84 WHERE date_of_birth__age_when_delisted_ = "5 june 1984 (aged 23)"
CREATE TABLE table_name_84 (senior_list VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)
What is listed under Senior List for Date of Birth (Age When Delisted) of 5 June 1984 (aged 23)?
SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917
CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR)
What is the average year to begin making autos for a brand that joined GM in 1917?
SELECT date FROM table_name_74 WHERE home_team = "melbourne"
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
Name the date with a home team of melbourne
SELECT venue FROM table_name_40 WHERE home_team = "collingwood"
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
Name the venue for collingwood home team
SELECT year FROM table_name_7 WHERE gen_secretary = "silvana jansen"
CREATE TABLE table_name_7 (year VARCHAR, gen_secretary VARCHAR)
Which year has a Gen.-Secretary of silvana jansen?
SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann"
CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR)
Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann?
SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester"
CREATE TABLE table_name_89 (president VARCHAR, year VARCHAR)
Who was president Year of 2002-2003, second semester?
SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler"
CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR)
Which treasurer has a President of sebastian ihler?
SELECT opponent FROM table_name_1 WHERE surface = "grass"
CREATE TABLE table_name_1 (opponent VARCHAR, surface VARCHAR)
Which opponent used a grass surface?
SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6"
CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR)
Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?
SELECT COUNT(points) FROM table_name_72 WHERE lost < 4
CREATE TABLE table_name_72 (points VARCHAR, lost INTEGER)
Tell me the total number of points for lost less than 4
SELECT SUM(drawn) FROM table_name_81 WHERE lost < 0
CREATE TABLE table_name_81 (drawn INTEGER, lost INTEGER)
I want the sum of drawn for lost less than 0
SELECT points_difference FROM table_name_29 WHERE points = 14
CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR)
I want the points difference for points of 14
SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23
CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
Tell me the sum of silver for liechtenstein and bronze more than 4
SELECT tournament FROM table_name_70 WHERE score = "6–4, 4–6, 7–5"
CREATE TABLE table_name_70 (tournament VARCHAR, score VARCHAR)
Which tournament had a score of 6–4, 4–6, 7–5?
SELECT tournament FROM table_name_7 WHERE score = "7–5, 2–6, 7–6"
CREATE TABLE table_name_7 (tournament VARCHAR, score VARCHAR)
Which tournament had a score of 7–5, 2–6, 7–6?
SELECT opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6–3, 3–6, 7–5"
CREATE TABLE table_name_89 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5?
SELECT surface FROM table_name_90 WHERE score = "6–4, 6–1"
CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR)
What was the court surface when the score was 6–4, 6–1?
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona"
CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR)
On what date was the opponent in the final Gwinyai Tongoona?
SELECT record FROM table_name_13 WHERE visitor = "golden state warriors" AND date = "11/18"
CREATE TABLE table_name_13 (record VARCHAR, visitor VARCHAR, date VARCHAR)
What was the record from the Golden State Warriors on 11/18?
SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40
CREATE TABLE table_name_95 (class VARCHAR, wheels VARCHAR, no_built VARCHAR)
What class has 4-4-0 wheels and was less than number 40 built?
SELECT space_crusade FROM table_name_7 WHERE english = "finnish"
CREATE TABLE table_name_7 (space_crusade VARCHAR, english VARCHAR)
Name the space crusade when the english is of finnish
SELECT space_crusade FROM table_name_92 WHERE genestealers = "genrøvere (gene robbers)"
CREATE TABLE table_name_92 (space_crusade VARCHAR, genestealers VARCHAR)
Name the space crusade which has Genestealers of genrøvere (gene robbers)
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990
CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR)
What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?
SELECT COUNT(matches) FROM table_name_15 WHERE prize_money = "£1,000,000"
CREATE TABLE table_name_15 (matches VARCHAR, prize_money VARCHAR)
How many matches were there in the round with £1,000,000 in prize money?
SELECT date FROM table_name_36 WHERE matches = 1
CREATE TABLE table_name_36 (date VARCHAR, matches VARCHAR)
What was the date for a round that only had 1 match?
SELECT date FROM table_name_87 WHERE away_team = "hawthorn"
CREATE TABLE table_name_87 (date VARCHAR, away_team VARCHAR)
What date did Hawthorn play as the away team?
SELECT hometown FROM table_name_43 WHERE college = "wisconsin"
CREATE TABLE table_name_43 (hometown VARCHAR, college VARCHAR)
What is the hometown for a college in Wisconsin?
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school"
CREATE TABLE table_name_92 (college VARCHAR, position VARCHAR, school VARCHAR)
Which college has a linebacker from Lessburg High School?
SELECT opponent FROM table_name_49 WHERE week = 11
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR)
Which opponent has a week of 11?
SELECT MIN(week) FROM table_name_46 WHERE date = "december 4, 1976" AND attendance < 57 OFFSET 366
CREATE TABLE table_name_46 (week INTEGER, date VARCHAR, attendance VARCHAR)
Which December 4, 1976 week has an attendance less than 57,366?
SELECT comune FROM table_name_52 WHERE total__km²_ > 70.99
CREATE TABLE table_name_52 (comune VARCHAR, total__km²_ INTEGER)
Who has a larger than 70.99 km2?
SELECT MIN(area__km²_) FROM table_name_26 WHERE province = "napoli" AND comune = "piano di sorrento" AND total__km²_ < 121.14
CREATE TABLE table_name_26 (area__km²_ INTEGER, total__km²_ VARCHAR, province VARCHAR, comune VARCHAR)
What is the Piano di Sorrento, Napoli lowest km2 with a total smaller than 121.14 km2?
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as"
CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR)
Which writer had a producer DKA, JL, AS?
SELECT film_title FROM table_name_68 WHERE director = "lu"
CREATE TABLE table_name_68 (film_title VARCHAR, director VARCHAR)
Name the film that Lu directed.
SELECT writer FROM table_name_22 WHERE film_title = "toy story"
CREATE TABLE table_name_22 (writer VARCHAR, film_title VARCHAR)
Who wrote Toy Story?
SELECT writer FROM table_name_13 WHERE voiced_character_s_ = "jdr, bb, tn, lr, ps"
CREATE TABLE table_name_13 (writer VARCHAR, voiced_character_s_ VARCHAR)
Which writer had voice characters of JDR, BB, TN, LR, PS?
SELECT sound FROM table_name_77 WHERE producer_executive_producer = "jl"
CREATE TABLE table_name_77 (sound VARCHAR, producer_executive_producer VARCHAR)
Who was the sound producer that worked under Executive Producer JL?
SELECT away_team FROM table_name_44 WHERE venue = "mcg"
CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR)
What was the away team at mcg?
SELECT name FROM table_name_17 WHERE country = "nga"
CREATE TABLE table_name_17 (name VARCHAR, country VARCHAR)
What is the name of the player from NGA?
SELECT moving_to FROM table_name_64 WHERE transfer_fee = "undisclosed" AND name = "odjidja-ofoe"
CREATE TABLE table_name_64 (moving_to VARCHAR, transfer_fee VARCHAR, name VARCHAR)
Where is Odjidja-Ofoe, with an undisclosed transfer fee, moving to?
SELECT country FROM table_name_96 WHERE transfer_fee = "undisclosed" AND moving_to = "nacional"
CREATE TABLE table_name_96 (country VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
What country is the player, with an undisclosed transfer fee and moving to Nacional, from?
SELECT transfer_fee FROM table_name_82 WHERE name = "odjidja-ofoe"
CREATE TABLE table_name_82 (transfer_fee VARCHAR, name VARCHAR)
What is Odjidja-Ofoe's transfer fee?
SELECT name FROM table_name_2 WHERE country = "cod"
CREATE TABLE table_name_2 (name VARCHAR, country VARCHAR)
What is the name of the player from Cod?
SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv"
CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR)
What country is the player moving to Hamburger SV from?
SELECT driver FROM table_name_25 WHERE entrant = "arrows racing team" AND rounds = "1-3"
CREATE TABLE table_name_25 (driver VARCHAR, entrant VARCHAR, rounds VARCHAR)
Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?
SELECT constructor FROM table_name_50 WHERE rounds = "all" AND driver = "bruno giacomelli"
CREATE TABLE table_name_50 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
Which Constructor has Rounds, All and Driver, Bruno Giacomelli?
SELECT winning_score FROM table_name_39 WHERE runner_s__up = "damien mcgrane"
CREATE TABLE table_name_39 (winning_score VARCHAR, runner_s__up VARCHAR)
What was the winning score when Damien McGrane was runner-up?
SELECT runner_s__up FROM table_name_97 WHERE tournament = "alfred dunhill links championship"
CREATE TABLE table_name_97 (runner_s__up VARCHAR, tournament VARCHAR)
Who were the runners-up at the Alfred Dunhill Links Championship?
SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR, rank VARCHAR)
Name the highest grid for Laps more than 137 and rank is less than 8
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92
CREATE TABLE table_name_73 (rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR)
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92
SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2
CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals?
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)
What is the name of the Leading scorer when the Home was the Trail blazers?
SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s"
CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
Tell me the right ascension for open cluster and NGC number more than 2547
SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m"
CREATE TABLE table_name_56 (constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)
I want the constellation for declination for °45′ and right ascension of 07h58m
SELECT ngc_number FROM table_name_92 WHERE right_ascension___j2000__ = "08h11m13.6s"
CREATE TABLE table_name_92 (ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
I want the NGC number for right ascension of 08h11m13.6s
SELECT AVG(crowd) FROM table_name_31 WHERE home_team = "north melbourne"
CREATE TABLE table_name_31 (crowd INTEGER, home_team VARCHAR)
What is the average crowd when the home team is north melbourne?
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg"
CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR)
What is the crowd total at mcg?
SELECT AVG(mintage) FROM table_name_42 WHERE animal = "red breasted nuthatch" AND year < 2007
CREATE TABLE table_name_42 (mintage INTEGER, animal VARCHAR, year VARCHAR)
How many Red Breasted Nuthatch coins created before 2007 were minted, on average?
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker"
CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR)
What year was the downy woodpecker coin created?
SELECT artist FROM table_name_40 WHERE year < 2010
CREATE TABLE table_name_40 (artist VARCHAR, year INTEGER)
Which artist created coins before 2010?
SELECT COUNT(game) FROM table_name_3 WHERE team = "boston"
CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR)
What is the game number against the team Boston?
SELECT date FROM table_name_27 WHERE game = 23
CREATE TABLE table_name_27 (date VARCHAR, game VARCHAR)
What is the date of game 23?
SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = "roach"
CREATE TABLE table_name_31 (percent_of_slovenes_1951 VARCHAR, village__german_ VARCHAR)
What percentage of Slovenes lived in the village of Roach in 1951?
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne"
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
Which Venue has an Away team of south melbourne?
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne"
CREATE TABLE table_name_3 (away_team VARCHAR)
What did the Melbourne team score in their away game?
SELECT home_team FROM table_name_91 WHERE venue = "arden street oval"
CREATE TABLE table_name_91 (home_team VARCHAR, venue VARCHAR)
Which Home team plays at the arden street oval Venue?
SELECT venue FROM table_name_58 WHERE home_team = "hawthorn"
CREATE TABLE table_name_58 (venue VARCHAR, home_team VARCHAR)
What is Home team Venue for the hawthorn team?
SELECT home_team FROM table_name_29 WHERE venue = "princes park"
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
What Home team plays at the princes park Venue?
SELECT home_away FROM table_name_96 WHERE opponent = "rattlers" AND field = "united sports training center"
CREATE TABLE table_name_96 (home_away VARCHAR, opponent VARCHAR, field VARCHAR)
Was the game against the Rattlers at the United Sports Training Center a home game or an away game?
SELECT opponent FROM table_name_65 WHERE field = "multi-sport field"
CREATE TABLE table_name_65 (opponent VARCHAR, field VARCHAR)
What was the opponent for the game at Multi-sport Field?
SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4"
CREATE TABLE table_name_15 (result VARCHAR, home_away VARCHAR, date VARCHAR)
What is the result of the away game played on August 4?
SELECT field FROM table_name_63 WHERE date = "july 12"
CREATE TABLE table_name_63 (field VARCHAR, date VARCHAR)
On which field was the game played on July 12?
SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification"
CREATE TABLE table_name_53 (venue VARCHAR, scored VARCHAR, competition VARCHAR)
At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition?
SELECT date FROM table_name_24 WHERE scored < 2 AND competition = "uefa euro 2004 qualifying"
CREATE TABLE table_name_24 (date VARCHAR, scored VARCHAR, competition VARCHAR)
What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition?
SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002"
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
What is the tournament on February 17, 2002?
SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato"
CREATE TABLE table_name_87 (goals INTEGER, player VARCHAR)
How many goals does mitsuo kato have?
SELECT engine FROM table_name_99 WHERE entrant = "scuderia ferrari" AND driver = "raymond sommer"
CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, driver VARCHAR)
Which engine has the entrant scuderia ferrari and is driven by Raymond Sommer?
SELECT chassis FROM table_name_51 WHERE driver = "reg parnell"
CREATE TABLE table_name_51 (chassis VARCHAR, driver VARCHAR)
What Chassis does Reg Parnell drive?
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"
CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR)
What is Ryan McCay's speed that has a rank better than 8?
SELECT team FROM table_name_18 WHERE speed = "113.316mph"
CREATE TABLE table_name_18 (team VARCHAR, speed VARCHAR)
What's the name of the team that went 113.316mph?
SELECT team FROM table_name_81 WHERE rank < 7 AND rider = "matts nilsson"
CREATE TABLE table_name_81 (team VARCHAR, rank VARCHAR, rider VARCHAR)
What's Matts Nilsson's team that's ranked better than 7?
SELECT AVG(drop_zone) AS Time FROM table_name_22 WHERE drop_zone = "n" AND troop_carrier_group = "1st pathfinder prov."
CREATE TABLE table_name_22 (drop_zone INTEGER, troop_carrier_group VARCHAR)
What is the average drop zone time in the N drop zone for the 1st Pathfinder Prov.?
SELECT uk_base FROM table_name_42 WHERE airborne_unit = "pathfinders"
CREATE TABLE table_name_42 (uk_base VARCHAR, airborne_unit VARCHAR)
Which UK Base has an airborne unit of Pathfinders?
SELECT high_assists FROM table_name_94 WHERE game = 1
CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR)
What was the number of high assists for game 1?
SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = "retirement"
CREATE TABLE table_name_35 (chief_judge VARCHAR, reason_for_termination VARCHAR)
Tell me the chief judge which has reason for termination of retirement
SELECT high_assists FROM table_name_41 WHERE high_rebounds = "boozer (13)"
CREATE TABLE table_name_41 (high_assists VARCHAR, high_rebounds VARCHAR)
For boozer (13) what is the high assists and high rebounds?
SELECT score FROM table_name_40 WHERE game < 4 AND high_points = "williams (28)"
CREATE TABLE table_name_40 (score VARCHAR, game VARCHAR, high_points VARCHAR)
What is the score for the game that is less than 4 and a high points of williams (28)?
SELECT athlete FROM table_name_1 WHERE round_3 = "did not advance" AND event = "76 kg"
CREATE TABLE table_name_1 (athlete VARCHAR, round_3 VARCHAR, event VARCHAR)
Which athlete in the 76 kg class, did not advance at the end of Round 3.
SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher"
CREATE TABLE table_name_99 (owner VARCHAR, post_position VARCHAR, jockey VARCHAR)
Who owns the horse with a post position of less than 4 with jockey todd pletcher?
SELECT jockey FROM table_name_50 WHERE horse_name = "hard spun"
CREATE TABLE table_name_50 (jockey VARCHAR, horse_name VARCHAR)
What jockey is on hard spun?
SELECT horse_name FROM table_name_84 WHERE jockey = "todd pletcher" AND post_time_odds = "14.20-1"
CREATE TABLE table_name_84 (horse_name VARCHAR, jockey VARCHAR, post_time_odds VARCHAR)
What horse does todd pletcher ride with odds of 14.20-1?
SELECT owner FROM table_name_87 WHERE lengths_behind = "5½"
CREATE TABLE table_name_87 (owner VARCHAR, lengths_behind VARCHAR)
Who the Owner that has a Lengths Behind of 5½?