answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT points FROM table_name_12 WHERE laps = 165 | What is the number of points associated with 165 laps? | CREATE TABLE table_name_12 (points VARCHAR, laps VARCHAR) |
SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = "Mohd Nur Rizuan Zainal" | Which malaysian team classification had mohd nur rizuan zainal as points classification? | CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR) |
SELECT record FROM table_name_86 WHERE score = "28-43" | For the game ending with a score of 28-43, what is the listed as the final record? | CREATE TABLE table_name_86 (record VARCHAR, score VARCHAR) |
SELECT type FROM table_name_91 WHERE state = "chen" AND name = "you" | What type is You from the state of Chen? | CREATE TABLE table_name_91 (type VARCHAR, state VARCHAR, name VARCHAR) |
SELECT season FROM table_name_78 WHERE round = "1. round" AND club = "sporting cp" | In what season did the Sporting CP Club have a 1. round? | CREATE TABLE table_name_78 (season VARCHAR, round VARCHAR, club VARCHAR) |
SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney henricus" | Which Event has a Medal of gold and a Name of barney henricus? | CREATE TABLE table_name_69 (event VARCHAR, medal VARCHAR, name VARCHAR) |
SELECT to_par FROM table_name_47 WHERE country = "spain" | What is To par, when Country is "Spain"? | CREATE TABLE table_name_47 (to_par VARCHAR, country VARCHAR) |
SELECT SUM(pl_gp) FROM table_name_90 WHERE pick__number = 199 AND reg_gp > 0 | What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0? | CREATE TABLE table_name_90 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR) |
SELECT MIN(points) FROM table_name_22 WHERE losses < 12 AND goals_against < 50 AND goal_difference > 11 AND played < 30 | What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played? | CREATE TABLE table_name_22 (points INTEGER, played VARCHAR, goal_difference VARCHAR, losses VARCHAR, goals_against VARCHAR) |
SELECT opponent_in_the_final FROM table_name_16 WHERE date = "4 april 2011" | Who is the Opponent in the final on 4 April 2011? | CREATE TABLE table_name_16 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey" | What country has a to par larger than 5 and a player John Mahaffey? | CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT MAX(february) FROM table_27539535_7 WHERE record = "17-29-7" | What day in February was the team 17-29-7? | CREATE TABLE table_27539535_7 (february INTEGER, record VARCHAR) |
SELECT COUNT(week) FROM table_name_78 WHERE attendance < 39 OFFSET 434 | In what Week was the Attendance 39,434? | CREATE TABLE table_name_78 (week VARCHAR, attendance INTEGER) |
SELECT team FROM table_15420044_1 WHERE against = 10 | Which teams had 10 goals scored against them | CREATE TABLE table_15420044_1 (team VARCHAR, against VARCHAR) |
SELECT place FROM table_name_70 WHERE player = "gil morgan" | What is Gil Morgan's Place? | CREATE TABLE table_name_70 (place VARCHAR, player VARCHAR) |
SELECT date FROM table_20996923_20 WHERE bowl_game = "Champs Sports Bowl" | What was the date for the Champs Sports Bowl? | CREATE TABLE table_20996923_20 (date VARCHAR, bowl_game VARCHAR) |
SELECT race_2 FROM table_name_4 WHERE round = "round 2" | What is the Race 2 result of Round 2? | CREATE TABLE table_name_4 (race_2 VARCHAR, round VARCHAR) |
SELECT COUNT(date) FROM table_23281862_10 WHERE score = "L 106–116 (OT)" | Name the total number of date for score being l 106–116 (ot) | CREATE TABLE table_23281862_10 (date VARCHAR, score VARCHAR) |
SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the name of track with most number of races. | CREATE TABLE track (name VARCHAR, track_id VARCHAR); CREATE TABLE race (track_id VARCHAR) |
SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams" | What School/Club Team is Player Aaron Williams from? | CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR) |
SELECT SUM(total) FROM table_name_52 WHERE country = "united states" AND year_s__won = "1986" | What is the total sum of the player from the United States who won in 1986? | CREATE TABLE table_name_52 (total INTEGER, country VARCHAR, year_s__won VARCHAR) |
SELECT record FROM table_name_68 WHERE game = 50 | What was the Record on Game 50? | CREATE TABLE table_name_68 (record VARCHAR, game VARCHAR) |
SELECT current_club FROM table_name_13 WHERE height > 1.8 AND position = "guard" AND year_born < 1982 AND player = "tariq kirksay" | What team does tariq kirksay, a guard who is taller than 1.8M and born before 1982, represent? | CREATE TABLE table_name_13 (current_club VARCHAR, player VARCHAR, year_born VARCHAR, height VARCHAR, position VARCHAR) |
SELECT character FROM table_name_93 WHERE duration = "13 years" AND actor = "vicky versavel" | What character did Vicky Versavel play for 13 years? | CREATE TABLE table_name_93 (character VARCHAR, duration VARCHAR, actor VARCHAR) |
SELECT year_founded FROM table_name_82 WHERE state__province = "pennsylvania" AND institution_name = "waynesburg university" | What year was Waynesburg University founded in Pennsylvania? | CREATE TABLE table_name_82 (year_founded VARCHAR, state__province VARCHAR, institution_name VARCHAR) |
SELECT COUNT(rank) FROM table_name_13 WHERE celebrity = "marcin mroczek" AND season > 4 | How many ranks had marcin mroczek as the celebrity in a season more recent than 4? | CREATE TABLE table_name_13 (rank VARCHAR, celebrity VARCHAR, season VARCHAR) |
SELECT AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151 | What is the average PI GP of the player from round 5 with a pick # larger than 151? | CREATE TABLE table_name_19 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR) |
SELECT team FROM table_name_58 WHERE conference = "great plains" AND school = "concordia (ne)" | What team has great plains as the conference, and concordia (ne) as the school? | CREATE TABLE table_name_58 (team VARCHAR, conference VARCHAR, school VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_48 WHERE team_1 = "internacional" | What is the 2nd leg of the Internacional Team 1? | CREATE TABLE table_name_48 (team_1 VARCHAR) |
SELECT place FROM table_name_62 WHERE score = 69 | In what place was the golfer that had a score of 69? | CREATE TABLE table_name_62 (place VARCHAR, score VARCHAR) |
SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135 | In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135? | CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR) |
SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven" | What is the earliest Date David Adams played on a Clay Surface with Brett Steven as Partner? | CREATE TABLE table_name_46 (date INTEGER, surface VARCHAR, partner VARCHAR) |
SELECT home_team FROM table_name_57 WHERE away_team = "everton" | Which Home team has an Away team of everton? | CREATE TABLE table_name_57 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(points) FROM table_name_49 WHERE driver = "romain grosjean" AND average_pre_2010 < 0 | What is the lowest amount of points driver Romain Grosjean, who has an average pre-2010 less than 0, has? | CREATE TABLE table_name_49 (points INTEGER, driver VARCHAR, average_pre_2010 VARCHAR) |
SELECT COUNT(season) FROM table_name_34 WHERE lost = 13 AND points = 156 | Which season did the Minnesota Kicks lose 13 games and scored 156 points? | CREATE TABLE table_name_34 (season VARCHAR, lost VARCHAR, points VARCHAR) |
SELECT segment_a FROM table_name_5 WHERE segment_b = "aerospace fuel lines" | Segment B of aerospace fuel lines has what segment A? | CREATE TABLE table_name_5 (segment_a VARCHAR, segment_b VARCHAR) |
SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006 | What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006? | CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR) |
SELECT record FROM table_name_94 WHERE time = "4:14" | Which record has 4:14 as the time? | CREATE TABLE table_name_94 (record VARCHAR, time VARCHAR) |
SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006" | How many schools won their last occ championship in 2006? | CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR) |
SELECT 4 AS wi FROM table_27268238_5 WHERE economy = "7.82" | What is the 4wi when the economy is 7.82? | CREATE TABLE table_27268238_5 (economy VARCHAR) |
SELECT MAX(year) FROM table_1514559_1 WHERE championship = "US Open" | What year was the most recent US Open championship? | CREATE TABLE table_1514559_1 (year INTEGER, championship VARCHAR) |
SELECT report FROM table_1140085_2 WHERE location = "Kyalami" | what is the report where the location is kyalami? | CREATE TABLE table_1140085_2 (report VARCHAR, location VARCHAR) |
SELECT points_against FROM table_name_87 WHERE club = "porthcawl rfc" | Name the points against for porthcawl rfc | CREATE TABLE table_name_87 (points_against VARCHAR, club VARCHAR) |
SELECT pick FROM table_name_96 WHERE round = "7" AND player = "don waddell" | What is the pick of player don waddell from round 7? | CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, player VARCHAR) |
SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2 | Which Points has a Position of 3, and a Drawn smaller than 2? | CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR) |
SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code | Find the max, average, and minimum gpa of all students in each department. | CREATE TABLE student (dept_code VARCHAR, stu_gpa INTEGER) |
SELECT COUNT(race) AS Winner FROM table_1140074_2 WHERE rnd = 10 | what's the total number of race winner with rnd being 10 | CREATE TABLE table_1140074_2 (race VARCHAR, rnd VARCHAR) |
SELECT tournament FROM table_name_66 WHERE result = "1st" AND year > 1973 | What tournament since 1973 has a result of 1st? | CREATE TABLE table_name_66 (tournament VARCHAR, result VARCHAR, year VARCHAR) |
SELECT runner_s__up FROM table_name_67 WHERE margin_of_victory = "5 strokes" AND date = "nov 13, 1988" | For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up? | CREATE TABLE table_name_67 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR) |
SELECT population__2010___rank_ FROM table_14253123_1 WHERE area_sq_mi__km_2____rank_ = "sqmi (km2) (5)" | When the area sq mi (km 2 ) (rank) is sqmi (km2) (5) what is the population (2010) (rank)? | CREATE TABLE table_14253123_1 (population__2010___rank_ VARCHAR, area_sq_mi__km_2____rank_ VARCHAR) |
SELECT city FROM table_name_98 WHERE team = "bahawalpur stags" | Which City has the Bahawalpur Stags Team? | CREATE TABLE table_name_98 (city VARCHAR, team VARCHAR) |
SELECT attendance FROM table_name_4 WHERE home_team = "gillingham" | On what day was there a Home game for Gillingham? | CREATE TABLE table_name_4 (attendance VARCHAR, home_team VARCHAR) |
SELECT 2012 FROM table_name_70 WHERE tournament = "grand slam tournaments" | What is the 2012 value at the Grand Slam Tournaments? | CREATE TABLE table_name_70 (tournament VARCHAR) |
SELECT purpose FROM table_name_54 WHERE name = "quay" | What was the purpose of the Quay test blast? | CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) |
SELECT MIN(games) FROM table_20107762_1 WHERE mins = "385:33" | What is the game number with 385:33 mins? | CREATE TABLE table_20107762_1 (games INTEGER, mins VARCHAR) |
SELECT MIN(week) FROM table_name_60 WHERE month = "august" AND offensive = "andrew combs" | What was the lowest week in the month of August against Andrew Combs? | CREATE TABLE table_name_60 (week INTEGER, month VARCHAR, offensive VARCHAR) |
SELECT score FROM table_name_71 WHERE year = "1992" | What the score of the 1992 game? | CREATE TABLE table_name_71 (score VARCHAR, year VARCHAR) |
SELECT year FROM table_name_50 WHERE time = "13:23:43" | Which year has a Time of 13:23:43? | CREATE TABLE table_name_50 (year VARCHAR, time VARCHAR) |
SELECT position FROM table_name_47 WHERE player = "kenneth udjus" | What Position has a Player named kenneth udjus? | CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR) |
SELECT deleted FROM table_name_71 WHERE county = "tolland" | What is the deleted for tolland? | CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR) |
SELECT position_in_table FROM table_18784280_3 WHERE team = "Watford" | Which position in the table is the team watford? | CREATE TABLE table_18784280_3 (position_in_table VARCHAR, team VARCHAR) |
SELECT result FROM table_name_81 WHERE incumbent = "william vandever" | What are incumbent William Vandever's results? | CREATE TABLE table_name_81 (result VARCHAR, incumbent VARCHAR) |
SELECT cpu FROM table_11703336_1 WHERE year_released = "1993" | What is the cpu of the calculator released in 1993? | CREATE TABLE table_11703336_1 (cpu VARCHAR, year_released VARCHAR) |
SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor" | When was Stellbrookmoor established? | CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR) |
SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27 | Who wrote episode 27 in the series that was directed by Wendey Stanzler? | CREATE TABLE table_28768925_1 (written_by VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) |
SELECT score FROM table_name_93 WHERE goal = 16 | What was the score with a goal of 16? | CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR) |
SELECT result FROM table_11449311_2 WHERE record = "2-13" | Find all the result(s) with the record of 2-13. | CREATE TABLE table_11449311_2 (result VARCHAR, record VARCHAR) |
SELECT height FROM table_name_58 WHERE date_of_birth = "1978-02-16" | What is the Height of the Player with a Date of Birth of 1978-02-16? | CREATE TABLE table_name_58 (height VARCHAR, date_of_birth VARCHAR) |
SELECT high_points FROM table_11960407_5 WHERE game = 49 | Who scored the most points in Game 49? | CREATE TABLE table_11960407_5 (high_points VARCHAR, game VARCHAR) |
SELECT COUNT(game) FROM table_name_31 WHERE score = "116–138" | What is the game number with a score of 116–138? | CREATE TABLE table_name_31 (game VARCHAR, score VARCHAR) |
SELECT record FROM table_name_43 WHERE team = "manchester yankees" | Which record has a Team of manchester yankees? | CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR) |
SELECT game FROM table_name_20 WHERE year > 1997 AND platform_s_ = "windows" AND genre = "adventure" | What game in the genre of adventure, has a windows platform and its year is after 1997? | CREATE TABLE table_name_20 (game VARCHAR, genre VARCHAR, year VARCHAR, platform_s_ VARCHAR) |
SELECT president FROM table_name_25 WHERE media_officer = "pete marshall/ nazar striletski" | Name the President has a Media Officer of pete marshall/ nazar striletski? | CREATE TABLE table_name_25 (president VARCHAR, media_officer VARCHAR) |
SELECT official_rating_16_39 FROM table_29773532_21 WHERE episode = 9 | What was the official rating 16-39 of episode 9? | CREATE TABLE table_29773532_21 (official_rating_16_39 VARCHAR, episode VARCHAR) |
SELECT position FROM table_22982552_9 WHERE highlight_s_ = "5 career INTs" | What position did the player whose highlights were 5 career INTs play? | CREATE TABLE table_22982552_9 (position VARCHAR, highlight_s_ VARCHAR) |
SELECT COUNT(location_attendance) FROM table_17080868_6 WHERE date = "December 29" | what is the total number of attendance where the date is december 29? | CREATE TABLE table_17080868_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT COUNT(prison_connection) FROM table_2933761_1 WHERE name = "Joan Leaven" | How many prisons is Joan Leaven connected with? | CREATE TABLE table_2933761_1 (prison_connection VARCHAR, name VARCHAR) |
SELECT country FROM table_name_9 WHERE player = "raymond floyd" | What country did Raymond Floyd play for? | CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR) |
SELECT lost FROM table_12828723_3 WHERE try_bonus = "5" AND points_for = "390" | what's the loss with try bonus being 5 and points for being 390 | CREATE TABLE table_12828723_3 (lost VARCHAR, try_bonus VARCHAR, points_for VARCHAR) |
SELECT home_team FROM table_name_54 WHERE venue = "princes park" | What is the home team at princes park? | CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR) |
SELECT 1958 AS _cié FROM table_name_69 WHERE class = "s" | What 1958 CIE is class s? | CREATE TABLE table_name_69 (class VARCHAR) |
SELECT tournament FROM table_name_79 WHERE date = "april 3, 2005" | Name the tournament for april 3, 2005 | CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) |
SELECT MIN(bypass_ports) FROM table_16731248_1 | What is the minimum number of bypass ports listed? | CREATE TABLE table_16731248_1 (bypass_ports INTEGER) |
SELECT english FROM table_name_53 WHERE german = "apfel" | What's the English word for apfel? | CREATE TABLE table_name_53 (english VARCHAR, german VARCHAR) |
SELECT nickname_s_ FROM table_name_59 WHERE enrollment__2013_14_ = "160" | What is the nickname with an enrollment (2013/14) of 160? | CREATE TABLE table_name_59 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR) |
SELECT class FROM table_name_88 WHERE number_at_lincoln > 0 AND number_at_doncaster = 8 | Which Class has a Number at Lincoln larger than 0 and a Number at Doncaster of 8? | CREATE TABLE table_name_88 (class VARCHAR, number_at_lincoln VARCHAR, number_at_doncaster VARCHAR) |
SELECT females___percentage_ FROM table_14598_9 WHERE literate_persons___percentage_ = "68.74" | What is the percentage of all females that are literate people have a percentage of 68.74? | CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, literate_persons___percentage_ VARCHAR) |
SELECT code FROM table_1610301_1 WHERE district = "Mahbubnagar" | What is the abbreviation of the district of Mahbubnagar? | CREATE TABLE table_1610301_1 (code VARCHAR, district VARCHAR) |
SELECT visitor FROM table_name_51 WHERE score = "82-75" | What was the visiting team for the game that ended 82-75? | CREATE TABLE table_name_51 (visitor VARCHAR, score VARCHAR) |
SELECT home_team FROM table_name_54 WHERE away_team = "south melbourne" | What home team played against south Melbourne? | CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR) |
SELECT MAX(all_amendments_cosponsored) FROM table_name_25 WHERE amendments_originally_cosponsored = 53 AND all_bills_sponsored > 54 | What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored? | CREATE TABLE table_name_25 (all_amendments_cosponsored INTEGER, amendments_originally_cosponsored VARCHAR, all_bills_sponsored VARCHAR) |
SELECT original_artist FROM table_12310814_1 WHERE episode = "Top 3" | What's the original artist of the song performed in the top 3 episode? | CREATE TABLE table_12310814_1 (original_artist VARCHAR, episode VARCHAR) |
SELECT opponent FROM table_name_83 WHERE date = "16 february 2003" | Which opponent has a Date of 16 february 2003? | CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR) |
SELECT MIN(loss) FROM table_name_80 WHERE name = "jarius wright" AND gain > 1 | What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1. | CREATE TABLE table_name_80 (loss INTEGER, name VARCHAR, gain VARCHAR) |
SELECT total FROM table_name_60 WHERE set_2 = "19–25" | Which Total has a Set 2 of 19–25? | CREATE TABLE table_name_60 (total VARCHAR, set_2 VARCHAR) |
SELECT COUNT(heat) FROM table_name_48 WHERE lane = 2 AND rank > 75 AND nationality = "madagascar" | How many heats had 2 lanes, a rank above 75, and nationality of Madagascar? | CREATE TABLE table_name_48 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR) |
SELECT registrations FROM table_11934032_1 WHERE station_number = "C26" | what are all the registrations where station number is c26 | CREATE TABLE table_11934032_1 (registrations VARCHAR, station_number VARCHAR) |
SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1 | What is the most frequent status of bookings? | CREATE TABLE BOOKINGS (Status_Code VARCHAR) |
SELECT high_assists FROM table_27722408_2 WHERE date = "October 7" | Who had the most assists and how many did they have on October 7? | CREATE TABLE table_27722408_2 (high_assists VARCHAR, date VARCHAR) |
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1 | Which city does has most number of customers? | CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.