answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT SUM(pick) FROM table_name_3 WHERE college = "texas a&i" AND round > 1 | What is the sum of the pick from texas a&i college with a round greater than 1? | CREATE TABLE table_name_3 (pick INTEGER, college VARCHAR, round VARCHAR) |
SELECT competition_description FROM table_name_46 WHERE apparatus = "ribbon" | Which competition description's apparatus was ribbon? | CREATE TABLE table_name_46 (competition_description VARCHAR, apparatus VARCHAR) |
SELECT couple FROM table_26375386_18 WHERE result = "Bottom two" | Who was the couple on the bottom two? | CREATE TABLE table_26375386_18 (couple VARCHAR, result VARCHAR) |
SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items) | What is the name of the customer that made the order with the largest quantity? | CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) |
SELECT score FROM table_name_10 WHERE year = 1911 | What was the score for 1911? | CREATE TABLE table_name_10 (score VARCHAR, year VARCHAR) |
SELECT date FROM table_1566850_8 WHERE centerfold_model = "Kalin Olson" | When was Kalin Olson listed as the centerfold model? | CREATE TABLE table_1566850_8 (date VARCHAR, centerfold_model VARCHAR) |
SELECT cust_name FROM customer ORDER BY credit_score LIMIT 1 | Find the name of customer who has the lowest credit score. | CREATE TABLE customer (cust_name VARCHAR, credit_score VARCHAR) |
SELECT COUNT(wins) FROM table_name_89 WHERE scored < 24 AND conceded > 25 AND draws > 5 AND position < 9 | 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(title) FROM table_26736040_1 WHERE us_viewers__millions_ = "1.66" | How many titles have U.S. viewers 1.66 million. | CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT date FROM table_11622829_1 WHERE score = "203 (-13)" | What are all the dates with a score of 203 (-13)? | CREATE TABLE table_11622829_1 (date VARCHAR, score VARCHAR) |
SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1 | Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time. | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, nationality VARCHAR, id VARCHAR) |
SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn" | When was the last year when Katharine Hepburn won? | CREATE TABLE table_name_20 (year INTEGER, actress VARCHAR) |
SELECT score FROM table_name_73 WHERE player = "darren clarke" | What is the score for Darren Clarke? | CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) |
SELECT game FROM table_name_86 WHERE result = "105-95" | What Game had a Result of 105-95? | CREATE TABLE table_name_86 (game VARCHAR, result VARCHAR) |
SELECT MAX(games_played) FROM table_18018214_4 | What is the highest number of games played? | CREATE TABLE table_18018214_4 (games_played INTEGER) |
SELECT destination FROM table_29202276_2 WHERE train_number = 16526 | What is the destination when the train number is 16526? | CREATE TABLE table_29202276_2 (destination VARCHAR, train_number VARCHAR) |
SELECT starter FROM table_25517718_3 WHERE position = "Right halfback" | Is the right halfback player a starter? | CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR) |
SELECT AVG(year) FROM table_name_89 WHERE venue = "melbourne, australia" | What is the year of the tournament played at Melbourne, Australia? | CREATE TABLE table_name_89 (year INTEGER, venue VARCHAR) |
SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna" | Who was the home team on April 13, 2008 when Itabuna was the away team? | CREATE TABLE table_name_80 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT winning_team FROM table_name_42 WHERE site = "iowa city" AND date = "december 3, 2006" | Which winning team has Iowa city as the site, and december 3, 2006 as the date? | CREATE TABLE table_name_42 (winning_team VARCHAR, site VARCHAR, date VARCHAR) |
SELECT player FROM table_name_74 WHERE to_par > 11 AND total < 155 | Which player has a to par greater than 11, with a total less than 155? | CREATE TABLE table_name_74 (player VARCHAR, to_par VARCHAR, total VARCHAR) |
SELECT 2006 FROM table_name_52 WHERE 2002 = "grand slam tournaments" | What shows for 2006 when 2002 is Grand Slam Tournaments? | CREATE TABLE table_name_52 (Id VARCHAR) |
SELECT metal FROM table_name_56 WHERE size = "26mm (across scallops)" | Which metal has a size that is 26mm (across scallops)? | CREATE TABLE table_name_56 (metal VARCHAR, size VARCHAR) |
SELECT SUM(grid) FROM table_name_94 WHERE laps > 20 | what is the grid when the laps is more than 20? | CREATE TABLE table_name_94 (grid INTEGER, laps INTEGER) |
SELECT burmese FROM table_14850099_18 WHERE english = "Thursday" | What is the Burmese term for Thursday? | CREATE TABLE table_14850099_18 (burmese VARCHAR, english VARCHAR) |
SELECT country FROM table_name_71 WHERE player = "fred couples" | Where is Fred Couples from? | CREATE TABLE table_name_71 (country VARCHAR, player VARCHAR) |
SELECT COUNT(lites_2_race_one_winning_team) FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "Gary Gibson" | How many different circuits had Gary Gibson has the Lites 1 race two winning team? | CREATE TABLE table_26638600_3 (lites_2_race_one_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR) |
SELECT televote_points FROM table_name_43 WHERE final_points = "2" | What Televote Points had a Final Points score of 2? | CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR) |
SELECT country FROM table_20754016_2 WHERE hometown = "Chihuahua" | What country is the contestant from Chihuahua from? | CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR) |
SELECT frequency FROM table_name_28 WHERE multi_1 = "7.5×" | What's the frequency of the device that has a Multi 1 of 7.5×? | CREATE TABLE table_name_28 (frequency VARCHAR, multi_1 VARCHAR) |
SELECT method FROM table_name_72 WHERE opponent = "sergei bondarovich" AND record = "2–0" | Opponent of sergei bondarovich, and a Record of 2–0 had what method? | CREATE TABLE table_name_72 (method VARCHAR, opponent VARCHAR, record VARCHAR) |
SELECT location FROM table_name_27 WHERE established = 2013 | What is the location of the school established in 2013? | CREATE TABLE table_name_27 (location VARCHAR, established VARCHAR) |
SELECT score FROM table_name_78 WHERE record = "25–14–9" | What was the score when the record became 25–14–9? | CREATE TABLE table_name_78 (score VARCHAR, record VARCHAR) |
SELECT candidate FROM table_name_82 WHERE share_of_votes = "61.47%" | Which candidate won 61.47% of the votes? | CREATE TABLE table_name_82 (candidate VARCHAR, share_of_votes VARCHAR) |
SELECT number_of_electorates__2009_ FROM table_name_21 WHERE reserved_for___sc___st__none_ = "total:" | Which Number of electorates (2009) has a Reserved for (SC / ST /None) of total:? | CREATE TABLE table_name_21 (number_of_electorates__2009_ VARCHAR, reserved_for___sc___st__none_ VARCHAR) |
SELECT game_site FROM table_name_1 WHERE date = "october 18, 1992" | Name the game site for october 18, 1992 | CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR) |
SELECT winner FROM table_name_31 WHERE team = "mobil 1 racing" | who is the winner when the team is mobil 1 racing? | CREATE TABLE table_name_31 (winner VARCHAR, team VARCHAR) |
SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58 | What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58? | CREATE TABLE table_name_53 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR, player VARCHAR) |
SELECT country FROM table_160510_5 WHERE area = "11,891" | Name the country for 11,891 area | CREATE TABLE table_160510_5 (country VARCHAR, area VARCHAR) |
SELECT AVG(round) FROM table_name_32 WHERE player = "sammy okpro" | Which Round has a Player of sammy okpro? | CREATE TABLE table_name_32 (round INTEGER, player VARCHAR) |
SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen" | How many season did sportfreunde siegen win best supported club? | CREATE TABLE table_12272590_2 (season VARCHAR, best_supported_club VARCHAR) |
SELECT MAX(attendance) FROM table_name_75 WHERE date = "august 10, 1963" AND week > 1 | What is the largest attendance on august 10, 1963, and a week larger than 1? | CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR, week VARCHAR) |
SELECT date FROM table_2268216_1 WHERE race_time = "2:43:19" | What is the date for the race that had the time of 2:43:19? | CREATE TABLE table_2268216_1 (date VARCHAR, race_time VARCHAR) |
SELECT release_date FROM table_name_89 WHERE english_title = "your friend" | What is the Release date of the Album Your Friend? | CREATE TABLE table_name_89 (release_date VARCHAR, english_title VARCHAR) |
SELECT organization_id FROM organizations EXCEPT SELECT parent_organization_id FROM organizations | Which organizations are not a parent organization of others? List the organization id. | CREATE TABLE organizations (organization_id VARCHAR, parent_organization_id VARCHAR) |
SELECT built FROM table_name_63 WHERE county = "kent" | What year was the bridge in Kent built? | CREATE TABLE table_name_63 (built VARCHAR, county VARCHAR) |
SELECT latitude FROM table_16799784_11 WHERE diameter__km_ = "500.0" | At what latitude can you find the diameter (km) of 500.0? | CREATE TABLE table_16799784_11 (latitude VARCHAR, diameter__km_ VARCHAR) |
SELECT fastest_lap FROM table_name_35 WHERE winning_driver = "jim clark" AND circuit = "prince george" | Tell me the fastest lapf or jim clark being the winning driver for prince george | CREATE TABLE table_name_35 (fastest_lap VARCHAR, winning_driver VARCHAR, circuit VARCHAR) |
SELECT COUNT(january) FROM table_name_14 WHERE record = "22-15-6" | How many Januarys had records of 22-15-6? | CREATE TABLE table_name_14 (january VARCHAR, record VARCHAR) |
SELECT to_par FROM table_name_73 WHERE score = 68 - 72 - 73 = 213 | What is the to par for the 68-72-73=213 score? | CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR) |
SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-44" | Which is the smallest Total produced with a model of FM H-15-44? | CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR) |
SELECT written_by FROM table_11111116_6 WHERE original_air_date = "April 17, 2011" | Who wrote the episode that aired on April 17, 2011? | CREATE TABLE table_11111116_6 (written_by VARCHAR, original_air_date VARCHAR) |
SELECT duration FROM table_name_60 WHERE character = "rosa gonzalez" | What duration has rosa gonzalez as the character? | CREATE TABLE table_name_60 (duration VARCHAR, character VARCHAR) |
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states" | What is the average age as of February 1, 2014 for the supercentenarians born in the United States? | CREATE TABLE table_name_23 (age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR) |
SELECT MIN(kerry_number) FROM table_1733457_1 WHERE bush_percentage = "50.9%" | Name the minimum kerry # for bush % for 50.9% | CREATE TABLE table_1733457_1 (kerry_number INTEGER, bush_percentage VARCHAR) |
SELECT team_record FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy" | What was the team record after the Frankfurt Galaxy matchup? | CREATE TABLE table_24852001_2 (team_record VARCHAR, opponent VARCHAR) |
SELECT COUNT(pick) FROM table_name_25 WHERE position = "lb" AND overall < 46 | How many times is the position lb and the overall is less than 46? | CREATE TABLE table_name_25 (pick VARCHAR, position VARCHAR, overall VARCHAR) |
SELECT player FROM table_10812938_5 WHERE cfl_team = "Montreal Alouettes" | What player is on the Montreal Alouettes CFl team? | CREATE TABLE table_10812938_5 (player VARCHAR, cfl_team VARCHAR) |
SELECT gp_winner FROM table_name_2 WHERE race_winners = "valentin giraud / nicolas musset" AND place = "genk" | What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk? | CREATE TABLE table_name_2 (gp_winner VARCHAR, race_winners VARCHAR, place VARCHAR) |
SELECT AVG(draw) FROM table_name_65 WHERE place > 5 | What is the average Draw when the Place is larger than 5? | CREATE TABLE table_name_65 (draw INTEGER, place INTEGER) |
SELECT studio_s_ FROM table_name_45 WHERE director = "paul greengrass" | What is the Studio of the Film directed by Paul Greengrass? | CREATE TABLE table_name_45 (studio_s_ VARCHAR, director VARCHAR) |
SELECT series__number FROM table_25800134_12 WHERE airdate = "February 26, 1968" | What episode number of the series aired on February 26, 1968? | CREATE TABLE table_25800134_12 (series__number VARCHAR, airdate VARCHAR) |
SELECT dismissals FROM table_name_43 WHERE venue = "source: cricinfo.com" | What is the Dismissals with a Venue with source: cricinfo.com? | CREATE TABLE table_name_43 (dismissals VARCHAR, venue VARCHAR) |
SELECT attendance FROM table_name_13 WHERE week = 6 | What was the attendance in week 6? | CREATE TABLE table_name_13 (attendance VARCHAR, week VARCHAR) |
SELECT COUNT(broadcast) FROM table_28298589_4 WHERE home_team = "Connecticut" | How many Connecticut home games were broadcast? | CREATE TABLE table_28298589_4 (broadcast VARCHAR, home_team VARCHAR) |
SELECT block FROM table_name_23 WHERE cospar_id = "1995-060a" | What block has a COSPAR ID of 1995-060a? | CREATE TABLE table_name_23 (block VARCHAR, cospar_id VARCHAR) |
SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = "81%" | Who many dates are in position 9 and the sellout is 81%? | CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR) |
SELECT speed FROM table_name_80 WHERE location = "lake mead" | What is the Speed at Lake Mead? | CREATE TABLE table_name_80 (speed VARCHAR, location VARCHAR) |
SELECT position FROM table_name_30 WHERE pick__number > 186 AND player = "bobby micho" | What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team? | CREATE TABLE table_name_30 (position VARCHAR, pick__number VARCHAR, player VARCHAR) |
SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72 | Find the government form name and total population for each government form whose average life expectancy is longer than 72. | CREATE TABLE country (GovernmentForm VARCHAR, Population INTEGER, LifeExpectancy INTEGER) |
SELECT nationality FROM table_name_70 WHERE player = "jon koncak" | What nationality has jon koncak as the player? | CREATE TABLE table_name_70 (nationality VARCHAR, player VARCHAR) |
SELECT opponent FROM table_17386066_2 WHERE stadium = "Shea stadium" | Who is the opposing team when the game was played on the Shea Stadium? | CREATE TABLE table_17386066_2 (opponent VARCHAR, stadium VARCHAR) |
SELECT COUNT(round) FROM table_name_95 WHERE player = "honester davidson" | How many rounds did Honester Davidson play? | CREATE TABLE table_name_95 (round VARCHAR, player VARCHAR) |
SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento" | Name the number of score for sacramento | CREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR) |
SELECT COUNT(week) FROM table_17869717_1 WHERE date = "November 3" | In how many weeks was the game played on November 3 played? | CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR) |
SELECT studio FROM table_name_34 WHERE rank > 13 AND gross = "$83,531,958" | Which studio grossed $83,531,958 and ranked lower than 13? | CREATE TABLE table_name_34 (studio VARCHAR, rank VARCHAR, gross VARCHAR) |
SELECT pos FROM table_name_1 WHERE club = "spandau 04" AND name = "jens pohlmann" | What is Spandau 04 Player Jens Pohlmann's Pos.? | CREATE TABLE table_name_1 (pos VARCHAR, club VARCHAR, name VARCHAR) |
SELECT transfer_fee FROM table_name_61 WHERE app_l_c_e_ = "0 (0/0/0)" AND notes = "to anagennisi karditsa" | What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa? | CREATE TABLE table_name_61 (transfer_fee VARCHAR, app_l_c_e_ VARCHAR, notes VARCHAR) |
SELECT T2.order_id, T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" | Give me a list of id and status of orders which belong to the customer named "Jeramie". | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE orders (order_id VARCHAR, order_status VARCHAR, customer_id VARCHAR) |
SELECT surface FROM table_name_45 WHERE score = "6–1, 3–0 ret." | Which has a Score of 6–1, 3–0 ret.? | CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR) |
SELECT couple FROM table_19744915_15 WHERE total = 6 | What couple had a total score of 6? | CREATE TABLE table_19744915_15 (couple VARCHAR, total VARCHAR) |
SELECT COUNT(games) FROM table_name_78 WHERE total_rebounds > 1048 | How many games have rebounds larger than 1048? | CREATE TABLE table_name_78 (games VARCHAR, total_rebounds INTEGER) |
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = "Beatrix" AND T2.IsOfficial = "T" | What is the official language spoken in the country whose head of state is Beatrix? | CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) |
SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas" | What is the position of the player from Beaumont, Texas? | CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR) |
SELECT AVG(reaction) FROM table_name_53 WHERE heat > 1 AND name = "brigitte foster-hylton" | What is the average reaction for brigitte foster-hylton after heat 1? | CREATE TABLE table_name_53 (reaction INTEGER, heat VARCHAR, name VARCHAR) |
SELECT television_service FROM table_15887683_15 WHERE country = "United Kingdom" AND n° > 854.0 | what television service are in the united kingdom and n° is greater than 854.0? | CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, n° VARCHAR) |
SELECT year FROM table_name_38 WHERE laps > 200 | In what year were there more laps than 200 in a race? | CREATE TABLE table_name_38 (year VARCHAR, laps INTEGER) |
SELECT pole_position FROM table_name_28 WHERE race = "brazilian grand prix" | What is the Pole Position of the Brazilian Grand Prix race? | CREATE TABLE table_name_28 (pole_position VARCHAR, race VARCHAR) |
SELECT rider FROM table_name_92 WHERE time = "+2:11.524" | Which rider has a time of +2:11.524? | CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR) |
SELECT rebounds FROM table_name_27 WHERE name = "pom baskets jena" | Can you tell me the Rebounds that has the Name of pom baskets jena? | CREATE TABLE table_name_27 (rebounds VARCHAR, name VARCHAR) |
SELECT loss FROM table_name_7 WHERE record = "63-52" | What was the loss of the game that had a record of 63-52? | CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR) |
SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC" | What position is the player from Chapel Hill, NC? | CREATE TABLE table_20785990_2 (position VARCHAR, home_town VARCHAR) |
SELECT COUNT(up_down) FROM table_2472711_32 WHERE total = 301470 | How many values of up/down have a total value of exactly 301470? | CREATE TABLE table_2472711_32 (up_down VARCHAR, total VARCHAR) |
SELECT film_title_used_in_nomination FROM table_name_8 WHERE language = "german" | Name the film title for german | CREATE TABLE table_name_8 (film_title_used_in_nomination VARCHAR, language VARCHAR) |
SELECT longitude FROM table_name_98 WHERE latitude = "71°18′n" | If the latitude is 71°18′n, what is the longitude? | CREATE TABLE table_name_98 (longitude VARCHAR, latitude VARCHAR) |
SELECT year_joined FROM table_name_63 WHERE enrollment < 438 AND ihsaa_class = "aa" | What year joined had an enrollment less than 438 and an AA as the IHSAA Class? | CREATE TABLE table_name_63 (year_joined VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR) |
SELECT venue FROM table_name_61 WHERE player = "michael di venuto" AND season = "2000/01" | Which Venue has michael di venuto on Season of 2000/01? | CREATE TABLE table_name_61 (venue VARCHAR, player VARCHAR, season VARCHAR) |
SELECT player FROM table_2508633_2 WHERE nfl_team = "New Orleans Saints" | Name the player for new orleans saints | CREATE TABLE table_2508633_2 (player VARCHAR, nfl_team VARCHAR) |
SELECT prod_code FROM table_2501754_3 WHERE viewing_figures_millions = "5.55" | List the production code for the episode had 5.55 million viewers? | CREATE TABLE table_2501754_3 (prod_code VARCHAR, viewing_figures_millions VARCHAR) |
SELECT venue FROM table_name_51 WHERE home_team = "cairns taipans" | When the home team is Cairns Taipans, at which venue do they play? | CREATE TABLE table_name_51 (venue VARCHAR, home_team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.