question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?
CREATE TABLE table_name_27 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_27 WHERE location = "winnipeg, manitoba , canada"
Which deliver has 16 and a standing more than 128?
CREATE TABLE table_name_93 (delivery VARCHAR, quantity VARCHAR, standing VARCHAR)
SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128
What is the total rank with a total larger than 2, and less than 0 gold
CREATE TABLE table_name_86 (rank INTEGER, total VARCHAR, gold VARCHAR)
SELECT SUM(rank) FROM table_name_86 WHERE total > 2 AND gold < 0
What is the Set 1 when Set 3 was 25–15?
CREATE TABLE table_name_34 (set_1 VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_34 WHERE set_3 = "25–15"
What is the lowest number of games played where they tied more than 7 of them?
CREATE TABLE table_name_92 (played INTEGER, draw INTEGER)
SELECT MIN(played) FROM table_name_92 WHERE draw > 7
What is the population of northfield parish that has an area less than 342.4?
CREATE TABLE table_name_50 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = "northfield"
How many crops were damaged when the public property damage was 1,03,049.60?
CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?
CREATE TABLE table_14752049_2 (change__2010_to_2011_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR)
SELECT change__2010_to_2011_ FROM table_14752049_2 WHERE international_tourist_arrivals__2011_ = "1.7 million"
Show the details and star ratings of the 3 least expensive hotels.
CREATE TABLE HOTELS (other_hotel_details VARCHAR, star_rating_code VARCHAR, price_range VARCHAR)
SELECT other_hotel_details, star_rating_code FROM HOTELS ORDER BY price_range LIMIT 3
Tell me the nominated work larger than 2011
CREATE TABLE table_name_54 (nominated_work VARCHAR, year INTEGER)
SELECT nominated_work FROM table_name_54 WHERE year > 2011
In which years was the to par +6?
CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_86 WHERE to_par = "+6"
Who was the away team for the game at Victoria Park?
CREATE TABLE table_name_47 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_47 WHERE venue = "victoria park"
Which leagues entered an extra preliminary round?
CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, round VARCHAR)
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = "Extra Preliminary round"
On what date or dates did the term with the Centre Party end?
CREATE TABLE table_name_85 (term_end VARCHAR, party VARCHAR)
SELECT term_end FROM table_name_85 WHERE party = "centre party"
What was the result of the Top 12 Men theme?
CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR)
SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men"
What was South Melbourne's score when they played as the away team?
CREATE TABLE table_name_5 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne"
Who has the title of marquis?
CREATE TABLE table_name_52 (name VARCHAR, title VARCHAR)
SELECT name FROM table_name_52 WHERE title = "marquis"
What player was chosen for the Chicago Sky?
CREATE TABLE table_name_57 (player VARCHAR, wnba_team VARCHAR)
SELECT player FROM table_name_57 WHERE wnba_team = "chicago sky"
What country is player mike sullivan from?
CREATE TABLE table_name_89 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_89 WHERE player = "mike sullivan"
Name the total number of rank for growth raate for 14.47
CREATE TABLE table_2527063_3 (rank VARCHAR, growth_rate VARCHAR)
SELECT COUNT(rank) FROM table_2527063_3 WHERE growth_rate = "14.47"
When did the Broncos play the Miami Dolphins?
CREATE TABLE table_17294353_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_17294353_1 WHERE opponent = "Miami Dolphins"
How many subsidiaries of Postermobile Limited?
CREATE TABLE table_1756264_2 (subsidiaries VARCHAR, company_name VARCHAR)
SELECT subsidiaries FROM table_1756264_2 WHERE company_name = "POSTERMOBILE LIMITED"
How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?
CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR)
SELECT SUM(year) FROM table_name_22 WHERE location = "pacific ring of fire" AND eruptions = "pinatubo"
Show the number of documents with document type code CV or BK.
CREATE TABLE All_documents (document_type_code VARCHAR)
SELECT COUNT(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"
What was the week 2 prior to the when Brittany Alyse was week 3?
CREATE TABLE table_name_60 (week_2 VARCHAR, week_3 VARCHAR)
SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"
What is the date for the row with a new entries this round of 44?
CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR)
SELECT date FROM table_name_71 WHERE new_entries_this_round = "44"
What is the score of the Tournament Players Championship?
CREATE TABLE table_name_16 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_16 WHERE tournament = "tournament players championship"
What was the region of the release from May 27, 2009?
CREATE TABLE table_name_55 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_55 WHERE date = "may 27, 2009"
What is the date of the game when the home team is melbourne?
CREATE TABLE table_29090919_1 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_29090919_1 WHERE home_team = "Melbourne"
Who was the away team at Lake Oval?
CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval"
What is the lowest Perigee with a Launch date of 1970-08-26?
CREATE TABLE table_name_30 (perigee__km_ INTEGER, launch_date VARCHAR)
SELECT MIN(perigee__km_) FROM table_name_30 WHERE launch_date = "1970-08-26"
Name the venue for friendly competition october 16, 2012
CREATE TABLE table_name_89 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT venue FROM table_name_89 WHERE competition = "friendly" AND date = "october 16, 2012"
What venue features carlton at home?
CREATE TABLE table_name_88 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_88 WHERE home_team = "carlton"
Is Jasper being producted?
CREATE TABLE table_name_66 (in_production VARCHAR, codename VARCHAR)
SELECT in_production FROM table_name_66 WHERE codename = "jasper"
Who was on the pole at Chicagoland?
CREATE TABLE table_16099880_5 (pole_position VARCHAR, race VARCHAR)
SELECT pole_position FROM table_16099880_5 WHERE race = "Chicagoland"
In what parish is the sub-parish fortun?
CREATE TABLE table_178398_1 (parish__prestegjeld_ VARCHAR, sub_parish__sogn_ VARCHAR)
SELECT parish__prestegjeld_ FROM table_178398_1 WHERE sub_parish__sogn_ = "Fortun"
What weight has a distance of 8F, and RRC Hill Stakes (wfa) as the race?
CREATE TABLE table_name_7 (weight VARCHAR, distance VARCHAR, race VARCHAR)
SELECT weight FROM table_name_7 WHERE distance = "8f" AND race = "rrc hill stakes (wfa)"
What is the nickname of the institution from Concordia University, Nebraska?
CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_262508_1 WHERE institution = "Concordia University, Nebraska"
What was the region for the 38xa-5 catalog?
CREATE TABLE table_name_6 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_6 WHERE catalog = "38xa-5"
Name the power output for model of s-13
CREATE TABLE table_name_29 (power_output VARCHAR, model VARCHAR)
SELECT power_output FROM table_name_29 WHERE model = "s-13"
What was the publication date of the photos of Sean Preston Federline that cost $500,000 and were published by People?
CREATE TABLE table_name_90 (publication_date VARCHAR, person_s_ VARCHAR, reported_price VARCHAR, publisher_s_ VARCHAR)
SELECT publication_date FROM table_name_90 WHERE reported_price = "$500,000" AND publisher_s_ = "people" AND person_s_ = "sean preston federline"
How many districts represented Edwin E. Willis?
CREATE TABLE table_1341884_20 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341884_20 WHERE incumbent = "Edwin E. Willis"
What is the score of the game played on october 16?
CREATE TABLE table_27756014_1 (score VARCHAR, date VARCHAR)
SELECT score FROM table_27756014_1 WHERE date = "October 16"
How many years did he finish in 59th?
CREATE TABLE table_1637041_2 (avg_start VARCHAR, position VARCHAR)
SELECT COUNT(avg_start) FROM table_1637041_2 WHERE position = "59th"
What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?
CREATE TABLE table_name_79 (frequency VARCHAR, sspec_number VARCHAR)
SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)"
How many points did the Wildcats get when Baylor was an opponent?
CREATE TABLE table_24561550_1 (wildcats_points VARCHAR, opponent VARCHAR)
SELECT wildcats_points FROM table_24561550_1 WHERE opponent = "Baylor"
What is the title of the film that had a production cost of $850,000?
CREATE TABLE table_name_93 (title VARCHAR, production_cost VARCHAR)
SELECT title FROM table_name_93 WHERE production_cost = "$850,000"
Name the least valid poll for munster
CREATE TABLE table_name_50 (valid_poll INTEGER, constituency VARCHAR)
SELECT MIN(valid_poll) FROM table_name_50 WHERE constituency = "munster"
What's the title of the film with the release date of 1954-12-18?
CREATE TABLE table_name_95 (title VARCHAR, release_date VARCHAR)
SELECT title FROM table_name_95 WHERE release_date = "1954-12-18"
What kind of Republican ticket has a Prohibition ticket of stephen mead wing?
CREATE TABLE table_name_27 (republican_ticket VARCHAR, prohibition_ticket VARCHAR)
SELECT republican_ticket FROM table_name_27 WHERE prohibition_ticket = "stephen mead wing"
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic
CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group classic"
How many Wins have a Scored smaller than 24, and a Conceded larger than 25, and Draws larger than 5, and a Position smaller than 9?
CREATE TABLE table_name_89 (wins VARCHAR, position VARCHAR, draws VARCHAR, scored VARCHAR, conceded VARCHAR)
SELECT COUNT(wins) FROM table_name_89 WHERE scored < 24 AND conceded > 25 AND draws > 5 AND position < 9
Who was the opponent for game number less than 47 and a record of 24-13-4?
CREATE TABLE table_name_34 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-4"
On what day was Stuart Potts the Man of the Match?
CREATE TABLE table_17120964_6 (date VARCHAR, man_of_the_match VARCHAR)
SELECT date FROM table_17120964_6 WHERE man_of_the_match = "Stuart Potts"
Which Issue Date(s) has an Artist of men at work?
CREATE TABLE table_name_32 (issue_date_s_ VARCHAR, artist VARCHAR)
SELECT issue_date_s_ FROM table_name_32 WHERE artist = "men at work"
What is the lowest round a fullback went in?
CREATE TABLE table_name_17 (round INTEGER, position VARCHAR)
SELECT MIN(round) FROM table_name_17 WHERE position = "fullback"
What Location has Years Member of 1963–1968?
CREATE TABLE table_name_24 (location VARCHAR, years_member VARCHAR)
SELECT location FROM table_name_24 WHERE years_member = "1963–1968"
How many Losses have a Millewa of nangiloc?
CREATE TABLE table_name_13 (losses VARCHAR, millewa VARCHAR)
SELECT COUNT(losses) FROM table_name_13 WHERE millewa = "nangiloc"
How many years have a Name of tour quartier des spectacles, and Floors smaller than 31?
CREATE TABLE table_name_51 (year VARCHAR, name VARCHAR, floors VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE name = "tour quartier des spectacles" AND floors < 31
What was the record after the January 18 game?
CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_86 WHERE date = "january 18"
What is the maximum fc matches?
CREATE TABLE table_1176371_1 (fc_matches INTEGER)
SELECT MAX(fc_matches) FROM table_1176371_1
Which English winning song had the winner aris runtuwene?
CREATE TABLE table_name_7 (English VARCHAR, winner VARCHAR)
SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = "aris runtuwene"
Name the marriage of the person who is married for christian viii
CREATE TABLE table_name_74 (marriage VARCHAR, spouse VARCHAR)
SELECT marriage FROM table_name_74 WHERE spouse = "christian viii"
What is the name of the city with the Socialist Party of the Extremadurian People?
CREATE TABLE table_name_89 (city VARCHAR, name_in_english VARCHAR)
SELECT city FROM table_name_89 WHERE name_in_english = "socialist party of the extremadurian people"
What is the total ticket expense of the visitors whose membership level is 1?
CREATE TABLE visit (Total_spent INTEGER, visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, Level_of_membership VARCHAR)
SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1
What is the no party preference when republican is 45.3%?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, republican VARCHAR)
SELECT no_party_preference FROM table_27003186_3 WHERE republican = "45.3%"
What is every BSE code for a free float of 0.2726?
CREATE TABLE table_20667854_1 (bse_code VARCHAR, free_float VARCHAR)
SELECT bse_code FROM table_20667854_1 WHERE free_float = "0.2726"
What was the score for the game when West Ham United was the away team?
CREATE TABLE table_name_84 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_84 WHERE away_team = "west ham united"
Who is driver of the d6 chassis?
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_99 WHERE chassis = "d6"
what's the kerry # with county being ness county, kansas
CREATE TABLE table_13606924_1 (kerry__number VARCHAR, county VARCHAR)
SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas"
What is listed for the Wins with a Year of 1989?
CREATE TABLE table_name_84 (wins VARCHAR, year VARCHAR)
SELECT wins FROM table_name_84 WHERE year = 1989
How many womens singles entries are there when womens doubles is li xiaodan wen jia?
CREATE TABLE table_28138035_27 (womens_singles VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(womens_singles) FROM table_28138035_27 WHERE womens_doubles = "Li Xiaodan Wen Jia"
What is the Playoffs during 2004-05?
CREATE TABLE table_name_82 (playoffs VARCHAR, year VARCHAR)
SELECT playoffs FROM table_name_82 WHERE year = "2004-05"
Who wrote the episode that had 6.05 million U.s. viewers?
CREATE TABLE table_28037619_2 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_28037619_2 WHERE us_viewers__million_ = "6.05"
Which overall's pick number was 14?
CREATE TABLE table_name_65 (overall VARCHAR, pick__number VARCHAR)
SELECT overall FROM table_name_65 WHERE pick__number = 14
What functions were released on 2011-06-23?
CREATE TABLE table_18138132_2 (function VARCHAR, release_date VARCHAR)
SELECT function FROM table_18138132_2 WHERE release_date = "2011-06-23"
Who was the driver of the Officine Alfieri Maserati with a Tyre of P?
CREATE TABLE table_name_21 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_21 WHERE tyre = "p" AND entrant = "officine alfieri maserati"
Name the number of season for beluga shipping
CREATE TABLE table_26168687_5 (no_in_season VARCHAR, vessel_operator VARCHAR)
SELECT COUNT(no_in_season) FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
What party was first elected in 1974?
CREATE TABLE table_1341453_7 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_1341453_7 WHERE first_elected = 1974
What is the Date of the Kroger Classic Tournament?
CREATE TABLE table_name_64 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_64 WHERE tournament = "kroger classic"
How many conditions have an unaffected prothrombin time and a prolonged bleeding time
CREATE TABLE table_1099080_1 (condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT COUNT(condition) FROM table_1099080_1 WHERE prothrombin_time = "Unaffected" AND bleeding_time = "Prolonged"
Which company name has headquarters in nagaokakyo, kyoto?
CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)
SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"
What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57
Which organisation hired the most number of research staff? List the organisation id, type and detail.
CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)
SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1
Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller than 7?
CREATE TABLE table_name_88 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = "kawasaki" AND grid < 7
What were the matches where the teams finished in the first group stage, in 1998?
CREATE TABLE table_name_95 (matches VARCHAR, result VARCHAR, year VARCHAR)
SELECT matches FROM table_name_95 WHERE result = "first group stage" AND year = "1998"
what is the highest top-5 when the top-25 is less than 4, cuts made is more than 3 and wins is 0?
CREATE TABLE table_name_29 (top_5 INTEGER, wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MAX(top_5) FROM table_name_29 WHERE top_25 < 4 AND cuts_made > 3 AND wins < 0
On what date was the record 4–0–0?
CREATE TABLE table_name_81 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_81 WHERE record = "4–0–0"
What is the land (sqmi) at geo id 3801947380?
CREATE TABLE table_18600760_12 (land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT land___sqmi__ FROM table_18600760_12 WHERE geo_id = 3801947380
Which junior high school has male and female genders?
CREATE TABLE table_name_97 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR)
SELECT junior_high_school__12_15_yrs_ FROM table_name_97 WHERE gender = "male and female"
Who was the director of the film with the original title of "The Patience Stone"?
CREATE TABLE table_17155250_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_17155250_1 WHERE original_title = "The Patience Stone"
What is the team that lost with 77 tries against?
CREATE TABLE table_name_5 (lost VARCHAR, tries_against VARCHAR)
SELECT lost FROM table_name_5 WHERE tries_against = "77"
What time does lane 7 have?
CREATE TABLE table_name_56 (time VARCHAR, lane VARCHAR)
SELECT time FROM table_name_56 WHERE lane = 7
In what poll is John Oxendine at 32%?
CREATE TABLE table_name_67 (poll_source VARCHAR, john_oxendine VARCHAR)
SELECT poll_source FROM table_name_67 WHERE john_oxendine = "32%"
What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?
CREATE TABLE table_name_66 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR)
SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14
What was the team's record when they played minnesota?
CREATE TABLE table_27700530_9 (record VARCHAR, team VARCHAR)
SELECT record FROM table_27700530_9 WHERE team = "Minnesota"
How many league cup goals on average for players with over 0 FA cup and 5 league goals?
CREATE TABLE table_name_64 (league INTEGER, fa_cup VARCHAR)
SELECT AVG(league) AS Cup FROM table_name_64 WHERE fa_cup > 0 AND league = 5
How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)?
CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, epa_rated_combined_fuel_economy VARCHAR)
SELECT COUNT(dirty_electric_grid_rocky_mountains__denver_) FROM table_23840623_4 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"
what is the model where the method is ha?
CREATE TABLE table_17157367_1 (model VARCHAR, method VARCHAR)
SELECT model FROM table_17157367_1 WHERE method = "HA"
When pokémon ieru kana? bw is the romaji who is the vocalist?
CREATE TABLE table_2144389_9 (vocalist VARCHAR, rōmaji VARCHAR)
SELECT vocalist FROM table_2144389_9 WHERE rōmaji = "Pokémon ieru kana? BW"