answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18 | How many goals were scored when they had over 28 points and played over 18 games? | CREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR) |
SELECT club FROM table_name_95 WHERE league_division = "fourth division" | What club has a league/division of fourth division? | CREATE TABLE table_name_95 (club VARCHAR, league_division VARCHAR) |
SELECT COUNT(poles) FROM table_name_20 WHERE starts = 4 AND position = "46th" | How many poles have 4 Starts of 4 and position of 46th? | CREATE TABLE table_name_20 (poles VARCHAR, starts VARCHAR, position VARCHAR) |
SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = "de la salle" | How many total players came from the school/club team of De La Salle? | CREATE TABLE table_name_62 (number VARCHAR, school_club_team VARCHAR) |
SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50 | What are the wines that have prices lower than 50 and have appelations in Monterey county? | CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR, price VARCHAR) |
SELECT date FROM table_name_70 WHERE region = "japan" | What is the date with a Japan region? | CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR) |
SELECT venue FROM table_name_81 WHERE winner = "atlanta hawks (11)" | What venue was the game played in when the winner was the atlanta hawks (11)? | CREATE TABLE table_name_81 (venue VARCHAR, winner VARCHAR) |
SELECT SUM(overall) FROM table_name_76 WHERE college = "florida state" AND round > 2 | Which Overall has a College of florida state, and a Round larger than 2? | CREATE TABLE table_name_76 (overall INTEGER, college VARCHAR, round VARCHAR) |
SELECT new_entries_this_round FROM table_1281200_1 WHERE round = "Third round" | From the round name of third round; what would the new entries this round that would be found? | CREATE TABLE table_1281200_1 (new_entries_this_round VARCHAR, round VARCHAR) |
SELECT MIN(assists) FROM table_24850487_5 WHERE minutes = 863 | How many assists did the player who had 863 minutes have? | CREATE TABLE table_24850487_5 (assists INTEGER, minutes VARCHAR) |
SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships" | Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes? | CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR) |
SELECT title FROM table_name_99 WHERE production_code = "ad1c07" | What is the title of the episode with production code ad1c07? | CREATE TABLE table_name_99 (title VARCHAR, production_code VARCHAR) |
SELECT MAX(year) FROM table_name_96 WHERE points > 0 | Name the most year for points more than 0 | CREATE TABLE table_name_96 (year INTEGER, points INTEGER) |
SELECT battle FROM table_name_24 WHERE bulgarian_commander = "gavril radomir" | In what Battle was Bulgarian Commander of Gavril Radomir? | CREATE TABLE table_name_24 (battle VARCHAR, bulgarian_commander VARCHAR) |
SELECT gold FROM table_name_20 WHERE nation = "netherlands" | Tell me the gold for netherlands | CREATE TABLE table_name_20 (gold VARCHAR, nation VARCHAR) |
SELECT MIN(game) FROM table_27704187_11 WHERE date = "April 8" | What game number was played on april 8? | CREATE TABLE table_27704187_11 (game INTEGER, date VARCHAR) |
SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC | What are the lifespans of representatives in descending order of vote percent? | CREATE TABLE election (Representative_ID VARCHAR); CREATE TABLE representative (Lifespan VARCHAR, Representative_ID VARCHAR) |
SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix" | Who was the Constructor at the Argentine Grand Prix? | CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR) |
SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0 | what is the highest fa cup goals when flt goals is more than 0? | CREATE TABLE table_name_96 (fa_cup_goals INTEGER, flt_goals INTEGER) |
SELECT steals FROM table_name_87 WHERE rebounds = "travis watson (9)" | Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds? | CREATE TABLE table_name_87 (steals VARCHAR, rebounds VARCHAR) |
SELECT laps FROM table_name_41 WHERE driver = "jackie oliver" | How many laps did Jackie Oliver do? | CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR) |
SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros" | What year was the film Milagros submitted? | CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT written_by FROM table_17355743_1 WHERE season__number = 10 | Who wrote season 10 | CREATE TABLE table_17355743_1 (written_by VARCHAR, season__number VARCHAR) |
SELECT SUM(bronze) FROM table_name_53 WHERE gold < 1 AND silver > 1 | What is the total number of bronze when gold is less than 1 and silver is more than 1? | CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, silver VARCHAR) |
SELECT going_to FROM table_18365784_3 WHERE calling_at = "Boston, Sleaford, Nottingham Victoria" | What was the train destination when it has a calling at Boston, Sleaford, Nottingham Victoria? | CREATE TABLE table_18365784_3 (going_to VARCHAR, calling_at VARCHAR) |
SELECT time FROM table_name_29 WHERE game > 1 AND location = "comiskey park (i)" AND date = "october 9" | Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time? | CREATE TABLE table_name_29 (time VARCHAR, date VARCHAR, game VARCHAR, location VARCHAR) |
SELECT film_title_used_in_nomination FROM table_name_91 WHERE original_title = "cilvēka bērns" | What is the Film title used in nomination of Cilvēka Bērns? | CREATE TABLE table_name_91 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) |
SELECT COUNT(challenge_cup) FROM table_22683369_8 WHERE p = 7 | How many points did player 7 score in the challenge cup? | CREATE TABLE table_22683369_8 (challenge_cup VARCHAR, p VARCHAR) |
SELECT weight__kg_ FROM table_2985987_2 WHERE race = "Autumn Classic" | What is the autumn classic weight? | CREATE TABLE table_2985987_2 (weight__kg_ VARCHAR, race VARCHAR) |
SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1 | What is the most silver medals a team with 3 total medals and less than 1 bronze has? | CREATE TABLE table_name_13 (silver INTEGER, total VARCHAR, bronze VARCHAR) |
SELECT title FROM table_22347090_6 WHERE no_in_series = 41 | What is the name of episode number 41 in the series? | CREATE TABLE table_22347090_6 (title VARCHAR, no_in_series VARCHAR) |
SELECT party FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed" | what is the party where the candidates are edward boland (d) unopposed? | CREATE TABLE table_1341690_21 (party VARCHAR, candidates VARCHAR) |
SELECT candidates FROM table_1341423_20 WHERE district = "Maryland 5" | Who were the candidates in the Maryland 5 district election? | CREATE TABLE table_1341423_20 (candidates VARCHAR, district VARCHAR) |
SELECT code FROM table_290017_1 WHERE subdivision_name___ru____bgn_pcgn_ = "Grodnenskaya oblast'" | What cods have a subdivision name (RU) of Grodnenskaya Oblast'? | CREATE TABLE table_290017_1 (code VARCHAR, subdivision_name___ru____bgn_pcgn_ VARCHAR) |
SELECT city FROM Addresses ORDER BY city | List all cities of addresses in alphabetical order. | CREATE TABLE Addresses (city 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 AVG(laps) FROM table_name_51 WHERE grid = 6 | Tell me the average Laps for grid of 6 | CREATE TABLE table_name_51 (laps INTEGER, grid VARCHAR) |
SELECT MIN(nsg_nr) FROM table_26013618_1 WHERE date_established = "19961220 20.12.1996" | What Nature reserve number was established on 19961220 20.12.1996 | CREATE TABLE table_26013618_1 (nsg_nr INTEGER, date_established VARCHAR) |
SELECT iata FROM table_name_19 WHERE icao = "hlls" | What is the IATA code for the airport with an ICAO code of HLLS? | CREATE TABLE table_name_19 (iata VARCHAR, icao VARCHAR) |
SELECT location_attendance FROM table_23248910_6 WHERE team = "Cavaliers" | What location and it's attendance was the game against the cavaliers? | CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR) |
SELECT goberman FROM table_name_9 WHERE obrist = "2%" AND merkley = "34%" | Which Goberman has an Obrist of 2%, and a Merkley of 34%? | CREATE TABLE table_name_9 (goberman VARCHAR, obrist VARCHAR, merkley VARCHAR) |
SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year | Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year. | CREATE TABLE Movie (mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR) |
SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)" | How many were penanced when the number with known sentences was 71 (1600–1773)? | CREATE TABLE table_name_3 (penanced VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR) |
SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = "si måchan" | The indicative of si måchan has what as the inverse subjunctive? | CREATE TABLE table_name_8 (inverse_subjunctive VARCHAR, indicative VARCHAR) |
SELECT main_cast_seasons FROM table_12441518_1 WHERE character = "Nick Lucas" | What seasons does Nick lucas appear? | CREATE TABLE table_12441518_1 (main_cast_seasons VARCHAR, character VARCHAR) |
SELECT record FROM table_name_24 WHERE date = "august 28" | Name the record for august 28 | CREATE TABLE table_name_24 (record VARCHAR, date VARCHAR) |
SELECT season FROM table_name_19 WHERE oberliga_bayern = "spvgg bayreuth" AND oberliga_südwest = "eintracht trier" | Which Season ha spvgg bayreuth and eintracht trier? | CREATE TABLE table_name_19 (season VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR) |
SELECT seats_won FROM table_20728138_1 WHERE seats_contested = 48 | How many seats were won, when the seats contested was 48? | CREATE TABLE table_20728138_1 (seats_won VARCHAR, seats_contested VARCHAR) |
SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1 | What is the name of the patient who made the most recent appointment? | CREATE TABLE patient (name VARCHAR, ssn VARCHAR); CREATE TABLE appointment (patient VARCHAR, start VARCHAR) |
SELECT listed FROM table_name_88 WHERE built = "1896, 1914" | What is the list date of the historic place that was built 1896, 1914? | CREATE TABLE table_name_88 (listed VARCHAR, built VARCHAR) |
SELECT to_par FROM table_name_45 WHERE year_s__won = "1936" | What is the To par of the Player who won in 1936? | CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR) |
SELECT 1 AS st_leg FROM table_name_19 WHERE team_1 = "hardware stars" | What is the first leg of team 1 for Hardware stars? | CREATE TABLE table_name_19 (team_1 VARCHAR) |
SELECT hometown FROM table_11677100_11 WHERE player = "Jay Bruce" | What is Jay Bruce's hometown? | CREATE TABLE table_11677100_11 (hometown VARCHAR, player VARCHAR) |
SELECT date FROM table_name_82 WHERE attendance = "68,463" | What is the date with 68,463 in attendance? | CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR) |
SELECT digital_channel FROM table_1404984_1 WHERE network = "JCTV" | What is JCTV's digital channel? | CREATE TABLE table_1404984_1 (digital_channel VARCHAR, network VARCHAR) |
SELECT country FROM table_name_37 WHERE pinnacle_height = "metres (ft)" AND name = "azeri tv tower" | Which Country has a Pinnacle height of metres (ft) and a Name of azeri tv tower? | CREATE TABLE table_name_37 (country VARCHAR, pinnacle_height VARCHAR, name VARCHAR) |
SELECT AVG(games) FROM table_name_61 WHERE lost > 27 AND points < 78 AND goals_against < 300 | How many games were lost by more than 27 but not more 78 with goals less than 300? | CREATE TABLE table_name_61 (games INTEGER, goals_against VARCHAR, lost VARCHAR, points VARCHAR) |
SELECT MIN(body_width_mm) FROM table_name_63 WHERE lead_pitch_mm < 0.55 AND part_number = "tsop48" | Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48? | CREATE TABLE table_name_63 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, part_number VARCHAR) |
SELECT deficit___surplus_ FROM table_15624586_2 WHERE country = "France" | What is the deficit (-surplus) of France? | CREATE TABLE table_15624586_2 (deficit___surplus_ VARCHAR, country VARCHAR) |
SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER" | What is the indoor number for the NER region? | CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR) |
SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0 | What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins? | CREATE TABLE table_name_90 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR) |
SELECT MAX(year) FROM table_name_79 WHERE competition = "europe/africa zone group i group b" AND result = "lost" | What was the highest year that Europe/Africa Zone Group I Group B lost? | CREATE TABLE table_name_79 (year INTEGER, competition VARCHAR, result VARCHAR) |
SELECT time FROM table_name_69 WHERE round = "2" AND opponent = "taylor mccorriston" | What was the time of round 2 against Taylor Mccorriston? | CREATE TABLE table_name_69 (time VARCHAR, round VARCHAR, opponent VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac" | What was the 2nd leg score in the matchup with a team 2 of KK Borac? | CREATE TABLE table_name_77 (team__number2 VARCHAR) |
SELECT player_name FROM table_name_93 WHERE position = "defensive end" AND college = "california" | Who was a defensive end at California? | CREATE TABLE table_name_93 (player_name VARCHAR, position VARCHAR, college VARCHAR) |
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Right Here, Right Now" | Name the most released for right here, right now | CREATE TABLE table_24600706_1 (released INTEGER, song VARCHAR) |
SELECT away_team FROM table_name_84 WHERE score = "107-104" | What away team scored 107-104? | CREATE TABLE table_name_84 (away_team VARCHAR, score VARCHAR) |
SELECT results FROM table_1341423_32 WHERE district = "New York 24" | Name the results for district new york 24 | CREATE TABLE table_1341423_32 (results VARCHAR, district VARCHAR) |
SELECT event FROM table_name_31 WHERE country = "brazil" | Which event was held in Brazil? | CREATE TABLE table_name_31 (event VARCHAR, country VARCHAR) |
SELECT team_s_ FROM table_2012187_1 WHERE winnings = "$2,605,05" | which team(s) won $2,605,05 | CREATE TABLE table_2012187_1 (team_s_ VARCHAR, winnings VARCHAR) |
SELECT COUNT(germany) FROM table_28562675_3 WHERE italy = "Naples LL Naples" AND england = "London Area Youth London" | How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London? | CREATE TABLE table_28562675_3 (germany VARCHAR, italy VARCHAR, england VARCHAR) |
SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana" | What type of game was played in Ljubljana? | CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR) |
SELECT player FROM table_name_66 WHERE year_s__won = "1976" | Which player won the Masters in 1976? | CREATE TABLE table_name_66 (player VARCHAR, year_s__won VARCHAR) |
SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2 | Which countries have more than two members? | CREATE TABLE member (Country VARCHAR) |
SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2 | Show the hometowns shared by at least two teachers. | CREATE TABLE teacher (Hometown VARCHAR) |
SELECT player FROM table_name_26 WHERE place = "t5" AND score = 69 - 74 = 143 | who is the player when the place is t5 and the score is 69-74=143? | CREATE TABLE table_name_26 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT COUNT(round) FROM table_name_68 WHERE record = "15–7–1" | What is the round number when the record is 15–7–1? | CREATE TABLE table_name_68 (round VARCHAR, record VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar" | How many picks were from Lamar College? | CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR) |
SELECT number_of_dances FROM table_name_69 WHERE place > 1 AND total_points = 40 | How many dances placed below 1 with a point total of 40? | CREATE TABLE table_name_69 (number_of_dances VARCHAR, place VARCHAR, total_points VARCHAR) |
SELECT opponent FROM table_name_18 WHERE date = "8 april 1999" | What is Opponent, when Date is 8 April 1999? | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) |
SELECT place FROM table_name_92 WHERE date = "22 august 2004" | What is the Place that has a Date of 22 august 2004? | CREATE TABLE table_name_92 (place VARCHAR, date VARCHAR) |
SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration" | Which Last Aired has a Retitled as/Same of classic concentration? | CREATE TABLE table_name_57 (last_aired VARCHAR, retitled_as_same VARCHAR) |
SELECT result FROM table_name_65 WHERE attendance = "47,971" | What was the result when the attendance was 47,971? | CREATE TABLE table_name_65 (result VARCHAR, attendance VARCHAR) |
SELECT votes FROM table_name_11 WHERE artist = "filipa batista" | What are the Votes for the Song by Artist Filipa Batista? | CREATE TABLE table_name_11 (votes VARCHAR, artist VARCHAR) |
SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = "100" | Which song has a U.S. R&B 100 in 2010? | CREATE TABLE table_name_53 (song VARCHAR, year VARCHAR, us_r VARCHAR, b VARCHAR) |
SELECT school_club_team FROM table_name_95 WHERE round > 12 AND pick < 342 | What was the school/club after round 12, and picked smaller than 342? | CREATE TABLE table_name_95 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR) |
SELECT AVG(round) FROM table_name_60 WHERE college = "idaho" AND overall < 141 | College of idaho, and an Overall smaller than 141 is what average round? | CREATE TABLE table_name_60 (round INTEGER, college VARCHAR, overall VARCHAR) |
SELECT lifespan FROM table_name_37 WHERE majors > 1 AND name = "fuzzy zoeller" | What lifespan has a majors greater than 1, and fuzzy zoeller as the name? | CREATE TABLE table_name_37 (lifespan VARCHAR, majors VARCHAR, name VARCHAR) |
SELECT MAX(total) FROM table_name_21 WHERE norrköping = "12" | What was the highest total when Norrkoping scored 12? | CREATE TABLE table_name_21 (total INTEGER, norrköping VARCHAR) |
SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" | Which captain has Gintare Karpaviciute as an alternate? | CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR) |
SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7 | What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals? | CREATE TABLE table_name_51 (rank INTEGER, total VARCHAR, gold VARCHAR) |
SELECT song FROM table_name_90 WHERE points < 54 AND draw < 4 AND place < 10 | Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10? | CREATE TABLE table_name_90 (song VARCHAR, place VARCHAR, points VARCHAR, draw VARCHAR) |
SELECT latin FROM table_name_72 WHERE ’phagspa = "ꡙ" | What is the Latin equivalent for the Phagspa of ꡙ? | CREATE TABLE table_name_72 (latin VARCHAR, ’phagspa VARCHAR) |
SELECT MAX(league_cup_goals) FROM table_name_93 WHERE scorer = "ken houghton" AND fa_cup_goals < 0 | Which League Cup goals have a Scorer of ken houghton, and an FA Cup goals smaller than 0? | CREATE TABLE table_name_93 (league_cup_goals INTEGER, scorer VARCHAR, fa_cup_goals VARCHAR) |
SELECT COUNT(phonetic_greek) FROM table_2077192_2 WHERE french = "grenouille" | How many Phonetic Greek words translate to grenouille in French? | CREATE TABLE table_2077192_2 (phonetic_greek VARCHAR, french VARCHAR) |
SELECT tournament FROM table_name_6 WHERE score = "5–7, 2–6" | What Tournament has a Score of 5–7, 2–6? | CREATE TABLE table_name_6 (tournament VARCHAR, score VARCHAR) |
SELECT north_american_release_date FROM table_name_17 WHERE japanese_release_date = "2011-06-23" | What is North American Release Date, when Japanese Release Date is "2011-06-23"? | CREATE TABLE table_name_17 (north_american_release_date VARCHAR, japanese_release_date VARCHAR) |
SELECT result FROM table_name_14 WHERE week > 13 AND date = "december 8, 1991" | What was the result of the game after Week 13 on December 8, 1991? | CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR, date VARCHAR) |
SELECT home_team FROM table_name_58 WHERE away_team = "carlton" | Which team has an Away team of carlton? | CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR) |
SELECT home_team FROM table_26847237_3 WHERE opposition = "Wairarapa Bush" | What is the home team when the opposition is wairarapa bush? | CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.