answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports park" | What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park? | CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) |
SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = "vanwall special" | What is the entrant earlier than 1956 with a Vanwall Special chassis? | CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) |
SELECT slope_length FROM table_name_43 WHERE type = "surface lift" AND elevation_groundstation < 1974 AND construction_year_s_ = "1971" AND name_or_route = "alpmatten 1" | Which slope length has a type of surface lift, and an elevation groundstation smaller than 1974, and a construction year(s) of 1971, and a Name or route of alpmatten 1? | CREATE TABLE table_name_43 (slope_length VARCHAR, name_or_route VARCHAR, construction_year_s_ VARCHAR, type VARCHAR, elevation_groundstation VARCHAR) |
SELECT COUNT(original_title) FROM table_22034853_1 WHERE film_title_used_in_nomination = "If the Sun Never Returns" | How many original titles were listed as "If the Sun Never Returns"? | CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT previous_conference FROM table_name_23 WHERE year_joined < 1976 AND ihsaa_class = "a" | Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A? | CREATE TABLE table_name_23 (previous_conference VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR) |
SELECT MIN(episode) FROM table_name_31 WHERE original_airdate = "8 june 2008" | What is the lowest episode number with an original airdate on 8 June 2008? | CREATE TABLE table_name_31 (episode INTEGER, original_airdate VARCHAR) |
SELECT COUNT(league_goals) FROM table_name_84 WHERE fa_cup_apps = "0 (1)" | How many League Goals have an FA Cup Apps of 0 (1)? | CREATE TABLE table_name_84 (league_goals VARCHAR, fa_cup_apps VARCHAR) |
SELECT 4 AS th_place FROM table_11577996_1 WHERE year = 2002 | What school took 4th place in 2002? | CREATE TABLE table_11577996_1 (year VARCHAR) |
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees" | Which year has an Organization of new york yankees, and a Team of johnson city yankees? | CREATE TABLE table_name_61 (year VARCHAR, organization VARCHAR, team VARCHAR) |
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli" | What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? | CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) |
SELECT title, directed_by FROM film WHERE NOT film_id IN (SELECT film_id FROM schedule) | What are the title and director of the films without any schedule? | CREATE TABLE schedule (title VARCHAR, directed_by VARCHAR, film_id VARCHAR); CREATE TABLE film (title VARCHAR, directed_by VARCHAR, film_id VARCHAR) |
SELECT MIN(wins) FROM table_24587026_1 | Name the most wins | CREATE TABLE table_24587026_1 (wins INTEGER) |
SELECT COUNT(school) FROM table_11318462_29 WHERE location = "South Brisbane" | How many schools are located in South Brisbane? | CREATE TABLE table_11318462_29 (school VARCHAR, location VARCHAR) |
SELECT MAX(zone) FROM table_15366849_1 | What's the biggest zone? | CREATE TABLE table_15366849_1 (zone INTEGER) |
SELECT SUM(league_cup_apps) FROM table_name_63 WHERE fa_cup_goals > 0 AND fa_cup_apps < 2 | What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2? | CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) |
SELECT date FROM table_name_19 WHERE away_team = "south melbourne" | What day is south melbourne away? | CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR) |
SELECT COUNT(losses) FROM table_name_52 WHERE goals_for = 22 AND games_played > 8 | How many losses did the team with 22 goals for andmore than 8 games played have? | CREATE TABLE table_name_52 (losses VARCHAR, goals_for VARCHAR, games_played VARCHAR) |
SELECT SUM(silver) FROM table_name_99 WHERE rank = 3 AND nation = "france" AND bronze < 0 | what is the sum of silver when the rank is 3, nation is france and bronze is less than 0? | CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR) |
SELECT AVG(against) FROM table_name_80 WHERE draws < 0 | What is the average entry in the against column with draws smaller than 0? | CREATE TABLE table_name_80 (against INTEGER, draws INTEGER) |
SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17 | What is the average total with a nation of thailand with a gold smaller than 17? | CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR) |
SELECT origin FROM table_3005999_1 WHERE destination = "Manchester" | What is every origin for the destination of Manchester? | CREATE TABLE table_3005999_1 (origin VARCHAR, destination VARCHAR) |
SELECT AVG(against) FROM table_name_44 WHERE date = "23/03/2002" | Can you tell me the average Against thaylt has the Date of 23/03/2002? | CREATE TABLE table_name_44 (against INTEGER, date VARCHAR) |
SELECT date FROM table_name_94 WHERE opposing_team = "poverty bay" | What date was the opposing team Poverty Bay? | CREATE TABLE table_name_94 (date VARCHAR, opposing_team VARCHAR) |
SELECT score FROM table_name_18 WHERE date = "7 may 2000" | Name the score for 7 may 2000 | CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) |
SELECT MIN(year) FROM table_name_48 WHERE theme = "red maple" AND mintage > 15 OFFSET 000 | What is the earliest year a red maple had a mintage over 15,000? | CREATE TABLE table_name_48 (year INTEGER, theme VARCHAR, mintage VARCHAR) |
SELECT title FROM table_13241993_3 WHERE part_3 = "February 7, 2008" | What's the name of the episode whose part 3 aired on February 7, 2008? | CREATE TABLE table_13241993_3 (title VARCHAR, part_3 VARCHAR) |
SELECT original_air_date FROM table_14035132_3 WHERE no_in_series = "29a" | When did the episode with series number 29a originally air? | CREATE TABLE table_14035132_3 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT entered FROM table_18438494_3 WHERE time = "14:42" | How many entered the match with a time of 14:42? | CREATE TABLE table_18438494_3 (entered VARCHAR, time VARCHAR) |
SELECT male_rep FROM table_22410780_1 WHERE artistic_director = "Caroline Rhoads" | Who was the male rep. when Caroline Rhoads was the artistic director? | CREATE TABLE table_22410780_1 (male_rep VARCHAR, artistic_director VARCHAR) |
SELECT MIN(bronze) FROM table_name_70 WHERE gold = 1 AND silver < 0 | What is the lowest number of bronze medals for a country with less than 1 gold and 0 silver? | CREATE TABLE table_name_70 (bronze INTEGER, gold VARCHAR, silver VARCHAR) |
SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 8 | What is the average game for March 8 with less than 84 points? | CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, march VARCHAR) |
SELECT apps FROM table_name_41 WHERE country = "uzbekistan" AND season = "2003" | How many apps does Uzbekistan have in 2003? | CREATE TABLE table_name_41 (apps VARCHAR, country VARCHAR, season VARCHAR) |
SELECT MAX(tied) FROM table_name_8 WHERE pct < 0.5593 AND lost = 551 | What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593? | CREATE TABLE table_name_8 (tied INTEGER, pct VARCHAR, lost VARCHAR) |
SELECT sail_number FROM table_25595209_1 WHERE skipper = "Matt Allen" | What is Matt Allen's sail number? | CREATE TABLE table_25595209_1 (sail_number VARCHAR, skipper VARCHAR) |
SELECT chassis FROM table_name_85 WHERE year = 1969 | What is the chassis for the year of 1969? | CREATE TABLE table_name_85 (chassis VARCHAR, year VARCHAR) |
SELECT COUNT(candidates) FROM table_1342218_24 WHERE incumbent = "Thomas Abernethy" | How many people on this list are named thomas abernethy? | CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR) |
SELECT score FROM table_name_10 WHERE date = "november 3" | What is the score for the November 3 game? | CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) |
SELECT born___died FROM table_name_47 WHERE connection_with_australia = "born in sydney" | The person that was born in Sydney died in what year? | CREATE TABLE table_name_47 (born___died VARCHAR, connection_with_australia VARCHAR) |
SELECT last_year FROM table_name_65 WHERE first_year = "1937" AND publisher = "dc comics" | When did the DC Comics title that debuted in 1937 end? | CREATE TABLE table_name_65 (last_year VARCHAR, first_year VARCHAR, publisher VARCHAR) |
SELECT season FROM table_name_50 WHERE date = "30 october 1977" | Which season was on 30 October 1977? | CREATE TABLE table_name_50 (season VARCHAR, date VARCHAR) |
SELECT MAX(laps) FROM table_name_37 WHERE rider = "shuhei aoyama" AND grid > 24 | What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24? | CREATE TABLE table_name_37 (laps INTEGER, rider VARCHAR, grid VARCHAR) |
SELECT score FROM table_name_16 WHERE record = "31–28–3" | WHich Score has a Record of 31–28–3? | CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR) |
SELECT contestant FROM table_26427332_17 WHERE city = "Hanover" | who are the participants from hanover? | CREATE TABLE table_26427332_17 (contestant VARCHAR, city VARCHAR) |
SELECT event FROM table_name_86 WHERE time = "2:34" | Which event had a time of 2:34? | CREATE TABLE table_name_86 (event VARCHAR, time VARCHAR) |
SELECT SUM(lane) FROM table_name_75 WHERE heat < 7 AND name = "elizabeth simmonds" | What is the sum of the lanes before heat 7 that elizabeth simmonds swam? | CREATE TABLE table_name_75 (lane INTEGER, heat VARCHAR, name VARCHAR) |
SELECT COUNT(wounded) FROM table_2596811_12 WHERE complement = "22 off 637 men" | What is the number of wounded figures associated with a complement of 22 off 637 men? | CREATE TABLE table_2596811_12 (wounded VARCHAR, complement VARCHAR) |
SELECT dvd_title FROM table_name_57 WHERE region_1 = "n/a" AND no_of_discs > 3 | Which DVD Title has a Region 1 of n/a and greater than 3 in No. of Discs? | CREATE TABLE table_name_57 (dvd_title VARCHAR, region_1 VARCHAR, no_of_discs VARCHAR) |
SELECT candidates FROM table_1342359_15 WHERE district = "Kansas 4" | who are the candidates with district being kansas 4 | CREATE TABLE table_1342359_15 (candidates VARCHAR, district VARCHAR) |
SELECT statistic FROM table_name_70 WHERE name = "calvin abueva calvin abueva" | Calvin Abueva Calvin Abueva had what statistic? | CREATE TABLE table_name_70 (statistic VARCHAR, name VARCHAR) |
SELECT icao FROM table_name_63 WHERE country = "cuba" | What is Cuba's ICAO? | CREATE TABLE table_name_63 (icao VARCHAR, country VARCHAR) |
SELECT SUM(cultural_and_educational_panel) FROM table_name_3 WHERE administrative_panel > 1 AND agricultural_panel = 11 AND university_of_dublin < 3 | What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3? | CREATE TABLE table_name_3 (cultural_and_educational_panel INTEGER, university_of_dublin VARCHAR, administrative_panel VARCHAR, agricultural_panel VARCHAR) |
SELECT MAX(sets_won) FROM table_name_25 WHERE legs_won < 1 | What is the most sets won with less than 1 legs won? | CREATE TABLE table_name_25 (sets_won INTEGER, legs_won INTEGER) |
SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston" | Who is the home captain that played at Edgbaston? | CREATE TABLE table_name_41 (home_captain VARCHAR, venue VARCHAR) |
SELECT MIN(score) FROM table_name_89 WHERE year < 2008 AND placement = "3rd" | What is the lowest score for a year before 2008 and had 3rd place? | CREATE TABLE table_name_89 (score INTEGER, year VARCHAR, placement VARCHAR) |
SELECT player FROM table_28059992_6 WHERE cfl_team = "Winnipeg" | Which player was drafted by Winnipeg? | CREATE TABLE table_28059992_6 (player VARCHAR, cfl_team VARCHAR) |
SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M' | Find the total number of students living in the male dorm (with gender M). | CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR) |
SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = "Democratic" AND district = "Georgia 8" | How many incumbents are there in the georgia 8 district when the party is democratic? | CREATE TABLE table_19753079_13 (incumbent VARCHAR, party VARCHAR, district VARCHAR) |
SELECT opponent FROM table_name_16 WHERE result = "l 24–3" | Which Opponent has a Result of l 24–3? | CREATE TABLE table_name_16 (opponent VARCHAR, result VARCHAR) |
SELECT format FROM table_name_81 WHERE label = "alfa records" AND catalog = "alca-9016" | What is the Format for the alfa records Label, and a Catalog of alca-9016? | CREATE TABLE table_name_81 (format VARCHAR, label VARCHAR, catalog VARCHAR) |
SELECT COUNT(points) FROM table_14342480_6 WHERE field_goals = 1 | Name the number of points for field goals being 1 | CREATE TABLE table_14342480_6 (points VARCHAR, field_goals VARCHAR) |
SELECT COUNT(_percentage_20_39_years) FROM table_29615165_5 WHERE quartier = "Pont-de-Vivaux" | how many 20-39% are in pont-de-vivaux? | CREATE TABLE table_29615165_5 (_percentage_20_39_years VARCHAR, quartier VARCHAR) |
SELECT wrestler FROM table_29692554_2 WHERE method_of_elimination = "Pinned after a spear" AND time = "22:50" | Who was eliminated by being pinned after a spear at 22:50? | CREATE TABLE table_29692554_2 (wrestler VARCHAR, method_of_elimination VARCHAR, time VARCHAR) |
SELECT SUM(races) FROM table_name_49 WHERE points = "9" | WHAT IS THE SUM OF RACES WITH 9 POINTS? | CREATE TABLE table_name_49 (races INTEGER, points VARCHAR) |
SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien" | What was the purse when the trainer was Aidan O'Brien? | CREATE TABLE table_name_21 (purse VARCHAR, trainer VARCHAR) |
SELECT 2 AS nd_member FROM table_name_34 WHERE elected = "1555" | Who is the second member that was elected in 1555? | CREATE TABLE table_name_34 (elected VARCHAR) |
SELECT series__number FROM table_27846651_1 WHERE viewers__millions_ = "5.24" | What episode in the series had 5.24 million viewers? | CREATE TABLE table_27846651_1 (series__number VARCHAR, viewers__millions_ VARCHAR) |
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300" | How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale? | CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR) |
SELECT district FROM table_1341549_10 WHERE incumbent = "Lawrence J. Smith" | Name the district of lawrence j. smith | CREATE TABLE table_1341549_10 (district VARCHAR, incumbent VARCHAR) |
SELECT na__350_ FROM table_13663434_1 WHERE title_and_source = "Paper Wars: Cannon Fodder" | what's the na -350- with title and source being paper wars: cannon fodder | CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR) |
SELECT COUNT(points) FROM table_name_18 WHERE chassis = "ligier js11/15" | What is the total points of teams using a ligier js11/15 chassis? | CREATE TABLE table_name_18 (points VARCHAR, chassis VARCHAR) |
SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = "santo domingo este" | What contestant is from santo domingo este and has height smaller than 1.79? | CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR) |
SELECT trofeo_fast_team FROM table_12261926_2 WHERE stage = 8 | What is the trofeo fast team on stage 8? | CREATE TABLE table_12261926_2 (trofeo_fast_team VARCHAR, stage VARCHAR) |
SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288 | What is the most money for the score 75-74-72-67=288? | CREATE TABLE table_name_16 (money___ INTEGER, score VARCHAR) |
SELECT COUNT(pos) FROM table_name_11 WHERE postseason = "relegation playoffs" AND tier = 3 | How many positions have a Postseason of relegation playoffs and a tier of 3? | CREATE TABLE table_name_11 (pos VARCHAR, postseason VARCHAR, tier VARCHAR) |
SELECT director FROM table_name_55 WHERE film_title_used_in_nomination = "gulf stream under the iceberg" | What is the Director of Gulf Stream Under the Iceberg? | CREATE TABLE table_name_55 (director VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT player FROM table_name_43 WHERE team = "denver broncos" | What player is from the Denver Broncos? | CREATE TABLE table_name_43 (player VARCHAR, team VARCHAR) |
SELECT date FROM table_name_62 WHERE visitor = "buffalo" | What date did the red wings play against the visitors, buffalo? | CREATE TABLE table_name_62 (date VARCHAR, visitor VARCHAR) |
SELECT MIN(cars_per_set) FROM table_name_88 WHERE year_built = "1977-1979" AND number > 32 | What is the smallest number for Cars per Set built in 1977-1979 larger than 32? | CREATE TABLE table_name_88 (cars_per_set INTEGER, year_built VARCHAR, number VARCHAR) |
SELECT SUM(gamesplayed) FROM Sportsinfo | How many games are played for all students? | CREATE TABLE Sportsinfo (gamesplayed INTEGER) |
SELECT record FROM table_11959669_6 WHERE high_assists = "Pierce (6)" | What is the record where high assists is pierce (6)? | CREATE TABLE table_11959669_6 (record VARCHAR, high_assists VARCHAR) |
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10 | What was the first year that the artist of every little thing ranked lower than 10? | CREATE TABLE table_name_56 (year INTEGER, artist VARCHAR, rank VARCHAR) |
SELECT place FROM table_name_33 WHERE performance = "14:11.15" | What place had 14:11.15 as the performance? | CREATE TABLE table_name_33 (place VARCHAR, performance VARCHAR) |
SELECT name FROM Highschooler WHERE grade = 10 | Show the names of all high schoolers in grade 10. | CREATE TABLE Highschooler (name VARCHAR, grade VARCHAR) |
SELECT speed FROM table_name_13 WHERE rider = "chris swallow" | What is the Speed for Chris Swallow? | CREATE TABLE table_name_13 (speed VARCHAR, rider VARCHAR) |
SELECT 1993 FROM table_name_49 WHERE 1997 = "grand slams" | What is the 1993 value of the 1997 Grand Slams? | CREATE TABLE table_name_49 (Id VARCHAR) |
SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner" | Which Unit has Authors of dalla vecchia, wild, & reitner? | CREATE TABLE table_name_65 (unit VARCHAR, authors VARCHAR) |
SELECT college FROM table_name_86 WHERE pick = "14" | Which college's pick was 14? | CREATE TABLE table_name_86 (college VARCHAR, pick VARCHAR) |
SELECT Control AS trailers FROM table_name_71 WHERE motors = "52" | Tell me the control trailers for 52 motors | CREATE TABLE table_name_71 (Control VARCHAR, motors VARCHAR) |
SELECT team FROM table_1769428_2 WHERE date = "June 27" | What was the represented team on June 27? | CREATE TABLE table_1769428_2 (team VARCHAR, date VARCHAR) |
SELECT league FROM table_15475116_1 WHERE nickname = "Cavaliers" | What league does the team with the nickname Cavaliers belong to | CREATE TABLE table_15475116_1 (league VARCHAR, nickname VARCHAR) |
SELECT length FROM table_22669816_1 WHERE track = "Phoenix International Raceway" | What lengths did Phoenix International Raceway host? | CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR) |
SELECT city FROM table_name_55 WHERE venue = "san lorenzo centenario" | In which city is the San Lorenzo Centenario venue located? | CREATE TABLE table_name_55 (city VARCHAR, venue VARCHAR) |
SELECT result FROM table_name_95 WHERE score = "4-0" | What was the result of the competition that had a score of 4-0? | CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR) |
SELECT race_name FROM table_name_90 WHERE constructor = "matra" | Which race was Matra the constructor? | CREATE TABLE table_name_90 (race_name VARCHAR, constructor VARCHAR) |
SELECT time__et_ FROM table_2534387_10 WHERE entries = "907" | Name the time for entries being 907 | CREATE TABLE table_2534387_10 (time__et_ VARCHAR, entries VARCHAR) |
SELECT COUNT(fri_28_aug) FROM table_23465864_3 WHERE mon_24_aug = "22' 37.06 100.090mph" | When 22' 37.06 100.090mph is the time for Monday August 24th how many times are there for Friday August 28th? | CREATE TABLE table_23465864_3 (fri_28_aug VARCHAR, mon_24_aug VARCHAR) |
SELECT replaced_by FROM table_27091128_3 WHERE outgoing_manager = "Hüsnü Özkara" | Who replaced the outgoing manager Hüsnü Özkara? | CREATE TABLE table_27091128_3 (replaced_by VARCHAR, outgoing_manager VARCHAR) |
SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter" | What is the platform for the game of the third-person shooter genre? | CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR) |
SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE name = "Fishing Lake" | What is the population per km2 in Fishing Lake? | CREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, name VARCHAR) |
SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = "Sandwich" | What is the description of the restaurant type Sandwich? | CREATE TABLE Restaurant_Type (ResTypeDescription VARCHAR, ResTypeName VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.