question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the away team for the home team wigan athletic?
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_23 WHERE home_team = "wigan athletic"
How many rooms are there?
CREATE TABLE Rooms (Id VARCHAR)
SELECT COUNT(*) FROM Rooms
What is the pick with Dean Sears and round larger than 6?
CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT MIN(pick) FROM table_name_61 WHERE round > 6 AND player = "dean sears"
When did Marty Riessen team up with a partner during a match on a carpet surface?
CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT date FROM table_name_69 WHERE surface = "carpet" AND partner = "marty riessen"
Which Country has a Network of nelonen?
CREATE TABLE table_name_61 (country VARCHAR, network VARCHAR)
SELECT country FROM table_name_61 WHERE network = "nelonen"
what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?
CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni"
What was Dom Joly famous for?
CREATE TABLE table_name_32 (famous_for VARCHAR, celebrity VARCHAR)
SELECT famous_for FROM table_name_32 WHERE celebrity = "dom joly"
What number draft pick was Oklahoma State's Greg Hill in 1983?
CREATE TABLE table_2508633_4 (pick__number VARCHAR, college VARCHAR, player VARCHAR)
SELECT pick__number FROM table_2508633_4 WHERE college = "Oklahoma State" AND player = "Greg Hill"
which Poles has a Fastest Laps of 0, and a Races of 17, and a Wins larger than 0, and a Podiums smaller than 2?
CREATE TABLE table_name_74 (poles INTEGER, podiums VARCHAR, wins VARCHAR, fastest_laps VARCHAR, races VARCHAR)
SELECT MAX(poles) FROM table_name_74 WHERE fastest_laps = 0 AND races = 17 AND wins > 0 AND podiums < 2
What was the highest crowd at the venue MCG?
CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg"
How many contestants did not get voted?
CREATE TABLE contestants (contestant_number VARCHAR); CREATE TABLE votes (contestant_number VARCHAR)
SELECT COUNT(*) FROM contestants WHERE NOT contestant_number IN (SELECT contestant_number FROM votes)
What date was the game played in seattle center coliseum 12,126?
CREATE TABLE table_27902171_7 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_27902171_7 WHERE location_attendance = "Seattle Center Coliseum 12,126"
What is the score for Footscray?
CREATE TABLE table_name_6 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE away_team = "footscray"
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
CREATE TABLE table_name_81 (years_as_tallest VARCHAR, street_address VARCHAR)
SELECT years_as_tallest FROM table_name_81 WHERE street_address = "01.0 10 light street"
How many constructors had a grid of 13?
CREATE TABLE table_27396005_2 (constructor VARCHAR, grid VARCHAR)
SELECT COUNT(constructor) FROM table_27396005_2 WHERE grid = 13
What is the date of the 42 Against?
CREATE TABLE table_name_8 (date VARCHAR, against VARCHAR)
SELECT date FROM table_name_8 WHERE against = 42
On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR)
SELECT ppv_buyrate FROM table_name_77 WHERE date = "september 10" AND event = "strikeforce: heavyweight grand prix semifinals"
What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT MAX(rank) FROM table_name_52 WHERE name = "travis watson" AND games < 14
Name the sum of ERP W for class of d and frequency mhz of 98.7
CREATE TABLE table_name_56 (erp_w INTEGER, class VARCHAR, frequency_mhz VARCHAR)
SELECT SUM(erp_w) FROM table_name_56 WHERE class = "d" AND frequency_mhz = 98.7
What are the school years where class "AAA" is argyle?
CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAA VARCHAR, Argyle VARCHAR)
SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle
Which Round has a Position of lb, and a Pick smaller than 25?
CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR)
SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25
Which team was the opponent on week 15?
CREATE TABLE table_name_7 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_7 WHERE week = 15
What is the method of the match with 1 round and a time of 1:58?
CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR)
SELECT method FROM table_name_60 WHERE round = 1 AND time = "1:58"
What campus is in Brgy. Alangilan, Batangas City?
CREATE TABLE table_name_59 (campus VARCHAR, location VARCHAR)
SELECT campus FROM table_name_59 WHERE location = "brgy. alangilan, batangas city"
Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?
CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_26 WHERE name = "daimon shelton" AND round > 6
Who is the team captain when the club is k.f.c. germinal beerschot?
CREATE TABLE table_27374004_2 (team_captain VARCHAR, club VARCHAR)
SELECT team_captain FROM table_27374004_2 WHERE club = "K.F.C. Germinal Beerschot"
What is the to par of player vijay singh?
CREATE TABLE table_name_31 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_31 WHERE player = "vijay singh"
what's the game site with result being l 24–34
CREATE TABLE table_14984126_1 (game_site VARCHAR, result VARCHAR)
SELECT game_site FROM table_14984126_1 WHERE result = "L 24–34"
What is the sum of games for a record of 33-13-3?
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)
SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3"
What are the distinct secretary votes in the fall election cycle?
CREATE TABLE VOTING_RECORD (Secretary_Vote VARCHAR, ELECTION_CYCLE VARCHAR)
SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall"
What Championship had a Winning score of 6 & 5?
CREATE TABLE table_name_31 (championship VARCHAR, winning_score VARCHAR)
SELECT championship FROM table_name_31 WHERE winning_score = "6 & 5"
What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?
CREATE TABLE table_name_79 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11
Which club lost exactly 7 matches?
CREATE TABLE table_27293285_6 (club VARCHAR, lost VARCHAR)
SELECT club FROM table_27293285_6 WHERE lost = "7"
how many draws are there when percentage is 100.00% and played is 7?
CREATE TABLE table_name_54 (drawn VARCHAR, percentage VARCHAR, played VARCHAR)
SELECT drawn FROM table_name_54 WHERE percentage = "100.00%" AND played = 7
How many points for the cooper car company after 1959?
CREATE TABLE table_name_90 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_90 WHERE entrant = "cooper car company" AND year > 1959
What was the Outcome at the 1985 India Open?
CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR)
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open"
What is "house", when "what" is "ano", and when "three" is "tulo"?
CREATE TABLE table_name_24 (house VARCHAR, what VARCHAR, three VARCHAR)
SELECT house FROM table_name_24 WHERE what = "ano" AND three = "tulo"
What is the name of the incumbent who was first eleccted in 1940?
CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940
Which of the top-10s has a starts value of 14?
CREATE TABLE table_name_53 (top_10s INTEGER, starts VARCHAR)
SELECT MAX(top_10s) FROM table_name_53 WHERE starts = 14
What is the county of the bridge in Boulder?
CREATE TABLE table_name_62 (county VARCHAR, location VARCHAR)
SELECT county FROM table_name_62 WHERE location = "boulder"
What years did the magazine Vaillant and Pif run?
CREATE TABLE table_name_78 (years VARCHAR, magazine VARCHAR)
SELECT years FROM table_name_78 WHERE magazine = "vaillant and pif"
What is the date of birth of Kameli Ratuvou?
CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou"
What is Player, when Place is "T9", and when Score is "73-70=143"?
CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_90 WHERE place = "t9" AND score = 73 - 70 = 143
Name the Drawn for tries against of 36 and points of 66
CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR)
SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66"
What is the conserved in mus musculus listing for sequence aagtact?
CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR)
SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = "aAGTAct"
How many poor law unions have an area of 262 acres and is in drinagh civil parish?
CREATE TABLE table_30121096_1 (poor_law_union VARCHAR, area__acres__ VARCHAR, civil_parish VARCHAR)
SELECT COUNT(poor_law_union) FROM table_30121096_1 WHERE area__acres__ = 262 AND civil_parish = "Drinagh"
What was the total attendance of the New York Giants?
CREATE TABLE table_28884858_2 (total_attendance INTEGER, team VARCHAR)
SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants"
What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?
CREATE TABLE table_name_45 (engine VARCHAR, chassis VARCHAR, rank VARCHAR)
SELECT engine FROM table_name_45 WHERE chassis = "lola b02/00" AND rank = "1st"
What film was Dianne Wiest in?
CREATE TABLE table_name_56 (film VARCHAR, actor VARCHAR)
SELECT film FROM table_name_56 WHERE actor = "dianne wiest"
What is the lowest number of total goals for a player with 6 league goals?
CREATE TABLE table_27170987_5 (total_goals INTEGER, league_goals VARCHAR)
SELECT MIN(total_goals) FROM table_27170987_5 WHERE league_goals = 6
What is the last year that Andre Agassi was the final opponent?
CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR)
SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"
Name the total number of kenesia for african record
CREATE TABLE table_24011830_2 (kenenisa_bekele___eth__ VARCHAR, world_record VARCHAR)
SELECT COUNT(kenenisa_bekele___eth__) FROM table_24011830_2 WHERE world_record = "African record"
what is the 1st round when team 2 is usl dunkerque (d2)?
CREATE TABLE table_name_73 (team_2 VARCHAR)
SELECT 1 AS st_round FROM table_name_73 WHERE team_2 = "usl dunkerque (d2)"
How many seconds is a shuttle run that give 2 points?
CREATE TABLE table_name_54 (shuttle_run__sec_ VARCHAR, points VARCHAR)
SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
what is the title when the citation is honor and the narrator is lincoln hoppe?
CREATE TABLE table_name_94 (title VARCHAR, citation VARCHAR, narrator VARCHAR)
SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
When was the score 7-1?
CREATE TABLE table_name_73 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_73 WHERE score = "7-1"
Who was the opponent on December 1, before Game 28?
CREATE TABLE table_name_2 (opponent VARCHAR, game VARCHAR, december VARCHAR)
SELECT opponent FROM table_name_2 WHERE game < 28 AND december = 1
What was the title for episode 2?
CREATE TABLE table_20205538_4 (title VARCHAR, episode__number VARCHAR)
SELECT title FROM table_20205538_4 WHERE episode__number = 2
What is the highest bronze for less than 2 total trophies?
CREATE TABLE table_name_16 (bronze INTEGER, total INTEGER)
SELECT MAX(bronze) FROM table_name_16 WHERE total < 2
What was the highest money when the score was 69-68-67-69=273?
CREATE TABLE table_name_37 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273
When was the show 9 to 5 returning?
CREATE TABLE table_name_7 (returning VARCHAR, show VARCHAR)
SELECT returning FROM table_name_7 WHERE show = "9 to 5"
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
CREATE TABLE table_name_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305
What is the highest pick for the position of defensive end?
CREATE TABLE table_name_15 (pick INTEGER, position VARCHAR)
SELECT MAX(pick) FROM table_name_15 WHERE position = "defensive end"
Name the mens singles for 1944/1945
CREATE TABLE table_12193259_1 (mens_singles VARCHAR, season VARCHAR)
SELECT mens_singles FROM table_12193259_1 WHERE season = "1944/1945"
What are the additional notes for Cotabato?
CREATE TABLE table_name_79 (additional_notes VARCHAR, location VARCHAR)
SELECT additional_notes FROM table_name_79 WHERE location = "cotabato"
Show the titles of books in descending order of publication price.
CREATE TABLE publication (Book_ID VARCHAR, Price VARCHAR); CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR)
SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC
Name the realization for phoneme of /i/ and example of /idːa/
CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR)
SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/idːa/"
What was the attendance for the game where the away team was Stockport County?
CREATE TABLE table_name_1 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_1 WHERE away_team = "stockport county"
Name the directors for peter gawler
CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = "Peter Gawler"
Name the date of the uncaf nations cup 2009
CREATE TABLE table_name_91 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_91 WHERE competition = "uncaf nations cup 2009"
Which School/Club Team has a Player of michael bradley?
CREATE TABLE table_name_36 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_36 WHERE player = "michael bradley"
Which player is the centre for the Detroit Red Wings?
CREATE TABLE table_2897457_4 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT player FROM table_2897457_4 WHERE position = "Centre" AND nhl_team = "Detroit Red Wings"
Where is the real estate agent from?
CREATE TABLE table_1289860_2 (hometown VARCHAR, background VARCHAR)
SELECT hometown FROM table_1289860_2 WHERE background = "Real Estate agent"
Who is the director of Little Beau Porky?
CREATE TABLE table_name_31 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_31 WHERE title = "little beau porky"
What is the production code for the episode with 5.5 million u.s. viewers?
CREATE TABLE table_28195898_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT production_code FROM table_28195898_1 WHERE us_viewers__millions_ = "5.5"
Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0
CREATE TABLE table_name_92 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_92 WHERE total > 1 AND bronze = 1 AND gold < 0
Which position has 5 total apps?
CREATE TABLE table_name_39 (position VARCHAR, total_apps VARCHAR)
SELECT position FROM table_name_39 WHERE total_apps = "5"
How much Latitude has a Water (sqmi) smaller than 0?
CREATE TABLE table_name_69 (latitude VARCHAR, water__sqmi_ INTEGER)
SELECT COUNT(latitude) FROM table_name_69 WHERE water__sqmi_ < 0
What is the location of the Sea Pines Heritage Classic tournament?
CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR)
SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic"
Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5?
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5
What number missile led to damage to the Islamic University campus?
CREATE TABLE table_23014685_1 (no INTEGER, area_damaged VARCHAR)
SELECT MIN(no) FROM table_23014685_1 WHERE area_damaged = "Islamic University campus"
How many seats does leader Raymond McCartney have?
CREATE TABLE table_name_2 (number_of_seats INTEGER, leader VARCHAR)
SELECT SUM(number_of_seats) FROM table_name_2 WHERE leader = "raymond mccartney"
When did chang myon (장면) leave office?
CREATE TABLE table_name_96 (left_office VARCHAR, romanized__hangul_ VARCHAR)
SELECT left_office FROM table_name_96 WHERE romanized__hangul_ = "chang myon (장면)"
Which Result has a Party of republican, and a First elected smaller than 1856?
CREATE TABLE table_name_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856
I want the D 46 for D 45 of r 5
CREATE TABLE table_name_54 (d_46 VARCHAR, d_45 VARCHAR)
SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5"
What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane?
CREATE TABLE table_name_8 (traffic_direction VARCHAR, street VARCHAR, west VARCHAR, _number_of_lanes VARCHAR)
SELECT traffic_direction FROM table_name_8 WHERE west = "2nd avenue" AND _number_of_lanes = "1" AND street = "64th street"
What was the Score F-A when the result was D?
CREATE TABLE table_name_39 (score_f_a VARCHAR, result VARCHAR)
SELECT score_f_a FROM table_name_39 WHERE result = "d"
What is the medal for the Men's Giant Slalom event?
CREATE TABLE table_name_1 (medal VARCHAR, event VARCHAR)
SELECT medal FROM table_name_1 WHERE event = "men's giant slalom"
Who was the winner when the runner-up was Chemnitzer FC II?
CREATE TABLE table_name_86 (winners VARCHAR, runners_up VARCHAR)
SELECT winners FROM table_name_86 WHERE runners_up = "chemnitzer fc ii"
What is the location of the original code for victorian rules?
CREATE TABLE table_name_64 (location VARCHAR, original_code VARCHAR)
SELECT location FROM table_name_64 WHERE original_code = "victorian rules"
What's the oil rig of the song with a draw number 9?
CREATE TABLE table_20183474_1 (oil_rig INTEGER, draw VARCHAR)
SELECT MIN(oil_rig) FROM table_20183474_1 WHERE draw = 9
What competition had a score of 8-1?
CREATE TABLE table_name_78 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_78 WHERE score = "8-1"
Count the average Gold which has a Nation of sweden, and a Silver larger than 1?
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_47 WHERE nation = "sweden" AND silver > 1
List all high rebound entries from May 11.
CREATE TABLE table_22654073_13 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_22654073_13 WHERE date = "May 11"
When the average ratings is 10.3%, what is the average episodes?
CREATE TABLE table_name_32 (episodes INTEGER, average_ratings VARCHAR)
SELECT AVG(episodes) FROM table_name_32 WHERE average_ratings = "10.3%"
Which city's IATA is nkg?
CREATE TABLE table_name_64 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_64 WHERE iata = "nkg"
What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent?
CREATE TABLE table_name_46 (record VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR)
SELECT record FROM table_name_46 WHERE game > 7 AND location = "boston garden" AND opponent = "providence steam rollers"
Which season has Losses of 30?
CREATE TABLE table_name_65 (season VARCHAR, losses VARCHAR)
SELECT season FROM table_name_65 WHERE losses = "30"
What is 2nd Member, when Assembled is "30 March 1298"?
CREATE TABLE table_name_96 (assembled VARCHAR)
SELECT 2 AS nd_member FROM table_name_96 WHERE assembled = "30 march 1298"
How many times did Tiger get second in the year where there were 11 cuts?
CREATE TABLE table_11570261_6 (cuts_made VARCHAR)
SELECT MAX(2 AS nd) FROM table_11570261_6 WHERE cuts_made = "11"