answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT signed FROM table_name_13 WHERE school = "university of michigan" | Was the University of Michigan Signed? | CREATE TABLE table_name_13 (signed VARCHAR, school VARCHAR) |
SELECT commander FROM table_11793221_2 WHERE wounded = "8 off 0 men" | Who were the commanders when 8 off 0 men were wounded? | CREATE TABLE table_11793221_2 (commander VARCHAR, wounded VARCHAR) |
SELECT AVG(district) FROM table_name_25 WHERE republican = "dan mansell" | Which District has a Republican of dan mansell? | CREATE TABLE table_name_25 (district INTEGER, republican VARCHAR) |
SELECT driver FROM table_name_88 WHERE team = "romano racing" | What is Driver, when Team is "Romano Racing"? | CREATE TABLE table_name_88 (driver VARCHAR, team VARCHAR) |
SELECT SUM(total) FROM table_name_4 WHERE player = "tommy bolt" | What is the sum of Total, when Player is "Tommy Bolt"? | CREATE TABLE table_name_4 (total INTEGER, player VARCHAR) |
SELECT away_team AS score FROM table_name_44 WHERE away_team = "footscray" | What was the Away team score for Footscray? | CREATE TABLE table_name_44 (away_team VARCHAR) |
SELECT school FROM table_name_74 WHERE location = "radford, va" | What school is in Radford, Va? | CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR) |
SELECT F.goals FROM table_name_18 WHERE tries = "0 0" AND games = "05 5" | Name the F. Goals with tries of 0 0 and games of 05 5 | CREATE TABLE table_name_18 (tries VARCHAR, games VARCHAR) |
SELECT opponent FROM table_name_62 WHERE date = "april 26" | Who was their Opponent on April 26? | CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR) |
SELECT COUNT(points) FROM table_name_72 WHERE constructor = "citroën total world rally team" AND wins < 7 | what is the total number of points when the constructor is citroën total world rally team and the wins is less than 7? | CREATE TABLE table_name_72 (points VARCHAR, constructor VARCHAR, wins VARCHAR) |
SELECT famous_for FROM table_14345690_5 WHERE finished = "5th" | What is the famous for where the finished is 5th? | CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR) |
SELECT minister FROM table_name_82 WHERE party = "labor party" AND governments = "26" | Who was the minister of the labor party and had 26 goverments? | CREATE TABLE table_name_82 (minister VARCHAR, party VARCHAR, governments VARCHAR) |
SELECT report FROM table_1140099_6 WHERE race_name = "I Sunday Mirror Trophy" | What is the report for the race i sunday mirror trophy? | CREATE TABLE table_1140099_6 (report VARCHAR, race_name VARCHAR) |
SELECT score FROM table_name_97 WHERE game = 36 | What was the score of game 36? | CREATE TABLE table_name_97 (score VARCHAR, game VARCHAR) |
SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit" | Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit? | CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR) |
SELECT country FROM table_name_46 WHERE total = 295 | Which country had a total of 295? | CREATE TABLE table_name_46 (country VARCHAR, total VARCHAR) |
SELECT school FROM table_name_86 WHERE year_joined > 1926 AND mascot = "vikings" | Which School has a Year Joined larger than 1926, and a Mascot of vikings? | CREATE TABLE table_name_86 (school VARCHAR, year_joined VARCHAR, mascot VARCHAR) |
SELECT nominating_festival FROM table_name_80 WHERE director_s_ = "iao lethem" | Which nominating festival nominated Iao Lethem's film? | CREATE TABLE table_name_80 (nominating_festival VARCHAR, director_s_ VARCHAR) |
SELECT record FROM table_name_73 WHERE date = "may 20, 1961" | What is the Record with a Date that is may 20, 1961? | CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR) |
SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 1996" | Who's the Opponents in the final with a Date of june 10, 1996? | CREATE TABLE table_name_40 (opponents_in_the_final VARCHAR, date VARCHAR) |
SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE spent_per_vote___php__ = "20.07" | What was spent per voter when the spent per vote was 20.07? | CREATE TABLE table_22097588_9 (spent_per_voter___php__ VARCHAR, spent_per_vote___php__ VARCHAR) |
SELECT lost FROM table_17718005_2 WHERE drawn = 10 AND goals_for = 45 | When 45 is the goals for and 10 is the drawn what is the lost? | CREATE TABLE table_17718005_2 (lost VARCHAR, drawn VARCHAR, goals_for VARCHAR) |
SELECT MIN(tries) FROM table_name_84 WHERE player = "matt diskin" AND points > 16 | What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points? | CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR) |
SELECT COUNT(*) FROM airlines | How many airlines are there? | CREATE TABLE airlines (Id VARCHAR) |
SELECT race FROM table_name_20 WHERE length = "12 hours" | What is the race 12 hours in length? | CREATE TABLE table_name_20 (race VARCHAR, length VARCHAR) |
SELECT COUNT(us_viewers__million_) FROM table_26259391_1 WHERE written_by = "Chris Sheridan & Danny Smith" | how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith | CREATE TABLE table_26259391_1 (us_viewers__million_ VARCHAR, written_by VARCHAR) |
SELECT country FROM table_name_10 WHERE player = "jimmy demaret" | What is Country, when Player is "Jimmy Demaret"? | CREATE TABLE table_name_10 (country VARCHAR, player VARCHAR) |
SELECT date FROM table_name_36 WHERE home_team = "collingwood" | When did Collingwood play? | CREATE TABLE table_name_36 (date VARCHAR, home_team VARCHAR) |
SELECT to_par FROM table_name_29 WHERE player = "jack nicklaus" | what is the to par when the player is jack nicklaus? | CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) |
SELECT SUM(gold) FROM table_name_70 WHERE total > 2 AND bronze > 1 AND silver < 1 | What is the sum of Gold, when Total is greater than 2, when Bronze is greater than 1, and when Silver is less than 1? | CREATE TABLE table_name_70 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR) |
SELECT pages FROM table_name_3 WHERE title = "a dream of spring" | How many pages does a dream of spring have? | CREATE TABLE table_name_3 (pages VARCHAR, title VARCHAR) |
SELECT score FROM table_name_60 WHERE date = "19/3/00" | What was the score of the game on 19/3/00? | CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR) |
SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments" | What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments? | CREATE TABLE table_name_33 (Id VARCHAR) |
SELECT date_of_appointment FROM table_10592536_8 WHERE date_of_vacancy = "21 December 2007" | What is the date of appointment when the date of vacancy is 21 december 2007? | CREATE TABLE table_10592536_8 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT series_ep FROM table_name_80 WHERE segment_b = "jukeboxes" | What series episode has jukeboxes as segment B? | CREATE TABLE table_name_80 (series_ep VARCHAR, segment_b VARCHAR) |
SELECT transfer_window FROM table_name_27 WHERE name = "tofas" | Which Transfer window has a Name of tofas? | CREATE TABLE table_name_27 (transfer_window VARCHAR, name VARCHAR) |
SELECT team FROM table_name_88 WHERE round = "2" AND pick = "13" | Which team has Pick 13 in Round 2? | CREATE TABLE table_name_88 (team VARCHAR, round VARCHAR, pick VARCHAR) |
SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer) | Find the name of customers whose credit score is below the average credit scores of all customers. | CREATE TABLE customer (cust_name VARCHAR, credit_score INTEGER) |
SELECT result FROM table_name_35 WHERE genre = "jazz" AND label = "columbia" AND title = "requiem" | Which result's genre was jazz when its label was columbia and its title was requiem? | CREATE TABLE table_name_35 (result VARCHAR, title VARCHAR, genre VARCHAR, label VARCHAR) |
SELECT round FROM table_name_83 WHERE h___a = "a" AND opponents = "sheffield united" | Rich round has an H/A of A and the opponent Sheffield United? | CREATE TABLE table_name_83 (round VARCHAR, h___a VARCHAR, opponents VARCHAR) |
SELECT club FROM table_29250534_1 WHERE location = "Kuopio" | Which club is at the location of kuopio? | CREATE TABLE table_29250534_1 (club VARCHAR, location VARCHAR) |
SELECT grid FROM table_name_8 WHERE time_retired = "suspension" | What was the grid for suspension time/retired? | CREATE TABLE table_name_8 (grid VARCHAR, time_retired VARCHAR) |
SELECT school_club_team FROM table_16494599_3 WHERE years_for_grizzlies = "2011" | What school did the player who was with the grizzles in 2011 attend? | CREATE TABLE table_16494599_3 (school_club_team VARCHAR, years_for_grizzlies VARCHAR) |
SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = "Algeria" | What is the GDP (PPP) (USD, per capita) for Algeria? | CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR) |
SELECT name FROM table_name_56 WHERE pressure = "985hpa (29.09inhg)" | Which name has a pressure of 985hpa (29.09inhg)? | CREATE TABLE table_name_56 (name VARCHAR, pressure VARCHAR) |
SELECT song FROM table_name_77 WHERE place > 2 AND draw = 1 | What song is later than place 2 and has a draw number of 1? | CREATE TABLE table_name_77 (song VARCHAR, place VARCHAR, draw VARCHAR) |
SELECT reserved_for___sc___st__none_ FROM table_name_34 WHERE constituency_number = "192" | What is the reserved for the constituency of 192? | CREATE TABLE table_name_34 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) |
SELECT attendance FROM table_name_15 WHERE date = "10/29/1932" | What was the attendance on 10/29/1932? | CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR) |
SELECT date FROM table_name_6 WHERE record = "16–16" | When is Record of 16–16 taken? | CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) |
SELECT SUM(rank) FROM table_name_80 WHERE col__m_ < 33 AND summit = "haleakalā" | What's the rank when the col (m) is less than 33 and has a summit of Haleakalā? | CREATE TABLE table_name_80 (rank INTEGER, col__m_ VARCHAR, summit VARCHAR) |
SELECT length FROM table_name_62 WHERE fleet_number = "501-506" | What is the length of fleet number 501-506? | CREATE TABLE table_name_62 (length VARCHAR, fleet_number VARCHAR) |
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000 | What document types do have more than 10000 total access number. | CREATE TABLE documents (document_type_code VARCHAR, access_count INTEGER) |
SELECT song_s__—_weeks FROM table_19542477_9 WHERE issue_years = 2012 AND artist_s_ = "Rihanna" | What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012? | CREATE TABLE table_19542477_9 (song_s__—_weeks VARCHAR, issue_years VARCHAR, artist_s_ VARCHAR) |
SELECT date FROM table_name_74 WHERE week > 16 | What was the date for the game after week 16? | CREATE TABLE table_name_74 (date VARCHAR, week INTEGER) |
SELECT school FROM table_name_56 WHERE team = "senators" | What is the school, when the Team is Senators? | CREATE TABLE table_name_56 (school VARCHAR, team VARCHAR) |
SELECT name FROM table_name_11 WHERE games < 38 AND rank < 4 AND points = 357 | What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357? | CREATE TABLE table_name_11 (name VARCHAR, points VARCHAR, games VARCHAR, rank VARCHAR) |
SELECT MAX(attendance) FROM table_name_91 WHERE date = "december 23" | What was the highest attendance on December 23? | CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR) |
SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1 | What is the greatest lane with an overall rank of 79 and a time larger than 26.1? | CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR) |
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565" | What were the investment earnings in the year that State and Federal taxes were $8,549,565? | CREATE TABLE table_name_82 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR) |
SELECT game FROM table_name_27 WHERE date = "may 24" | what game was on may 24 | CREATE TABLE table_name_27 (game VARCHAR, date VARCHAR) |
SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson" | What Position did the sophomore Darnell Jackson play? | CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR) |
SELECT nba_draft FROM table_name_4 WHERE hometown = "kingston, pa" | What is the NBA draft result of the player from Kingston, PA? | CREATE TABLE table_name_4 (nba_draft VARCHAR, hometown VARCHAR) |
SELECT MAX(total_passengers_2008) FROM table_13836704_4 WHERE change_2008_09 = "6.5%" | what being the maximum total passengers 2008 with change 2008/09 being 6.5% | CREATE TABLE table_13836704_4 (total_passengers_2008 INTEGER, change_2008_09 VARCHAR) |
SELECT capacity__thousands_of_metric_tons_ FROM table_name_67 WHERE county = "gila" AND mine = "pinto valley" | What is the capacity of the Pinto Valley mine in Gila county? | CREATE TABLE table_name_67 (capacity__thousands_of_metric_tons_ VARCHAR, county VARCHAR, mine VARCHAR) |
SELECT date FROM table_name_41 WHERE game_site = "resch center" | What is the date of the game that took place at the Resch Center? | CREATE TABLE table_name_41 (date VARCHAR, game_site VARCHAR) |
SELECT points FROM table_name_43 WHERE games = "16 16" | Name the points for games of 16 16 | CREATE TABLE table_name_43 (points VARCHAR, games VARCHAR) |
SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 1" | Who is the candidate wehre district is louisiana 1? | CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) |
SELECT game_site FROM table_name_18 WHERE kickoff__et_ = "1:00pm" AND record = "4–1" | Which Game site has a Kickoff (ET) of 1:00pm, and a Record of 4–1? | CREATE TABLE table_name_18 (game_site VARCHAR, kickoff__et_ VARCHAR, record VARCHAR) |
SELECT score FROM table_name_91 WHERE home = "washington capitols" AND date = "november 23, 1946" | What is the Score on November 23, 1946 with Washington Capitols Home team? | CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, date VARCHAR) |
SELECT date_and_time FROM table_1233808_2 WHERE competition = "Mithras Cup 2nd Rd (2nd Leg)" | For the competition Mithras Cup 2nd Rd (2nd Leg), what is the date and time? | CREATE TABLE table_1233808_2 (date_and_time VARCHAR, competition VARCHAR) |
SELECT home FROM table_name_79 WHERE visitor = "new york knicks" | Who was the home when the visitor was New York Knicks? | CREATE TABLE table_name_79 (home VARCHAR, visitor VARCHAR) |
SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya" | What is the platform of the 2010 game with Shuichiro Nishiya as director? | CREATE TABLE table_name_5 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) |
SELECT language FROM table_name_17 WHERE book_title = "miss macintosh, my darling" | What language is the book Miss Macintosh, My Darling in? | CREATE TABLE table_name_17 (language VARCHAR, book_title VARCHAR) |
SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7" | What was his average finish when his average start was 27.7? | CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) |
SELECT segment_c FROM table_15187735_8 WHERE segment_b = "Paint Rollers" | Name the segment c for paint rollers | CREATE TABLE table_15187735_8 (segment_c VARCHAR, segment_b VARCHAR) |
SELECT result FROM table_name_14 WHERE date = "29/09/07" | What was the result on 29/09/07? | CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR) |
SELECT owner FROM table_name_78 WHERE call_sign = "cklf-fm" | Who is the owner of CKLF-FM? | CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR) |
SELECT MIN(year_of_disaffiliation) FROM table_name_74 WHERE city_of_license_market = "hamilton, ontario" | What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario? | CREATE TABLE table_name_74 (year_of_disaffiliation INTEGER, city_of_license_market VARCHAR) |
SELECT to_par FROM table_name_72 WHERE player = "loren roberts" | What is the To par, when the Player is Loren Roberts? | CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR) |
SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289 | What is the Place of the Player with a Score of 70-75-70-74=289? | CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR) |
SELECT 1 AS st_leg FROM table_name_40 WHERE team_1 = "rc cannes" | What is the 1st leg that has a Rc Cannes Team 1? | CREATE TABLE table_name_40 (team_1 VARCHAR) |
SELECT 2007 FROM table_name_70 WHERE 2006 = "236" | What 2007 has 236 for 2006? | CREATE TABLE table_name_70 (Id VARCHAR) |
SELECT chinese__simplified_ FROM table_name_21 WHERE album_number = "9th" | What is the simplified Chinese name for the 9th album? | CREATE TABLE table_name_21 (chinese__simplified_ VARCHAR, album_number VARCHAR) |
SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "peter senior" | What is the To Par of Peter Senior from Australia? | CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR) |
SELECT volume FROM table_name_49 WHERE isbn = "978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)" | What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)? | CREATE TABLE table_name_49 (volume VARCHAR, isbn VARCHAR) |
SELECT date FROM table_name_44 WHERE away_team = "guatemala" | What is the date where Guatemala is the Away team? | CREATE TABLE table_name_44 (date VARCHAR, away_team VARCHAR) |
SELECT song_choice FROM table_name_99 WHERE original_artist = "elaine paige" | What is the Song choice when Elaine Paige was the Original artist? | CREATE TABLE table_name_99 (song_choice VARCHAR, original_artist VARCHAR) |
SELECT date FROM table_name_85 WHERE outcome = "runner-up" AND surface = "carpet" | Which Date had an Outcome of runner-up, and a Surface of carpet? | CREATE TABLE table_name_85 (date VARCHAR, outcome VARCHAR, surface VARCHAR) |
SELECT production FROM table_name_5 WHERE engine = "2.7l" AND acceleration_0_100km_h__0_62mph_ = "8.5 s" | What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s? | CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR) |
SELECT score FROM table_name_30 WHERE date = "november 11" | WHich Score has a Date on november 11? | CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR) |
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13 | What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has? | CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR) |
SELECT score FROM table_name_96 WHERE venue = "shay stadium" | What is the score at shay stadium? | CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR) |
SELECT MIN(crowd) FROM table_name_55 WHERE venue = "windy hill" | What was the lowest crowd size at the Windy Hill venue? | CREATE TABLE table_name_55 (crowd INTEGER, venue VARCHAR) |
SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = "19:56" | What is the time for the bike (40km) when the swim (1.5km) is 19:56? | CREATE TABLE table_name_38 (bike__40km_ VARCHAR, swim__15km_ VARCHAR) |
SELECT MAX(area_km_2) FROM table_name_84 WHERE population > 532 AND official_name = "centreville" | What is the highest area for locations named Centreville having populations over 532? | CREATE TABLE table_name_84 (area_km_2 INTEGER, population VARCHAR, official_name VARCHAR) |
SELECT shipping_agent_name FROM Ref_Shipping_Agents | What are the shipping agent names? | CREATE TABLE Ref_Shipping_Agents (shipping_agent_name VARCHAR) |
SELECT scale FROM table_name_8 WHERE word__number < 4 AND name = "sv_health" | What is the scale of sv_health with a word number smaller than 4? | CREATE TABLE table_name_8 (scale VARCHAR, word__number VARCHAR, name VARCHAR) |
SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000 | Find the name and account balance of the customers who have loans with a total amount of more than 5000. | CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR) |
SELECT dates_aired FROM table_name_6 WHERE region_country = "united states" | What dates did the episodes air in the United States? | CREATE TABLE table_name_6 (dates_aired VARCHAR, region_country VARCHAR) |
SELECT common_name FROM table_15417439_1 WHERE genus_species = "Rattus norvegicus" | What's the animals name when the genus/species is rattus norvegicus? | CREATE TABLE table_15417439_1 (common_name VARCHAR, genus_species VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.