answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT home_team AS score FROM table_name_90 WHERE home_team = "south melbourne" | What was South Melbourne's home team score? | CREATE TABLE table_name_90 (home_team VARCHAR) |
SELECT original_air_date FROM table_2226817_2 WHERE production_code = "1.12" | What is the original air date for the production code of 1.12? | CREATE TABLE table_2226817_2 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT title FROM table_name_93 WHERE production_cost = "$850,000" | What is the title of the film that had a production cost of $850,000? | CREATE TABLE table_name_93 (title VARCHAR, production_cost VARCHAR) |
SELECT horse FROM table_name_54 WHERE finished = "8" | Which Horse finished in 8? | CREATE TABLE table_name_54 (horse VARCHAR, finished VARCHAR) |
SELECT team FROM table_name_32 WHERE games = "7" | What is the team name that as games of 7? | CREATE TABLE table_name_32 (team VARCHAR, games VARCHAR) |
SELECT MIN(places) FROM table_name_70 WHERE name = "sherri baier / robin cowan" AND rank < 1 | What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1? | CREATE TABLE table_name_70 (places INTEGER, name VARCHAR, rank VARCHAR) |
SELECT result FROM table_name_45 WHERE game_site = "arrowhead stadium" | Name the result for arrowhead stadium | CREATE TABLE table_name_45 (result VARCHAR, game_site VARCHAR) |
SELECT date FROM table_name_89 WHERE attendance = "73,529" | What was the date when the attendance was 73,529? | CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR) |
SELECT coverage FROM table_2523809_1 WHERE callsign = "KPNZ-TV" | Which city did kpnz-tv provide coverage for? | CREATE TABLE table_2523809_1 (coverage VARCHAR, callsign VARCHAR) |
SELECT COUNT(season) FROM table_name_82 WHERE level = "tier 2" AND position = "1st" | Which Season has a Level of tier 2 and a Position of 1st? | CREATE TABLE table_name_82 (season VARCHAR, level VARCHAR, position VARCHAR) |
SELECT hereditary_peers FROM table_name_15 WHERE total = 1 | Which Hereditary peers have a Total of 1? | CREATE TABLE table_name_15 (hereditary_peers VARCHAR, total VARCHAR) |
SELECT MAX(quantity) FROM table_name_49 WHERE sht_nos = "5" | How many have SHT number 5? | CREATE TABLE table_name_49 (quantity INTEGER, sht_nos VARCHAR) |
SELECT premiere FROM table_name_86 WHERE channel = "tvb jade" | When was the premiere on the TVB Jade Channel? | CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR) |
SELECT partnering FROM table_name_11 WHERE score = "7–6 7 , 6–1" | Which Partnering has a Score of 7–6 7 , 6–1? | CREATE TABLE table_name_11 (partnering VARCHAR, score VARCHAR) |
SELECT represents FROM table_26301697_2 WHERE height__cm_ = "1.76" | Name the represents for 1.76 cm | CREATE TABLE table_26301697_2 (represents VARCHAR, height__cm_ VARCHAR) |
SELECT 1995 FROM table_name_15 WHERE 1993 = "atp masters series" | What is the 1995 value with of the 1993 ATP Masters Series? | CREATE TABLE table_name_15 (Id VARCHAR) |
SELECT COUNT(season__number) FROM table_23286722_1 WHERE production_code = "3M17" | Name the total number of season for production code 3m17 | CREATE TABLE table_23286722_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT COUNT(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Sa Beining" | How many years premiered have Sa Beining as main presenter? | CREATE TABLE table_24224647_2 (year_premiered VARCHAR, main_presenter VARCHAR) |
SELECT COUNT(votes) FROM table_name_67 WHERE seats > 28 | What is the number of votes for the party which got more than 28 seats? | CREATE TABLE table_name_67 (votes VARCHAR, seats INTEGER) |
SELECT MAX(crowd) FROM table_name_73 WHERE venue = "arden street oval" | How big was the largest crowd recorded at the Arden Street Oval venue? | CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR) |
SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common college of authors of submissions. | CREATE TABLE submission (College VARCHAR) |
SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842 | What is the total enrollment for a private/catholic affiliation and founded after 1842? | CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR) |
SELECT team FROM table_17311783_9 WHERE date = "March 9" | What team(s) did they play on march 9? | CREATE TABLE table_17311783_9 (team VARCHAR, date VARCHAR) |
SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = "Amagasaki" | Name the total number of japanese for amagasaki | CREATE TABLE table_1585609_2 (japanese VARCHAR, name VARCHAR) |
SELECT rank FROM table_name_21 WHERE gross = "$26,589,355" | What rank is the title with a gross of $26,589,355? | CREATE TABLE table_name_21 (rank VARCHAR, gross VARCHAR) |
SELECT AVG(played) FROM table_name_43 WHERE club = "botev plovdiv" AND wins > 11 | What is the played average that has botev plovdiv as the club and wins larger than 11? | CREATE TABLE table_name_43 (played INTEGER, club VARCHAR, wins VARCHAR) |
SELECT AVG(crowd) FROM table_name_16 WHERE venue = "glenferrie oval" | What is the average crowd size at glenferrie oval? | CREATE TABLE table_name_16 (crowd INTEGER, venue VARCHAR) |
SELECT renamed FROM table_name_58 WHERE ship = "ajax" | What was the original name of the ship 'Ajax'? | CREATE TABLE table_name_58 (renamed VARCHAR, ship VARCHAR) |
SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6" | What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008? | CREATE TABLE table_name_67 (Id VARCHAR) |
SELECT SUM(year) FROM table_name_37 WHERE venue = "götzis, austria" AND position = "1st" | In what Year did Chernova come in 1st in Götzis, Austria? | CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR) |
SELECT first_member FROM table_name_79 WHERE election = "1868" | Who is the first member in the 1868 election? | CREATE TABLE table_name_79 (first_member VARCHAR, election VARCHAR) |
SELECT COUNT(month_held) FROM table_26166836_3 WHERE road_race = "Paris 20K" | How many times a year is the Paris 20k road race held? | CREATE TABLE table_26166836_3 (month_held VARCHAR, road_race VARCHAR) |
SELECT state_name FROM table_287659_2 WHERE regional_page__number = "1, 5-7, 9-11, 13-15" | What states have a regional page # of 1, 5-7, 9-11, 13-15? | CREATE TABLE table_287659_2 (state_name VARCHAR, regional_page__number VARCHAR) |
SELECT MIN(year) FROM table_name_21 WHERE length = "11:25" | What is the earliest year having a length of 11:25? | CREATE TABLE table_name_21 (year INTEGER, length VARCHAR) |
SELECT 2009 FROM table_name_59 WHERE 2008 = "1r" AND tournament = "french open" | What is 2009, when 2008 is 1R, and when Tournament is French Open? | CREATE TABLE table_name_59 (tournament VARCHAR) |
SELECT laid_down FROM table_name_39 WHERE launched = "16 february 1934" | Name the laid down for launched being 16 february 1934 | CREATE TABLE table_name_39 (laid_down VARCHAR, launched VARCHAR) |
SELECT high_points FROM table_28768469_7 WHERE high_rebounds = "Nick Collison (10)" | What is listed in hight points when the high rebounds is listed as Nick Collison (10)? | CREATE TABLE table_28768469_7 (high_points VARCHAR, high_rebounds VARCHAR) |
SELECT allergytype FROM Allergy_type WHERE allergy = "Cat" | What is the type of allergy Cat? | CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR) |
SELECT date FROM table_18710512_3 WHERE single = "Moped Girls" | What year was "moped girls" released? | CREATE TABLE table_18710512_3 (date VARCHAR, single VARCHAR) |
SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor" | What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? | CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) |
SELECT status FROM table_name_65 WHERE name = "nicholls" | What is the current status of the person named Nicholls? | CREATE TABLE table_name_65 (status VARCHAR, name VARCHAR) |
SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e" | What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e? | CREATE TABLE table_name_81 (year INTEGER, engine VARCHAR, chassis VARCHAR) |
SELECT record FROM table_name_58 WHERE opponent = "danilo pereira" | What is the record when Danilo Pereira was the opponent? | CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR) |
SELECT liberal FROM table_name_37 WHERE new_democratic = "36%" AND dates = "august 2008" | According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party? | CREATE TABLE table_name_37 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR) |
SELECT winner_2nd FROM table_24850630_4 WHERE race = "British Champion Stakes" | who was the winner /2nd for the British Champion Stakes race? | CREATE TABLE table_24850630_4 (winner_2nd VARCHAR, race VARCHAR) |
SELECT COUNT(result) FROM table_20630665_1 WHERE opponent = "Tennessee" | How many times did the Bruins play Tennessee? | CREATE TABLE table_20630665_1 (result VARCHAR, opponent VARCHAR) |
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)" | Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)? | CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR) |
SELECT prize FROM table_name_90 WHERE winner = "aaron gustavson" | What is the Prize, when the Winner is Aaron Gustavson? | CREATE TABLE table_name_90 (prize VARCHAR, winner VARCHAR) |
SELECT COUNT(notes) FROM table_12562214_1 WHERE date__to_ = "1919" | how many times is the date (to) 1919? | CREATE TABLE table_12562214_1 (notes VARCHAR, date__to_ VARCHAR) |
SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33 | What rank has an average of 6.33? | CREATE TABLE table_name_23 (rank INTEGER, average VARCHAR) |
SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = "6–3, 6–2" | How many matches had the result of 6–3, 6–2? | CREATE TABLE table_11636213_7 (partnering VARCHAR, result VARCHAR) |
SELECT COUNT(runs) FROM table_name_87 WHERE average < 27.22 | What is the total number of runs where the average is less than 27.22? | CREATE TABLE table_name_87 (runs VARCHAR, average INTEGER) |
SELECT home FROM table_name_43 WHERE date = "april 2" | What is the Home team on April 2? | CREATE TABLE table_name_43 (home VARCHAR, date VARCHAR) |
SELECT MIN(season__number) FROM table_11951237_3 WHERE production_code = "K1505" | What is the season # where production code is k1505? | CREATE TABLE table_11951237_3 (season__number INTEGER, production_code VARCHAR) |
SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%" | What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage? | CREATE TABLE table_21481509_4 (r1b1c__r_v88_ VARCHAR, total_percentage VARCHAR) |
SELECT COUNT(total_votes) FROM table_name_71 WHERE election > 2009 AND candidates_fielded > 61 | Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61? | CREATE TABLE table_name_71 (total_votes VARCHAR, election VARCHAR, candidates_fielded VARCHAR) |
SELECT 1 AS st_party FROM table_name_42 WHERE election = "1849 by-election" | Which 1st Party has an Election of 1849 by-election? | CREATE TABLE table_name_42 (election VARCHAR) |
SELECT height FROM table_name_45 WHERE name = "nikola franković" | What is the height for Nikola Franković? | CREATE TABLE table_name_45 (height VARCHAR, name VARCHAR) |
SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008" | In 2008, what was the world ranking that ranked 5th in L.A.? | CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR) |
SELECT margin FROM table_name_34 WHERE championship = "masters tournament (2)" | What is the margin for the Masters Tournament (2) championship? | CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR) |
SELECT city_of_license FROM table_name_4 WHERE channels_tv___rf = "67 ( psip ) 29 ( uhf )" | Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf ) | CREATE TABLE table_name_4 (city_of_license VARCHAR, channels_tv___rf VARCHAR) |
SELECT club FROM table_name_69 WHERE lead = "jamie korab" | Which club has Jamie Korab as Lead? | CREATE TABLE table_name_69 (club VARCHAR, lead VARCHAR) |
SELECT SUM(draws) FROM table_name_94 WHERE byes > 0 | What is the sum of draws for all byes larger than 0? | CREATE TABLE table_name_94 (draws INTEGER, byes INTEGER) |
SELECT COUNT(start_of_conflict) FROM table_1921_1 WHERE location = "Afghanistan" | How many conflicts started in Afghanistan? | CREATE TABLE table_1921_1 (start_of_conflict VARCHAR, location VARCHAR) |
SELECT MIN(year) FROM table_name_55 WHERE event = "400m h" AND notes = "54.86" | What is the earliest Year for 400m h Event with 54.86 in Notes? | CREATE TABLE table_name_55 (year INTEGER, event VARCHAR, notes VARCHAR) |
SELECT main_legion_base FROM table_242785_3 WHERE notes = "Primigenia goddess of Fate. XX in Batavi revolt" | What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"? | CREATE TABLE table_242785_3 (main_legion_base VARCHAR, notes VARCHAR) |
SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code | Find the first names of all instructors who have taught some course and the course description. | CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) |
SELECT name FROM table_name_79 WHERE rank < 9 AND heat > 5 AND nationality = "united states" | Who is from the united states, has a rank less than 9, and heat more than 5? | CREATE TABLE table_name_79 (name VARCHAR, nationality VARCHAR, rank VARCHAR, heat VARCHAR) |
SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize" | For how many years has the Mercury Prize been awarded? | CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR) |
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1 | Show the company of the tallest entrepreneur. | CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR, Height VARCHAR) |
SELECT AVG(game) FROM table_name_81 WHERE date = "mar 12" | Which game is on mar 12? | CREATE TABLE table_name_81 (game INTEGER, date VARCHAR) |
SELECT MIN(points) FROM table_name_95 WHERE games > 8 | What is the fewest number of points associated with more than 8 games? | CREATE TABLE table_name_95 (points INTEGER, games INTEGER) |
SELECT attendance FROM table_name_80 WHERE week > 4 AND date = "december 6, 1992" | What is the attendance in a week larter than 4, on December 6, 1992? | CREATE TABLE table_name_80 (attendance VARCHAR, week VARCHAR, date VARCHAR) |
SELECT COUNT(team_number) FROM table_name_93 WHERE player = "john keane" | How many team numbers have john keane as the player? | CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR) |
SELECT railway FROM table_name_16 WHERE objectnumber = "1975-7023" | What is the UK Railway with an ObjectNumber of 1975-7023? | CREATE TABLE table_name_16 (railway VARCHAR, objectnumber VARCHAR) |
SELECT MIN(age_40_49) FROM table_169693_1 | Name the least age 40-49 | CREATE TABLE table_169693_1 (age_40_49 INTEGER) |
SELECT MIN(game) FROM table_23286112_8 WHERE date = "January 29" | Name the least game for january 29 | CREATE TABLE table_23286112_8 (game INTEGER, date VARCHAR) |
SELECT general_classification FROM table_name_36 WHERE mountains_classification = "stefano garzelli" AND points_classification = "danilo di luca" AND winner = "ignatas konovalovas" | What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca? | CREATE TABLE table_name_36 (general_classification VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) |
SELECT loss FROM table_name_3 WHERE record = "66-78" | with a record of 66-78 what was the loss? | CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR) |
SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521 | What is the total number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521? | CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR) |
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930" | What is Left Office, when Inaugurate is "15 March 1930"? | CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR) |
SELECT round FROM table_20860739_1 WHERE college = "Virginia" | How many rounds did Virginia have? | CREATE TABLE table_20860739_1 (round VARCHAR, college VARCHAR) |
SELECT MIN(total) FROM table_name_9 WHERE year_s__won = "1991" | Which Total has a Year(s) won of 1991? | CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR) |
SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999" | When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999? | CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR) |
SELECT date FROM table_name_58 WHERE opponent = "siena" AND ground = "home" | On what date was the game played at home against the opponent Siena? | CREATE TABLE table_name_58 (date VARCHAR, opponent VARCHAR, ground VARCHAR) |
SELECT home_captain FROM table_name_21 WHERE result = "aus by 295 runs" | Which home captian has aus by 295 runs as the result? | CREATE TABLE table_name_21 (home_captain VARCHAR, result VARCHAR) |
SELECT MIN(rank) FROM table_name_45 WHERE passengers > 73 OFFSET 754 | What is the smallest rank for passengers more than 73,754? | CREATE TABLE table_name_45 (rank INTEGER, passengers INTEGER) |
SELECT total_score FROM table_name_68 WHERE location = "san francisco, california" AND year > 1987 AND to_par_[a_] = "+1" | What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1? | CREATE TABLE table_name_68 (total_score VARCHAR, location VARCHAR, year VARCHAR, to_par_ VARCHAR, a_ VARCHAR) |
SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1 | Find the name of the dorm with the largest capacity. | CREATE TABLE dorm (dorm_name VARCHAR, student_capacity VARCHAR) |
SELECT erp_w FROM table_name_44 WHERE frequency_mhz = 96.7 | What was the ERP W for 96.7 MHz? | CREATE TABLE table_name_44 (erp_w VARCHAR, frequency_mhz VARCHAR) |
SELECT high_assists FROM table_17325937_8 WHERE team = "Miami" | Who had the most assists in the game against Miami? | CREATE TABLE table_17325937_8 (high_assists VARCHAR, team VARCHAR) |
SELECT COUNT(react) FROM table_name_53 WHERE time < 20.05 AND lane < 6 | What is the total react number with a time less than 20.05 and a lane less than 6? | CREATE TABLE table_name_53 (react VARCHAR, time VARCHAR, lane VARCHAR) |
SELECT position FROM table_2508633_4 WHERE nfl_team = "New Orleans Saints" | What were the pick numbers of the defensive tackles chosen by the New Orleans Saints in the 1983 draft? | CREATE TABLE table_2508633_4 (position VARCHAR, nfl_team VARCHAR) |
SELECT original_airdate FROM table_2501754_2 WHERE viewing_figures_millions = "8.63" | What are the original air date(s) for episodes with 8.63 million viewers? | CREATE TABLE table_2501754_2 (original_airdate VARCHAR, viewing_figures_millions VARCHAR) |
SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = "south jeolla" AND administrative_district = "seungju" | WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju? | CREATE TABLE table_name_33 (province_of_silla VARCHAR, modern_equivalent VARCHAR, administrative_district VARCHAR) |
SELECT championship FROM table_11570261_1 WHERE winning_score = −12(74 - 66 - 65 - 71 = 276) | what's the championship where winning score is −12 (74-66-65-71=276) | CREATE TABLE table_11570261_1 (championship VARCHAR, winning_score VARCHAR) |
SELECT sets_w_l FROM table_23133482_1 WHERE player = "Ken Rosewall" | What are Ken Rosewall's sets w-l? | CREATE TABLE table_23133482_1 (sets_w_l VARCHAR, player VARCHAR) |
SELECT score FROM table_name_49 WHERE record = "39–21–4" | What was the score of the game when the record was 39–21–4? | CREATE TABLE table_name_49 (score VARCHAR, record VARCHAR) |
SELECT to_par FROM table_247955_2 WHERE winning_score = 69 - 66 - 69 - 64 = 268 | What were the shots below par when the winning score was 69-66-69-64=268? | CREATE TABLE table_247955_2 (to_par VARCHAR, winning_score VARCHAR) |
SELECT charity FROM table_12286195_1 WHERE background = "Reality Star" | What is the charity of the celebrity with the background reality star? | CREATE TABLE table_12286195_1 (charity VARCHAR, background VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.