answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT time_retired FROM table_name_29 WHERE driver = "jean alesi" | What is the value of time/retired for Jean Alesi? | CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR) |
SELECT owner FROM table_name_81 WHERE format = "classical" | Tell me the owner for classical | CREATE TABLE table_name_81 (owner VARCHAR, format VARCHAR) |
SELECT museum_id, name FROM museum ORDER BY num_of_staff DESC LIMIT 1 | Find the id and name of the museum that has the most staff members? | CREATE TABLE museum (museum_id VARCHAR, name VARCHAR, num_of_staff VARCHAR) |
SELECT MIN(games) FROM table_name_48 WHERE rank < 1 | What is the lowest number of games with a rank less than 1? | CREATE TABLE table_name_48 (games INTEGER, rank INTEGER) |
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | Which vocal type has the band mate with first name "Marianne" played the most? | CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) |
SELECT date FROM table_name_88 WHERE opponent_number = "michigan" | On what day(s) did the Gophers play against Michigan? | CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR) |
SELECT method FROM table_name_41 WHERE event = "hardcore championship fighting: destiny" | What method of resolution was the fight that took place at hardcore championship fighting: destiny? | CREATE TABLE table_name_41 (method VARCHAR, event VARCHAR) |
SELECT week FROM table_name_35 WHERE attendance = "63,447" | Which Week has an Attendance of 63,447? | CREATE TABLE table_name_35 (week VARCHAR, attendance VARCHAR) |
SELECT COUNT(no) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)" | How many numbers correspond to the score in the final of 6–3, 6–4, 7–6 (13–11)? | CREATE TABLE table_26202940_6 (no VARCHAR, score_in_the_final VARCHAR) |
SELECT MAX(draws) FROM table_name_29 WHERE points = "20-18" AND wins < 4 | What was the biggest draws, for wins under 4, and points of 20-18? | CREATE TABLE table_name_29 (draws INTEGER, points VARCHAR, wins VARCHAR) |
SELECT recipient FROM table_name_69 WHERE year = 1976 | Name the recipientof the year for 1976 | CREATE TABLE table_name_69 (recipient VARCHAR, year VARCHAR) |
SELECT womens_doubles FROM table_12194021_1 WHERE womens_singles = "Trupti Murgunde" | How many titles did Trupti Murgunde claim? | CREATE TABLE table_12194021_1 (womens_doubles VARCHAR, womens_singles VARCHAR) |
SELECT grand_prix FROM table_name_82 WHERE round = 9 | Which Grand Prix had 9 rounds? | CREATE TABLE table_name_82 (grand_prix VARCHAR, round VARCHAR) |
SELECT district FROM table_1341672_10 WHERE incumbent = "Richard Kelly" | what is the district where the incumbent is richard kelly? | CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR) |
SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07" | which players have a height of 2.07m? | CREATE TABLE table_23670057_5 (player VARCHAR, height__m_ VARCHAR) |
SELECT status FROM table_name_61 WHERE name = "de la red" | What shows as the status for the name of de la red? | CREATE TABLE table_name_61 (status VARCHAR, name VARCHAR) |
SELECT er FROM table_15700367_6 WHERE runs_conceded = 368 | What was the ER average for the player that conceded 368 runs? | CREATE TABLE table_15700367_6 (er VARCHAR, runs_conceded VARCHAR) |
SELECT SUM(laps) FROM table_name_5 WHERE time_retired = "+2 laps" AND grid > 18 | What is the total number of laps where time/retired is +2 laps and the grid number is bigger than 18? | CREATE TABLE table_name_5 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) |
SELECT MAX(area__km²_) FROM table_298550_1 WHERE capital = "San Juan" | What is the highest value of area when capital is San Juan? | CREATE TABLE table_298550_1 (area__km²_ INTEGER, capital VARCHAR) |
SELECT home FROM table_name_22 WHERE visitor = "toronto" | What was the home team when the visiting team was Toronto? | CREATE TABLE table_name_22 (home VARCHAR, visitor VARCHAR) |
SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "chervil" | What is the color code and description of the product named "chervil"? | CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR) |
SELECT cost_per_capita FROM table_12340907_1 WHERE municipality = "Courtenay" | What is the cost per capita in the Courtenay municipality? | CREATE TABLE table_12340907_1 (cost_per_capita VARCHAR, municipality VARCHAR) |
SELECT score FROM table_name_88 WHERE date = "22 january 2008" | What is the score on 22 january 2008? | CREATE TABLE table_name_88 (score VARCHAR, date VARCHAR) |
SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects) | Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it. | CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER); CREATE TABLE projects (hours INTEGER) |
SELECT engine FROM table_name_85 WHERE entrant = "scuderia ambrosiana" AND points < 4 | What engine did Scuderia Ambrosiana with fewer than 4 points have? | CREATE TABLE table_name_85 (engine VARCHAR, entrant VARCHAR, points VARCHAR) |
SELECT AVG(spike) FROM table_name_67 WHERE name = "gustavo porporatto" AND block > 323 | What is the average Spike, when Name is Gustavo Porporatto, and when Block is greater than 323? | CREATE TABLE table_name_67 (spike INTEGER, name VARCHAR, block VARCHAR) |
SELECT COUNT(candidates) FROM table_1341577_43 WHERE incumbent = "Bob Clement" | How many candidates are listed all together for the incumbent named bob clement? | CREATE TABLE table_1341577_43 (candidates VARCHAR, incumbent VARCHAR) |
SELECT opponent FROM table_name_10 WHERE game = 30 | Who was the opponent for game 30? | CREATE TABLE table_name_10 (opponent VARCHAR, game VARCHAR) |
SELECT venue FROM table_name_64 WHERE result = "draw" | Where was the game held that resulted in a draw? | CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR) |
SELECT us_viewers__millions_ FROM table_26826304_1 WHERE directed_by = "Gordon C. Lonsdale" | How many were the US viewers (in millions) of the episode that was written by Gordon C. Lonsdale? | CREATE TABLE table_26826304_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) |
SELECT COUNT(urban), __percentage FROM table_16645_1 WHERE population__000_ = 14685 | How many percentage figures are given for the urban population when the total population number is 14685? | CREATE TABLE table_16645_1 (__percentage VARCHAR, urban VARCHAR, population__000_ VARCHAR) |
SELECT try_bonus FROM table_name_56 WHERE points_for = "608" | What was the try bonus when the points for was 608? | CREATE TABLE table_name_56 (try_bonus VARCHAR, points_for VARCHAR) |
SELECT dates FROM table_22282917_26 WHERE control_site_condition_owner = "machine shop on Martin Dr." | When is every date that control site condition or owner is machine shop on Martin Dr.? | CREATE TABLE table_22282917_26 (dates VARCHAR, control_site_condition_owner VARCHAR) |
SELECT MIN(date) FROM table_name_74 WHERE other_details = "1000 copies" | What's the date for Details of 1000 copies? | CREATE TABLE table_name_74 (date INTEGER, other_details VARCHAR) |
SELECT japanese FROM table_name_98 WHERE number = 3 | What is the Japanese name of the station with a number 3? | CREATE TABLE table_name_98 (japanese VARCHAR, number VARCHAR) |
SELECT webcast FROM table_name_91 WHERE callsign = "kgbt" | Which Webcast has a Callsign of kgbt? | CREATE TABLE table_name_91 (webcast VARCHAR, callsign VARCHAR) |
SELECT losing_bonus FROM table_name_53 WHERE drawn = "0" AND points = "101" | What is the losing bonus when drawn was 0, and there were 101 points? | CREATE TABLE table_name_53 (losing_bonus VARCHAR, drawn VARCHAR, points VARCHAR) |
SELECT MAX(rank) FROM table_name_72 WHERE sport = "boys swimming" AND city = "albuquerque" | What is the highest rank for the boys swimming team in Albuquerque? | CREATE TABLE table_name_72 (rank INTEGER, sport VARCHAR, city VARCHAR) |
SELECT nationality FROM table_name_85 WHERE position = "guard" AND school_country = "ucla" | What nationality is the guard from ucla? | CREATE TABLE table_name_85 (nationality VARCHAR, position VARCHAR, school_country VARCHAR) |
SELECT laps FROM table_name_53 WHERE grid = 8 | How many laps are there for grid 8? | CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR) |
SELECT player FROM table_name_17 WHERE place = "t5" AND score = 72 - 71 - 73 - 78 = 294 | Which player placed in t5 and had a score of 72-71-73-78=294? | CREATE TABLE table_name_17 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 16 | Which season with 16 races had less than 321 points and a larger percent than 65.78 possible? | CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR) |
SELECT rank FROM table_name_16 WHERE date = "september 9, 2004" | Which Rank that is on september 9, 2004? | CREATE TABLE table_name_16 (rank VARCHAR, date VARCHAR) |
SELECT bullet_weight FROM table_name_98 WHERE max_pressure = "12,000 cup" | What is the bullet weight with a 12,000 cup max pressure? | CREATE TABLE table_name_98 (bullet_weight VARCHAR, max_pressure VARCHAR) |
SELECT AVG(bronze) FROM table_name_97 WHERE gold < 16 AND rank = "10" AND nation = "italy" | Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy? | CREATE TABLE table_name_97 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) |
SELECT score FROM table_name_72 WHERE year = "2004" | What was the score in the year 2004? | CREATE TABLE table_name_72 (score VARCHAR, year VARCHAR) |
SELECT AVG(age), MIN(age), MAX(age) FROM singer WHERE country = 'France' | What is the average, minimum, and maximum age of all singers from France? | CREATE TABLE singer (age INTEGER, country VARCHAR) |
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "alabama" AND pick > 43 | Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43? | CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) |
SELECT AVG(year) FROM table_name_30 WHERE wins < 1 AND team = "yamaha" AND points > 2 | What is the average year that has a win less than 1, yamaha as the team, with points greater than 2? | CREATE TABLE table_name_30 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR) |
SELECT MIN(bronze) FROM table_name_56 WHERE nation = "egypt (egy)" AND gold < 2 | What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2? | CREATE TABLE table_name_56 (bronze INTEGER, nation VARCHAR, gold VARCHAR) |
SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta" | What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta? | CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR) |
SELECT MAX(january) FROM table_27539272_7 WHERE record = "15-29-3" | On what day in January was the record 15-29-3? | CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR) |
SELECT league FROM table_name_63 WHERE home = "1-1" | WHAT IS THE LEAGUE WITH HOME 1-1? | CREATE TABLE table_name_63 (league VARCHAR, home VARCHAR) |
SELECT label FROM table_name_57 WHERE date = "1987" | What is Label, when Date is 1987? | CREATE TABLE table_name_57 (label VARCHAR, date VARCHAR) |
SELECT county FROM table_1447085_1 WHERE number_of_households = 2053 | What county has 2053 households? | CREATE TABLE table_1447085_1 (county VARCHAR, number_of_households VARCHAR) |
SELECT transfer_window FROM table_name_12 WHERE moving_to = "realmadrid" | Name the transfer window of realmadrid | CREATE TABLE table_name_12 (transfer_window VARCHAR, moving_to VARCHAR) |
SELECT driver FROM table_20159025_1 WHERE no = "2‡" | Which driver was number 2‡? | CREATE TABLE table_20159025_1 (driver VARCHAR, no VARCHAR) |
SELECT third_place FROM table_name_34 WHERE tournament = "zurich" | Who won third place in the Zurich Tournament? | CREATE TABLE table_name_34 (third_place VARCHAR, tournament VARCHAR) |
SELECT COUNT(goals_for) FROM table_name_25 WHERE played < 38 | What is the total number of goals that has been played less than 38 times? | CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER) |
SELECT COUNT(capacity) FROM table_25129482_1 WHERE club = "FF Jaro" | How many capacities are given for FF Jaro club? | CREATE TABLE table_25129482_1 (capacity VARCHAR, club VARCHAR) |
SELECT date_successor_seated FROM table_2147588_4 WHERE successor = "John W. Leftwich (UU)" | When john w. leftwich (uu) is the successor what is the date the successor was seated? | CREATE TABLE table_2147588_4 (date_successor_seated VARCHAR, successor VARCHAR) |
SELECT title FROM table_20360535_3 WHERE television_order = "S02E01" | What is the title of S02E01? | CREATE TABLE table_20360535_3 (title VARCHAR, television_order VARCHAR) |
SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = "Liverpool" | Who played against team 1 Liverpool? | CREATE TABLE table_17282875_2 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT college FROM table_name_60 WHERE overall < 344 AND name = "jerry hackenbruck" | What college did jerry hackenbruck come from who had an overall pick less than 344? | CREATE TABLE table_name_60 (college VARCHAR, overall VARCHAR, name VARCHAR) |
SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = "18.15" | What's the title of the episode first seen by 18.15 million people in the US? | CREATE TABLE table_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT AVG(top_10) FROM table_name_48 WHERE cuts_made < 9 AND events > 14 | what is the average top-10 when the cuts made is less than 9 and the events is more than 14? | CREATE TABLE table_name_48 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR) |
SELECT ryuji_hijikata FROM table_name_39 WHERE taka_michinoku = "hayashi (28:05)" | Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05) | CREATE TABLE table_name_39 (ryuji_hijikata VARCHAR, taka_michinoku VARCHAR) |
SELECT declination___j2000__ FROM table_name_77 WHERE constellation = "hydra" AND right_ascension___j2000__ = "10h46m44.9s" | what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s? | CREATE TABLE table_name_77 (declination___j2000__ VARCHAR, constellation VARCHAR, right_ascension___j2000__ VARCHAR) |
SELECT date FROM table_name_20 WHERE home_team = "footscray" | What day did Footscray play as the home team? | CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) |
SELECT score FROM table_name_70 WHERE type = "international friendly" AND date = "17 august 2013" | Tell me the score for international friendly 17 august 2013 | CREATE TABLE table_name_70 (score VARCHAR, type VARCHAR, date VARCHAR) |
SELECT SUM(heat) FROM table_name_46 WHERE rank > 7 | What is the total heat ranked higher than 7? | CREATE TABLE table_name_46 (heat INTEGER, rank INTEGER) |
SELECT score FROM table_name_70 WHERE attendance = "23,493" | What was the score when the Rangers' attendance was 23,493? | CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR) |
SELECT opponent FROM table_name_99 WHERE type_of_game = "1990 wcq" AND results¹ = "0:0" | Which opponent played a 1990 wcq type of game, where the results were 0:0? | CREATE TABLE table_name_99 (opponent VARCHAR, type_of_game VARCHAR, results¹ VARCHAR) |
SELECT MIN(erp_w) FROM table_name_21 WHERE frequency_mhz < 103.1 | Name the lowest ERP W with a frequency mhz less than 103.1 | CREATE TABLE table_name_21 (erp_w INTEGER, frequency_mhz INTEGER) |
SELECT place FROM table_name_14 WHERE player = "anders forsbrand" | What is Anders Forsbrand's Place? | CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR) |
SELECT away_team AS score FROM table_name_42 WHERE venue = "victoria park" | What is the away team score at victoria park? | CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(season) FROM table_name_58 WHERE viewer_rank___number_ = "#4" | What season had a viewer rank of #4? | CREATE TABLE table_name_58 (season VARCHAR, viewer_rank___number_ VARCHAR) |
SELECT lname FROM authors ORDER BY lname | Retrieve all the last names of authors in alphabetical order. | CREATE TABLE authors (lname VARCHAR) |
SELECT primary_user FROM table_26389588_1 WHERE country_of_origin = "South Africa" | If the country of Origin is South Africa, who is the primary user? | CREATE TABLE table_26389588_1 (primary_user VARCHAR, country_of_origin VARCHAR) |
SELECT score FROM table_11960407_2 WHERE team = "@ Cleveland" | What was the result of the game when the raptors played @ cleveland? | CREATE TABLE table_11960407_2 (score VARCHAR, team VARCHAR) |
SELECT COUNT(gold) FROM table_name_40 WHERE rank = "7" AND nation = "italy" AND silver < 0 | Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, rank VARCHAR, nation VARCHAR) |
SELECT result FROM table_name_21 WHERE attendance = "54,418" | What is the result when there was an attendance of 54,418? | CREATE TABLE table_name_21 (result VARCHAR, attendance VARCHAR) |
SELECT MAX(wins) FROM table_name_31 WHERE draws > 0 | What is the most wins for draws greater than 0? | CREATE TABLE table_name_31 (wins INTEGER, draws INTEGER) |
SELECT result FROM table_name_46 WHERE week = 4 | Tell me the result for week of 4 | CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR) |
SELECT location FROM table_14884844_2 WHERE athletes = "Birgit Fischer" | What are all the places where Birgit Fischer competed? | CREATE TABLE table_14884844_2 (location VARCHAR, athletes VARCHAR) |
SELECT AVG(1970) FROM table_name_12 WHERE region = "east europe (7 economies)" AND 2000 > 2 | What is the average value for 1970, when the Region is East Europe (7 Economies), and when 2000 has a value greater than 2? | CREATE TABLE table_name_12 (region VARCHAR) |
SELECT district FROM table_19753079_41 WHERE first_elected = 1994 | When 1994 is the first elected what is the district? | CREATE TABLE table_19753079_41 (district VARCHAR, first_elected VARCHAR) |
SELECT player FROM table_name_29 WHERE to_par = "+2" | What player has +2 to par? | CREATE TABLE table_name_29 (player VARCHAR, to_par VARCHAR) |
SELECT code_name FROM table_name_12 WHERE api_level = 3 | with api level 3, what is the code name? | CREATE TABLE table_name_12 (code_name VARCHAR, api_level VARCHAR) |
SELECT illustration FROM table_name_76 WHERE design = "tim nokes" AND first_day_cover_cancellation = "calgary, alberta" | What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta? | CREATE TABLE table_name_76 (illustration VARCHAR, design VARCHAR, first_day_cover_cancellation VARCHAR) |
SELECT venue FROM table_name_6 WHERE away_team = "footscray" | Which Venue has an Away team of footscray? | CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) |
SELECT team FROM table_name_90 WHERE game = 77 | What is Team, when Game is 77? | CREATE TABLE table_name_90 (team VARCHAR, game VARCHAR) |
SELECT couple FROM table_25391981_3 WHERE average = "15.5" | What couple averaged 15.5? | CREATE TABLE table_25391981_3 (couple VARCHAR, average VARCHAR) |
SELECT COUNT(runner_up) FROM table_18828487_1 WHERE year = 2009 | In 2009, how many were runner-up? | CREATE TABLE table_18828487_1 (runner_up VARCHAR, year VARCHAR) |
SELECT MAX(played) FROM table_name_97 WHERE team = "fluminense" | What is the highest amount of plays for fluminense? | CREATE TABLE table_name_97 (played INTEGER, team VARCHAR) |
SELECT u15_1st_quad FROM table_name_37 WHERE open_3rd_viii = "bbc" AND u16_3rd_viii = "bbc" | Which U15 1st Quad had an Open 3rd VIII of BBC and U16 3rd VIII of BBC? | CREATE TABLE table_name_37 (u15_1st_quad VARCHAR, open_3rd_viii VARCHAR, u16_3rd_viii VARCHAR) |
SELECT artist FROM table_name_48 WHERE date = "june 1979" | What is the Artist with a Date that is june 1979? | CREATE TABLE table_name_48 (artist VARCHAR, date VARCHAR) |
SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1 | Which project made the most number of outcomes? List the project details and the project id. | CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) |
SELECT initial_syllable_open_semi_open_unstressed_vowels FROM table_name_15 WHERE australian = "ə" | What is Initial-Syllable Open/Semi-Open Unstresses Vowels, when Australian is "ə"? | CREATE TABLE table_name_15 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR, australian VARCHAR) |
SELECT to_par FROM table_name_26 WHERE score = 67 - 71 = 138 | What was the To par for the player whose final score was 67-71=138? | CREATE TABLE table_name_26 (to_par VARCHAR, score VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.