answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT rank FROM table_name_32 WHERE silver = 0 AND bronze > 1 AND total > 3 | what is the rank when silver is 0, bronze is more than 1 and the total is more than 3? | CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR) |
SELECT high_points FROM table_name_49 WHERE score = "w 110-81" | Which High points have a Score of w 110-81? | CREATE TABLE table_name_49 (high_points VARCHAR, score VARCHAR) |
SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 38 | What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38? | CREATE TABLE table_name_53 (episode_no VARCHAR, original_airdate VARCHAR, production_no VARCHAR) |
SELECT position FROM table_29626583_1 WHERE affiliation = "United States U-20" | what is the position for the united states u-20 affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) |
SELECT county FROM table_20350118_1 WHERE mccain_number = 20226 | Where did McCain get 20226 votes? | CREATE TABLE table_20350118_1 (county VARCHAR, mccain_number VARCHAR) |
SELECT outcome FROM table_name_53 WHERE date = "august 20, 1978" | What was the outcome of the match on August 20, 1978? | CREATE TABLE table_name_53 (outcome VARCHAR, date VARCHAR) |
SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 3 | What player has 3 wins and ranks above 3rd? | CREATE TABLE table_name_51 (player VARCHAR, wins VARCHAR, rank VARCHAR) |
SELECT free_or_pay FROM table_name_26 WHERE years = "2006–" AND provider = "bt tv (formerly bt vision)" | What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)? | CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR) |
SELECT 2011 FROM table_name_72 WHERE 2010 = "2r" AND 2008 = "a" | What 2011 has 2r as 2010, and a 2008 of A? | CREATE TABLE table_name_72 (Id VARCHAR) |
SELECT decision FROM table_27537518_7 WHERE score = "1-7" | Who got the decision in the game, when the final score was 1-7? | CREATE TABLE table_27537518_7 (decision VARCHAR, score VARCHAR) |
SELECT opponent FROM table_name_21 WHERE date = "january 7" | Who is the Opponent on January 7? | CREATE TABLE table_name_21 (opponent VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_28 WHERE week = 11 | What is the Opponent on Week 11? | CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR) |
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey" | What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey? | CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR) |
SELECT record FROM table_name_79 WHERE date = "march 26" | What was the record on march 26? | CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR) |
SELECT grid FROM table_name_74 WHERE time_retired = "+ 1:24.3" | What grad has a Time/Retired of + 1:24.3? | CREATE TABLE table_name_74 (grid VARCHAR, time_retired VARCHAR) |
SELECT years FROM table_name_56 WHERE points = "78" AND goals = "22" | What years did the player play when he scored 78 points and 22 goals? | CREATE TABLE table_name_56 (years VARCHAR, points VARCHAR, goals VARCHAR) |
SELECT record FROM table_13480122_5 WHERE date = "January 13" | what's the record with date being january 13 | CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR) |
SELECT date FROM table_name_93 WHERE score = "4–0" AND venue = "stade leopold senghor, dakar" | On what Date in Stade Leopold Senghor, Dakar was the Score 4–0? | CREATE TABLE table_name_93 (date VARCHAR, score VARCHAR, venue VARCHAR) |
SELECT duration FROM table_name_86 WHERE lok_sabha = "fifth" | What is the duration when Lok Sabha shows fifth? | CREATE TABLE table_name_86 (duration VARCHAR, lok_sabha VARCHAR) |
SELECT COUNT(total_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–11" | what is the total number of total w–l where doubles w–l is 11–11 | CREATE TABLE table_10294071_1 (total_w_l VARCHAR, doubles_w_l 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 player FROM table_name_63 WHERE date = "june 14, 1969" | Which player is associated with the date June 14, 1969? | CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR) |
SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" | Which League has a Venue of martin luther king, jr. recreation center? | CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) |
SELECT record FROM table_name_62 WHERE round > 2 AND event = "bellator 38" | Which Record has a Round larger than 2, and an Event of bellator 38? | CREATE TABLE table_name_62 (record VARCHAR, round VARCHAR, event VARCHAR) |
SELECT date FROM table_name_98 WHERE opponent = "vfl sindelfingen" | What date was the opponent VFL Sindelfingen? | CREATE TABLE table_name_98 (date VARCHAR, opponent 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 series FROM table_27734577_13 WHERE high_rebounds = "Al Horford (10)" | What is the series number when al horford (10) had the high rebounds? | CREATE TABLE table_27734577_13 (series VARCHAR, high_rebounds VARCHAR) |
SELECT MIN(silver) FROM table_name_51 WHERE bronze < 1 | What is the smallest number of silver medals for a nation with fewer than 1 bronze? | CREATE TABLE table_name_51 (silver INTEGER, bronze INTEGER) |
SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = "no" AND kinka_developer = "yes" | What is the KINKA 1.2 when the pre-release is no and the developer is yes? | CREATE TABLE table_name_35 (kinka_12 VARCHAR, kinka_pre_release VARCHAR, kinka_developer VARCHAR) |
SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay" | Where was the tournament that happened in 1987 on a clay surface? | CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR) |
SELECT away_team FROM table_name_73 WHERE home_team = "coventry city" | What is the away team where the home team is Coventry City? | CREATE TABLE table_name_73 (away_team VARCHAR, home_team VARCHAR) |
SELECT year FROM table_name_37 WHERE genre = "jazz" AND label = "columbia" AND result = "nominated" AND title = "trio jeepy" | Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy? | CREATE TABLE table_name_37 (year VARCHAR, title VARCHAR, result VARCHAR, genre VARCHAR, label VARCHAR) |
SELECT visitor FROM table_name_50 WHERE decision = "dipietro" AND date = "october 27" | Who is the visiting team when Dipietro received a decision on October 27? | CREATE TABLE table_name_50 (visitor VARCHAR, decision VARCHAR, date VARCHAR) |
SELECT AVG(attendance) FROM table_name_49 WHERE venue = "n" AND round = "f" | I want to know the average attendance for n venue and f round | CREATE TABLE table_name_49 (attendance INTEGER, venue VARCHAR, round VARCHAR) |
SELECT score FROM table_name_39 WHERE player = "larry nelson" | What was Larry Nelson's final score? | CREATE TABLE table_name_39 (score VARCHAR, player VARCHAR) |
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt" | How many Antonov An-2 Colt aircraft are in service? | CREATE TABLE table_name_37 (in_service INTEGER, aircraft VARCHAR) |
SELECT COUNT(first_elected) FROM table_1342315_4 WHERE incumbent = "Claude Fuller" | How many first elections have Claude Fuller as incumbent? | CREATE TABLE table_1342315_4 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 5" | Do the Sky Calcio 5 channels have PPV? | CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR) |
SELECT final_score FROM table_name_48 WHERE date = "november 22" | What is the Final score on november 22? | CREATE TABLE table_name_48 (final_score VARCHAR, date VARCHAR) |
SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE date_established = "19740329 29.03.1974" | How many reserves were established on 19740329 29.03.1974? | CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, date_established VARCHAR) |
SELECT max_pressure FROM table_name_99 WHERE muzzle_energy = "468ft•lbf (634 j)" | What is the max pressure for the 468ft•lbf (634 j) muzzle energy? | CREATE TABLE table_name_99 (max_pressure VARCHAR, muzzle_energy VARCHAR) |
SELECT MIN(fum_rec) AS TD FROM table_15581223_8 | Name the least fum rec td | CREATE TABLE table_15581223_8 (fum_rec INTEGER) |
SELECT date_arrived, date_departed FROM Dogs | What are the arriving date and the departing date of all the dogs? | CREATE TABLE Dogs (date_arrived VARCHAR, date_departed 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 original_airdate FROM table_27208814_1 WHERE writer = "Robin Mukherjee" AND director = "Margy Kinmonth" | Name the original airdate for robin mukherjee and margy kinmonth | CREATE TABLE table_27208814_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR) |
SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "16" | Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16? | CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR) |
SELECT skipper FROM table_name_92 WHERE yacht_name = "barclays adventurer" | Which skipper has barclays adventurer as the name of the yacht? | CREATE TABLE table_name_92 (skipper VARCHAR, yacht_name VARCHAR) |
SELECT currency_name FROM table_13681_2 WHERE highest_monthly_inflation_rate = "29,500%" | what's the currency name with highest monthly inflation rate being 29,500% | CREATE TABLE table_13681_2 (currency_name VARCHAR, highest_monthly_inflation_rate VARCHAR) |
SELECT COUNT(us_viewers__millions_) FROM table_19925114_1 WHERE no_in_season = 8 | How many different numbers of people in the US who'd seen the episode with a season number 8 are there? | CREATE TABLE table_19925114_1 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) |
SELECT MIN(round) FROM table_name_88 WHERE res = "draw" AND opponent = "mari kaneko" | What is the smallest round resulting in a draw with an Opponent of mari kaneko? | CREATE TABLE table_name_88 (round INTEGER, res VARCHAR, opponent VARCHAR) |
SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4" | Who was the developer of Resident Evil 4? | CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR) |
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Austin, Texas" | When austin, texas is the hometown what is the lowest age? | CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR) |
SELECT 2003 FROM table_name_80 WHERE tournament = "us open" | What is the result from 2003 from the US Open? | CREATE TABLE table_name_80 (tournament VARCHAR) |
SELECT township FROM table_name_20 WHERE land___sqmi__ > 36.112 AND geo_id > 3801985060 AND latitude = 46.062384 | what is the township when the land (sqmi) is more than 36.112, the geo id is higher than 3801985060 and the latitude is 46.062384? | CREATE TABLE table_name_20 (township VARCHAR, latitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) |
SELECT high_points FROM table_27733258_6 WHERE score = "L 110–112 (OT)" | Name the high points for l 110–112 (ot) | CREATE TABLE table_27733258_6 (high_points VARCHAR, score VARCHAR) |
SELECT away_team AS score FROM table_name_46 WHERE venue = "western oval" | What was the away team score at western oval? | CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR) |
SELECT ground FROM table_name_83 WHERE competition = "tim trophy" AND time = "23:00 cet" | What is the ground of the tim trophy competition, which had a time of 23:00 cet? | CREATE TABLE table_name_83 (ground VARCHAR, competition VARCHAR, time VARCHAR) |
SELECT vote_percentage FROM table_26375386_18 WHERE couple = "Heather and Matt" | What was the vote % of Heather and Matt? | CREATE TABLE table_26375386_18 (vote_percentage VARCHAR, couple VARCHAR) |
SELECT MIN(total) FROM table_name_87 WHERE year_won > 1993 AND to_par = 6 | What is the Total of the Player with a To par of 6 and Year won after 1993? | CREATE TABLE table_name_87 (total INTEGER, year_won VARCHAR, to_par VARCHAR) |
SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67" | What is the lowest ranking for 8:13.67? | CREATE TABLE table_name_4 (rank INTEGER, time VARCHAR) |
SELECT COUNT(*) FROM Video_games WHERE gtype = "Massively multiplayer online game" | How many video games have type Massively multiplayer online game? | CREATE TABLE Video_games (gtype VARCHAR) |
SELECT date FROM table_name_8 WHERE winner__title__number_ = "robert smith (7)" | Name the Date when has robert smith (7)? | CREATE TABLE table_name_8 (date VARCHAR, winner__title__number_ VARCHAR) |
SELECT date FROM table_2581397_5 WHERE race = "Doncaster" | What date was the Doncaster race? | CREATE TABLE table_2581397_5 (date VARCHAR, race VARCHAR) |
SELECT candidates FROM table_1342233_11 WHERE incumbent = "Carl Vinson" | Which district is associated with the incumbent Carl Vinson? | CREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR) |
SELECT COUNT(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things | How many different status codes of things are there? | CREATE TABLE Timed_Status_of_Things (Status_of_Thing_Code VARCHAR) |
SELECT date FROM table_name_3 WHERE attendance > 342 AND opponent = "inverurie loco works" | What date was the game against inverurie loco works when more than 342 attend? | CREATE TABLE table_name_3 (date VARCHAR, attendance VARCHAR, opponent VARCHAR) |
SELECT COUNT(left) FROM table_2293402_2 WHERE nickname = "Cardinals" | Name the number of left for cardinals | CREATE TABLE table_2293402_2 (left VARCHAR, nickname VARCHAR) |
SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400 | Name the number of clock rate mhz when bandwidth mb/s is 2400 | CREATE TABLE table_142573_1 (clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR) |
SELECT * FROM Albums WHERE YEAR = 2010 | What are the albums produced in year 2010? | CREATE TABLE Albums (YEAR VARCHAR) |
SELECT powertrain__engine_transmission_ FROM table_24193494_3 WHERE division = "KMD" AND model = "C40LF" | Name the powertrain for kmd and c40lf | CREATE TABLE table_24193494_3 (powertrain__engine_transmission_ VARCHAR, division VARCHAR, model VARCHAR) |
SELECT event FROM table_name_88 WHERE round > 2 | Which event has a Round larger than 2? | CREATE TABLE table_name_88 (event VARCHAR, round INTEGER) |
SELECT 187 AS kg FROM table_name_79 WHERE snatch = "clean & jerk" | Who has 187kg and a Snatch of Clean & Jerk? | CREATE TABLE table_name_79 (snatch VARCHAR) |
SELECT AVG(week) FROM table_name_86 WHERE date = "november 11, 1962" | What week had a game that was played on November 11, 1962? | CREATE TABLE table_name_86 (week INTEGER, date VARCHAR) |
SELECT score FROM table_name_2 WHERE date = "november 21" | What was the score on november 21? | CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) |
SELECT AVG(grid) FROM table_name_79 WHERE time_retired = "+17.276" AND laps > 22 | What is the average grid for competitors who had more than 22 laps and time/retired of +17.276? | CREATE TABLE table_name_79 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT tournament FROM table_name_18 WHERE partner = "janet young" | In what Tournament was Janet Young a Partner? | CREATE TABLE table_name_18 (tournament VARCHAR, partner VARCHAR) |
SELECT chord FROM table_name_73 WHERE minor_seventh = "f" | What is the Chord with a Minor that is seventh of f? | CREATE TABLE table_name_73 (chord VARCHAR, minor_seventh VARCHAR) |
SELECT status FROM table_name_91 WHERE date = "07/01/1961" | What is the status for 07/01/1961? | CREATE TABLE table_name_91 (status VARCHAR, date VARCHAR) |
SELECT AVG(attendance) FROM table_name_66 WHERE loss = "papelbon (0–1)" | What was the average attendance for games with a loss of papelbon (0–1)? | CREATE TABLE table_name_66 (attendance INTEGER, loss VARCHAR) |
SELECT MAX(year) FROM table_2199290_1 | What is the latest year? | CREATE TABLE table_2199290_1 (year INTEGER) |
SELECT 1 AS st_leg FROM table_name_12 WHERE team_1 = "c.d. plaza amador" | What is the 1st leg where Team 1 is C.D. Plaza Amador? | CREATE TABLE table_name_12 (team_1 VARCHAR) |
SELECT MAX(interview) FROM table_name_56 WHERE evening_gown = 9.286 | Which biggest interview score had an evening gown stat of 9.286? | CREATE TABLE table_name_56 (interview INTEGER, evening_gown VARCHAR) |
SELECT goal FROM table_name_84 WHERE result = "2-0" | Can you tell me the Goal that has the Result of 2-0? | CREATE TABLE table_name_84 (goal VARCHAR, result VARCHAR) |
SELECT rider FROM table_name_50 WHERE final_position___tour < 50 AND final_position___vuelta < 11 AND year < 2008 | Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008? | CREATE TABLE table_name_50 (rider VARCHAR, year VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR) |
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = "1" AND league_cup_goals > 0 | What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0? | CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR) |
SELECT people_assisted FROM table_name_14 WHERE year = "1997" | How many people were assisted in 1997? | CREATE TABLE table_name_14 (people_assisted VARCHAR, year VARCHAR) |
SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = "total" | What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total? | CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR, silver VARCHAR, gold VARCHAR) |
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4" | How many different scores are there for the game with 10-3-4 record? | CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR) |
SELECT name FROM table_name_50 WHERE round < 5 AND pick__number > 13 | Which Name has a Round smaller than 5, and a Pick # larger than 13? | CREATE TABLE table_name_50 (name VARCHAR, round VARCHAR, pick__number VARCHAR) |
SELECT nationality FROM table_name_87 WHERE player = "graham gooch" | What is Graham Gooch's nationality? | CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR) |
SELECT league FROM table_name_31 WHERE sport = "baseball" AND club = "laredo apaches" | Which league is for baseball with Laredo Apaches? | CREATE TABLE table_name_31 (league VARCHAR, sport VARCHAR, club VARCHAR) |
SELECT race FROM table_2062148_3 WHERE distance = "1200 m" | What race has a distance of 1200 m? | CREATE TABLE table_2062148_3 (race VARCHAR, distance VARCHAR) |
SELECT format FROM table_name_95 WHERE catalog = "21-382a" | Which format's catalog designation was 21-382a? | CREATE TABLE table_name_95 (format VARCHAR, catalog VARCHAR) |
SELECT SUM(poles) FROM table_name_57 WHERE percentage = "22.08%" | How many poles has a percentage of 22.08%? | CREATE TABLE table_name_57 (poles INTEGER, percentage VARCHAR) |
SELECT MIN(score) FROM table_name_77 WHERE country = "canada" | What is the lowest Score when the Country is canada? | CREATE TABLE table_name_77 (score INTEGER, country VARCHAR) |
SELECT college FROM table_name_50 WHERE pick = 93 | What college had the 93 pick? | CREATE TABLE table_name_50 (college VARCHAR, pick VARCHAR) |
SELECT MAX(debut_year) FROM table_name_95 WHERE player = "noel carroll" AND games < 12 | Which Debut year has a Player of noel carroll, and Games smaller than 12? | CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR) |
SELECT number_of_vehicles FROM table_name_76 WHERE type_designation = "u5-25 (bi-directional)" | Which Number of vehicles has a Type designation of u5-25 (bi-directional)? | CREATE TABLE table_name_76 (number_of_vehicles VARCHAR, type_designation VARCHAR) |
SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID | List the distinct hometowns that are not associated with any gymnast. | CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR) |
SELECT winning_driver FROM table_1137696_3 WHERE grand_prix = "European grand_prix" | Who is the driver of the european grand prix? | CREATE TABLE table_1137696_3 (winning_driver VARCHAR, grand_prix VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.