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