answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10 | what is the average Against has Drawn of 2, and a Played larger than 10? | CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR) |
SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars" | What is the capacity for Sangre Grande Ground, home of the North East Stars? | CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR) |
SELECT average FROM table_11674683_2 WHERE delegate = "Spain" | Name the average for spain delegate | CREATE TABLE table_11674683_2 (average VARCHAR, delegate VARCHAR) |
SELECT loss FROM table_name_20 WHERE opponent = "coyotes" | What was the loss from the coyotes as opponents? | CREATE TABLE table_name_20 (loss VARCHAR, opponent VARCHAR) |
SELECT population__2011_ FROM table_2562572_44 WHERE settlement = "Banatski Karlovac" | What was the population in 2011 of banatski karlovac? | CREATE TABLE table_2562572_44 (population__2011_ VARCHAR, settlement VARCHAR) |
SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320" | Which Graded Hammer Three (GH3) shows Model of clp320? | CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR) |
SELECT candidates FROM table_25030512_12 WHERE district = "Florida 7" AND first_elected = "2010" | When 2010 is the first elected and Florida 7 is the district who are the candidates? | CREATE TABLE table_25030512_12 (candidates VARCHAR, district VARCHAR, first_elected VARCHAR) |
SELECT player FROM table_name_88 WHERE college = "notre dame" | Name the player that went to notre dame | CREATE TABLE table_name_88 (player VARCHAR, college VARCHAR) |
SELECT player FROM table_name_50 WHERE round > 8 | Which Player has a Round larger than 8? | CREATE TABLE table_name_50 (player VARCHAR, round INTEGER) |
SELECT week FROM table_name_93 WHERE attendance = "51,265" | Which week had an attendance of 51,265? | CREATE TABLE table_name_93 (week VARCHAR, attendance VARCHAR) |
SELECT date FROM table_name_69 WHERE pitcher = "jason marquis" AND length = "410'" | What was the date when the pitcher was Jason Marquis and the length was 410'? | CREATE TABLE table_name_69 (date VARCHAR, pitcher VARCHAR, length VARCHAR) |
SELECT winning_pitcher FROM table_12125069_2 WHERE date = "June 25" | Who was the winning pitcher on june 25? | CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, date VARCHAR) |
SELECT height_ft___m FROM table_name_77 WHERE name = "555 17th street" | What is the height of the building named 555 17th street? | CREATE TABLE table_name_77 (height_ft___m VARCHAR, name VARCHAR) |
SELECT MAX(pick) FROM table_name_9 WHERE round > 5 AND player = "tom ivey" | Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey? | CREATE TABLE table_name_9 (pick INTEGER, round VARCHAR, player VARCHAR) |
SELECT COUNT(theme) FROM table_15796100_1 WHERE original_artist = "Judy Garland" | How many themes have the original artist of Judy Garland? | CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR) |
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm" | What is listed for the RECNet that also has a Frequency of 91.1 FM? | CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR) |
SELECT date FROM table_name_87 WHERE ship = "hallbjorg" | Which Date has a Ship of hallbjorg? | CREATE TABLE table_name_87 (date VARCHAR, ship VARCHAR) |
SELECT to_par FROM table_name_17 WHERE player = "rocco mediate" | What is Rocco Mediate's par? | CREATE TABLE table_name_17 (to_par VARCHAR, player VARCHAR) |
SELECT country FROM table_name_98 WHERE rank < 2 | What is the country with a rank less than 2? | CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) |
SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1 | Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1? | CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR) |
SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = "2.4 (2001-2007)" | Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)? | CREATE TABLE table_name_84 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR) |
SELECT max_torque_at_rpm FROM table_name_90 WHERE engine_code_s_ = "bmm" | What is the maximum torque at rpm for the engine with code BMM? | CREATE TABLE table_name_90 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR) |
SELECT SUM(world_ranking) FROM table_name_80 WHERE date = "aug 5" AND year > 1980 | How many world rankings are after Aug 5, 1980 ? | CREATE TABLE table_name_80 (world_ranking INTEGER, date VARCHAR, year VARCHAR) |
SELECT package_option FROM table_name_51 WHERE language = "italian" AND television_service = "sky radio" | What is Package/Option, when Language is Italian, and when Television Service is Sky Radio? | CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR) |
SELECT film FROM table_name_27 WHERE year = "1999" | What film was made in 1999? | CREATE TABLE table_name_27 (film VARCHAR, year VARCHAR) |
SELECT results FROM table_1341453_11 WHERE incumbent = "Peter Deutsch" | What are the results in the county with Peter Deutsch as a candidate? | CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR) |
SELECT COUNT(position) FROM table_name_20 WHERE points > 2 AND lost > 4 AND played < 10 | What is the total number of positions having points over 2, more than 4 losses, and under 10 matches played? | CREATE TABLE table_name_20 (position VARCHAR, played VARCHAR, points VARCHAR, lost VARCHAR) |
SELECT AVG(power__mw_) FROM table_name_26 WHERE voltage__kv_ = 500 AND country = "argentina" | Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina? | CREATE TABLE table_name_26 (power__mw_ INTEGER, voltage__kv_ VARCHAR, country VARCHAR) |
SELECT date FROM table_name_69 WHERE location = "madrid, esp" | What is the date of the match located in Madrid, Esp? | CREATE TABLE table_name_69 (date VARCHAR, location 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 AVG(top_25) FROM table_name_63 WHERE top_10 = 8 AND events = 45 | What is the Top-25 with a Top-10 of 8, and an Events of 45? | CREATE TABLE table_name_63 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR) |
SELECT dob FROM table_name_5 WHERE surname = "biddle" | When is Biddle's DOB? | CREATE TABLE table_name_5 (dob VARCHAR, surname VARCHAR) |
SELECT headquarters FROM table_name_26 WHERE company = "getinge group" | Where is the headquarters of the getinge group located? | CREATE TABLE table_name_26 (headquarters VARCHAR, company VARCHAR) |
SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee" | Name the least runs conceded for brett lee | CREATE TABLE table_15700367_4 (runs_conceded INTEGER, name VARCHAR) |
SELECT score FROM table_name_15 WHERE location_attendance = "seattle center coliseum 11,497" | WhichScore has a Location Attendance of seattle center coliseum 11,497? | CREATE TABLE table_name_15 (score VARCHAR, location_attendance VARCHAR) |
SELECT COUNT(division) FROM table_2979789_1 WHERE fa_cup_apps = 9 | Name the total number of division for fa cups being 9 | CREATE TABLE table_2979789_1 (division VARCHAR, fa_cup_apps VARCHAR) |
SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk" | what is the title when the year is after 2011 and the original channel is nhk? | CREATE TABLE table_name_71 (title VARCHAR, year VARCHAR, original_channel VARCHAR) |
SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = "wii sports" | What platform came out before 2009 with the game wii sports? | CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR) |
SELECT staffel_b FROM table_name_97 WHERE staffel_c = "hallescher fc chemie" | What is the Staffel B that has Hallescher Fc Chemie as Staffel C? | CREATE TABLE table_name_97 (staffel_b VARCHAR, staffel_c VARCHAR) |
SELECT COUNT(yacht) FROM table_14882588_3 WHERE position = 3 | How many yachts had a position of 3? | CREATE TABLE table_14882588_3 (yacht VARCHAR, position VARCHAR) |
SELECT venue FROM table_name_85 WHERE away_team = "north melbourne" | Tell me the venue for north melbourne | CREATE TABLE table_name_85 (venue VARCHAR, away_team VARCHAR) |
SELECT MIN(over_no) FROM table_name_37 WHERE bowler = "shane bond" | Bowler of shane bond has what lowest overall number? | CREATE TABLE table_name_37 (over_no INTEGER, bowler VARCHAR) |
SELECT opponent FROM table_16864968_8 WHERE attendance = 19041 | Who was the opponent in the game where 19041 people attended? | CREATE TABLE table_16864968_8 (opponent VARCHAR, attendance VARCHAR) |
SELECT score_in_final FROM table_name_59 WHERE date = "february 19, 1989" | What was the Score in Final on February 19, 1989? | CREATE TABLE table_name_59 (score_in_final VARCHAR, date VARCHAR) |
SELECT SUM(tries_against) FROM table_name_91 WHERE points_against = 95 AND tries_for > 20 | What Tries against that have a Points against of 95 and Tries for larger than 20? | CREATE TABLE table_name_91 (tries_against INTEGER, points_against VARCHAR, tries_for VARCHAR) |
SELECT high_assists FROM table_17322817_6 WHERE high_rebounds = "Yi Jianlian , Brook Lopez (7)" | Name the high assists for yi jianlian , brook lopez (7) | CREATE TABLE table_17322817_6 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT mccain__percentage FROM table_15929156_3 WHERE county = "Dukes" | Name the mccain % for dukes | CREATE TABLE table_15929156_3 (mccain__percentage VARCHAR, county VARCHAR) |
SELECT score FROM table_name_59 WHERE date = "february 18" | What is the score of the game played on February 18? | CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR) |
SELECT AVG(week) FROM table_name_65 WHERE opponent = "baltimore colts" AND attendance < 55 OFFSET 137 | Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137? | CREATE TABLE table_name_65 (week INTEGER, opponent VARCHAR, attendance VARCHAR) |
SELECT AVG(games) FROM table_name_88 WHERE name = "pablo prigioni" AND assists > 14 | What is the mean number of games for pablo prigioni when there are more than 14 assists? | CREATE TABLE table_name_88 (games INTEGER, name VARCHAR, assists VARCHAR) |
SELECT MAX(highest) FROM table_name_20 WHERE average = 615 AND capacity > 4 OFFSET 000 | What's the highest with a capacity of greater than 4,000 and an average of 615? | CREATE TABLE table_name_20 (highest INTEGER, average VARCHAR, capacity VARCHAR) |
SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND t2.year = 2001 | What are the degrees conferred in "San Francisco State University" in 2001. | CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR) |
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS" | Show the starting years shared by technicians from team "CLE" and "CWS". | CREATE TABLE technician (Starting_Year VARCHAR, Team VARCHAR) |
SELECT hh_principal FROM table_name_16 WHERE superintendent = "james finch" AND maplemere_principal = "charlie taylor" | Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal? | CREATE TABLE table_name_16 (hh_principal VARCHAR, superintendent VARCHAR, maplemere_principal VARCHAR) |
SELECT census_ranking FROM table_171356_2 WHERE official_name = "Petersville" | What is Petersville's census ranking? | CREATE TABLE table_171356_2 (census_ranking VARCHAR, official_name VARCHAR) |
SELECT MAX(2010 AS _population__000_) FROM table_13618358_1 WHERE agri_culture_b = "6.9" | What was head count in 2010 where the farm production is 6.9? | CREATE TABLE table_13618358_1 (agri_culture_b VARCHAR) |
SELECT city_state FROM table_name_24 WHERE team = "atlanta hawks (retired)" | What City/State did the Atlanta Hawks (retired) team play for? | CREATE TABLE table_name_24 (city_state VARCHAR, team VARCHAR) |
SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu" | Who was the outgoing manager replaced by Marian Bucurescu? | CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR) |
SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = "m1" | What driving wheels are on the m1 original NER class? | CREATE TABLE table_name_8 (driving_wheels VARCHAR, original_ner_class VARCHAR) |
SELECT player FROM table_name_11 WHERE team_from = "south shore kings" | Which Player has a Team from of south shore kings? | CREATE TABLE table_name_11 (player VARCHAR, team_from VARCHAR) |
SELECT results¹ FROM table_name_31 WHERE date = "september 7" | What were the results on September 7? | CREATE TABLE table_name_31 (results¹ VARCHAR, date VARCHAR) |
SELECT park FROM table_2665085_1 WHERE name = "Boardwalk Bullet" | What park is Boardwalk Bullet located in? | CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) |
SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments) | What are the first name and last name of the professionals who have done treatment with cost below average? | CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR) |
SELECT res FROM table_name_55 WHERE opponent = "wataru sakata" | What is the result for the match against Wataru Sakata? | CREATE TABLE table_name_55 (res VARCHAR, opponent VARCHAR) |
SELECT MIN(no_in_season) FROM table_11058032_1 WHERE directed_by = "Jeff Melman" | What episode in the season was directed by Jeff Melman? | CREATE TABLE table_11058032_1 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT start FROM table_name_78 WHERE finish = "10" | What race has a finish time of 10? | CREATE TABLE table_name_78 (start VARCHAR, finish VARCHAR) |
SELECT school FROM table_name_65 WHERE height = "6-4" | Which school did the player have a height of 6-4? | CREATE TABLE table_name_65 (school VARCHAR, height VARCHAR) |
SELECT venue FROM table_name_66 WHERE score = "3 – 0" | What venue was the game held at when the Score was 3 – 0? | CREATE TABLE table_name_66 (venue VARCHAR, score VARCHAR) |
SELECT type FROM table_name_28 WHERE moving_to = "alianza atlético" | what is the type movinig to alianza atlético? | CREATE TABLE table_name_28 (type VARCHAR, moving_to VARCHAR) |
SELECT planet FROM table_10932739_2 WHERE orbital_period = "11.86 years" | Which planet has an orbital period of 11.86 years? | CREATE TABLE table_10932739_2 (planet VARCHAR, orbital_period VARCHAR) |
SELECT name FROM table_name_86 WHERE opened = "2004" AND park = "bobbejaanland" | What is the name of the rollercoaster that opened in 2004 in bobbejaanland? | CREATE TABLE table_name_86 (name VARCHAR, opened VARCHAR, park VARCHAR) |
SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay" | Which team does Pierre Duguay play for? | CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR) |
SELECT player FROM table_name_20 WHERE round = 8 | Who is the player from round 8? | CREATE TABLE table_name_20 (player VARCHAR, round VARCHAR) |
SELECT COUNT(breadth) FROM table_28132970_5 WHERE vessel = "Marianarray" | How many breadth entries are there when the vessel is marianarray? | CREATE TABLE table_28132970_5 (breadth VARCHAR, vessel VARCHAR) |
SELECT class FROM table_1745843_5 WHERE part_2 = "laug" | What is the class of the word who's second participle is laug? | CREATE TABLE table_1745843_5 (class VARCHAR, part_2 VARCHAR) |
SELECT MAX(player) FROM table_name_63 WHERE year = "1r" AND sets = "clay" AND NOT aces > 4 | What is the highest number of players during 1r year with a clay set and more than 4 aces? | CREATE TABLE table_name_63 (player INTEGER, year VARCHAR, sets VARCHAR, aces VARCHAR) |
SELECT winning_driver FROM table_1140088_6 WHERE circuit = "Brands Hatch" | Who won the Brands Hatch circuit? | CREATE TABLE table_1140088_6 (winning_driver VARCHAR, circuit VARCHAR) |
SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49" | Which terminations correspond to a US MSRP of $49? | CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR) |
SELECT debut_album FROM table_1646960_3 WHERE winning_song = "Kemenangan Hati" | What is the debut album for the artist with the winning song kemenangan hati? | CREATE TABLE table_1646960_3 (debut_album VARCHAR, winning_song VARCHAR) |
SELECT share FROM table_11238597_4 WHERE air_date = "December 10, 2008" | What was the share for the episode with the air date december 10, 2008? | CREATE TABLE table_11238597_4 (share VARCHAR, air_date VARCHAR) |
SELECT original_channel FROM table_name_61 WHERE note = "co-star" AND year = 2012 | what is the original channel when the note is co-star in year 2012? | CREATE TABLE table_name_61 (original_channel VARCHAR, note VARCHAR, year VARCHAR) |
SELECT score FROM table_name_65 WHERE tie_no = "29" | What is the score when the tie no is 29? | CREATE TABLE table_name_65 (score VARCHAR, tie_no VARCHAR) |
SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 1 | Failures larger than 0, and a Successes of 1 has what lowest partial failures? | CREATE TABLE table_name_64 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR) |
SELECT mens_singles FROM table_12266757_1 WHERE mixed_doubles = "Stellan Mohlin Kerstin Ståhl , AIK" | Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl , Aik? | CREATE TABLE table_12266757_1 (mens_singles VARCHAR, mixed_doubles VARCHAR) |
SELECT 1 AS st_leg FROM table_name_73 WHERE team__number1 = "unics kazan" | What was the team Unics Kazan's 1st leg score? | CREATE TABLE table_name_73 (team__number1 VARCHAR) |
SELECT bird_uniform FROM table_name_78 WHERE rank = "g2" | What is the bird uniform that is associated with the rank of G2? | CREATE TABLE table_name_78 (bird_uniform VARCHAR, rank VARCHAR) |
SELECT open_1st_viii FROM table_11318462_5 WHERE u15_6th_iv = "BGS" | what are all the open 1st viii with u15 6th iv being bgs | CREATE TABLE table_11318462_5 (open_1st_viii VARCHAR, u15_6th_iv VARCHAR) |
SELECT player FROM table_21100348_11 WHERE runs = 477 | What player has 477 runs? | CREATE TABLE table_21100348_11 (player VARCHAR, runs VARCHAR) |
SELECT MIN(grid) FROM table_name_42 WHERE team = "germany" AND laps < 45 | Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45? | CREATE TABLE table_name_42 (grid INTEGER, team VARCHAR, laps VARCHAR) |
SELECT date FROM table_name_66 WHERE team = "rockies" | I want the date for rockies | CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR) |
SELECT season FROM table_name_33 WHERE location = "athens" AND winners = "panathinaikos" | Which season's winner is Panathinaikos and is located in Athens? | CREATE TABLE table_name_33 (season VARCHAR, location VARCHAR, winners VARCHAR) |
SELECT date FROM table_name_9 WHERE tournament = "masters tournament" | When was the Masters Tournament? | CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR) |
SELECT MIN(points) FROM table_name_33 WHERE extra_points = 0 AND player = "curtis redden" AND touchdowns < 2 | Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2? | CREATE TABLE table_name_33 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR, player VARCHAR) |
SELECT event FROM table_name_64 WHERE round = "1" AND location = "osaka , japan" AND method = "tko (corner stoppage)" | What is Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"? | CREATE TABLE table_name_64 (event VARCHAR, method VARCHAR, round VARCHAR, location VARCHAR) |
SELECT date FROM table_name_55 WHERE week = 8 | What day did the team play on week 8? | CREATE TABLE table_name_55 (date VARCHAR, week VARCHAR) |
SELECT date FROM table_name_45 WHERE competition = "1999 fifa confederations cup" | What is the Date of the 1999 fifa confederations cup? | CREATE TABLE table_name_45 (date VARCHAR, competition VARCHAR) |
SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Sudket Prapakamol Saralee Thungthongkam" | Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam? | CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR) |
SELECT MAX(bronze) FROM table_name_53 WHERE gold = 2 AND nation = "slovakia" AND total > 2 | Which Bronze has a Gold of 2, and a Nation of slovakia, and a Total larger than 2? | CREATE TABLE table_name_53 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) |
SELECT AVG(points) FROM table_name_74 WHERE lost > 2 AND drawn > 2 AND difference = "0" | Which average Points have a Lost larger than 2, and Drawn larger than 2, and a Difference of 0? | CREATE TABLE table_name_74 (points INTEGER, difference VARCHAR, lost VARCHAR, drawn VARCHAR) |
SELECT nationality FROM table_name_54 WHERE player = "michael del zotto" | What is Michael Del Zotto's nationality? | CREATE TABLE table_name_54 (nationality VARCHAR, player VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.