answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id ORDER BY COUNT(*) DESC LIMIT 1 | Which film has the most copies in the inventory? List both title and id. | CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (film_id VARCHAR) |
SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 25" | On July 25 what is the lowest attendance with the Brewers as the opponent? | CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) |
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra" | What is the moving from with a transfer and the nationality of Bra? | CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR) |
SELECT T1.Name, T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival" | What are the names and descriptions of the photos taken at the tourist attraction "film festival"? | CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE PHOTOS (Name VARCHAR, Description VARCHAR, Tourist_Attraction_ID VARCHAR) |
SELECT directed_by FROM table_16384596_4 WHERE production_code = 209 | Who directed the episode with the production code 209? | CREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR) |
SELECT date FROM table_name_93 WHERE away_team = "essendon" | What is the date when the away team is essendon? | CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR) |
SELECT team_2 FROM table_name_9 WHERE team_1 = "omonia" | What was team 2 when team 1 was omonia? | CREATE TABLE table_name_9 (team_2 VARCHAR, team_1 VARCHAR) |
SELECT AVG(bronze) FROM table_name_65 WHERE total > 1 AND rank > 1 | What is the average number of bronze medals won among nations that won at least 1 medal and are not ranked 1st? | CREATE TABLE table_name_65 (bronze INTEGER, total VARCHAR, rank VARCHAR) |
SELECT SUM(silver) FROM table_name_30 WHERE gold < 0 | What is the total of silver when gold is less than 0? | CREATE TABLE table_name_30 (silver INTEGER, gold INTEGER) |
SELECT game FROM table_name_33 WHERE date = "march 30" | What is the Game number on March 30? | CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR) |
SELECT team FROM table_name_75 WHERE best = "1:43.134" | what is the team with the best of 1:43.134? | CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR) |
SELECT skip FROM table_name_62 WHERE third = "deanna doig" | WHAT IS THE SKIP WITH A THIRD OF DEANNA DOIG? | CREATE TABLE table_name_62 (skip VARCHAR, third VARCHAR) |
SELECT division_record FROM table_name_28 WHERE team = "riders" | Name the division record for riders | CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR) |
SELECT disposition FROM table_1748444_1 WHERE date_built = "March 1909" | Name the disposition for date built is march 1909 | CREATE TABLE table_1748444_1 (disposition VARCHAR, date_built VARCHAR) |
SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = "wolfgang frank" | How did the manager replaced by Wolfgang Frank depart? | CREATE TABLE table_name_93 (manner_of_departure VARCHAR, replaced_by VARCHAR) |
SELECT order_id, SUM(product_quantity) FROM Order_items GROUP BY order_id | Show order ids and the total quantity in each order. | CREATE TABLE Order_items (order_id VARCHAR, product_quantity INTEGER) |
SELECT COUNT(dismissals) FROM table_23316034_23 WHERE player = "Adam Gilchrist" | Name the number of dismissals for adam gilchrist | CREATE TABLE table_23316034_23 (dismissals VARCHAR, player VARCHAR) |
SELECT winner FROM table_name_90 WHERE location = "georgia" AND date = "oct 3" | Who is the winner of the tournament in Georgia on Oct 3? | CREATE TABLE table_name_90 (winner VARCHAR, location VARCHAR, date VARCHAR) |
SELECT 2005 FROM table_name_16 WHERE 2002 = "0–1" | What shows for 2005 when 2002 shows 0–1? | CREATE TABLE table_name_16 (Id VARCHAR) |
SELECT MIN(capacity) FROM table_name_79 WHERE location = "grodno" | what is the lowest capacity in grodno | CREATE TABLE table_name_79 (capacity INTEGER, location VARCHAR) |
SELECT position FROM table_11677691_8 WHERE hometown = "Loganville, Georgia" | What position did the kid from loganville, georgia play | CREATE TABLE table_11677691_8 (position VARCHAR, hometown VARCHAR) |
SELECT writer_s_ FROM table_24781886_2 WHERE _number = 10 | When 10 is the number who is the writer? | CREATE TABLE table_24781886_2 (writer_s_ VARCHAR, _number VARCHAR) |
SELECT outcome FROM table_name_35 WHERE surface = "carpet" | What is the Outcome of the Doubles played on Carpet? | CREATE TABLE table_name_35 (outcome VARCHAR, surface VARCHAR) |
SELECT games_lost FROM table_27533947_1 WHERE best_run = 138 | if the best run was 138, what is the amount of games lost? | CREATE TABLE table_27533947_1 (games_lost VARCHAR, best_run VARCHAR) |
SELECT silver FROM table_name_20 WHERE gold > 1 AND total < 97 AND nation = "estonia" | How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win? | CREATE TABLE table_name_20 (silver VARCHAR, nation VARCHAR, gold VARCHAR, total VARCHAR) |
SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league" | How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league? | CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR) |
SELECT COUNT(runs) FROM table_name_82 WHERE inns < 9 | What is the total number of runs for the player with fewer than 9 Inns? | CREATE TABLE table_name_82 (runs VARCHAR, inns INTEGER) |
SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas" | Jimmie Lee Sloas was the composer for what album? | CREATE TABLE table_name_44 (album VARCHAR, composer_s_ VARCHAR) |
SELECT country FROM table_name_55 WHERE director_s_ = "julio robledo" | Julio Robledo represents which country? | CREATE TABLE table_name_55 (country VARCHAR, director_s_ VARCHAR) |
SELECT interval_name FROM table_18955077_1 WHERE just__cents_ = "701.96" | If the just cents is 701.96, what is the interval name? | CREATE TABLE table_18955077_1 (interval_name VARCHAR, just__cents_ VARCHAR) |
SELECT COUNT(*), Competition FROM MATCH GROUP BY Competition | Find the number of matches in different competitions. | CREATE TABLE MATCH (Competition VARCHAR) |
SELECT opponent FROM table_name_4 WHERE game < 6 AND date = "april 17" | What opponent has a game less than 6, and april 17 as the date? | CREATE TABLE table_name_4 (opponent VARCHAR, game VARCHAR, date VARCHAR) |
SELECT SUM(year) FROM table_name_42 WHERE rank = "14.0 14" | In what Year was the Rank 14.0 14? | CREATE TABLE table_name_42 (year INTEGER, rank VARCHAR) |
SELECT MIN(field_goals) FROM table_14342210_6 | What is the least amount of field goals made by a player? | CREATE TABLE table_14342210_6 (field_goals INTEGER) |
SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery" | What are the highest number of points with an Entrant of warsteiner brewery? | CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR) |
SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID | What is the average age of all gymnasts? | CREATE TABLE people (Age INTEGER, People_ID VARCHAR); CREATE TABLE gymnast (Gymnast_ID VARCHAR) |
SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher" | Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor? | CREATE TABLE table_name_73 (team VARCHAR, kitmaker VARCHAR, shirt_sponsor VARCHAR) |
SELECT COUNT(series__number) FROM table_14835826_1 WHERE us_viewers__millions_ = "18.77" | How many series had 18.77 million viewers? | CREATE TABLE table_14835826_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT SUM(total) FROM table_name_80 WHERE county = "galway" | What is galway county's total? | CREATE TABLE table_name_80 (total INTEGER, county VARCHAR) |
SELECT MIN(pick__number) FROM table_2508633_8 WHERE player = "Mark Bortz" | What is the pick number minimum if the player is Mark Bortz? | CREATE TABLE table_2508633_8 (pick__number INTEGER, player VARCHAR) |
SELECT mascot FROM table_name_19 WHERE year_joined > 1952 AND school = "moores hill" | what is the mascot for moores hill that joined later than 1952? | CREATE TABLE table_name_19 (mascot VARCHAR, year_joined VARCHAR, school VARCHAR) |
SELECT name FROM table_name_47 WHERE floors = 46 | what is the name that had 46 floors? | CREATE TABLE table_name_47 (name VARCHAR, floors VARCHAR) |
SELECT MIN(series__number) FROM table_11404452_1 WHERE writer_s_ = "Shelia Lawrence" | When did Shelia Lawrence join the series? | CREATE TABLE table_11404452_1 (series__number INTEGER, writer_s_ VARCHAR) |
SELECT leading_scorer FROM table_name_59 WHERE visitor = "celtics" | What is the leading scorer of the game with the Celtics as the visiting team? | CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR) |
SELECT _percentage_gdp FROM table_name_16 WHERE expenditure > 50.9 AND year > 2009 AND income = 39.3 | Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3? | CREATE TABLE table_name_16 (_percentage_gdp VARCHAR, income VARCHAR, expenditure VARCHAR, year VARCHAR) |
SELECT round_winner FROM table_19886463_1 WHERE entrant = "Craven Mild Racing" | Who is the round winner when entrant is craven mild racing? | CREATE TABLE table_19886463_1 (round_winner VARCHAR, entrant VARCHAR) |
SELECT COUNT(draw) FROM table_name_9 WHERE artist = "jan johansen" AND points < 107 | What is the draw with less than 107 points by the artist Jan Johansen? | CREATE TABLE table_name_9 (draw VARCHAR, artist VARCHAR, points VARCHAR) |
SELECT MAX(losses) FROM table_name_9 WHERE draws > 0 AND against > 1401 | What is the most games lost when the against is greater than 1401, and the draws greater than 0? | CREATE TABLE table_name_9 (losses INTEGER, draws VARCHAR, against VARCHAR) |
SELECT loss FROM table_name_74 WHERE record = "55-41" | Who got the loss for the game ending in a record of 55-41? | CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR) |
SELECT transcription FROM table_180802_2 WHERE thai_name = "พฤษภาคม" | What's the transcription of the thai name of the month พฤษภาคม? | CREATE TABLE table_180802_2 (transcription VARCHAR, thai_name VARCHAR) |
SELECT moving_from FROM table_name_31 WHERE name = "naylor" | Where did naylor move from? | CREATE TABLE table_name_31 (moving_from VARCHAR, name VARCHAR) |
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas" | What is the average Frequency MHz that is on farwell, texas? | CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR) |
SELECT MIN(teams) FROM table_23927423_4 | How many were the minimum team that participated in the league? | CREATE TABLE table_23927423_4 (teams INTEGER) |
SELECT AVG(game) FROM table_name_3 WHERE february > 13 AND opponent = "toronto maple leafs" AND points > 47 | What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored? | CREATE TABLE table_name_3 (game INTEGER, points VARCHAR, february VARCHAR, opponent VARCHAR) |
SELECT COUNT(*) FROM customer_orders WHERE order_details = "Second time" | How many orders have detail "Second time"? | CREATE TABLE customer_orders (order_details VARCHAR) |
SELECT written_by FROM table_14845640_1 WHERE us_viewers__millions_ = "16.32" | Name the written by for 16.32 million viewers | CREATE TABLE table_14845640_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT xdsl FROM table_name_1 WHERE other = "0.6%" AND fttx = "35.4%" | What is the xDSL for the other of 0.6% and FTTx of 35.4%? | CREATE TABLE table_name_1 (xdsl VARCHAR, other VARCHAR, fttx VARCHAR) |
SELECT years_of_nba_experience_[a_] FROM table_name_28 WHERE pos = "g" AND team = "portland trail blazers" | How many years of NBA experience does the player who plays position g for the Portland Trail Blazers? | CREATE TABLE table_name_28 (years_of_nba_experience_ VARCHAR, a_ VARCHAR, pos VARCHAR, team VARCHAR) |
SELECT rider FROM table_name_26 WHERE manufacturer = "kr211v" | WWhich rder had a vehicle manufactured by kr211v? | CREATE TABLE table_name_26 (rider VARCHAR, manufacturer VARCHAR) |
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "September 15-September 18, 2008" | Name the republican steve sauerberg where dates administered september 15-september 18, 2008 | CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR) |
SELECT date FROM table_name_27 WHERE goal = 7 | What was the date of the game with a goal of 7? | CREATE TABLE table_name_27 (date VARCHAR, goal VARCHAR) |
SELECT 1951 FROM table_name_25 WHERE tournament = "sr" | What did the Tournament of SR get in 1951? | CREATE TABLE table_name_25 (tournament VARCHAR) |
SELECT high_assists FROM table_27715173_6 WHERE score = "W 107–95 (OT)" | Who had the high assists when the score was w 107–95 (ot)? | CREATE TABLE table_27715173_6 (high_assists VARCHAR, score VARCHAR) |
SELECT other_mozilla FROM table_name_58 WHERE chrome = "9.00%" | What percentage of users were using other Mozilla browsers during the period in which 9.00% were using Chrome? | CREATE TABLE table_name_58 (other_mozilla VARCHAR, chrome VARCHAR) |
SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2" | Who was the director of Battalion Wars 2 which was released on GCN after 2004? | CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR) |
SELECT MAX(earnings___) AS $__ FROM table_name_59 WHERE player = "tom watson" AND rank > 2 | What is the largest number for earnings for tom watson when ranked more than 2? | CREATE TABLE table_name_59 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) |
SELECT branding FROM table_14623167_1 WHERE owner = "Forum Communications" | Name the branding for forum communications | CREATE TABLE table_14623167_1 (branding VARCHAR, owner VARCHAR) |
SELECT directed_by FROM table_29273390_1 WHERE us_viewers__million_ = "1.19" | Who directed an episode with 1.19 million? | CREATE TABLE table_29273390_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT date FROM table_name_53 WHERE stage = 5 | When did stage 5 occur? | CREATE TABLE table_name_53 (date VARCHAR, stage VARCHAR) |
SELECT erp_w FROM table_name_66 WHERE frequency_mhz = 92.7 | Name the ERP W for frequency of 92.7 | CREATE TABLE table_name_66 (erp_w VARCHAR, frequency_mhz VARCHAR) |
SELECT COUNT(species) FROM table_10477224_1 WHERE sepal_width = "3.4" AND sepal_length = "5.4" | Name the number of species with sepal width of 3.4 and sepal length of 5.4 | CREATE TABLE table_10477224_1 (species VARCHAR, sepal_width VARCHAR, sepal_length VARCHAR) |
SELECT date FROM table_name_39 WHERE home = "buffalo" | Home of buffalo happened on what date? | CREATE TABLE table_name_39 (date VARCHAR, home VARCHAR) |
SELECT MAX(goals_conceded) FROM table_name_19 WHERE lost > 8 AND points > 17 | What were the goal conceded that had a lost greater than 8 and more than 17 points? | CREATE TABLE table_name_19 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR) |
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x07" | When was episode 02x07 first broadcast? | CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR) |
SELECT date FROM table_name_84 WHERE attendance = "48,041" | What was the date when the attendance was 48,041? | CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR) |
SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc" | How many draws are for the club senghenydd rfc? | CREATE TABLE table_name_5 (drawn VARCHAR, club VARCHAR) |
SELECT COUNT(bleeding_time) FROM table_221653_1 WHERE condition = "Disseminated intravascular coagulation" | What is the bleeding time for the disseminated intravascular coagulation condition? | CREATE TABLE table_221653_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT MIN(delegates) FROM table_name_75 WHERE candidate = "john mccain" AND counties < 45 | What is the lowest number of delegates when John McCain was the candidate with less than 45 candidates? | CREATE TABLE table_name_75 (delegates INTEGER, candidate VARCHAR, counties VARCHAR) |
SELECT team FROM table_name_78 WHERE qual_1 = "1:02.755" | What team had a qual 1 of 1:02.755? | CREATE TABLE table_name_78 (team VARCHAR, qual_1 VARCHAR) |
SELECT result FROM table_name_83 WHERE winner = "bc 3" | I want the result for winner of bc 3 | CREATE TABLE table_name_83 (result VARCHAR, winner VARCHAR) |
SELECT COUNT(result) FROM table_1341865_40 WHERE incumbent = "Frank M. Clark" | How many times was frank m. clark the incumbent? | CREATE TABLE table_1341865_40 (result VARCHAR, incumbent VARCHAR) |
SELECT transfer_window FROM table_name_12 WHERE country = "bra" | WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA? | CREATE TABLE table_name_12 (transfer_window VARCHAR, country VARCHAR) |
SELECT notes FROM table_name_26 WHERE status = "nomen dubium" AND location = "china" | What are the Notes of the dinosaur, whose Status is nomen dubium, and whose Location is China? | CREATE TABLE table_name_26 (notes VARCHAR, status VARCHAR, location VARCHAR) |
SELECT MAX(bronze) FROM table_name_16 WHERE total < 2 | What is the highest bronze for less than 2 total trophies? | CREATE TABLE table_name_16 (bronze INTEGER, total INTEGER) |
SELECT 2011 FROM table_name_5 WHERE 2008 = "1r" AND tournament = "paris masters" | What is the 2011 value for the paris masters tournament with 1r in 2008? | CREATE TABLE table_name_5 (tournament VARCHAR) |
SELECT country FROM table_name_63 WHERE rider = "lindsay porter" | What is Country , when Rider is Lindsay Porter? | CREATE TABLE table_name_63 (country VARCHAR, rider VARCHAR) |
SELECT high_rebounds FROM table_name_94 WHERE game < 9 AND opponent = "detroit" | Which High rebounds has a Game smaller than 9, and a Opponent of detroit? | CREATE TABLE table_name_94 (high_rebounds VARCHAR, game VARCHAR, opponent VARCHAR) |
SELECT player FROM table_name_97 WHERE college = "san sebastian" | What player has a college named san sebastian? | CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR) |
SELECT SUM(grid) FROM table_name_7 WHERE driver = "ryan hunter-reay" AND points > 24 | What is the sum of the grid of driver ryan hunter-reay, who has more than 24 points? | CREATE TABLE table_name_7 (grid INTEGER, driver VARCHAR, points VARCHAR) |
SELECT platform FROM table_name_53 WHERE latest_stable_release = "5.0.3" | What is the platform for the latest release 5.0.3? | CREATE TABLE table_name_53 (platform VARCHAR, latest_stable_release VARCHAR) |
SELECT nat FROM table_name_12 WHERE transfer_fee = "free" AND type = "mutual consent loan return" | What is the Nat with a mutual consent loan return and has a free transfer fee? | CREATE TABLE table_name_12 (nat VARCHAR, transfer_fee VARCHAR, type VARCHAR) |
SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold" | Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold? | CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR) |
SELECT winner FROM table_name_70 WHERE week_of = "8 may" AND semi_finalists = "helena suková mary pierce" AND runner_up = "conchita martínez patricia tarabini" | What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini? | CREATE TABLE table_name_70 (winner VARCHAR, runner_up VARCHAR, week_of VARCHAR, semi_finalists VARCHAR) |
SELECT system FROM table_name_76 WHERE license = "freeware" AND name = "steem" | Which System's Name is Steem, and has a Freeware License? | CREATE TABLE table_name_76 (system VARCHAR, license VARCHAR, name VARCHAR) |
SELECT record FROM table_23186738_6 WHERE team = "Golden State" | Name the record for golden state | CREATE TABLE table_23186738_6 (record VARCHAR, team VARCHAR) |
SELECT case_length FROM table_name_57 WHERE base = "14.96 (.589)" | Which Case Length has a Base of 14.96 (.589)? | CREATE TABLE table_name_57 (case_length VARCHAR, base VARCHAR) |
SELECT player FROM table_name_74 WHERE school_club_team = "georgia tech" | Which player attended school at Georgia Tech? | CREATE TABLE table_name_74 (player VARCHAR, school_club_team VARCHAR) |
SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = "Sargodha district" | What is the area of the city in the Sargodha district? | CREATE TABLE table_18425346_2 (city_area_km_2__ VARCHAR, district VARCHAR) |
SELECT COUNT(universities) FROM table_29538735_1 WHERE _percentage_electricity_reduction = "10%" | When 10% is the percentage of electricity reduction how many sets of universities are there? | CREATE TABLE table_29538735_1 (universities VARCHAR, _percentage_electricity_reduction VARCHAR) |
SELECT population__1980_ FROM table_11656578_2 WHERE capital = "Siedlce" | How many people lived in the voivodenship whose capital is Siedlce in the year of 1980? | CREATE TABLE table_11656578_2 (population__1980_ VARCHAR, capital VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.