question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Where was the game when Melbourne was the away team?
CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_53 WHERE away_team = "melbourne"
What is the highest Win #, when Winner is "Knoxville Cherokees", when Playoff Result is "Lost 1st Round ( LOU )", and when Points is less than 94?
CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR)
SELECT MAX(win__number) FROM table_name_87 WHERE winner = "knoxville cherokees" AND playoff_result = "lost 1st round ( lou )" AND points < 94
How many results are there for the 0-4 record?
CREATE TABLE table_10646790_2 (result VARCHAR, record VARCHAR)
SELECT COUNT(result) FROM table_10646790_2 WHERE record = "0-4"
What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6?
CREATE TABLE table_name_36 (date VARCHAR, team VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT date FROM table_name_36 WHERE location_attendance = "madison square garden" AND game < 6 AND team = "seattle"
What is the Transfer window, when the Transfer fee is "free", and when the item "Moving to" is Norwich City?
CREATE TABLE table_name_30 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT transfer_window FROM table_name_30 WHERE transfer_fee = "free" AND moving_to = "norwich city"
How much To par has a Place of t1, and a Score of 70-70-71-71=282?
CREATE TABLE table_name_47 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT COUNT(to_par) FROM table_name_47 WHERE place = "t1" AND score = 70 - 70 - 71 - 71 = 282
Tell me the money raised when 2Q has total receipts of $890,398
CREATE TABLE table_name_22 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT money_raised, _2q FROM table_name_22 WHERE total_receipts = "$890,398"
When was the win/lose lose and the round a play-off?
CREATE TABLE table_24099476_8 (date VARCHAR, win_lose VARCHAR, round VARCHAR)
SELECT date FROM table_24099476_8 WHERE win_lose = "Lose" AND round = "Play-off"
For the Delmar school what is the division record?
CREATE TABLE table_name_93 (division_record VARCHAR, school VARCHAR)
SELECT division_record FROM table_name_93 WHERE school = "delmar"
What event did he fight masato shiozawa?
CREATE TABLE table_name_82 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_82 WHERE opponent = "masato shiozawa"
What day did Glentoran play at Windsor Park, Belfast?
CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast"
Who won the womens singles event the year that Jonas Lyduch won?
CREATE TABLE table_12163387_1 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT womens_singles FROM table_12163387_1 WHERE mens_singles = "Jonas Lyduch"
What is the nationality of the ship when the principle victims are civilians?
CREATE TABLE table_name_49 (nat VARCHAR, principal_victims VARCHAR)
SELECT nat FROM table_name_49 WHERE principal_victims = "civilians"
Who wrote episode 23 in the season?
CREATE TABLE table_27823359_1 (written_by VARCHAR, season__number VARCHAR)
SELECT written_by FROM table_27823359_1 WHERE season__number = "23"
What is the total number of rebounds values for Ann Wauters?
CREATE TABLE table_name_56 (rebounds VARCHAR, name VARCHAR)
SELECT COUNT(rebounds) FROM table_name_56 WHERE name = "ann wauters"
When there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?
CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13
Who was placed third when the ruuner up was Guangzhou Apollo?
CREATE TABLE table_17632217_2 (third_place VARCHAR, runners_up VARCHAR)
SELECT third_place FROM table_17632217_2 WHERE runners_up = "Guangzhou Apollo"
Which game had an attendance of 5,000 and was away?
CREATE TABLE table_name_23 (game INTEGER, venue VARCHAR, attendance VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE venue = "away" AND attendance = 5 OFFSET 000
What is the Time (EEST), when the Stage is ss8?
CREATE TABLE table_name_5 (time__eest_ VARCHAR, stage VARCHAR)
SELECT time__eest_ FROM table_name_5 WHERE stage = "ss8"
What was the maximum rank for the vote percentage of 5.6%
CREATE TABLE table_26375386_23 (rank INTEGER, vote_percentage VARCHAR)
SELECT MIN(rank) FROM table_26375386_23 WHERE vote_percentage = "5.6%"
Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?
CREATE TABLE table_name_33 (game VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT game FROM table_name_33 WHERE home_team = "chicago bulls" AND result = "81-83 (3-2)"
Which artist has a draw higher than 4 and fewer than 5 points?
CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR)
SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5
What is the year when Scuderia Lancia Corse competed?
CREATE TABLE table_name_51 (year VARCHAR, team VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE team = "scuderia lancia corse"
What is the Woodside for the 16:19 Coombe Road?
CREATE TABLE table_name_81 (woodside VARCHAR, coombe_road VARCHAR)
SELECT woodside FROM table_name_81 WHERE coombe_road = "16:19"
What was the Attendance during the Tamworth Away game?
CREATE TABLE table_name_9 (attendance VARCHAR, away_team VARCHAR)
SELECT COUNT(attendance) FROM table_name_9 WHERE away_team = "tamworth"
What were the round results when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (result VARCHAR, against VARCHAR)
SELECT result FROM table_25505246_7 WHERE against = "Austria"
On what day was the team playing at milwaukee county stadium?
CREATE TABLE table_13259019_2 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_13259019_2 WHERE game_site = "Milwaukee County Stadium"
Who is the rider for Honda with a grid of 25?
CREATE TABLE table_name_72 (rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_72 WHERE manufacturer = "honda" AND grid = "25"
How many points have 41 assists?
CREATE TABLE table_name_28 (points INTEGER, assists VARCHAR)
SELECT SUM(points) FROM table_name_28 WHERE assists = 41
What is Result, when Date is 19 August 1992?
CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_40 WHERE date = "19 august 1992"
Name the vote for thiago
CREATE TABLE table_24233848_2 (vote VARCHAR, eliminated VARCHAR)
SELECT vote FROM table_24233848_2 WHERE eliminated = "Thiago"
Name the man of the maatch for sheffield scimitars
CREATE TABLE table_17120964_5 (man_of_the_match VARCHAR, opponent VARCHAR)
SELECT man_of_the_match FROM table_17120964_5 WHERE opponent = "Sheffield Scimitars"
How many different instructors have taught some course?
CREATE TABLE teaches (id VARCHAR)
SELECT COUNT(DISTINCT id) FROM teaches
Where was the game held that resulted in a score of 9-2?
CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_15 WHERE score = "9-2"
What is the market for the 11pm-1am Saturday game?
CREATE TABLE table_name_3 (market_market_rank VARCHAR, saturday VARCHAR)
SELECT market_market_rank FROM table_name_3 WHERE saturday = "11pm-1am"
What team were the bills playing where their first down was 23?
CREATE TABLE table_16677887_2 (opponent VARCHAR, bills_first_downs VARCHAR)
SELECT opponent FROM table_16677887_2 WHERE bills_first_downs = 23
Who had the fastest lap at the brazilian grand prix?
CREATE TABLE table_1137695_3 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_1137695_3 WHERE grand_prix = "Brazilian grand_prix"
When McCain% was 64.8%, what is the Others#?
CREATE TABLE table_20750731_1 (others_number VARCHAR, mccain_percentage VARCHAR)
SELECT others_number FROM table_20750731_1 WHERE mccain_percentage = "64.8%"
Who took the loss on May 25?
CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_85 WHERE date = "may 25"
What is the Primary Sponsor for the team owned by Randy Humphrey?
CREATE TABLE table_name_4 (primary_sponsor_s_ VARCHAR, owner_s_ VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_4 WHERE owner_s_ = "randy humphrey"
How many districts does john j. douglass represent?
CREATE TABLE table_1342379_20 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Douglass"
what is the heat when the nationality is australia and the rank is less than 1?
CREATE TABLE table_name_35 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT AVG(heat) FROM table_name_35 WHERE nationality = "australia" AND rank < 1
What is the birth date of the person who died on 18 October 1335?
CREATE TABLE table_name_94 (birth VARCHAR, death VARCHAR)
SELECT birth FROM table_name_94 WHERE death = "18 october 1335"
Who directed the episode that has 3x6752 listed as the production code?
CREATE TABLE table_22347090_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_22347090_4 WHERE production_code = "3X6752"
Which round resulted in 10-52?
CREATE TABLE table_name_67 (round VARCHAR, score VARCHAR)
SELECT round FROM table_name_67 WHERE score = "10-52"
What is the average Played, when Club is "Burgos CF", and when Draws is less than 7?
CREATE TABLE table_name_32 (played INTEGER, club VARCHAR, draws VARCHAR)
SELECT AVG(played) FROM table_name_32 WHERE club = "burgos cf" AND draws < 7
What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver?
CREATE TABLE table_name_25 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_25 WHERE grid > 9 AND driver = "rolf stommelen"
What day did the team play in murcia with a score of 0-3 after 1992?
CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR, year VARCHAR, location VARCHAR)
SELECT date FROM table_name_15 WHERE year > 1992 AND location = "murcia" AND score = "0-3"
How many years have less than 28,505 attendance?
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505
What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)?
CREATE TABLE table_name_50 (week_14_nov_30 VARCHAR, week_10_nov_2 VARCHAR)
SELECT week_14_nov_30 FROM table_name_50 WHERE week_10_nov_2 = "michigan state (8-2)"
Who were the successors when the date the successors were installed was February 23, 1870?
CREATE TABLE table_2417345_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT successor FROM table_2417345_3 WHERE date_of_successors_formal_installation = "February 23, 1870"
Who had the fastest lap in the race where Patrick Tambay was on the pole?
CREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay"
Which player is associated with the date May 10, 1999?
CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR)
SELECT player FROM table_name_24 WHERE date = "may 10, 1999"
What season had a winning profit of $15,000?
CREATE TABLE table_2311410_1 (season VARCHAR, winning_profit___aud__ VARCHAR)
SELECT season FROM table_2311410_1 WHERE winning_profit___aud__ = "$15,000"
What is the highest game number?
CREATE TABLE table_27755784_10 (game INTEGER)
SELECT MAX(game) FROM table_27755784_10
when points were 36 and points against 489 what is the lost?
CREATE TABLE table_name_58 (lost VARCHAR, points VARCHAR, points_against VARCHAR)
SELECT lost FROM table_name_58 WHERE points = "36" AND points_against = "489"
what are all the type where station number is c08
CREATE TABLE table_11934032_1 (type VARCHAR, station_number VARCHAR)
SELECT type FROM table_11934032_1 WHERE station_number = "C08"
what's the result for first elected in 1948 , 1964
CREATE TABLE table_1341472_15 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341472_15 WHERE first_elected = "1948 , 1964"
When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?
CREATE TABLE table_29538735_1 (tonnes_of_co2_saved VARCHAR, _percentage_electricity_reduction VARCHAR)
SELECT COUNT(tonnes_of_co2_saved) FROM table_29538735_1 WHERE _percentage_electricity_reduction = "8.9%"
Where Award is best actress and Work is first kiss, what is the average Year?
CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR)
SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss"
What is the smallest total that has 11 golds and bronzes over 2?
CREATE TABLE table_name_42 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_42 WHERE gold = 11 AND bronze > 2
What was the week 7 opponent for the year that had a week 12 opponent of Oregon State (7-3)?
CREATE TABLE table_name_29 (week_7_oct_12 VARCHAR, week_12_nov_16 VARCHAR)
SELECT week_7_oct_12 FROM table_name_29 WHERE week_12_nov_16 = "oregon state (7-3)"
What is the score of the Boston Bruins game from April 11?
CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_39 WHERE home = "boston bruins" AND date = "april 11"
What game had the highest score and a time of 2:35?
CREATE TABLE table_name_34 (game INTEGER, time VARCHAR)
SELECT MAX(game) FROM table_name_34 WHERE time = "2:35"
Who was the constructor for a FW20 chassis?
CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR)
SELECT constructor FROM table_name_37 WHERE chassis = "fw20"
What is the L1 Cache, when the Model Number is X5-133 ADY?
CREATE TABLE table_name_88 (l1_cache VARCHAR, model_number VARCHAR)
SELECT l1_cache FROM table_name_88 WHERE model_number = "x5-133 ady"
When was it where 65 Australians were involved in the UN?
CREATE TABLE table_10121127_1 (dates_of_australian_involvement VARCHAR, number_of_australians_involved VARCHAR)
SELECT dates_of_australian_involvement FROM table_10121127_1 WHERE number_of_australians_involved = "65"
Show name, opening year, and capacity for each cinema.
CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR, capacity VARCHAR)
SELECT name, openning_year, capacity FROM cinema
On what date did the match at Lake Oval take place?
CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_63 WHERE venue = "lake oval"
What is the total year of release of the title what goes around comes around?
CREATE TABLE table_name_75 (year_of_release VARCHAR, title VARCHAR)
SELECT COUNT(year_of_release) FROM table_name_75 WHERE title = "what goes around comes around"
How many goals when the points 1 is 38 and the played number is less than 42?
CREATE TABLE table_name_24 (goals_for INTEGER, points_1 VARCHAR, played VARCHAR)
SELECT SUM(goals_for) FROM table_name_24 WHERE points_1 = 38 AND played < 42
Who were the original artist(s) when jack stamp arranged?
CREATE TABLE table_28715942_2 (original_artist VARCHAR, arranger_s_ VARCHAR)
SELECT original_artist FROM table_28715942_2 WHERE arranger_s_ = "Jack Stamp"
The player who plays goaltender is from what college/junior/club team?
CREATE TABLE table_17371135_30 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT college_junior_club_team__league_ FROM table_17371135_30 WHERE position = "Goaltender"
What is the song choice where the original artist is Gino Paoli?
CREATE TABLE table_25374338_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT COUNT(song_choice) FROM table_25374338_1 WHERE original_artist = "Gino Paoli"
Opponent of @ phoenix suns had what sum of game?
CREATE TABLE table_name_52 (game INTEGER, opponent VARCHAR)
SELECT SUM(game) FROM table_name_52 WHERE opponent = "@ phoenix suns"
Who was the opponent in a week less than 8 on October 9, 1960?
CREATE TABLE table_name_24 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE week < 8 AND date = "october 9, 1960"
In what county is the school of Merrillville?
CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR)
SELECT county FROM table_name_17 WHERE school = "merrillville"
How many episode were written by Brett Conrad?
CREATE TABLE table_25740548_2 (title VARCHAR, written_by VARCHAR)
SELECT COUNT(title) FROM table_25740548_2 WHERE written_by = "Brett Conrad"
Name the film title for andré téchiné category:articles with hcards
CREATE TABLE table_18987377_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "André Téchiné Category:Articles with hCards"
What venue features carlton as an away team?
CREATE TABLE table_name_34 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_34 WHERE away_team = "carlton"
How many different captain ranks are there?
CREATE TABLE captain (rank VARCHAR)
SELECT COUNT(DISTINCT rank) FROM captain
How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?
CREATE TABLE table_name_48 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)
SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = "caramut" AND byes < 2
Who won the 250 cc in 1985?
CREATE TABLE table_name_19 (year VARCHAR)
SELECT 250 AS _cc FROM table_name_19 WHERE year = "1985"
who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser"
Which player was active in Jazz in 1975-79?
CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR)
SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79"
List all the dates of enrollment and completion of students.
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR)
SELECT date_of_enrolment, date_of_completion FROM Student_Course_Enrolment
Name the marriagefor ceased to be consort of 29 september 1898
CREATE TABLE table_name_6 (marriage VARCHAR, ceased_to_be_consort VARCHAR)
SELECT marriage FROM table_name_6 WHERE ceased_to_be_consort = "29 september 1898"
What is the highest Attendance, when Date is "Oct. 26"?
CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE date = "oct. 26"
What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?
CREATE TABLE table_name_4 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = "1"
What is the most silver when bronze is more than 1 and total is more than 48?
CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MAX(silver) FROM table_name_40 WHERE bronze > 1 AND total > 48
What is the result of week 5?
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_33 WHERE week = 5
What Try bonus has a Points against of 488?
CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR)
SELECT try_bonus FROM table_name_61 WHERE points_against = "488"
On what Date prior to Week 14 was the Record 7-1?
CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, record VARCHAR)
SELECT date FROM table_name_31 WHERE week < 14 AND record = "7-1"
What is the nickname of the school established in 2009?
CREATE TABLE table_name_8 (nickname VARCHAR, established VARCHAR)
SELECT nickname FROM table_name_8 WHERE established = 2009
What was the round in 1968?
CREATE TABLE table_name_43 (round VARCHAR, year VARCHAR)
SELECT round FROM table_name_43 WHERE year = 1968
What is the size of the crowd for the game with Footscray as the home team?
CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_59 WHERE home_team = "footscray"
What was the most points for Coloni Spa?
CREATE TABLE table_name_78 (points INTEGER, entrant VARCHAR)
SELECT MAX(points) FROM table_name_78 WHERE entrant = "coloni spa"
Which tie number had an away team of Arsenal?
CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_5 WHERE away_team = "arsenal"
What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?
CREATE TABLE table_name_95 (round INTEGER, pick VARCHAR, position VARCHAR, name VARCHAR)
SELECT SUM(round) FROM table_name_95 WHERE position = "db" AND name = "jeff welch" AND pick < 21
What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes?
CREATE TABLE table_name_3 (launches INTEGER, successes VARCHAR, failures VARCHAR, rocket VARCHAR)
SELECT AVG(launches) FROM table_name_3 WHERE failures = 0 AND rocket = "soyuz" AND successes < 12