answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT date FROM table_name_70 WHERE loco_nos = "421-6" | On what date was the number of locomotives 421-6? | CREATE TABLE table_name_70 (date VARCHAR, loco_nos VARCHAR) |
SELECT class FROM table_name_34 WHERE year_made = "1880" | Which class was made in 1880? | CREATE TABLE table_name_34 (class VARCHAR, year_made VARCHAR) |
SELECT COUNT(cap_s_) FROM table_28286776_52 WHERE club_s_ = "Norwich City, Coventry City" | How many caps figures are there for Norwich City, Coventry City? | CREATE TABLE table_28286776_52 (cap_s_ VARCHAR, club_s_ VARCHAR) |
SELECT ch__number FROM table_24673888_1 WHERE branding = "PTV 4 Laoag" | What is the channel number that has a branding of PTV 4 Laoag? | CREATE TABLE table_24673888_1 (ch__number VARCHAR, branding VARCHAR) |
SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 | Who were the governors of the parties associated with delegates from district 1? | CREATE TABLE party (Governor VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR) |
SELECT genre FROM table_name_91 WHERE game = "god of war" | What genre has the game god of war? | CREATE TABLE table_name_91 (genre VARCHAR, game VARCHAR) |
SELECT writer_s_ FROM table_12451376_1 WHERE director = "Dean White" | Who wrote the episode when the director was dean white? | CREATE TABLE table_12451376_1 (writer_s_ VARCHAR, director VARCHAR) |
SELECT MIN(touchdowns) FROM table_14342592_8 WHERE points = 11 | Name the least touchdowns for 11 points | CREATE TABLE table_14342592_8 (touchdowns INTEGER, points VARCHAR) |
SELECT language FROM table_name_23 WHERE hdtv = "no" AND package_option = "sky famiglia" AND television_service = "national geographic channel" | What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service? | CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR) |
SELECT title FROM table_name_4 WHERE studio = "buena vista pictures" | What is the title of Buena Vista Pictures? | CREATE TABLE table_name_4 (title VARCHAR, studio VARCHAR) |
SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode | What are the codes of countries where Spanish is spoken by the largest percentage of people? | CREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR) |
SELECT MIN(position) FROM table_name_51 WHERE goal_difference = -22 AND points > 5 | What is the lowest position with a -22 goal difference and more than 5 points? | CREATE TABLE table_name_51 (position INTEGER, goal_difference VARCHAR, points VARCHAR) |
SELECT result FROM table_name_85 WHERE competition = "1999 fifa world cup qualification (uefa)" AND date = "nov 23, 1997" | What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997? | CREATE TABLE table_name_85 (result VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT MIN(1 AS st_half) FROM table_name_21 WHERE score > 621 AND rank = 35 | What is the lowest first half when the score is larger than 621 and the rank 35? | CREATE TABLE table_name_21 (score VARCHAR, rank VARCHAR) |
SELECT to_par FROM table_name_15 WHERE year_s__won = "1982" | What To par was won in 1982? | CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR) |
SELECT character FROM table_name_26 WHERE category = "best dramatic performance" | What character won the best dramatic performance award? | CREATE TABLE table_name_26 (character VARCHAR, category VARCHAR) |
SELECT COUNT(DISTINCT last_name) FROM actor | How many different last names do the actors and actresses have? | CREATE TABLE actor (last_name VARCHAR) |
SELECT title FROM table_1231892_4 WHERE broadcast_order = "S04 E01" | What's the title of the episode with a broadcast order s04 e01? | CREATE TABLE table_1231892_4 (title VARCHAR, broadcast_order VARCHAR) |
SELECT COUNT(series__number) FROM table_11630008_7 WHERE production_code = 503 | What is the number of series with production code 503? | CREATE TABLE table_11630008_7 (series__number VARCHAR, production_code VARCHAR) |
SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = "Glen Irwin" | How many nationalities are listed for the player Glen Irwin? | CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR) |
SELECT AVG(rank) FROM table_name_86 WHERE gold < 0 | What is the average rank for nations with fewer than 0 gold medals? | CREATE TABLE table_name_86 (rank INTEGER, gold INTEGER) |
SELECT type FROM table_256286_61 WHERE yes_votes = 546255 | What is the type when yes votes are 546255? | CREATE TABLE table_256286_61 (type VARCHAR, yes_votes VARCHAR) |
SELECT league FROM table_name_38 WHERE number < 122 AND record = "least wins" | What league has a number less than 122, and least wins as the record? | CREATE TABLE table_name_38 (league VARCHAR, number VARCHAR, record VARCHAR) |
SELECT score FROM table_name_55 WHERE away_team = "fulham" | What is the score when Fulham is the away team? | CREATE TABLE table_name_55 (score VARCHAR, away_team VARCHAR) |
SELECT first_elected FROM table_1341453_34 WHERE incumbent = "Ed Towns" | What's the first elected year of the district that Ed Towns is an incumbent of? | CREATE TABLE table_1341453_34 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT title FROM table_name_27 WHERE label = "columbia" AND standard_number = "codc-8760" | What Title has the Label of Columbia and Standard number of CODC-8760? | CREATE TABLE table_name_27 (title VARCHAR, label VARCHAR, standard_number VARCHAR) |
SELECT MIN(wins) FROM table_name_19 WHERE position < 20 AND goals_for = 35 AND goal_difference < -20 | Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35 | CREATE TABLE table_name_19 (wins INTEGER, goal_difference VARCHAR, position VARCHAR, goals_for VARCHAR) |
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park" | What was the largest crowd at vfl park? | CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR) |
SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | List the most common type of artworks. | CREATE TABLE artwork (TYPE VARCHAR) |
SELECT COUNT(original_airdate) FROM table_17467578_1 WHERE episode__number = 8 | What is the original air date of episode 8? Answer: Dec. 21, 2006 | CREATE TABLE table_17467578_1 (original_airdate VARCHAR, episode__number VARCHAR) |
SELECT points_for FROM table_name_7 WHERE try_diff = "+23" | What is points when try diff is +23? | CREATE TABLE table_name_7 (points_for VARCHAR, try_diff VARCHAR) |
SELECT date FROM table_name_78 WHERE venue = "lord's" | Name the date for venue of lord's | CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR) |
SELECT AVG(debut) FROM table_name_33 WHERE player = "radoslava topalova" AND years_played < 2 | what is the debut when the play er is radoslava topalova and the years played is less than 2? | CREATE TABLE table_name_33 (debut INTEGER, player VARCHAR, years_played VARCHAR) |
SELECT COUNT(draws) FROM table_2985714_2 WHERE tournament = "Jordan FA Cup" | When jordan fa cup is the tournament how many draws? | CREATE TABLE table_2985714_2 (draws VARCHAR, tournament VARCHAR) |
SELECT MAX(runner_up) FROM table_28457809_3 WHERE province = "Alberta" | What is the value of the runner up column for the Alberta province? | CREATE TABLE table_28457809_3 (runner_up INTEGER, province VARCHAR) |
SELECT 10 AS _rebounds FROM table_25696729_8 WHERE season = "1991–92" | List all rebounds equal to 10 for Dennis Rodman 's 1991–92 season | CREATE TABLE table_25696729_8 (season VARCHAR) |
SELECT opponent FROM table_name_65 WHERE season = "2001/02" | Which opponent played in 2001/02? | CREATE TABLE table_name_65 (opponent VARCHAR, season VARCHAR) |
SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4 | What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze? | CREATE TABLE table_name_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR) |
SELECT socket FROM table_24101118_1 WHERE brand_name = "Core 2 Extreme" | what is the socket that has a brand name of core 2 extreme? | CREATE TABLE table_24101118_1 (socket VARCHAR, brand_name VARCHAR) |
SELECT team FROM table_24466191_1 WHERE season = 2010 | Name the team for season 2010 | CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR) |
SELECT hindu FROM table_name_4 WHERE ethnic_group = "white irish" | Tell me the Hindu for ethnic group for white irish | CREATE TABLE table_name_4 (hindu VARCHAR, ethnic_group VARCHAR) |
SELECT nation FROM table_name_39 WHERE sport = "shooting" AND total = 7 AND years = "1920" | What nation scored 7 in shooting in 1920? | CREATE TABLE table_name_39 (nation VARCHAR, years VARCHAR, sport VARCHAR, total VARCHAR) |
SELECT SUM(pick) FROM table_name_12 WHERE team = "kansas city royals" | What is the pick number for the kansas city royals? | CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR) |
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004" | What is the average Attendance at Venue A on 16 October 2004? | CREATE TABLE table_name_57 (attendance INTEGER, venue VARCHAR, date VARCHAR) |
SELECT name FROM table_name_99 WHERE points > 14 AND drawn < 1 | Which name has more than 14 points with less than 1 draw? | CREATE TABLE table_name_99 (name VARCHAR, points VARCHAR, drawn VARCHAR) |
SELECT date FROM table_name_14 WHERE game_site = "joe robbie stadium" | What was the date of the game at Joe Robbie Stadium? | CREATE TABLE table_name_14 (date VARCHAR, game_site VARCHAR) |
SELECT SUM(pick__number) FROM table_name_27 WHERE name = "anthony maddox" | What is the sum of the Pick # Anthony Maddox? | CREATE TABLE table_name_27 (pick__number INTEGER, name VARCHAR) |
SELECT athlete FROM table_name_45 WHERE wind = "1.8" | Who was the athlete with a wind of 1.8? | CREATE TABLE table_name_45 (athlete VARCHAR, wind VARCHAR) |
SELECT finished FROM table_name_54 WHERE exited = "day 3" | What place did the person who left on day 3 finish in? | CREATE TABLE table_name_54 (finished VARCHAR, exited VARCHAR) |
SELECT director FROM table_25800134_1 WHERE airdate = "December 15, 1956" | Who directed the episodes that aired December 15, 1956? | CREATE TABLE table_25800134_1 (director VARCHAR, airdate VARCHAR) |
SELECT grid FROM table_name_84 WHERE team = "racing professionals" | What grid did the team racing professionals race on? | CREATE TABLE table_name_84 (grid VARCHAR, team VARCHAR) |
SELECT 1986 FROM table_name_99 WHERE 1978 = "a" AND 1979 = "a" AND 1980 = "1r" | What is 1986, when 1978 is "A", when 1979 is "A", and when 1980 is "1R"? | CREATE TABLE table_name_99 (Id VARCHAR) |
SELECT unit FROM table_name_16 WHERE status = "nomen oblitum" | What shows for Unit with a status of nomen oblitum? | CREATE TABLE table_name_16 (unit VARCHAR, status VARCHAR) |
SELECT inclination FROM table_name_9 WHERE mass = "≥ 6.6 +1.1 −1.0 m⊕" | What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕? | CREATE TABLE table_name_9 (inclination VARCHAR, mass VARCHAR) |
SELECT genus_ & _species FROM table_26957063_3 WHERE ncbi_accession_number = "XP_002439156.1" | What is the genus & species of the animal whose accession number is XP_002439156.1? | CREATE TABLE table_26957063_3 (genus_ VARCHAR, _species VARCHAR, ncbi_accession_number VARCHAR) |
SELECT SUM(laps) FROM table_name_29 WHERE driver = "innes ireland" AND grid > 11 | How many laps did innes ireland drive with a grid higher than 11? | CREATE TABLE table_name_29 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT release_date FROM table_18590048_1 WHERE units_sold__in_millions_ = "9.87" | What day did the platform sell 9.87 million units? | CREATE TABLE table_18590048_1 (release_date VARCHAR, units_sold__in_millions_ VARCHAR) |
SELECT class FROM table_name_85 WHERE laps < 71 AND team = "liqui moly equipe" | What is the class of team liqui moly equipe, which has less than 71 laps? | CREATE TABLE table_name_85 (class VARCHAR, laps VARCHAR, team VARCHAR) |
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 | Find the physicians who are trained in a procedure that costs more than 5000. | CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER) |
SELECT birthdate FROM table_name_54 WHERE birthplace = "melrose, massachusetts" | On what date was the player from Melrose, Massachusetts born? | CREATE TABLE table_name_54 (birthdate VARCHAR, birthplace VARCHAR) |
SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%" | What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%? | CREATE TABLE table_name_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) |
SELECT attendance FROM table_name_93 WHERE opponent = "new orleans saints" | What was the attendance when they played the New Orleans Saints? | CREATE TABLE table_name_93 (attendance VARCHAR, opponent VARCHAR) |
SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs" | What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs? | CREATE TABLE table_name_30 (crowd INTEGER, ground VARCHAR, home_team VARCHAR) |
SELECT lost FROM table_name_65 WHERE losing_bp = "5" AND try_bp = "0" | Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0? | CREATE TABLE table_name_65 (lost VARCHAR, losing_bp VARCHAR, try_bp VARCHAR) |
SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345" | What is the Number of Households that have a Per Capita Income of $21,345? | CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR) |
SELECT MAX(top_division_titles) FROM table_name_13 WHERE position_in_2012 = "10th" | What is the largest number of top division titles with a 2012 position of 10th? | CREATE TABLE table_name_13 (top_division_titles INTEGER, position_in_2012 VARCHAR) |
SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 3 | How many innings does rank 3 have? | CREATE TABLE table_21100348_11 (innings INTEGER, rank VARCHAR) |
SELECT COUNT(year) FROM table_name_19 WHERE llws = "4th place" AND city = "westport" | What is the total number of Years when the LLWS is 4th place, and when the City is Westport? | CREATE TABLE table_name_19 (year VARCHAR, llws VARCHAR, city VARCHAR) |
SELECT MAX(pick__number) FROM table_name_86 WHERE name = "lawrence sidbury" AND round < 4 | Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? | CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) |
SELECT SUM(pick__number) FROM table_name_40 WHERE player = "kenny arena" | Tell me the sum of pick number for kenny arena | CREATE TABLE table_name_40 (pick__number INTEGER, player VARCHAR) |
SELECT COUNT(rank) FROM table_name_89 WHERE time = "6:30.53" | What is the rank of the time of 6:30.53? | CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR) |
SELECT location FROM table_name_15 WHERE fatalities = "25/25" | What location had 25/25 fatalities? | CREATE TABLE table_name_15 (location VARCHAR, fatalities VARCHAR) |
SELECT date_of_replacement FROM table_name_98 WHERE date_outgoing = "august 20, 2008" | When did the manager take over for the manager that left on August 20, 2008? | CREATE TABLE table_name_98 (date_of_replacement VARCHAR, date_outgoing VARCHAR) |
SELECT parish FROM table_16226584_1 WHERE length_meters = "51.8" | Which parishes have a railroad length of 51.8 meters? | CREATE TABLE table_16226584_1 (parish VARCHAR, length_meters VARCHAR) |
SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5 | How many dates have a Match number of 5? | CREATE TABLE table_17103566_1 (date VARCHAR, match_number VARCHAR) |
SELECT COUNT(avg_g) FROM table_name_81 WHERE gain < 1571 AND long < 46 | How much Avg/G has a Gain smaller than 1571, and a Long smaller than 46? | CREATE TABLE table_name_81 (avg_g VARCHAR, gain VARCHAR, long VARCHAR) |
SELECT MIN(points) FROM table_name_41 WHERE chassis = "forti fg01b forti fg03" AND year < 1996 | What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996? | CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR) |
SELECT mission FROM table_14118521_1 WHERE primary_payload_s_ = "Spacelab Life Sciences-2" | what's the mission with primary payload(s) being spacelab life sciences-2 | CREATE TABLE table_14118521_1 (mission VARCHAR, primary_payload_s_ VARCHAR) |
SELECT COUNT(wins) FROM table_name_4 WHERE avg_start < 25 | How many wins for average start less than 25? | CREATE TABLE table_name_4 (wins VARCHAR, avg_start INTEGER) |
SELECT airport FROM table_name_30 WHERE city = "new york" | What is the Airport for New York City? | CREATE TABLE table_name_30 (airport VARCHAR, city VARCHAR) |
SELECT nation FROM table_name_58 WHERE total < 11 AND silver < 1 AND bronze < 1 | What nation has a total less than 11, more than 1 silver and less than 1 bronze? | CREATE TABLE table_name_58 (nation VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR) |
SELECT televotes FROM table_name_74 WHERE draw = 1 | What are televotes for 1 draw? | CREATE TABLE table_name_74 (televotes VARCHAR, draw VARCHAR) |
SELECT SUM(points) FROM table_name_85 WHERE faults = "refusal" AND rider = "h.r.h. prince abdullah al-soud" | What is the total points when there is a refusal fault and the rider is H.R.H. Prince Abdullah Al-Soud? | CREATE TABLE table_name_85 (points INTEGER, faults VARCHAR, rider VARCHAR) |
SELECT MAX(wkts) FROM table_name_21 WHERE runs < 26 AND player = "james hopes" AND ovrs > 2 | What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs? | CREATE TABLE table_name_21 (wkts INTEGER, ovrs VARCHAR, runs VARCHAR, player VARCHAR) |
SELECT partner FROM table_name_10 WHERE score_in_the_final = "2–6, 7–6, 7–6" | Who is the partner in the final with a score of 2–6, 7–6, 7–6? | CREATE TABLE table_name_10 (partner VARCHAR, score_in_the_final VARCHAR) |
SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769 | How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769? | CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR) |
SELECT round FROM table_name_50 WHERE opponent = "hereford united" | What round has hereford united as the opponent? | CREATE TABLE table_name_50 (round VARCHAR, opponent VARCHAR) |
SELECT home_team FROM table_name_62 WHERE venue = "princes park" | What home team plays at Princes Park? | CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR) |
SELECT season FROM table_name_64 WHERE runner_up = "tournament in progress" | During which Season was the tournament in progress? | CREATE TABLE table_name_64 (season VARCHAR, runner_up VARCHAR) |
SELECT rank FROM table_name_68 WHERE qual = "145.144" | Which Rank has a Qual of 145.144? | CREATE TABLE table_name_68 (rank VARCHAR, qual VARCHAR) |
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "goverdhan" | What Reserved for (SC / ST /None) with a Name of goverdhan? | CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) |
SELECT corporate_name FROM table_28367242_1 WHERE incorporation_date__city_ = "October 15, 1955" | What is the name of the corporation that incorporated on october 15, 1955? | CREATE TABLE table_28367242_1 (corporate_name VARCHAR, incorporation_date__city_ VARCHAR) |
SELECT time FROM table_21578303_2 WHERE time__eet_ = "10:46" | What is the time when time is 10:46? | CREATE TABLE table_21578303_2 (time VARCHAR, time__eet_ VARCHAR) |
SELECT COUNT(winner) FROM table_2534387_11 WHERE event__number = 5 | If the event number is 5, what is the winner total number? | CREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR) |
SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england" | Name the total number of Round in liverpool , england? | CREATE TABLE table_name_73 (round VARCHAR, location VARCHAR) |
SELECT frequency FROM table_name_97 WHERE launched = "21 august 1994" | What is the frequency of the station that was launched on 21 August 1994? | CREATE TABLE table_name_97 (frequency VARCHAR, launched VARCHAR) |
SELECT position FROM table_14342367_11 WHERE player = "Joe Maddock" | What position did Joe Maddock play? | CREATE TABLE table_14342367_11 (position VARCHAR, player VARCHAR) |
SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = "1902-05" | How many types of valves were used on this engine that was built on 1902-05? | CREATE TABLE table_25695027_1 (valves VARCHAR, years_built VARCHAR) |
SELECT condition FROM table_name_4 WHERE partial_thromboplastin_time = "unaffected" AND prothrombin_time = "unaffected" AND platelet_count = "decreased" | Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased | CREATE TABLE table_name_4 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR) |
SELECT year FROM table_name_9 WHERE score = "8-5" | What year saw a score of 8-5? | CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.