answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary" | CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR) | What's the sum of the attendance for the calgary home team? |
SELECT record FROM table_name_98 WHERE visitor = "chicago" | CREATE TABLE table_name_98 (record VARCHAR, visitor VARCHAR) | What was the record when chicago was the visiting team? |
SELECT date FROM table_name_10 WHERE series = "0β1" | CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR) | What was the date of the game when the record of the series was 0β1? |
SELECT away_team AS score FROM table_name_58 WHERE home_team = "south melbourne" | CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) | What is the score for the away team when South Melbourne was the home team? |
SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum" | CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR) | What was the score of the 2001 game held at Network Associates Coliseum? |
SELECT region FROM table_name_52 WHERE home_venue = "giuseppe sivori" | CREATE TABLE table_name_52 (region VARCHAR, home_venue VARCHAR) | What region has giuseppe sivori as a home venue? |
SELECT city FROM table_name_67 WHERE short_name = "pontisola" | CREATE TABLE table_name_67 (city VARCHAR, short_name VARCHAR) | What city has the nickname of pontisola? |
SELECT name FROM table_name_40 WHERE home_venue = "comunale" AND city = "darfo boario terme" | CREATE TABLE table_name_40 (name VARCHAR, home_venue VARCHAR, city VARCHAR) | What squad plays at comunale in darfo boario terme? |
SELECT pick__number FROM table_name_62 WHERE league_from = "western hockey league" AND player = "scott glennie" | CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR) | What pick was Scott Glennie from the Western hockey league |
SELECT player FROM table_name_40 WHERE nationality = "united states" AND league_from = "western collegiate hockey association" | CREATE TABLE table_name_40 (player VARCHAR, nationality VARCHAR, league_from VARCHAR) | What player from the United States played in the western collegiate hockey association? |
SELECT MAX(laps) FROM table_name_25 WHERE time_retired = "+1 lap" AND constructor = "brm" AND grid > 1 | CREATE TABLE table_name_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR) | Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded? |
SELECT COUNT(grid) FROM table_name_69 WHERE laps < 9 AND time_retired = "engine" | CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR) | When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values? |
SELECT driver FROM table_name_59 WHERE grid = 3 | CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR) | Which driver has a grid of 3? |
SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31 | CREATE TABLE table_name_58 (grid INTEGER, constructor VARCHAR, laps VARCHAR) | When the laps are 31 and the constructor was honda, what's the sum of all grid values? |
SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill" | CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR) | What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? |
SELECT constructor FROM table_name_84 WHERE driver = "alexander wurz" | CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR) | What is the constructor of driver Alexander Wurz? |
SELECT driver FROM table_name_53 WHERE rounds = "all" AND chassis = "f399" | CREATE TABLE table_name_53 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR) | Who was the driver that had all rounds and a f399 chassis? |
SELECT rounds FROM table_name_33 WHERE engine_β = "ferrari 048" | CREATE TABLE table_name_33 (rounds VARCHAR, engine_β VARCHAR) | What were the rounds on the Engine β of the Ferrari 048? |
SELECT semifinal FROM table_name_47 WHERE event = "team" | CREATE TABLE table_name_47 (semifinal VARCHAR, event VARCHAR) | Which Semifinal has an Event of team? |
SELECT quarterfinal FROM table_name_28 WHERE rank > 9 | CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER) | Which Quarterfinal has a Rank larger than 9? |
SELECT COUNT(pick__number) FROM table_name_46 WHERE position = "db" | CREATE TABLE table_name_46 (pick__number VARCHAR, position VARCHAR) | What is the pick number of the DB? |
SELECT college FROM "t" AS able_name_20 WHERE pick__number > 13 AND position = "t" | CREATE TABLE t (Id VARCHAR) | What college did the T who was pick after 13 go to? |
SELECT cfl_team FROM table_name_5 WHERE college = "boston college" | CREATE TABLE table_name_5 (cfl_team VARCHAR, college VARCHAR) | Which CFL team drafted a pick from Boston College? |
SELECT position FROM table_name_51 WHERE college = "saskatchewan" | CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR) | What position did the Saskatchewan player get drafted as? |
SELECT AVG(grid) FROM table_name_32 WHERE laps > 53 | CREATE TABLE table_name_32 (grid INTEGER, laps INTEGER) | When the laps are over 53, what's the average grid? |
SELECT AVG(laps) FROM table_name_75 WHERE driver = "david coulthard" | CREATE TABLE table_name_75 (laps INTEGER, driver VARCHAR) | What's the average laps driven by david coulthard? |
SELECT opponent_in_the_final FROM table_name_8 WHERE year < 1883 | CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, year INTEGER) | who is the opponent in the final when the year is before 1883? |
SELECT outcome FROM table_name_4 WHERE year = 1887 | CREATE TABLE table_name_4 (outcome VARCHAR, year VARCHAR) | what is the outcome for the 1887? |
SELECT outcome FROM table_name_24 WHERE year > 1882 AND opponent_in_the_final = "william renshaw" | CREATE TABLE table_name_24 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR) | what is the outcome when the opponent in the final is william renshaw after year 1882? |
SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford" | CREATE TABLE table_name_39 (score VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR, outcome VARCHAR) | what is the score when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? |
SELECT artist FROM table_name_29 WHERE mintage > 34 OFFSET 135 | CREATE TABLE table_name_29 (artist VARCHAR, mintage INTEGER) | What artist has a mintage of greater than 34,135? |
SELECT artist FROM table_name_71 WHERE year = 2005 | CREATE TABLE table_name_71 (artist VARCHAR, year VARCHAR) | What artist was released in 2005? |
SELECT AVG(year) FROM table_name_35 WHERE team = "melbourne" | CREATE TABLE table_name_35 (year INTEGER, team VARCHAR) | What's melbourne's average year? |
SELECT opponent FROM table_name_71 WHERE player = "ashley sampi" | CREATE TABLE table_name_71 (opponent VARCHAR, player VARCHAR) | Who was ashley sampi's opponent? |
SELECT team FROM table_name_59 WHERE year > 1935 AND player = "daniel bradshaw" | CREATE TABLE table_name_59 (team VARCHAR, year VARCHAR, player VARCHAR) | Which team did daniel bradshaw play for after 1935? |
SELECT player FROM table_name_25 WHERE year = 1992 | CREATE TABLE table_name_25 (player VARCHAR, year VARCHAR) | Who played in 1992? |
SELECT date FROM table_name_65 WHERE away_team = "fitzroy" | CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) | What date was fitzroy the away team? |
SELECT surface FROM table_name_13 WHERE partner = "carlos berlocq" | CREATE TABLE table_name_13 (surface VARCHAR, partner VARCHAR) | Name the surface when the partner is carlos berlocq |
SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0β6, 0β6" | CREATE TABLE table_name_75 (date VARCHAR, surface VARCHAR, score VARCHAR) | Name the date for clay surface and score of 0β6, 0β6 |
SELECT partner FROM table_name_80 WHERE score = "6β3, 6β2" | CREATE TABLE table_name_80 (partner VARCHAR, score VARCHAR) | Name the partner with score of 6β3, 6β2 |
SELECT tournament FROM table_name_99 WHERE surface = "clay" AND outcome = "winner" AND score = "6β3, 6β2" | CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR) | Name the tournament for clay surface and outcome is winner with score is 6β3, 6β2 |
SELECT outcome FROM table_name_70 WHERE date = "6 october 2013" | CREATE TABLE table_name_70 (outcome VARCHAR, date VARCHAR) | Name the outcome on 6 october 2013 |
SELECT song FROM table_name_55 WHERE total_points > 9 AND jury__points_ = "44 (11)" | CREATE TABLE table_name_55 (song VARCHAR, total_points VARCHAR, jury__points_ VARCHAR) | What is the song with more than 9 points and 44 (11) jury (points)? |
SELECT artist FROM table_name_11 WHERE televotes__points_ = "2153 (5)" | CREATE TABLE table_name_11 (artist VARCHAR, televotes__points_ VARCHAR) | Who is the artist with 2153 (5) televotes (points)? |
SELECT MIN(total_points) FROM table_name_8 WHERE draw < 4 AND artist = "karine trΓ©cy" | CREATE TABLE table_name_8 (total_points INTEGER, draw VARCHAR, artist VARCHAR) | What is the lowest total points Karine TrΓ©cy has with less than 4 draws? |
SELECT MIN(total_points) FROM table_name_84 WHERE artist = "karine trΓ©cy" AND place < 12 | CREATE TABLE table_name_84 (total_points INTEGER, artist VARCHAR, place VARCHAR) | What is the lowest total points Karine TrΓ©cy has with a less than 12 place? |
SELECT AVG(18 AS _49) FROM table_name_96 WHERE viewers__m_ = 3.93 AND share < 4 | CREATE TABLE table_name_96 (viewers__m_ VARCHAR, share VARCHAR) | What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4? |
SELECT COUNT(18 AS _49) FROM table_name_47 WHERE air_date = "january 7, 2009" | CREATE TABLE table_name_47 (air_date VARCHAR) | What is the total number of ratings among the 18 to 49 group that was aired on January 7, 2009? |
SELECT MAX(laps) FROM table_name_16 WHERE driver = "mike hailwood" AND grid > 7 | CREATE TABLE table_name_16 (laps INTEGER, driver VARCHAR, grid VARCHAR) | What was Mike Hailwood's highest laps when he had a grid more than 7? |
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362" | CREATE TABLE table_name_77 (name VARCHAR, cerclis_id VARCHAR) | What is the name of the site with a CERCLIS ID of prd980512362? |
SELECT listed FROM table_name_22 WHERE municipality = "florida" | CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR) | What is the site for Florida? |
SELECT deleted FROM table_name_8 WHERE name = "rca del caribe" | CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR) | What site in the RCA Del Caribe was deleted? |
SELECT partially_deleted FROM table_name_65 WHERE name = "fibers public supply wells" | CREATE TABLE table_name_65 (partially_deleted VARCHAR, name VARCHAR) | Where is the partially deleted site of fibers public supply wells located? |
SELECT municipality FROM table_name_35 WHERE proposed = "03/08/2004" | CREATE TABLE table_name_35 (municipality VARCHAR, proposed VARCHAR) | The proposed 03/08/2004 site is in what municipality? |
SELECT release_format FROM table_name_55 WHERE release_date > 1983 | CREATE TABLE table_name_55 (release_format VARCHAR, release_date INTEGER) | What is the release format for titles after 1983? |
SELECT venue FROM table_name_39 WHERE home_team = "carlton" | CREATE TABLE table_name_39 (venue VARCHAR, home_team VARCHAR) | What venue is the home of the Carlton team? |
SELECT driver FROM table_name_88 WHERE laps = "68" AND grid = "18" | CREATE TABLE table_name_88 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | Which driver had a grid of 18 with 68 laps? |
SELECT driver FROM table_name_58 WHERE grid = "18" | CREATE TABLE table_name_58 (driver VARCHAR, grid VARCHAR) | Which driver had a grid of 18? |
SELECT driver FROM table_name_43 WHERE grid = "22" | CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR) | Which driver had a grid of 22? |
SELECT season FROM table_name_41 WHERE wicket_partnership = "2nd" | CREATE TABLE table_name_41 (season VARCHAR, wicket_partnership VARCHAR) | Which season is the wicket 2nd partnership in? |
SELECT venue FROM table_name_4 WHERE opponents = "v kent" | CREATE TABLE table_name_4 (venue VARCHAR, opponents VARCHAR) | Where did v kent play? |
SELECT runs FROM table_name_28 WHERE batsmen = "james bryant graeme welch" | CREATE TABLE table_name_28 (runs VARCHAR, batsmen VARCHAR) | Which runs had james bryant graeme welch as Batsmen? |
SELECT clay FROM table_name_36 WHERE record = "2β0" AND hard = "1β0" | CREATE TABLE table_name_36 (clay VARCHAR, record VARCHAR, hard VARCHAR) | Which clay has a Record of 2β0, and a Hard 1β0? |
SELECT hard FROM table_name_10 WHERE clay = "0β0" AND grass = "0β0" AND carpet = "0β0" AND record = "1β0" | CREATE TABLE table_name_10 (hard VARCHAR, record VARCHAR, carpet VARCHAR, clay VARCHAR, grass VARCHAR) | Which hard has a Clay of 0β0, Grass of 0β0, Carpet of 0β0, and a Record of 1β0? |
SELECT carpet FROM table_name_1 WHERE clay = "1β0" AND hard = "1β1" | CREATE TABLE table_name_1 (carpet VARCHAR, clay VARCHAR, hard VARCHAR) | Which carpet has a Clay of 1β0 and a Hard 1β1? |
SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378 | CREATE TABLE table_name_5 (rank INTEGER, population INTEGER) | Name the most rank for population more than 93,378 |
SELECT award FROM table_name_18 WHERE year = 1992 | CREATE TABLE table_name_18 (award VARCHAR, year VARCHAR) | What award is featured in 1992? |
SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist" | CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR) | What award was won in the best sound category for the exorcist before 1998? |
SELECT 1953 FROM table_name_25 WHERE richmond_[staten_is] = "1,019" | CREATE TABLE table_name_25 (richmond_ VARCHAR, staten_is VARCHAR) | What was the candidate that got 1,019 votes for staten island? |
SELECT opponent FROM table_name_28 WHERE date = "august 29" | CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) | What was the opposing team for the game on August 29? |
SELECT player FROM table_name_68 WHERE tries = "11" | CREATE TABLE table_name_68 (player VARCHAR, tries VARCHAR) | which player has 11 tries? |
SELECT player FROM table_name_45 WHERE conv = "14" | CREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR) | which player has a conv of 14? |
SELECT conv FROM table_name_19 WHERE span = "1992-2000" | CREATE TABLE table_name_19 (conv VARCHAR, span VARCHAR) | on the span of 1992-2000, what was the conv ? |
SELECT MAX(points) FROM table_name_32 WHERE artist = "martine foubert" AND place > 2 | CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR) | What is the high point toal for martine foubert placing below 2? |
SELECT away_team AS score FROM table_name_64 WHERE away_team = "melbourne" | CREATE TABLE table_name_64 (away_team VARCHAR) | How much did the away team Melbourne score? |
SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond" | CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) | What is the highest crowd number for the home team Richmond? |
SELECT home_team FROM table_name_76 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) | What home team played at Glenferrie Oval? |
SELECT away_team AS score FROM table_name_51 WHERE away_team = "st kilda" | CREATE TABLE table_name_51 (away_team VARCHAR) | How much did the away team St Kilda score? |
SELECT crowd FROM table_name_28 WHERE away_team = "st kilda" | CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR) | Which Crowd has an Away team of st kilda? |
SELECT stadium FROM table_name_8 WHERE final_score = "26β21" | CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR) | What stadium has a final score of 26β21? |
SELECT final_score FROM table_name_94 WHERE stadium = "texas stadium" AND visiting_team = "new orleans saints" | CREATE TABLE table_name_94 (final_score VARCHAR, stadium VARCHAR, visiting_team VARCHAR) | When the new orleans saints were visiting texas stadium, what was the final score? |
SELECT final_score FROM table_name_43 WHERE stadium = "texas stadium" AND date = "september 17" | CREATE TABLE table_name_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR) | What was the final score at texas stadium on September 17? |
SELECT final_score FROM table_name_9 WHERE visiting_team = "indianapolis colts" AND stadium = "giants stadium" | CREATE TABLE table_name_9 (final_score VARCHAR, visiting_team VARCHAR, stadium VARCHAR) | What was the final score for the game at giants stadium when the indianapolis colts were the visiting team? |
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565" | CREATE TABLE table_name_82 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR) | What were the investment earnings in the year that State and Federal taxes were $8,549,565? |
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169" | CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR) | What were the investment earnings in the year that State and Federal taxes were $13,999,169? |
SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060" | CREATE TABLE table_name_3 (investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR) | What were the investment earnings in a year when other local sources were $2,670,060 after 2001? |
SELECT investment_earnings FROM table_name_23 WHERE total_revenue = "21,779,618" | CREATE TABLE table_name_23 (investment_earnings VARCHAR, total_revenue VARCHAR) | What were the investment earnings in a year when total revenue was $21,779,618? |
SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700" | CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR) | What were property taxes in a year when total revenue was $40,891,700 after 2002? |
SELECT rank FROM table_name_28 WHERE season = 1 | CREATE TABLE table_name_28 (rank VARCHAR, season VARCHAR) | What rank for season 1? |
SELECT week FROM table_name_66 WHERE attendance = "27,262" | CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR) | What week had an attendance of 27,262? |
SELECT opponent FROM table_name_7 WHERE attendance = "20,456" | CREATE TABLE table_name_7 (opponent VARCHAR, attendance VARCHAR) | What opponent has an attendance of 20,456? |
SELECT record FROM table_name_40 WHERE date = "march 27" | CREATE TABLE table_name_40 (record VARCHAR, date VARCHAR) | What was the record on March 27? |
SELECT record FROM table_name_68 WHERE date = "march 22" | CREATE TABLE table_name_68 (record VARCHAR, date VARCHAR) | What was the record on March 22? |
SELECT record FROM table_name_44 WHERE date = "april 1" | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) | What was the record on April 1? |
SELECT MIN(crowd) FROM table_name_65 WHERE away_team = "carlton" | CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR) | What was the lowest crowd size when Carlton was the away team. |
SELECT home_team FROM table_name_5 WHERE away_team = "footscray" | CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR) | Who played as the home team when Footscray was the away team? |
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "hawthorn" | CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR) | What size was the crowd when Hawthorn was the home team? |
SELECT MIN(gold) FROM table_name_25 WHERE rank > 1 AND nation = "italy" AND silver > 0 | CREATE TABLE table_name_25 (gold INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR) | What is the lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver? |
SELECT SUM(gold) FROM table_name_76 WHERE rank < 5 AND bronze > 1 | CREATE TABLE table_name_76 (gold INTEGER, rank VARCHAR, bronze VARCHAR) | How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive? |
SELECT MIN(bronze) FROM table_name_27 WHERE total < 1 | CREATE TABLE table_name_27 (bronze INTEGER, total INTEGER) | When the Total is less than 1, how many Bronze medals are won? |
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.