context
stringlengths
27
484
question
stringlengths
12
244
answer
stringlengths
32
484
CREATE TABLE table_name_85 (crowd VARCHAR, home_team VARCHAR)
Which Crowd has a Home team of st kilda?
SELECT crowd FROM table_name_85 WHERE home_team = "st kilda"
CREATE TABLE table_name_58 (year VARCHAR, edition VARCHAR)
Which Year has an Edition of 41st?
SELECT year FROM table_name_58 WHERE edition = "41st"
CREATE TABLE table_name_62 (game INTEGER, opponent VARCHAR, february VARCHAR)
What is the number of the game when the opponent was the New York Islanders, and a February less than 24?
SELECT SUM(game) FROM table_name_62 WHERE opponent = "new york islanders" AND february < 24
CREATE TABLE table_name_10 (date VARCHAR, visitor VARCHAR)
What date was the game where the visiting team was philadelphia?
SELECT date FROM table_name_10 WHERE visitor = "philadelphia"
CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR)
When westcott is in division one how many leagues are in division 5?
SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = "Westcott"
CREATE TABLE table_199666_1 (codename VARCHAR, centrino VARCHAR)
What's the code name of the wireless LAN with Chief River Centrino?
SELECT codename FROM table_199666_1 WHERE centrino = "Chief River"
CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)
What is the average capacity for the farm at Gortahile having more than 8 turbines?
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8
CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
Name the visitor for october 19
SELECT visitor FROM table_name_52 WHERE date = "october 19"
CREATE TABLE table_name_70 (russian VARCHAR)
What is the Russian word for the Greek word greek?
SELECT russian FROM table_name_70 WHERE "greek" = "greek"
CREATE TABLE table_name_78 (team VARCHAR, points INTEGER)
Which team scored less than 35 points?
SELECT team FROM table_name_78 WHERE points < 35
CREATE TABLE table_name_89 (total INTEGER, gold INTEGER)
What is the lowest medal total with less than 3 gold medals?
SELECT MIN(total) FROM table_name_89 WHERE gold < 3
CREATE TABLE table_name_93 (venue VARCHAR, founded VARCHAR, league VARCHAR)
Which venue was founded after 1967 and had the league North American Soccer League?
SELECT venue FROM table_name_93 WHERE founded > 1967 AND league = "north american soccer league"
CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR)
WHo is the Player got a Pick # smaller than 61, and a College of texas?
SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas"
CREATE TABLE table_name_77 (election_winner VARCHAR, incumbent VARCHAR, state VARCHAR)
Who was the election winner with a BJP incumbent in Chhattisgarh?
SELECT election_winner FROM table_name_77 WHERE incumbent = "bjp" AND state = "chhattisgarh"
CREATE TABLE table_name_79 (illustrator VARCHAR, year VARCHAR)
Who was the illustrator in 1987?
SELECT illustrator FROM table_name_79 WHERE year = 1987
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)
What are the notes for the rower in ranks over 2 and having a time of 7:00:46?
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "7:00:46"
CREATE TABLE table_name_95 (capacity INTEGER, stadium VARCHAR)
What is the highest capacity of the tsentral stadium (batumi)?
SELECT MAX(capacity) FROM table_name_95 WHERE stadium = "tsentral stadium (batumi)"
CREATE TABLE table_name_31 (theatre VARCHAR, performances VARCHAR, role VARCHAR)
Name the theatre for aaron jablonski schuyler grogan with performances more than 49
SELECT theatre FROM table_name_31 WHERE performances > 49 AND role = "aaron jablonski schuyler grogan"
CREATE TABLE table_24998088_1 (wins VARCHAR, points VARCHAR)
How many wins were listed when he had 112 points?
SELECT wins FROM table_24998088_1 WHERE points = "112"
CREATE TABLE table_name_24 (surface VARCHAR, tournament VARCHAR)
What is the surface at the tournament of Vaihingen?
SELECT surface FROM table_name_24 WHERE tournament = "vaihingen"
CREATE TABLE table_15869204_7 (team VARCHAR, date VARCHAR)
How many teams are listed for February 18?
SELECT COUNT(team) FROM table_15869204_7 WHERE date = "February 18"
CREATE TABLE table_name_54 (aggregate VARCHAR, round VARCHAR, club VARCHAR)
What is the aggregate for the first round for K.S.V. Waregem?
SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem"
CREATE TABLE table_name_30 (royal_house VARCHAR, name VARCHAR)
Which Royal house has a name of ding?
SELECT royal_house FROM table_name_30 WHERE name = "ding"
CREATE TABLE table_name_24 (loss VARCHAR, record VARCHAR)
What's the Loss for the game that had a 22-24 record?
SELECT loss FROM table_name_24 WHERE record = "22-24"
CREATE TABLE table_name_6 (frequency_mhz VARCHAR, city_of_license VARCHAR)
What is the Frequency MHz of Trinidad, Colorado?
SELECT frequency_mhz FROM table_name_6 WHERE city_of_license = "trinidad, colorado"
CREATE TABLE table_name_93 (fl_cup_apps__sub_ INTEGER, fl_cup_goals VARCHAR, other_apps VARCHAR)
What is the average FL Cup Apps, with a FL Cup Goals greater than 0, but a Other Apps less than 0?
SELECT AVG(fl_cup_apps__sub_) FROM table_name_93 WHERE fl_cup_goals > 0 AND other_apps < 0
CREATE TABLE table_name_29 (capacity INTEGER, team VARCHAR)
What is the average capacity for the venue where the team kommunalnik played?
SELECT AVG(capacity) FROM table_name_29 WHERE team = "kommunalnik"
CREATE TABLE table_name_89 (player VARCHAR, to_par VARCHAR, score VARCHAR)
What player has a To Par of +1 with a score of 71-67-73=211?
SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211
CREATE TABLE table_name_24 (nominated_work VARCHAR, award VARCHAR)
What nominated work has seattle international film festival as the award?
SELECT nominated_work FROM table_name_24 WHERE award = "seattle international film festival"
CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
Which Airline has a Fleet size larger than 17, and a IATA of pr?
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr"
CREATE TABLE table_name_14 (writer VARCHAR, film VARCHAR)
Who is the writer of the film Run?
SELECT writer FROM table_name_14 WHERE film = "run"
CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR)
Which Decision has a Record of 29–18–6?
SELECT decision FROM table_name_53 WHERE record = "29–18–6"
CREATE TABLE table_name_5 (casualties INTEGER, number VARCHAR)
What is the average number of casualties for the convoy with a number of U-844?
SELECT AVG(casualties) FROM table_name_5 WHERE number = "u-844"
CREATE TABLE table_name_93 (date VARCHAR, venue VARCHAR, result VARCHAR)
On what date was the venue A with a result of 3–0?
SELECT date FROM table_name_93 WHERE venue = "a" AND result = "3–0"
CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR)
Who was the home team that played against Aylesbury Vale?
SELECT home_team FROM table_name_37 WHERE away_team = "aylesbury vale"
CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)
What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals?
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
CREATE TABLE table_name_51 (year VARCHAR, venue VARCHAR)
What year was the venue Landshut?
SELECT year FROM table_name_51 WHERE venue = "landshut"
CREATE TABLE table_name_80 (transfer_fee VARCHAR, from_club VARCHAR)
Which Transfer fee has a From club of blackburn rovers?
SELECT transfer_fee FROM table_name_80 WHERE from_club = "blackburn rovers"
CREATE TABLE table_name_96 (year VARCHAR, college VARCHAR, pick VARCHAR)
Which Year has a College of nebraska, and a Pick of 2?
SELECT year FROM table_name_96 WHERE college = "nebraska" AND pick = "2"
CREATE TABLE table_19149550_9 (london_borough VARCHAR, pakistani_population VARCHAR)
What's the London borough with 7797 Pakistani citizens?
SELECT london_borough FROM table_19149550_9 WHERE pakistani_population = 7797
CREATE TABLE table_name_28 (japanese VARCHAR, chinese VARCHAR)
What are the Japanese characters for the Chinese word 叉焼?
SELECT japanese FROM table_name_28 WHERE chinese = "叉焼"
CREATE TABLE table_name_54 (fat32 VARCHAR, ntfs VARCHAR, hpfs VARCHAR, refs VARCHAR)
Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?
SELECT fat32 FROM table_name_54 WHERE hpfs = "no" AND refs = "no" AND ntfs = "yes v3.0"
CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
How many silver medals when the bronze is more than 2 and having a rank more than 5?
SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2
CREATE TABLE table_name_60 (draws INTEGER, result VARCHAR, losses VARCHAR)
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
SELECT MIN(draws) FROM table_name_60 WHERE result = "runner-up" AND losses > 1
CREATE TABLE table_name_52 (type VARCHAR, list_entry_number VARCHAR)
Which type has list entry number of 1356677?
SELECT type FROM table_name_52 WHERE list_entry_number = 1356677
CREATE TABLE table_name_10 (to_par VARCHAR, total VARCHAR)
What is the To par when there was a total of 291?
SELECT to_par FROM table_name_10 WHERE total = 291
CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR)
What country is the player moving to Hamburger SV from?
SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv"
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, other VARCHAR)
What is the no party preference when other is 10.1%?
SELECT no_party_preference FROM table_27003186_3 WHERE other = "10.1%"
CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR)
What construction has a CERCLIS ID of ard092916188?
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188"
CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR)
What is the chassis when the rank is 3rd?
SELECT chassis FROM table_name_25 WHERE rank = "3rd"
CREATE TABLE table_name_87 (Id VARCHAR)
What is the 2008 value that was 2nd in 2006?
SELECT 2008 FROM table_name_87 WHERE 2006 = "2nd"
CREATE TABLE table_name_64 (link VARCHAR, date_of_polling VARCHAR)
What is the link for january 31 – february 3, 2011?
SELECT link FROM table_name_64 WHERE date_of_polling = "january 31 – february 3, 2011"
CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR)
Who was the incumbent in the Illinois 17 district?
SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 17"
CREATE TABLE table_17288825_7 (record VARCHAR, high_points VARCHAR)
How many times did Ron Artest (24) receive the record for high points?
SELECT COUNT(record) FROM table_17288825_7 WHERE high_points = "Ron Artest (24)"
CREATE TABLE table_name_72 (race_title VARCHAR, circuit VARCHAR)
What was the title of the race at Oran Park Raceway?
SELECT race_title FROM table_name_72 WHERE circuit = "oran park raceway"
CREATE TABLE table_name_37 (week VARCHAR, date VARCHAR)
What was the Week on September 5, 1993?
SELECT week FROM table_name_37 WHERE date = "september 5, 1993"
CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?
SELECT AVG(clean_) & _jerk FROM table_name_8 WHERE total__kg_ > 204 AND snatch > 98
CREATE TABLE table_name_44 (year VARCHAR, team VARCHAR)
What are the years that Andretti Autosport is a team?
SELECT COUNT(year) FROM table_name_44 WHERE team = "andretti autosport"
CREATE TABLE table_name_83 (bonus_points VARCHAR, drawn VARCHAR, points_against VARCHAR)
What is the number of bonus points when there are 2 drawn and the points against is 599?
SELECT bonus_points FROM table_name_83 WHERE drawn = "2" AND points_against = "599"
CREATE TABLE table_name_84 (location VARCHAR, event VARCHAR)
In which location did the Meca World Vale Tudo 6 event happen?
SELECT location FROM table_name_84 WHERE event = "meca world vale tudo 6"
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 AVG(round) FROM table_name_52 WHERE record = "1-1"
CREATE TABLE table_23292220_13 (episode VARCHAR, seans_team VARCHAR)
What was the episode that had Jack Dee and Stacey Solomon on Sean's team?
SELECT episode FROM table_23292220_13 WHERE seans_team = "Jack Dee and Stacey Solomon"
CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR)
What is the match total for a score over 299 and under 412 innings?
SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412
CREATE TABLE table_name_94 (date VARCHAR, type_of_game VARCHAR)
When was the WC 1974 Qualifying game?
SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying"
CREATE TABLE table_name_28 (nationality VARCHAR, player VARCHAR)
What was the nationality of the player Pat Garrity?
SELECT nationality FROM table_name_28 WHERE player = "pat garrity"
CREATE TABLE table_name_43 (power VARCHAR, displacement VARCHAR, notes VARCHAR)
What is the power when the displacement is 182cid (2,988cc) and the notes are eu spec?
SELECT power FROM table_name_43 WHERE displacement = "182cid (2,988cc)" AND notes = "eu spec"
CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)
What is the platform of the game from 2007?
SELECT platform_s_ FROM table_name_95 WHERE year = 2007
CREATE TABLE table_197446_1 (location VARCHAR, term_ended VARCHAR)
What location was the congressional service of which the term ended in January 3, 2011?
SELECT location FROM table_197446_1 WHERE term_ended = "January 3, 2011"
CREATE TABLE table_name_24 (moving_to VARCHAR, name VARCHAR, transfer_fee VARCHAR, status VARCHAR)
Name the moving to with a transfer fee of free with a transfer status for rodri
SELECT moving_to FROM table_name_24 WHERE transfer_fee = "free" AND status = "transfer" AND name = "rodri"
CREATE TABLE table_21256068_3 (round VARCHAR, attendance VARCHAR)
state the round that had a game attended attended by 9359 people
SELECT round FROM table_21256068_3 WHERE attendance = 9359
CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)
Name the january 15-16 where march 27-29 where march 29, 2006
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006"
CREATE TABLE table_27403436_1 (no VARCHAR, production_code VARCHAR)
which number lists the production code as 2j5809
SELECT no FROM table_27403436_1 WHERE production_code = "2J5809"
CREATE TABLE table_name_95 (county VARCHAR, size VARCHAR, mascot VARCHAR)
Which County has a Size larger than 258, and a Mascot of commodores?
SELECT county FROM table_name_95 WHERE size > 258 AND mascot = "commodores"
CREATE TABLE table_name_16 (name VARCHAR, rank VARCHAR, last VARCHAR)
Who had a rank more than 48, and a last in 2005?
SELECT name FROM table_name_16 WHERE rank > 48 AND last = 2005
CREATE TABLE table_name_52 (Id VARCHAR)
What shows for 2006 when 2002 is Grand Slam Tournaments?
SELECT 2006 FROM table_name_52 WHERE 2002 = "grand slam tournaments"
CREATE TABLE table_name_47 (duration VARCHAR, actor VARCHAR)
What is the duration for mike walling as the actor?
SELECT duration FROM table_name_47 WHERE actor = "mike walling"
CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR)
Which venue was used 22 january 2008?
SELECT venue FROM table_name_86 WHERE date = "22 january 2008"
CREATE TABLE table_name_50 (date_of_birth VARCHAR, club VARCHAR)
What is the Date of Birth of the Player from the CSK VMF Moscow Club?
SELECT date_of_birth FROM table_name_50 WHERE club = "csk vmf moscow"
CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR)
What is the time for the rank after 5 with sc/d notes?
SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5
CREATE TABLE table_1416612_1 (lowest_elevation VARCHAR, highest_point VARCHAR)
what's the lowest elevation with highest point being charles mound
SELECT lowest_elevation FROM table_1416612_1 WHERE highest_point = "Charles Mound"
CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR)
What is the name of the incumbent who was first eleccted in 1940?
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940
CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR)
What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861?
SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861"
CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR)
What was the score of the Kings game when they had a record of 8–11–1?
SELECT score FROM table_name_27 WHERE record = "8–11–1"
CREATE TABLE table_name_4 (opponent VARCHAR, week VARCHAR)
Who was the opponent on week 5?
SELECT opponent FROM table_name_4 WHERE week = "5"
CREATE TABLE table_name_82 (total INTEGER, bronze VARCHAR, silver VARCHAR)
What is the least total that had more Bronzes than 1 and more silvers than 2?
SELECT MIN(total) FROM table_name_82 WHERE bronze > 1 AND silver > 2
CREATE TABLE table_name_15 (transmitting_from VARCHAR, coverage VARCHAR)
Where is the station with a coverage of yucatán quintana roo campeche transmitting from?
SELECT transmitting_from FROM table_name_15 WHERE coverage = "yucatán quintana roo campeche"
CREATE TABLE table_name_20 (player VARCHAR, college VARCHAR)
Which player went to Vanderbilt?
SELECT player FROM table_name_20 WHERE college = "vanderbilt"
CREATE TABLE table_name_56 (ergative VARCHAR, nominative VARCHAR)
With a nominative of chven-i what is the ergative?
SELECT ergative FROM table_name_56 WHERE nominative = "chven-i"
CREATE TABLE table_29583818_3 (place VARCHAR, couple VARCHAR)
How many times is the couple kerry & daniel?
SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Kerry & Daniel"
CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR)
What language was the film Pelle Erobreren, which received the best actor nomination, in?
SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren"
CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR)
How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?
SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3
CREATE TABLE table_19169116_8 (score VARCHAR, opponent VARCHAR)
Name the score for opponent of cleveland
SELECT score FROM table_19169116_8 WHERE opponent = "Cleveland"
CREATE TABLE table_name_30 (to_par VARCHAR, player VARCHAR)
Name the to par for colin montgomerie
SELECT to_par FROM table_name_30 WHERE player = "colin montgomerie"
CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
What is the largest crowd for any game where Footscray is the home team?
SELECT MAX(crowd) FROM table_name_9 WHERE home_team = "footscray"
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
Who were the opposing team when playing in the Portugal venue?
SELECT opponents FROM table_name_49 WHERE venue = "portugal"
CREATE TABLE table_name_48 (team VARCHAR, stadium VARCHAR)
What is the team at Stadion Maksimir?
SELECT team FROM table_name_48 WHERE stadium = "stadion maksimir"
CREATE TABLE table_27756572_10 (record VARCHAR, team VARCHAR)
What was the record when the Clippers played Philadelphia?
SELECT record FROM table_27756572_10 WHERE team = "Philadelphia"
CREATE TABLE table_name_60 (Id VARCHAR)
Which 2007 had a 2009 taht was qf when its 2000 was a?
SELECT 2007 FROM table_name_60 WHERE 2009 = "qf" AND 2000 = "a"
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)
On what date was the venue at Edgbaston?
SELECT date FROM table_name_97 WHERE venue = "edgbaston"