answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MIN(year) FROM table_name_55 WHERE torque = "330n·m (243lb·ft) @ 2000-2500" | When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500? | CREATE TABLE table_name_55 (year INTEGER, torque VARCHAR) |
SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = "minority in parliament" AND seats = "2" | What is the earliest election with 2 seats and the outcome of the election of minority in parliament? | CREATE TABLE table_name_67 (election INTEGER, outcome_of_election VARCHAR, seats VARCHAR) |
SELECT COUNT(order) FROM table_1818471_1 WHERE species = "Pavo cristatus" | How many orders when the species is Pavo Cristatus? | CREATE TABLE table_1818471_1 (order VARCHAR, species VARCHAR) |
SELECT attempts FROM table_name_17 WHERE completions = "223" | What number of attempts were recorded when the completions were 223? | CREATE TABLE table_name_17 (attempts VARCHAR, completions VARCHAR) |
SELECT format FROM table_name_42 WHERE call_sign = "dzfe" | What format has the call sign DZFE? | CREATE TABLE table_name_42 (format VARCHAR, call_sign VARCHAR) |
SELECT date_and_time FROM table_name_2 WHERE competition = "serie a" AND result = "0-3" | What is Date and Time, when Competition is "Serie A", and when Result is "0-3"? | CREATE TABLE table_name_2 (date_and_time VARCHAR, competition VARCHAR, result VARCHAR) |
SELECT name FROM table_name_89 WHERE rank = 5 | What is the name of Rank 5? | CREATE TABLE table_name_89 (name VARCHAR, rank VARCHAR) |
SELECT SUM(top_25) FROM table_name_93 WHERE tournament = "u.s. open" AND events < 7 | What is the top-25 of the U.S. open, which has less than 7 events? | CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR) |
SELECT city___state FROM table_name_96 WHERE series = "atcc round 1" | What city had a series of atcc round 1? | CREATE TABLE table_name_96 (city___state VARCHAR, series VARCHAR) |
SELECT preliminary_average FROM table_name_78 WHERE interview = "8.600 (6)" | what is the preliminary average score when the interview score is 8.600 (6)? | CREATE TABLE table_name_78 (preliminary_average VARCHAR, interview VARCHAR) |
SELECT position FROM table_name_11 WHERE competition = "world athletics final" AND year > 2008 | What position was played at the World Athletics Final Competition in a year more recent than 2008? | CREATE TABLE table_name_11 (position VARCHAR, competition VARCHAR, year VARCHAR) |
SELECT latest_stable_release FROM table_26099252_1 WHERE vp9___webm__ = "No" AND h264 = "3.0" | What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no. | CREATE TABLE table_26099252_1 (latest_stable_release VARCHAR, vp9___webm__ VARCHAR, h264 VARCHAR) |
SELECT first_broadcast FROM table_23292220_4 WHERE episode = "4x03" | What was the first broadcast date of episode 4x03? | CREATE TABLE table_23292220_4 (first_broadcast VARCHAR, episode VARCHAR) |
SELECT attendance FROM table_name_15 WHERE opponent = "detroit lions" | What was the attendance in the game against the Detroit Lions? | CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR) |
SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman" | What office is Jon Huntsman a candidate for? | CREATE TABLE table_20246201_9 (office VARCHAR, candidate VARCHAR) |
SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci" | how many new points does the player roberta vinci have? | CREATE TABLE table_29572583_20 (new_points INTEGER, player VARCHAR) |
SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC | Show the name of colleges that have at least two players in descending alphabetical order. | CREATE TABLE match_season (College VARCHAR) |
SELECT country FROM table_name_16 WHERE start_source = "bbc sport" AND name = "feeney" | What is the country named feeney with a bbc sport start source? | CREATE TABLE table_name_16 (country VARCHAR, start_source VARCHAR, name VARCHAR) |
SELECT MAX(wins) FROM table_22081847_1 | What was the maximum number of wins? | CREATE TABLE table_22081847_1 (wins INTEGER) |
SELECT type FROM table_name_29 WHERE locomotive_number = "ctn 1364" | What type is locomotive CTN 1364? | CREATE TABLE table_name_29 (type VARCHAR, locomotive_number VARCHAR) |
SELECT score FROM table_name_52 WHERE player = "john mahaffey" | What score did John Mahaffey have? | CREATE TABLE table_name_52 (score VARCHAR, player VARCHAR) |
SELECT bleeding_time FROM table_20592988_1 WHERE condition = "Thrombocytopenia" | What is the status of bleeding time for thrombocytopenia? | CREATE TABLE table_20592988_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT venue FROM table_name_75 WHERE score = "1-3" | Name the venue for score of 1-3 | CREATE TABLE table_name_75 (venue VARCHAR, score VARCHAR) |
SELECT written_by FROM table_15584067_4 WHERE no_in_series = 47 | Name who wrote number 47 | CREATE TABLE table_15584067_4 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT score FROM table_name_64 WHERE player = "david toms" | What is Score, when Player is "David Toms"? | CREATE TABLE table_name_64 (score VARCHAR, player VARCHAR) |
SELECT away_captain FROM table_name_38 WHERE date = "30 dec, 1,2,3 jan 1911/2" | What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2? | CREATE TABLE table_name_38 (away_captain VARCHAR, date VARCHAR) |
SELECT MAX(points) FROM table_name_5 WHERE time_retired = "+49.222 secs" | Which Points have a Time/Retired of +49.222 secs? | CREATE TABLE table_name_5 (points INTEGER, time_retired VARCHAR) |
SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006 | How many cities have a stadium that was opened before the year of 2006? | CREATE TABLE stadium (city VARCHAR, opening_year INTEGER) |
SELECT height__m_ FROM table_name_19 WHERE nation = "sweden (swe)" AND weight__kg_ = "102" | what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102? | CREATE TABLE table_name_19 (height__m_ VARCHAR, nation VARCHAR, weight__kg_ VARCHAR) |
SELECT MAX(sno) FROM table_name_5 WHERE capital = "shekhsar" | What is the highest S number with a capital of Shekhsar? | CREATE TABLE table_name_5 (sno INTEGER, capital VARCHAR) |
SELECT english FROM table_15040_8 WHERE french = "cheval" | What is the English word for the French word cheval? | CREATE TABLE table_15040_8 (english VARCHAR, french VARCHAR) |
SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards" | What was the results of the 71st Academy Awards show? | CREATE TABLE table_name_66 (results VARCHAR, awards_show VARCHAR) |
SELECT baltimore_group FROM table_name_62 WHERE family = "retroviridae" | Which Baltimore group is of the retroviridae family? | CREATE TABLE table_name_62 (baltimore_group VARCHAR, family VARCHAR) |
SELECT SUM(match) FROM table_name_14 WHERE runs = 100 AND year > 1994 | Which Match has Runs of 100, and a Year larger than 1994? | CREATE TABLE table_name_14 (match INTEGER, runs VARCHAR, year VARCHAR) |
SELECT pinyin FROM table_2013618_1 WHERE foochow = "Ciá-ìng-gâing" | Name the pinyin for ciá-ìng-gâing | CREATE TABLE table_2013618_1 (pinyin VARCHAR, foochow VARCHAR) |
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval" | How large of a crowd can the Brunswick Street Oval hold? | CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR) |
SELECT score FROM table_name_89 WHERE total = "75–53" | What was the score when the total was 75–53? | CREATE TABLE table_name_89 (score VARCHAR, total VARCHAR) |
SELECT MAX(to_par) FROM table_name_54 WHERE total < 153 | What is the highest to par that is less than 153 | CREATE TABLE table_name_54 (to_par INTEGER, total INTEGER) |
SELECT margin_of_victory FROM table_name_6 WHERE winning_score = –10(70 - 72 - 68 - 68 = 278) | What was the margin of victory when the winning score was –10 (70-72-68-68=278)? | CREATE TABLE table_name_6 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT for___percentage_ FROM table_20683381_3 WHERE total_poll___percentage_ = "60,254 (58.0)" | When 60,254 (58.0) is the toll poll percentage what is the for percentage? | CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, total_poll___percentage_ VARCHAR) |
SELECT song FROM table_name_42 WHERE draw < 7 AND artist = "martin & johannes" | Name the song for draw less than 7 and artists of martin & johannes | CREATE TABLE table_name_42 (song VARCHAR, draw VARCHAR, artist VARCHAR) |
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "fitzroy" | What is the size of the biggest crowd for a game where Fitzroy was the away team? | CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) |
SELECT COUNT(lost) FROM table_name_19 WHERE pens < 51 AND tries = 3 AND start = 45 | What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts? | CREATE TABLE table_name_19 (lost VARCHAR, start VARCHAR, pens VARCHAR, tries VARCHAR) |
SELECT date_successor_seated FROM table_1134091_4 WHERE district = "California 10th" | When was the successor seated when the district was California 10th? | CREATE TABLE table_1134091_4 (date_successor_seated VARCHAR, district VARCHAR) |
SELECT spouse FROM table_name_54 WHERE father = "ferdinand i of the two sicilies" | Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies? | CREATE TABLE table_name_54 (spouse VARCHAR, father VARCHAR) |
SELECT SUM(against) FROM table_name_92 WHERE byes < 0 | Name the sum against for byes less than 0 | CREATE TABLE table_name_92 (against INTEGER, byes INTEGER) |
SELECT team FROM table_22297140_3 WHERE replaced_by = "Ebrahim Talebi" | Which team had a manager replaced by Ebrahim Talebi? | CREATE TABLE table_22297140_3 (team VARCHAR, replaced_by VARCHAR) |
SELECT country FROM table_name_32 WHERE to_par = "+2" AND player = "lee trevino" | What is the country of player lee trevino, who has a to par of +2? | CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT location FROM table_19283806_4 WHERE district = "12th" | What is the location that has the 12th district? | CREATE TABLE table_19283806_4 (location VARCHAR, district VARCHAR) |
SELECT COUNT(laps) FROM table_name_45 WHERE rider = "massimo roccoli" AND grid < 4 | What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4? | CREATE TABLE table_name_45 (laps VARCHAR, rider VARCHAR, grid VARCHAR) |
SELECT MAX(_percentage_internet_users) FROM table_name_51 WHERE _percentage_growth__2000_2008_ = 1622 | What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had? | CREATE TABLE table_name_51 (_percentage_internet_users INTEGER, _percentage_growth__2000_2008_ VARCHAR) |
SELECT result FROM table_name_43 WHERE date = "september 10, 2008" | what is the result on september 10, 2008? | CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR) |
SELECT score FROM table_name_85 WHERE competition = "2006 fifa world cup qualification" | What is the score of the 2006 Fifa World Cup Qualification? | CREATE TABLE table_name_85 (score VARCHAR, competition VARCHAR) |
SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 6 | What is the highest goals entry with drawn larger than 6 and goals against 85? | CREATE TABLE table_name_84 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR) |
SELECT score FROM table_name_81 WHERE opponent = "@ san antonio" AND date = "june 20" | What is the Score of the game @ San Antonio on June 20? | CREATE TABLE table_name_81 (score VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT gender FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "24mm" | What is the gender of the junior high school is 24mm? | CREATE TABLE table_13555999_1 (gender VARCHAR, junior_high_school__12_15_yrs_ VARCHAR) |
SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "white" | List all the product names with the color description "white". | CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR) |
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn" | On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team? | CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR) |
SELECT COUNT(round) FROM table_13328239_4 WHERE score = "16-52" | How many rounds ended with a score of 16-52? | CREATE TABLE table_13328239_4 (round VARCHAR, score VARCHAR) |
SELECT engine FROM table_name_84 WHERE year < 1983 | What is the Engine used before 1983? | CREATE TABLE table_name_84 (engine VARCHAR, year INTEGER) |
SELECT AVG(grid) FROM table_name_56 WHERE laps > 23 | What is the average grid with more than 23 laps? | CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER) |
SELECT date FROM table_name_21 WHERE week = 13 | Tell me the date with week of 13 | CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) |
SELECT dimension__m_ FROM table_name_57 WHERE range__km_ = "8,000 – 10,000" | Tell me the dimension that has a range of 8,000 – 10,000 | CREATE TABLE table_name_57 (dimension__m_ VARCHAR, range__km_ VARCHAR) |
SELECT driver FROM table_21977704_1 WHERE engine = "Talbot L6" | Name the driver for talbot l6 | CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR) |
SELECT MAX(area__sq_mi_) FROM table_name_88 WHERE county = "greenville county" | Which is the largest area in Greenville County, by square mile? | CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, county VARCHAR) |
SELECT SUM(week) FROM table_name_70 WHERE attendance = "53,147" | What the total of Week with attendance of 53,147 | CREATE TABLE table_name_70 (week INTEGER, attendance VARCHAR) |
SELECT couple FROM table_name_8 WHERE result = "safe" AND style = "lyrical jazz" | What couple had a safe result and a lyrical jazz style? | CREATE TABLE table_name_8 (couple VARCHAR, result VARCHAR, style VARCHAR) |
SELECT place FROM table_name_91 WHERE score < 70 AND country = "united states" AND player = "hubert green" | In what place did hubert green score below 70 in the united states? | CREATE TABLE table_name_91 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR) |
SELECT date FROM table_name_55 WHERE opponent = "northern ireland" | When is Northern Ireland the opponent? | CREATE TABLE table_name_55 (date VARCHAR, opponent VARCHAR) |
SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0 | What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0? | CREATE TABLE table_name_65 (season INTEGER, wins VARCHAR, podiums VARCHAR, races VARCHAR) |
SELECT d_41 FROM table_name_97 WHERE d_46 = "r 6" | Name the D 41 which has a D 46 of r 6 | CREATE TABLE table_name_97 (d_41 VARCHAR, d_46 VARCHAR) |
SELECT term_end FROM table_name_74 WHERE party = "united australia" AND term_in_office = "184 days" | What is the Term end that has a Party of united australia and 184 days in office? | CREATE TABLE table_name_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR) |
SELECT MAX(points) FROM table_name_71 WHERE laps = 70 AND grid > 16 | What are the most points Lap 70 had with a grid larger than 16? | CREATE TABLE table_name_71 (points INTEGER, laps VARCHAR, grid VARCHAR) |
SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway" | What's the city/state of Hidden Valley Raceway? | CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR) |
SELECT tries_against FROM table_name_22 WHERE tries_for = "20" | What is Tries Against, when Tries For is 20? | CREATE TABLE table_name_22 (tries_against VARCHAR, tries_for VARCHAR) |
SELECT AVG(opened) FROM table_name_62 WHERE city = "barcelona, spain" AND stadium = "mini estadi" | What is the average opened year of Mini Estadi stadium in Barcelona, Spain? | CREATE TABLE table_name_62 (opened INTEGER, city VARCHAR, stadium VARCHAR) |
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING COUNT(*) = 1 | Find the first names of students who took exactly one class. | CREATE TABLE enroll (stu_num VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry' | Find the name of physicians who are affiliated with Surgery or Psychiatry department. | CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR) |
SELECT date FROM table_name_65 WHERE team = "accrington" AND venue = "home" | What was the date of the home game against Accrington? | CREATE TABLE table_name_65 (date VARCHAR, team VARCHAR, venue VARCHAR) |
SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment) | List the names of technicians who have not been assigned to repair machines. | CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR) |
SELECT publisher, COUNT(*) FROM book_club GROUP BY publisher | Show all publishers and the number of books for each publisher. | CREATE TABLE book_club (publisher VARCHAR) |
SELECT score FROM table_name_50 WHERE loss = "kiprusoff (2–2)" | What is the Score of the game with a Loss of Kiprusoff (2–2)? | CREATE TABLE table_name_50 (score VARCHAR, loss VARCHAR) |
SELECT player FROM table_name_43 WHERE score = 71 - 72 = 143 | Which player has a score of 71-72=143? | CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR) |
SELECT finish FROM table_24122653_2 WHERE vote = "3-2" | What is the finish associated with a 3-2 vote? | CREATE TABLE table_24122653_2 (finish VARCHAR, vote VARCHAR) |
SELECT class FROM table_name_94 WHERE identifier = "cbf-fm-14" | What's the class when the identifier is cbf-fm-14? | CREATE TABLE table_name_94 (class VARCHAR, identifier VARCHAR) |
SELECT institutional_authority FROM table_name_47 WHERE launch_date = "october 12, 2004" | Name the institutional authority for launch date of october 12, 2004 | CREATE TABLE table_name_47 (institutional_authority VARCHAR, launch_date VARCHAR) |
SELECT loses FROM table_name_84 WHERE points_for < 1175 AND wins > 2 AND points_against > 894 AND points = 24 | What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points? | CREATE TABLE table_name_84 (loses VARCHAR, points VARCHAR, points_against VARCHAR, points_for VARCHAR, wins VARCHAR) |
SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21 | What is the airing date for a modern drama with more than 21 episodes? | CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR) |
SELECT COUNT(position) FROM table_name_28 WHERE team = "são paulo railway" AND against < 46 | What is the number of Position when the team was são paulo railway and the against is less than 46? | CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR, against VARCHAR) |
SELECT 2012 FROM table_name_13 WHERE 2010 = "1r" AND 2006 = "2r" | What is the 2012 value with 1r in 2010 and 2r in 2006? | CREATE TABLE table_name_13 (Id VARCHAR) |
SELECT MAX(round) FROM table_name_85 WHERE overall = 32 AND pick__number < 4 | Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4? | CREATE TABLE table_name_85 (round INTEGER, overall VARCHAR, pick__number VARCHAR) |
SELECT bulgarian_commander FROM table_name_39 WHERE battle = "battle of rusion" | What is the Bulgarian Commander of the Battle of Rusion? | CREATE TABLE table_name_39 (bulgarian_commander VARCHAR, battle VARCHAR) |
SELECT MIN(october) FROM table_name_50 WHERE record = "1–0–0" | WHich October has a Record of 1–0–0? | CREATE TABLE table_name_50 (october INTEGER, record VARCHAR) |
SELECT COUNT(viewers__millions_) FROM table_name_94 WHERE airdate = "october 10, 2008" AND channel_4_weekly_rank_a < 30 | What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30? | CREATE TABLE table_name_94 (viewers__millions_ VARCHAR, airdate VARCHAR, channel_4_weekly_rank_a VARCHAR) |
SELECT Ends AS won FROM table_25718552_2 WHERE blank_ends < 3.0 | How many ends were won where the blank ends are smaller than 3.0? | CREATE TABLE table_25718552_2 (Ends VARCHAR, blank_ends INTEGER) |
SELECT points FROM table_name_1 WHERE year > 1977 | What is the Focus that has a Year bigger than 1977? | CREATE TABLE table_name_1 (points VARCHAR, year INTEGER) |
SELECT driver FROM table_name_98 WHERE grid = 1 | What Driver has 1 in Grid? | CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR) |
SELECT qual FROM table_name_70 WHERE rank = "29" AND year = "1957" | What is the qualification for rank of 29 in 1957? | CREATE TABLE table_name_70 (qual VARCHAR, rank VARCHAR, year 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 location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas" | Which location has a method of decision and Nikos Tsoukalas for an opponent? | CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.