answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT post_town FROM table_name_54 WHERE dialcode = "020" AND location = "hook" | CREATE TABLE table_name_54 (post_town VARCHAR, dialcode VARCHAR, location VARCHAR) | Which Post Town has a Dialcode of 020 and is located in Hook? |
SELECT dialcode FROM table_name_11 WHERE location = "edmonton" | CREATE TABLE table_name_11 (dialcode VARCHAR, location VARCHAR) | What Dialcode has a location of Edmonton? |
SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589 | CREATE TABLE table_name_82 (rank INTEGER, earnings__$__ INTEGER) | Which average rank has an Earning amount that is less than $224,589? |
SELECT country FROM table_name_93 WHERE rank = 2 | CREATE TABLE table_name_93 (country VARCHAR, rank VARCHAR) | Which country has a rank of 2? |
SELECT COUNT(roll) FROM table_name_7 WHERE name = "shelly park school" | CREATE TABLE table_name_7 (roll VARCHAR, name VARCHAR) | What is the total number on roll for Shelly Park school? |
SELECT week FROM table_name_96 WHERE record = "0-5" | CREATE TABLE table_name_96 (week VARCHAR, record VARCHAR) | What week was the record 0-5? |
SELECT result FROM table_name_31 WHERE attendance = "45,320" | CREATE TABLE table_name_31 (result VARCHAR, attendance VARCHAR) | What was the result of the game with the attendance of 45,320? |
SELECT kickoff_[a_] FROM table_name_68 WHERE date = "september 15, 1985" | CREATE TABLE table_name_68 (kickoff_ VARCHAR, a_ VARCHAR, date VARCHAR) | What time was the kickoff on September 15, 1985? |
SELECT player FROM table_name_74 WHERE long = "5" AND yards = "6" | CREATE TABLE table_name_74 (player VARCHAR, long VARCHAR, yards VARCHAR) | Which Player had a Long of 5 and Yards of 6? |
SELECT yards FROM table_name_32 WHERE player = "rob turner" | CREATE TABLE table_name_32 (yards VARCHAR, player VARCHAR) | How many Yards did Player Rob Turner collect? |
SELECT home FROM table_name_52 WHERE date = "march 5" | CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR) | Who is the home team on March 5? |
SELECT visitor FROM table_name_62 WHERE date = "march 24" | CREATE TABLE table_name_62 (visitor VARCHAR, date VARCHAR) | Who is the visitor on March 24? |
SELECT home FROM table_name_57 WHERE date = "march 24" | CREATE TABLE table_name_57 (home VARCHAR, date VARCHAR) | Who was the home team on March 24? |
SELECT assisted FROM table_name_79 WHERE solo = 6 AND sack < 5 | CREATE TABLE table_name_79 (assisted VARCHAR, solo VARCHAR, sack VARCHAR) | what is the assisted when the solo is 6 and sack is less than 5? |
SELECT COUNT(losses) FROM table_name_61 WHERE played > 34 | CREATE TABLE table_name_61 (losses VARCHAR, played INTEGER) | How many losses had a played number that was more than 34? |
SELECT MAX(goals_against) FROM table_name_79 WHERE wins = 19 AND goals_for > 53 | CREATE TABLE table_name_79 (goals_against INTEGER, wins VARCHAR, goals_for VARCHAR) | Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53? |
SELECT AVG(losses) FROM table_name_58 WHERE played > 34 | CREATE TABLE table_name_58 (losses INTEGER, played INTEGER) | Which mean number of losses had a played number that was bigger than 34? |
SELECT MIN(goals_for) FROM table_name_95 WHERE played < 34 | CREATE TABLE table_name_95 (goals_for INTEGER, played INTEGER) | Which lowest goals for number had a played number of less than 34? |
SELECT COUNT(played) FROM table_name_29 WHERE goal_difference > 0 AND club = "valencia cf" | CREATE TABLE table_name_29 (played VARCHAR, goal_difference VARCHAR, club VARCHAR) | Which Played number had a goal difference of more than 0 when the club was Valencia CF? |
SELECT player FROM table_name_97 WHERE college = "san sebastian" | CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR) | What player has a college named san sebastian? |
SELECT college FROM table_name_33 WHERE pick = 45 | CREATE TABLE table_name_33 (college VARCHAR, pick VARCHAR) | What college has pick 45 |
SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183 | CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR) | Name the air date for the seasons before 14 and series less than 183 with production code more than 709 |
SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706 | CREATE TABLE table_name_78 (title VARCHAR, series__number VARCHAR, production_code VARCHAR) | Tell me the title for the production code less than 706 with series number more than 175 |
SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17 | CREATE TABLE table_name_41 (series__number INTEGER, production_code VARCHAR, season__number VARCHAR) | Name the least series number with production code of 717 and season number less than 17 |
SELECT can_yayınları FROM table_name_39 WHERE güzelçamlı’nin_kayıp_panteri = "çevreci peri" | CREATE TABLE table_name_39 (can_yayınları VARCHAR, güzelçamlı’nin_kayıp_panteri VARCHAR) | Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri? |
SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = "green fairy" | CREATE TABLE table_name_76 (güzelçamlı’s_lost_panther VARCHAR) | Which 2005 has a Güzelçamlı’s Lost Panther of green fairy? |
SELECT MAX(2005) FROM table_name_38 WHERE güzelçamlı’s_lost_panther = "the muse" | CREATE TABLE table_name_38 (güzelçamlı’s_lost_panther VARCHAR) | Which 2005 has a Güzelçamlı’s Lost Panther of the muse? |
SELECT grid FROM table_name_11 WHERE driver = "pierre levegh" | CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR) | what is the grid when the driver is pierre levegh? |
SELECT grid FROM table_name_21 WHERE laps = 2 | CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR) | what is the grid when the laps is 2? |
SELECT time_retired FROM table_name_81 WHERE driver = "toulo de graffenried" | CREATE TABLE table_name_81 (time_retired VARCHAR, driver VARCHAR) | what is the time/retired when the driver is toulo de graffenried? |
SELECT time_retired FROM table_name_36 WHERE grid < 13 AND constructor = "alfa romeo" AND laps > 12 | CREATE TABLE table_name_36 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR) | what is the time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12? |
SELECT SUM(grid) FROM table_name_94 WHERE laps > 20 | CREATE TABLE table_name_94 (grid INTEGER, laps INTEGER) | what is the grid when the laps is more than 20? |
SELECT d_49_√ FROM table_name_37 WHERE d_47_√ = "d 67 +" | CREATE TABLE table_name_37 (d_49_√ VARCHAR, d_47_√ VARCHAR) | What is the D 49 √ when D 47 √ is d 67 +? |
SELECT d_44_√ FROM table_name_19 WHERE d_47_√ = "r 7" | CREATE TABLE table_name_19 (d_44_√ VARCHAR, d_47_√ VARCHAR) | What is the number for D 44 √ when D 47 √ is r 7? |
SELECT d_42_√ FROM table_name_6 WHERE d_45_√ = "r 16" | CREATE TABLE table_name_6 (d_42_√ VARCHAR, d_45_√ VARCHAR) | What is the D 42 √ number when the D 45 √ is r 16? |
SELECT d_49_√ FROM table_name_19 WHERE d_41_√ = "d 61 √" | CREATE TABLE table_name_19 (d_49_√ VARCHAR, d_41_√ VARCHAR) | What is the D 49 √ number when the D 41 √ is d 61 √? |
SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = "r 6" | CREATE TABLE table_name_77 (d_42_√ VARCHAR, d_46_√ VARCHAR) | What is the D 42 √ figure when D 46 √ is r 6? |
SELECT d_50_√ FROM table_name_93 WHERE d_47_√ = "r 27 √" | CREATE TABLE table_name_93 (d_50_√ VARCHAR, d_47_√ VARCHAR) | What is the D 50 √ when the D 47 √ is r 27 √? |
SELECT player FROM table_name_94 WHERE competition = "ballarat football league" | CREATE TABLE table_name_94 (player VARCHAR, competition VARCHAR) | Tell me the player for ballarat football league |
SELECT player FROM table_name_88 WHERE team = "east perth" | CREATE TABLE table_name_88 (player VARCHAR, team VARCHAR) | Tell me the player for east perth |
SELECT score FROM table_name_67 WHERE team = "waaia" | CREATE TABLE table_name_67 (score VARCHAR, team VARCHAR) | Tell met he score for team of waaia |
SELECT team FROM table_name_48 WHERE competition = "victorian football league" | CREATE TABLE table_name_48 (team VARCHAR, competition VARCHAR) | Tell me the team for victorian football league |
SELECT debut FROM table_name_58 WHERE name = "scott tunbridge" | CREATE TABLE table_name_58 (debut VARCHAR, name VARCHAR) | What round was the debut of Scott Tunbridge? |
SELECT debut FROM table_name_11 WHERE position = "defender" AND name = "stephen laybutt" | CREATE TABLE table_name_11 (debut VARCHAR, position VARCHAR, name VARCHAR) | What round was the debut of defender Stephen Laybutt? |
SELECT position FROM table_name_66 WHERE debut = "round 6" | CREATE TABLE table_name_66 (position VARCHAR, debut VARCHAR) | What position had a debut in round 6? |
SELECT name FROM table_name_96 WHERE debut = "round 6" | CREATE TABLE table_name_96 (name VARCHAR, debut VARCHAR) | What is the name of the player that had a debut in round 6? |
SELECT date_joined FROM table_name_27 WHERE from__club_ = "santo andré" | CREATE TABLE table_name_27 (date_joined VARCHAR, from__club_ VARCHAR) | What date did the player from Santo André debut? |
SELECT venue FROM table_name_64 WHERE score = "20½–11½" | CREATE TABLE table_name_64 (venue VARCHAR, score VARCHAR) | what is the venue when the score is 20½–11½? |
SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club" | CREATE TABLE table_name_31 (winning_team VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR) | Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club? |
SELECT MAX(year) FROM table_name_61 WHERE us_captain = "ken venturi" | CREATE TABLE table_name_61 (year INTEGER, us_captain VARCHAR) | what is the highest year that the U.S. captain is ken venturi? |
SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham" | CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR) | what is the location when the year is less than 1998 and the international captain is david graham? |
SELECT COUNT(earnings__) AS $__ FROM table_name_64 WHERE player = "jim colbert" AND rank < 2 | CREATE TABLE table_name_64 (earnings__ VARCHAR, player VARCHAR, rank VARCHAR) | How much did jim colbert earned ranked above 2? |
SELECT date FROM table_name_74 WHERE venue = "junction oval" | CREATE TABLE table_name_74 (date VARCHAR, venue VARCHAR) | What day did the VFL play at Junction Oval? |
SELECT venue FROM table_name_41 WHERE home_team = "footscray" | CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR) | Where did Footscray play as the home team? |
SELECT away_team AS score FROM table_name_62 WHERE home_team = "footscray" | CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) | Who was the opponent when Footscray played as the home team? |
SELECT COUNT(crowd) FROM table_name_50 WHERE venue = "arden street oval" | CREATE TABLE table_name_50 (crowd VARCHAR, venue VARCHAR) | What was the attendance when the VFL played Arden Street Oval? |
SELECT loss FROM table_name_82 WHERE date = "june 22" | CREATE TABLE table_name_82 (loss VARCHAR, date VARCHAR) | What was the score June 22? |
SELECT school FROM table_name_68 WHERE hometown = "winter park, fl" | CREATE TABLE table_name_68 (school VARCHAR, hometown VARCHAR) | Which school has a hometown of winter park, FL? |
SELECT college FROM table_name_68 WHERE height = "6-4" AND school = "lake howell high school" | CREATE TABLE table_name_68 (college VARCHAR, height VARCHAR, school VARCHAR) | What's the college of the player with a height of 6-4 and went to lake howell high school? |
SELECT hometown FROM table_name_51 WHERE college = "lsu" | CREATE TABLE table_name_51 (hometown VARCHAR, college VARCHAR) | What's the hometown of the player with a college of lsu? |
SELECT height FROM table_name_72 WHERE school = "lake howell high school" | CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR) | What's the heigh of the player who went to lake howell high school? |
SELECT height FROM table_name_83 WHERE player = "nolan smith" | CREATE TABLE table_name_83 (height VARCHAR, player VARCHAR) | What's the heigh of nolan smith? |
SELECT height FROM table_name_64 WHERE school = "oak hill academy" | CREATE TABLE table_name_64 (height VARCHAR, school VARCHAR) | What's the height of the player who went to oak hill academy? |
SELECT tyre FROM table_name_67 WHERE fastest_lap = "paul russo" | CREATE TABLE table_name_67 (tyre VARCHAR, fastest_lap VARCHAR) | What tyre did Paul Russo have on his fastest lap? |
SELECT date FROM table_name_28 WHERE constructor = "maserati" AND fastest_lap = "stirling moss" | CREATE TABLE table_name_28 (date VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) | What is the date that Stirling Moss had his fastest lap in a Maserati? |
SELECT winning_driver FROM table_name_90 WHERE date = "30 may" | CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR) | Who was the winning driver on 30 May? |
SELECT fastest_lap FROM table_name_31 WHERE race = "belgian grand prix" | CREATE TABLE table_name_31 (fastest_lap VARCHAR, race VARCHAR) | What was the fastest lap in the Belgian Grand Prix? |
SELECT home_team FROM table_name_15 WHERE away_team = "hawthorn" | CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) | Who was the home team when the away team was Hawthorn? |
SELECT date FROM table_name_24 WHERE venue = "windy hill" | CREATE TABLE table_name_24 (date VARCHAR, venue VARCHAR) | On what date did the game at Windy Hill take place? |
SELECT venue FROM table_name_69 WHERE away_team = "hawthorn" | CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR) | What was the venue when the away team was Hawthorn? |
SELECT home_team FROM table_name_36 WHERE venue = "windy hill" | CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR) | What was the home team when the game was at Windy Hill? |
SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010 | CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR) | What position has less than 343 laps in 2010? |
SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002 | CREATE TABLE table_name_68 (laps INTEGER, team VARCHAR, year VARCHAR) | What are panoz motor sports' lowest number of laps before 2002? |
SELECT SUM(game) FROM table_name_61 WHERE high_assists = "paul (9)" | CREATE TABLE table_name_61 (game INTEGER, high_assists VARCHAR) | What's the sum of the games that had paul (9) for high assists? |
SELECT team FROM table_name_65 WHERE high_points = "west (20)" | CREATE TABLE table_name_65 (team VARCHAR, high_points VARCHAR) | What team had a high points of west (20)? |
SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633 | CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR) | What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? |
SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 5 | CREATE TABLE table_name_46 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | What is the time/retired associated with a grid of 5 and under 73 laps? |
SELECT free FROM table_name_80 WHERE total = 156.67 | CREATE TABLE table_name_80 (free VARCHAR, total VARCHAR) | What was the free score of the skater with a total of 156.67? |
SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35 | CREATE TABLE table_name_19 (figures INTEGER, free INTEGER) | What was the average figure score of the skater with a free score under 56.35? |
SELECT opponent FROM table_name_85 WHERE round = "1" | CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR) | Which opponent had round 1? |
SELECT date FROM table_name_52 WHERE opponent = "dender" AND tournament = "jupiler league" AND ground = "a" | CREATE TABLE table_name_52 (date VARCHAR, ground VARCHAR, opponent VARCHAR, tournament VARCHAR) | Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a? |
SELECT ground FROM table_name_17 WHERE round = "33" | CREATE TABLE table_name_17 (ground VARCHAR, round VARCHAR) | Which ground's round was 33? |
SELECT competition FROM table_name_68 WHERE final_position___round = "2" | CREATE TABLE table_name_68 (competition VARCHAR, final_position___round VARCHAR) | Which competition had a final position/round of 2? |
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round" | CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR) | Which first match had a final position/round in the third qualifying round? |
SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6 | CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR) | What is the lowest number of bronze medals for nations with over 6 total and 2 golds? |
SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2 | CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR) | What is the total number of silver medals for karate athletes with over 2 golds? |
SELECT 2009 FROM table_name_20 WHERE 2010 = "1r" AND 2011 = "a" | CREATE TABLE table_name_20 (Id VARCHAR) | What is the 2009 value with a 1r in 2010 and A in 2011? |
SELECT 2009 FROM table_name_79 WHERE 2010 = "a" | CREATE TABLE table_name_79 (Id VARCHAR) | What is the 2009 value with a 2010 A value? |
SELECT 2010 FROM table_name_50 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "2r" | CREATE TABLE table_name_50 (Id VARCHAR) | What is the 2010 value with A in 2008, A in 2011, and 2r in 2012? |
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24" | CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) | What is the average attendance on april 24? |
SELECT away_team AS score FROM table_name_85 WHERE away_team = "richmond" | CREATE TABLE table_name_85 (away_team VARCHAR) | What was the score of the away team when Richmond played? |
SELECT constructor FROM table_name_47 WHERE laps = 16 AND grid = 9 | CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | What company was Constructor when there were 16 laps and grid was 9? |
SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 17 | CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) | What is the Time/Retired when lotus - ford was constructor and the laps were less than 17? |
SELECT SUM(grid) FROM table_name_25 WHERE time_retired = "engine" AND laps < 9 | CREATE TABLE table_name_25 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | What is the number of the grid when there was a Time/Retired of engine and less than 9 laps? |
SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0" | CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR) | what was the attendance for a home venue and a w 3-0 result? |
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "home" AND result = "w 3-1" | CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, result VARCHAR) | what was the attendance at the home venue with result w 3-1? |
SELECT venue FROM table_name_77 WHERE opponent = "rochdale" | CREATE TABLE table_name_77 (venue VARCHAR, opponent VARCHAR) | where did rochdale play as opponent? |
SELECT away_team FROM table_name_14 WHERE stadium = "adelaide oval" | CREATE TABLE table_name_14 (away_team VARCHAR, stadium VARCHAR) | Which team was hosted at Adelaide Oval? |
SELECT year FROM table_name_29 WHERE report = "not held" | CREATE TABLE table_name_29 (year VARCHAR, report VARCHAR) | When was a report not held? |
SELECT visitor FROM table_name_77 WHERE home = "vancouver" | CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR) | Who was the visitor when vancouver was at home? |
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.