answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT SUM(drawn) FROM table_name_86 WHERE points > 9 | How many drawn having more than 9 points? | CREATE TABLE table_name_86 (drawn INTEGER, points INTEGER) |
SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = "zamperla" AND type = "convoy ride" AND ride_name = "tiny truckers" | What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers? | CREATE TABLE table_name_93 (opened_in INTEGER, ride_name VARCHAR, manufacture VARCHAR, type VARCHAR) |
SELECT SUM(total) FROM table_name_90 WHERE gold > 1 AND nation = "russia" AND bronze < 10 | What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze? | CREATE TABLE table_name_90 (total INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR) |
SELECT score FROM table_23248910_11 WHERE game = 6 | What was the score in game 6? | CREATE TABLE table_23248910_11 (score VARCHAR, game VARCHAR) |
SELECT week FROM table_name_96 WHERE record = "0-5" | What week was the record 0-5? | CREATE TABLE table_name_96 (week VARCHAR, record VARCHAR) |
SELECT points FROM table_24489942_10 WHERE nationality = "Switzerland" | Name the points for switzerland | CREATE TABLE table_24489942_10 (points VARCHAR, nationality VARCHAR) |
SELECT fa_trophy FROM table_name_66 WHERE leading_scorer = "lee gregory (8)" | what is the fa trophy when the leading scorer is lee gregory (8)? | CREATE TABLE table_name_66 (fa_trophy VARCHAR, leading_scorer VARCHAR) |
SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal" | What is the film where Hannah Gal was the director? | CREATE TABLE table_name_67 (film VARCHAR, director_s_ VARCHAR) |
SELECT directed_by FROM table_17355743_1 WHERE written_by = "Joe Sachs and David Zabel" | Name who directed the episode by joe sachs and david zabel | CREATE TABLE table_17355743_1 (directed_by VARCHAR, written_by VARCHAR) |
SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell" | What is the theme of the Year 2002 which was created by Artist Dan Fell? | CREATE TABLE table_name_86 (theme VARCHAR, year VARCHAR, artist VARCHAR) |
SELECT MIN(year_born) FROM table_12962773_10 | What is the earliest any of these players were born? | CREATE TABLE table_12962773_10 (year_born INTEGER) |
SELECT written_by FROM table_24648983_1 WHERE us_viewers__million_ = "8.61" | Who wrote the episode with 8.61 million U.S. viewers? | CREATE TABLE table_24648983_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT COUNT(density) FROM table_2135222_2 WHERE english_name = "Yucheng County" | How many figures are there for density for Yucheng County? | CREATE TABLE table_2135222_2 (density VARCHAR, english_name VARCHAR) |
SELECT people_assisted FROM table_name_14 WHERE year = "1997" | How many people were assisted in 1997? | CREATE TABLE table_name_14 (people_assisted VARCHAR, year VARCHAR) |
SELECT first_cap FROM table_name_29 WHERE goals < 33 AND caps = 39 | When was the first cap associated with 39 caps and under 33 goals? | CREATE TABLE table_name_29 (first_cap VARCHAR, goals VARCHAR, caps VARCHAR) |
SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Martha" | Who is the Original west end performer for the character Martha? | CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR) |
SELECT place FROM table_name_48 WHERE player = "justin leonard" | Which Place has a Player of justin leonard? | CREATE TABLE table_name_48 (place VARCHAR, player VARCHAR) |
SELECT SUM(number_deaths), SUM(damage_millions_USD) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm) | What is the total number of deaths and damage for all storms with a max speed greater than the average? | CREATE TABLE storm (number_deaths INTEGER, damage_millions_USD INTEGER, max_speed INTEGER) |
SELECT away_team AS score FROM table_name_30 WHERE venue = "princes park" | What was the score of the away team at princes park? | CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) |
SELECT player FROM table_name_56 WHERE class = "senior" AND position = "shooting guard" AND school = "bradley" | What is Player, when Class is "senior", when Position is "shooting guard", and when School is "Bradley"? | CREATE TABLE table_name_56 (player VARCHAR, school VARCHAR, class VARCHAR, position VARCHAR) |
SELECT MIN(played) FROM table_name_30 WHERE lost = 2 AND points > 13 | What is the lowest number played with 2 losses and more than 13 points? | CREATE TABLE table_name_30 (played INTEGER, lost VARCHAR, points VARCHAR) |
SELECT COUNT(attendance) FROM table_name_15 WHERE score = "4-6" | How many people attended the game that ended 4-6? | CREATE TABLE table_name_15 (attendance VARCHAR, score VARCHAR) |
SELECT team FROM table_name_86 WHERE high_rebounds = "popeye jones (14)" AND record = "16-28" | What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28? | CREATE TABLE table_name_86 (team VARCHAR, high_rebounds VARCHAR, record VARCHAR) |
SELECT catalog FROM table_name_9 WHERE country = "united kingdom" | What catalog has the United Kingdom as the country? | CREATE TABLE table_name_9 (catalog VARCHAR, country VARCHAR) |
SELECT date FROM table_name_51 WHERE livery = "operational" | What is the date for the Operational Livery? | CREATE TABLE table_name_51 (date VARCHAR, livery VARCHAR) |
SELECT surface FROM table_name_45 WHERE score = "6–4, 6–2" | Which surface has a Score of 6–4, 6–2? | CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR) |
SELECT SUM(avg_finish) FROM table_name_78 WHERE starts = 9 AND top_10 < 0 | How much average Finish has Starts of 9, and a Top 10 smaller than 0? | CREATE TABLE table_name_78 (avg_finish INTEGER, starts VARCHAR, top_10 VARCHAR) |
SELECT AVG(against) FROM table_name_31 WHERE wins = 11 AND draws < 0 | What is the average number of against with 11 wins and less than 0 draws? | CREATE TABLE table_name_31 (against INTEGER, wins VARCHAR, draws VARCHAR) |
SELECT MIN(year) FROM table_name_82 WHERE best_finish = "t-65" | what is the earliest year with the best finish t-65? | CREATE TABLE table_name_82 (year INTEGER, best_finish VARCHAR) |
SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%' | Find the department name of the instructor whose name contains 'Soisalon'. | CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR) |
SELECT party FROM table_2668243_19 WHERE incumbent = "Joseph Vance" | What is the party of Joseph Vance? | CREATE TABLE table_2668243_19 (party VARCHAR, incumbent VARCHAR) |
SELECT MAX(built) FROM table_name_44 WHERE entered_service > 2003 AND knots < 27 | What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27? | CREATE TABLE table_name_44 (built INTEGER, entered_service VARCHAR, knots VARCHAR) |
SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12 | What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12? | CREATE TABLE table_name_62 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) |
SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = "Lo Yik-kee, Victor" | For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed? | CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) |
SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37 | Name the most withdrawn for 37 lstr no. | CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR) |
SELECT result FROM table_name_55 WHERE date = "1990-11-04" | What was the result on 1990-11-04? | CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR) |
SELECT player FROM table_name_33 WHERE cfl_team = "hamilton" | which player played on Team Hamilton? | CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR) |
SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the most common genre in all tracks? | CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR); CREATE TABLE TRACK (GenreId VARCHAR) |
SELECT production_code FROM table_26409328_1 WHERE us_viewers__millions_ = "5.36" | what is the production code of the episode viewed by 5.36 million u.s. people? | CREATE TABLE table_26409328_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT winning_driver FROM table_name_10 WHERE most_laps_led = "dario franchitti" AND pole_position = "hélio castroneves" | Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves? | CREATE TABLE table_name_10 (winning_driver VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR) |
SELECT replaced_by FROM table_name_2 WHERE team = "bolton wanderers" | What is the name of the replacement manager for the Bolton Wanderers? | CREATE TABLE table_name_2 (replaced_by VARCHAR, team VARCHAR) |
SELECT site FROM table_name_49 WHERE game = "game 6" | Name the site with game of game 6 | CREATE TABLE table_name_49 (site VARCHAR, game VARCHAR) |
SELECT COUNT(year_won) FROM table_name_93 WHERE player = "davis love iii" AND total < 149 | What is the Year won of Davis Love III with a Total of less than 149? | CREATE TABLE table_name_93 (year_won VARCHAR, player VARCHAR, total VARCHAR) |
SELECT iata FROM table_name_71 WHERE city = "tripoli" | what is the iata when the city is tripoli? | CREATE TABLE table_name_71 (iata VARCHAR, city VARCHAR) |
SELECT season FROM table_name_41 WHERE league = "regionalliga süd (iii)" | Which season has the regionalliga süd (iii) league? | CREATE TABLE table_name_41 (season VARCHAR, league VARCHAR) |
SELECT record FROM table_name_41 WHERE stadium = "paul brown stadium" | What was the Browns record after they played the game at the Paul Brown stadium? | CREATE TABLE table_name_41 (record VARCHAR, stadium VARCHAR) |
SELECT singular_word FROM table_name_18 WHERE singular_abbreviation = "p." | A singular abbreviation of p. is used for what singular word? | CREATE TABLE table_name_18 (singular_word VARCHAR, singular_abbreviation VARCHAR) |
SELECT MIN(attendance) FROM table_name_82 WHERE date = "10 october 2006" | Name the least attendance for 10 october 2006 | CREATE TABLE table_name_82 (attendance INTEGER, date VARCHAR) |
SELECT wins FROM table_name_36 WHERE races_† = "12/12" | How many wins are there for the Races of 12/12? | CREATE TABLE table_name_36 (wins VARCHAR, races_† VARCHAR) |
SELECT game_site FROM table_name_57 WHERE week = "14" | Where did they play in week 14? | CREATE TABLE table_name_57 (game_site VARCHAR, week VARCHAR) |
SELECT nationality FROM table_name_83 WHERE date = "6 july 1942" | Name Nationality is on 6 july 1942? | CREATE TABLE table_name_83 (nationality VARCHAR, date VARCHAR) |
SELECT mens_doubles FROM table_12171145_1 WHERE womens_singles = "Mette Sørensen" | Who was the mens doubles when womens singles is mette sørensen? | CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_singles VARCHAR) |
SELECT SUM(draw) FROM table_name_27 WHERE artist = "hari mata hari" AND points < 70 | What's the sum of draw for artist hari mata hari with less than 70 points? | CREATE TABLE table_name_27 (draw INTEGER, artist VARCHAR, points VARCHAR) |
SELECT original_airdate FROM table_name_73 WHERE nightly_rank = "#6" AND viewers__millions_ = 1.246 | Original airdate for #6 with 1.246 viewers? | CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR) |
SELECT rank FROM table_name_85 WHERE location = "porto alegre" | In Which rank was there a location of porto alegre? | CREATE TABLE table_name_85 (rank VARCHAR, location VARCHAR) |
SELECT date FROM table_name_12 WHERE venue = "glenferrie oval" | On what date was the venue of Glenferrie Oval? | CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR) |
SELECT color FROM table_180802_3 WHERE planet = "Venus" | What is the color of the planet venus? | CREATE TABLE table_180802_3 (color VARCHAR, planet VARCHAR) |
SELECT class_aA FROM table_name_95 WHERE class_aAA = giddings AND school_year = "2009-10" | What is the Class AA of the school year 2009-10 with a class AAA of Giddings? | CREATE TABLE table_name_95 (class_aA VARCHAR, class_aAA VARCHAR, giddings VARCHAR, school_year VARCHAR) |
SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = "Brooks Hays (D) Unopposed" | How many candidates were in the election featuring brooks hays (d) unopposed? | CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR) |
SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = "3.8" | What title was watched by 3.8 million US viewers? | CREATE TABLE table_26448179_3 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT 3 AS rd_runner_up FROM table_30018460_1 WHERE country_territory = "Croatia" | How many first place participants where from croatia? | CREATE TABLE table_30018460_1 (country_territory VARCHAR) |
SELECT opponent FROM table_name_45 WHERE game < 76 AND march = 10 | Which opponent's game was less than 76 when the march was 10? | CREATE TABLE table_name_45 (opponent VARCHAR, game VARCHAR, march VARCHAR) |
SELECT team_sites FROM table_name_59 WHERE name = "microsoft sharepoint" | What is the team sites entry for Microsoft Sharepoint? | CREATE TABLE table_name_59 (team_sites VARCHAR, name VARCHAR) |
SELECT date FROM table_name_27 WHERE score = "6–4, 7–5" | What is the Date of the Match with a Score of 6–4, 7–5? | CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR) |
SELECT language FROM table_1930857_1 WHERE grades = "4-12" | What's the language in the school teaching grades 4-12? | CREATE TABLE table_1930857_1 (language VARCHAR, grades VARCHAR) |
SELECT name FROM table_name_45 WHERE format = "contemporary christian music" AND frequency = "97.9 fm" | Which owner has a Contemporary Christian music station on 97.9 FM? | CREATE TABLE table_name_45 (name VARCHAR, format VARCHAR, frequency VARCHAR) |
SELECT home_team AS score FROM table_name_33 WHERE home_team = "south melbourne" | What is the Home team score for the Home team from South Melbourne? | CREATE TABLE table_name_33 (home_team VARCHAR) |
SELECT AVG(total) FROM table_name_16 WHERE tally = "0-8" | What is the average total of the 0-8 tally? | CREATE TABLE table_name_16 (total INTEGER, tally VARCHAR) |
SELECT SUM(episode) FROM table_name_20 WHERE segment_d = "manual motorcycle transmissions" | What episode has a manual motorcycle transmissions section D? | CREATE TABLE table_name_20 (episode INTEGER, segment_d VARCHAR) |
SELECT country FROM table_name_15 WHERE first_store = "2007" | Which country had the first store in the year 2007? | CREATE TABLE table_name_15 (country VARCHAR, first_store VARCHAR) |
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG24" | when was the episode with production code "2arg24" originally aired? | CREATE TABLE table_27332038_1 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT result FROM table_19744915_18 WHERE public = 8 | When 8 is the public what are the results? | CREATE TABLE table_19744915_18 (result VARCHAR, public VARCHAR) |
SELECT date FROM table_name_80 WHERE away_team = "southport" | What was the date for the away team, team Southport? | CREATE TABLE table_name_80 (date VARCHAR, away_team VARCHAR) |
SELECT home_team AS score FROM table_name_75 WHERE venue = "western oval" | What was the home team score for the game played at Western Oval? | CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR) |
SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0 | What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has? | CREATE TABLE table_name_26 (reg_gp INTEGER, player VARCHAR, pl_gp VARCHAR) |
SELECT week FROM table_name_62 WHERE air_date = "august 2, 2008" | Which Week has an Air Date of august 2, 2008? | CREATE TABLE table_name_62 (week VARCHAR, air_date VARCHAR) |
SELECT loss FROM table_name_81 WHERE date = "june 10" | What loss occurred on June 10? | CREATE TABLE table_name_81 (loss VARCHAR, date VARCHAR) |
SELECT MAX(erp_w) FROM table_name_98 WHERE frequency_mhz = "89.3 fm" | Which ERP W has a Frequency MHz of 89.3 fm? | CREATE TABLE table_name_98 (erp_w INTEGER, frequency_mhz VARCHAR) |
SELECT company FROM table_25794010_1 WHERE county = "Desha" | Name the company for desha county | CREATE TABLE table_25794010_1 (company VARCHAR, county VARCHAR) |
SELECT AVG(founded) FROM table_name_96 WHERE team = "baton rouge blaze" | What is the mean Founded number when the team is the Baton Rouge Blaze? | CREATE TABLE table_name_96 (founded INTEGER, team VARCHAR) |
SELECT COUNT(date) FROM table_24126518_2 WHERE opponent = "Alouettes" | Name the number of dates for alouettes | CREATE TABLE table_24126518_2 (date VARCHAR, opponent VARCHAR) |
SELECT Zip_code FROM county WHERE County_name = "Howard" | Show the zip code of the county with name "Howard". | CREATE TABLE county (Zip_code VARCHAR, County_name VARCHAR) |
SELECT tournament FROM table_name_16 WHERE 2012 = "a" AND 2011 = "a" AND 2008 = "a" | What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"? | CREATE TABLE table_name_16 (tournament VARCHAR) |
SELECT MIN(attendance) FROM table_24887326_7 WHERE away_team = "Stoke City" | What was the attendance of the game where Stoke city was the away team? | CREATE TABLE table_24887326_7 (attendance INTEGER, away_team VARCHAR) |
SELECT AVG(number) FROM table_name_23 WHERE player = "larry centers" AND yards < 600 | What is Larry Centers' average number when there were less than 600 yards? | CREATE TABLE table_name_23 (number INTEGER, player VARCHAR, yards VARCHAR) |
SELECT name FROM Aircraft WHERE distance > (SELECT AVG(distance) FROM Aircraft) | Show names for all aircrafts with distances more than the average. | CREATE TABLE Aircraft (name VARCHAR, distance INTEGER) |
SELECT height FROM table_name_25 WHERE contestant = "andrea suarez lazaro" | What is Andrea Suarez Lazaro's height? | CREATE TABLE table_name_25 (height VARCHAR, contestant VARCHAR) |
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a" | WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A? | CREATE TABLE table_name_84 (tournament VARCHAR) |
SELECT COUNT(cable_channel) FROM table_name_38 WHERE call_sign = "cbft-dt" | How many cable channels have callsign CBFT-DT? | CREATE TABLE table_name_38 (cable_channel VARCHAR, call_sign VARCHAR) |
SELECT title FROM table_15824796_3 WHERE original_air_date = "December 12, 1953" | What is the title of the episode that aired on december 12, 1953? | CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) |
SELECT skip FROM table_name_39 WHERE third = "sara carlsson" | Which Skip has a Third of sara carlsson? | CREATE TABLE table_name_39 (skip VARCHAR, third VARCHAR) |
SELECT club_province FROM table_name_75 WHERE position = "centre" AND caps = 27 | Which Club/province has a Position of centre, and Caps of 27? | CREATE TABLE table_name_75 (club_province VARCHAR, position VARCHAR, caps VARCHAR) |
SELECT date FROM table_name_79 WHERE set_1 = "15–1" | What is the Date with a Set 1 with 15–1? | CREATE TABLE table_name_79 (date VARCHAR, set_1 VARCHAR) |
SELECT score FROM table_name_32 WHERE home_team = "sheffield wednesday" | What was the score of the game when Sheffield Wednesday was the home team? | CREATE TABLE table_name_32 (score VARCHAR, home_team VARCHAR) |
SELECT lost_to FROM table_name_35 WHERE year = 2000 | Which the Lost to is in 2000 | CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR) |
SELECT MAX(no_in_series) FROM table_2226817_2 WHERE production_code = "1.11" | How many number of series have the production code of 1.11? | CREATE TABLE table_2226817_2 (no_in_series INTEGER, production_code VARCHAR) |
SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = "male" AND specification = "minimum weight" | What value for university students and adult goes with male gender for minimum weight? | CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR) |
SELECT in_production FROM table_name_39 WHERE toxic_materials = "yes" AND technology = "sodium-sulfur batteries" | What's the production if the technology is sodium-sulfur batteries and yes to toxic materials? | CREATE TABLE table_name_39 (in_production VARCHAR, toxic_materials VARCHAR, technology VARCHAR) |
SELECT frequency FROM table_name_67 WHERE format = "talk" | What is the frequency of the talk station? | CREATE TABLE table_name_67 (frequency VARCHAR, format VARCHAR) |
SELECT COUNT(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor" | How many female Professors do we have? | CREATE TABLE Faculty (Sex VARCHAR, Rank VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.