instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the Score of game 35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_43 WHERE game = 35 |
Write a SQL query that answers the following question: What is the average oveall pick for players from the college of Miami (FL)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (overall INTEGER, college VARCHAR) | SELECT AVG(overall) FROM table_name_69 WHERE college = "miami (fl)" |
Write a SQL query that answers the following question: Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (name VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR, round VARCHAR) | SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = "nebraska" |
Write a SQL query that answers the following question: What is the lowest overall draft pick number for terry daniels who was picked in round 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (overall INTEGER, round VARCHAR, name VARCHAR) | SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels" |
Write a SQL query that answers the following question: What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (round INTEGER, pick VARCHAR, college VARCHAR, overall VARCHAR) | SELECT SUM(round) FROM table_name_11 WHERE college = "tennessee" AND overall > 153 AND pick < 14 |
Write a SQL query that answers the following question: What position did the draft pick number play that was overall pick number 133? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (position VARCHAR, overall VARCHAR) | SELECT position FROM table_name_20 WHERE overall = 133 |
Write a SQL query that answers the following question: What is the overall pick number for the player who was picked on round 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (overall INTEGER, round VARCHAR) | SELECT MIN(overall) FROM table_name_91 WHERE round = 8 |
Write a SQL query that answers the following question: What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (college VARCHAR, position VARCHAR, overall VARCHAR, pick VARCHAR) | SELECT college FROM table_name_87 WHERE overall > 226 AND pick < 12 AND position = "ot" |
Write a SQL query that answers the following question: WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date_of_appointment VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR) | SELECT date_of_appointment FROM table_name_3 WHERE position_in_table = "pre-season" AND replaced_by = "thomas thomasberg" |
Write a SQL query that answers the following question: WHAT IS THE APPOINTMENT DATE FOR AC HORSENS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date_of_appointment VARCHAR, team VARCHAR) | SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens" |
Write a SQL query that answers the following question: WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (team VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR) | SELECT team FROM table_name_98 WHERE position_in_table = "12th" AND replaced_by = "ove pedersen" |
Write a SQL query that answers the following question: What was the score when Calgary was visiting team and Niittymaki had the decision? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (score VARCHAR, decision VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_78 WHERE decision = "niittymaki" AND visitor = "calgary" |
Write a SQL query that answers the following question: What is the score when Biron got the decision and Philadelphia was the visitor on March 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_38 WHERE decision = "biron" AND visitor = "philadelphia" AND date = "march 1" |
Write a SQL query that answers the following question: What is the attendance when Pittsburgh is the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (attendance INTEGER, home VARCHAR) | SELECT AVG(attendance) FROM table_name_78 WHERE home = "pittsburgh" |
Write a SQL query that answers the following question: What was the Attendance after Week 4 on October 10, 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_35 WHERE date = "october 10, 1971" AND week > 4 |
Write a SQL query that answers the following question: What was the Attendance in the game against the New Orleans Saints? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_name_29 WHERE opponent = "new orleans saints" |
Write a SQL query that answers the following question: What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (eagle_riders VARCHAR, japanese_voice_actor VARCHAR) | SELECT eagle_riders FROM table_name_27 WHERE japanese_voice_actor = "katsuji mori" |
Write a SQL query that answers the following question: Which weapon was used when the Battle of the Planets was Jason? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (weapon VARCHAR, battle_of_the_planets VARCHAR) | SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = "jason" |
Write a SQL query that answers the following question: Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (voice_actor__adv_tv_sentai_ova_dub_ VARCHAR, gatchaman VARCHAR) | SELECT voice_actor__adv_tv_sentai_ova_dub_ FROM table_name_22 WHERE gatchaman = "jun" |
Write a SQL query that answers the following question: Which Japanese voice actor had the Mecha of airplane? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (japanese_voice_actor VARCHAR, mecha VARCHAR) | SELECT japanese_voice_actor FROM table_name_28 WHERE mecha = "airplane" |
Write a SQL query that answers the following question: Which 1st leg has a Team 1 of drita? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "drita" |
Write a SQL query that answers the following question: Which Team 2 has a Team 1 of vardar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_76 WHERE team_1 = "vardar" |
Write a SQL query that answers the following question: What years was the jersey number(s) smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (years VARCHAR, jersey_number_s_ INTEGER) | SELECT years FROM table_name_1 WHERE jersey_number_s_ < 3 |
Write a SQL query that answers the following question: Which position was played by the player wearing jersey number 40? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (position VARCHAR, jersey_number_s_ VARCHAR) | SELECT position FROM table_name_23 WHERE jersey_number_s_ = 40 |
Write a SQL query that answers the following question: What pick number was the rhp with a hometown/school of university of hawaii? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR) | SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii" |
Write a SQL query that answers the following question: What player was drafted number 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (player VARCHAR, pick VARCHAR) | SELECT player FROM table_name_75 WHERE pick = 10 |
Write a SQL query that answers the following question: What number pick was the player with the hometown school of concordia college? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (pick VARCHAR, hometown_school VARCHAR) | SELECT pick FROM table_name_96 WHERE hometown_school = "concordia college" |
Write a SQL query that answers the following question: What is the date of game 66? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_34 WHERE game = 66 |
Write a SQL query that answers the following question: What is the game on February 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (game VARCHAR, date VARCHAR) | SELECT game FROM table_name_34 WHERE date = "february 21" |
Write a SQL query that answers the following question: What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (draws INTEGER, goal_difference VARCHAR, played VARCHAR) | SELECT AVG(draws) FROM table_name_9 WHERE goal_difference > 2 AND played < 30 |
Write a SQL query that answers the following question: What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (played INTEGER, losses VARCHAR, points VARCHAR, wins VARCHAR, goals_for VARCHAR) | SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 AND losses = 11 |
Write a SQL query that answers the following question: What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (goal_difference VARCHAR, goals_for VARCHAR, position VARCHAR) | SELECT COUNT(goal_difference) FROM table_name_9 WHERE goals_for < 49 AND position < 8 |
Write a SQL query that answers the following question: What is the lowest played for the entry with position of 2 and fewer than 9 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (played INTEGER, position VARCHAR, losses VARCHAR) | SELECT MIN(played) FROM table_name_61 WHERE position = 2 AND losses < 9 |
Write a SQL query that answers the following question: What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (losses VARCHAR, wins VARCHAR, goal_difference VARCHAR) | SELECT COUNT(losses) FROM table_name_37 WHERE wins = 12 AND goal_difference < -14 |
Write a SQL query that answers the following question: What are the goals for Pelletieri in ARG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (goals_l_c_e_ VARCHAR, nat VARCHAR, name VARCHAR) | SELECT goals_l_c_e_ FROM table_name_18 WHERE nat = "arg" AND name = "pelletieri" |
Write a SQL query that answers the following question: What are the fewest ends with an App(L/C/E) of 51 (44/6/1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (ends INTEGER, app_l_c_e_ VARCHAR) | SELECT MIN(ends) FROM table_name_3 WHERE app_l_c_e_ = "51 (44/6/1)" |
Write a SQL query that answers the following question: Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (name VARCHAR, nat VARCHAR, app_l_c_e_ VARCHAR) | SELECT name FROM table_name_98 WHERE nat = "gre" AND app_l_c_e_ = "49 (40/8/1)" |
Write a SQL query that answers the following question: What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (goals_l_c_e_ VARCHAR, app_l_c_e_ VARCHAR) | SELECT goals_l_c_e_ FROM table_name_50 WHERE app_l_c_e_ = "55 (47/5/3)" |
Write a SQL query that answers the following question: who won the lifetime achievement in the year 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (lifetime_achievement VARCHAR, year VARCHAR) | SELECT lifetime_achievement FROM table_name_39 WHERE year = 1998 |
Write a SQL query that answers the following question: Constructor with total time of 2:45.416 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (constructor VARCHAR, q1 VARCHAR, q2_time VARCHAR) | SELECT constructor FROM table_name_72 WHERE q1 + q2_time = "2:45.416" |
Write a SQL query that answers the following question: Driver at larger than 10 with a Q1 of 18. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (driver VARCHAR, q1_order VARCHAR, q1_pos VARCHAR) | SELECT driver FROM table_name_28 WHERE q1_order > 10 AND q1_pos = 18 |
Write a SQL query that answers the following question: Who was the opponent when the record was 55-14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_52 WHERE record = "55-14" |
Write a SQL query that answers the following question: What was the game number when record is 59-15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (game INTEGER, record VARCHAR) | SELECT MIN(game) FROM table_name_71 WHERE record = "59-15" |
Write a SQL query that answers the following question: What is the date that the record was 51-14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_62 WHERE record = "51-14" |
Write a SQL query that answers the following question: What is the sum of Pick #, when College is Laurier? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (pick__number INTEGER, college VARCHAR) | SELECT SUM(pick__number) FROM table_name_79 WHERE college = "laurier" |
Write a SQL query that answers the following question: What is CFL Team, when Pick # is greater than 34, and when College is Boise State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (cfl_team VARCHAR, pick__number VARCHAR, college VARCHAR) | SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = "boise state" |
Write a SQL query that answers the following question: What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR) | SELECT MIN(pick__number) FROM table_name_62 WHERE position = "rec" AND cfl_team = "hamilton tiger-cats" |
Write a SQL query that answers the following question: What is Player, when Position is DB, and when College is Saint Mary's? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (player VARCHAR, position VARCHAR, college VARCHAR) | SELECT player FROM table_name_71 WHERE position = "db" AND college = "saint mary's" |
Write a SQL query that answers the following question: What is Position, when Pick # is less than 40, and when College is Western? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (position VARCHAR, pick__number VARCHAR, college VARCHAR) | SELECT position FROM table_name_40 WHERE pick__number < 40 AND college = "western" |
Write a SQL query that answers the following question: Which Date has a Time of 12:00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_80 WHERE time = "12:00" |
Write a SQL query that answers the following question: Set 1 of 25–20, what was Set 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (set_2 VARCHAR, set_1 VARCHAR) | SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20" |
Write a SQL query that answers the following question: What royal house did Shaokang belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (royal_house VARCHAR, name VARCHAR) | SELECT royal_house FROM table_name_94 WHERE name = "shaokang" |
Write a SQL query that answers the following question: What is the highest rank of a building erected in 1976 with fewer than 21 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (rank INTEGER, year VARCHAR, floors VARCHAR) | SELECT MAX(rank) FROM table_name_60 WHERE year = 1976 AND floors < 21 |
Write a SQL query that answers the following question: What team was the opponent when February shows more than 2, with a game number less than 55? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (opponent VARCHAR, february VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55 |
Write a SQL query that answers the following question: What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR) | SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 17 |
Write a SQL query that answers the following question: What is the number of the game when the opponent was the New York Islanders, and a February less than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (game INTEGER, opponent VARCHAR, february VARCHAR) | SELECT SUM(game) FROM table_name_62 WHERE opponent = "new york islanders" AND february < 24 |
Write a SQL query that answers the following question: What is the lowest game number when the record was 26-24-9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (game INTEGER, record VARCHAR) | SELECT MIN(game) FROM table_name_58 WHERE record = "26-24-9" |
Write a SQL query that answers the following question: What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT rank FROM table_name_44 WHERE gold < 16 AND bronze > 2 AND silver > 2 AND total = 14 |
Write a SQL query that answers the following question: What's the silver for rank 1 with less than 2 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_92 WHERE rank = "1" AND bronze < 2 |
Write a SQL query that answers the following question: What's the lowest total when there's less than 16 bronze and more than 6 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (total INTEGER, bronze VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 6 |
Write a SQL query that answers the following question: What's the lowest gold with a total over 15 and less than 16 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MIN(gold) FROM table_name_98 WHERE total > 15 AND silver < 16 |
Write a SQL query that answers the following question: Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_40 WHERE rank = "7" AND nation = "italy" AND silver < 0 |
Write a SQL query that answers the following question: Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (gold INTEGER, silver VARCHAR, rank VARCHAR) | SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 8 |
Write a SQL query that answers the following question: Which Club team has a Pick larger than 139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (club_team VARCHAR, pick INTEGER) | SELECT club_team FROM table_name_55 WHERE pick > 139 |
Write a SQL query that answers the following question: Which Nationality has a Pick larger than 109, and a Round smaller than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_9 WHERE pick > 109 AND round < 5 |
Write a SQL query that answers the following question: Which school was Lawrence Roberts from ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_13 WHERE player = "lawrence roberts" |
Write a SQL query that answers the following question: Which school was Chris Robinson from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_60 WHERE player = "chris robinson" |
Write a SQL query that answers the following question: What was the position that Chris Robinson played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_79 WHERE player = "chris robinson" |
Write a SQL query that answers the following question: In which years did Zach Randolph play for the Grizzlies? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (years_for_grizzlies VARCHAR, player VARCHAR) | SELECT years_for_grizzlies FROM table_name_27 WHERE player = "zach randolph" |
Write a SQL query that answers the following question: Which player played for Western Kentucky? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (player VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_61 WHERE school_club_team = "western kentucky" |
Write a SQL query that answers the following question: What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_18 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "january 14" |
Write a SQL query that answers the following question: Who was the home team on February 18 that had a visitor of the Chicago Black Hawks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_56 WHERE visitor = "chicago black hawks" AND date = "february 18" |
Write a SQL query that answers the following question: What is points diff when points against is 123? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points_diff VARCHAR, points_against VARCHAR) | SELECT points_diff FROM table_name_73 WHERE points_against = "123" |
Write a SQL query that answers the following question: Which team has 123 points agaibst the other team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (team VARCHAR, points_against VARCHAR) | SELECT team FROM table_name_83 WHERE points_against = "123" |
Write a SQL query that answers the following question: What is the points against when try diff is +23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (points_against VARCHAR, try_diff VARCHAR) | SELECT points_against FROM table_name_67 WHERE try_diff = "+23" |
Write a SQL query that answers the following question: What is points when try diff is +23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (points_for VARCHAR, try_diff VARCHAR) | SELECT points_for FROM table_name_7 WHERE try_diff = "+23" |
Write a SQL query that answers the following question: What is points sgsinst when points diff is +96? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (points_against VARCHAR, points_diff VARCHAR) | SELECT points_against FROM table_name_70 WHERE points_diff = "+96" |
Write a SQL query that answers the following question: How many laps led when the Grid was 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (laps VARCHAR, grid VARCHAR) | SELECT laps AS Led FROM table_name_29 WHERE grid = "15" |
Write a SQL query that answers the following question: Name the Time/Retired when the points were 32. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (time_retired VARCHAR, points VARCHAR) | SELECT time_retired FROM table_name_84 WHERE points = "32" |
Write a SQL query that answers the following question: What car number had 24 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (car_no VARCHAR, points VARCHAR) | SELECT car_no FROM table_name_13 WHERE points = "24" |
Write a SQL query that answers the following question: How many points when the Grid was 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (points VARCHAR, grid VARCHAR) | SELECT points FROM table_name_75 WHERE grid = "1" |
Write a SQL query that answers the following question: What is the average game number that was on october 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (game INTEGER, october VARCHAR) | SELECT AVG(game) FROM table_name_4 WHERE october = 19 |
Write a SQL query that answers the following question: What is the sum of October, when Opponent is "Pittsburgh Penguins"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (october INTEGER, opponent VARCHAR) | SELECT SUM(october) FROM table_name_19 WHERE opponent = "pittsburgh penguins" |
Write a SQL query that answers the following question: What is the sum of Game, when Record is "2-1-1", and when October is less than 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (game INTEGER, record VARCHAR, october VARCHAR) | SELECT SUM(game) FROM table_name_58 WHERE record = "2-1-1" AND october < 21 |
Write a SQL query that answers the following question: What is Opponent, when October is less than 31, and when Game is greater than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (opponent VARCHAR, october VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_12 WHERE october < 31 AND game > 7 |
Write a SQL query that answers the following question: What is the tie number for the home team Orient? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_35 WHERE home_team = "orient" |
Write a SQL query that answers the following question: What is the score for the away team Chelsea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_35 WHERE away_team = "chelsea" |
Write a SQL query that answers the following question: What is the away team for the tie no. 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_81 WHERE tie_no = "29" |
Write a SQL query that answers the following question: What is the coronie with a 0.7% nickerie? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (coronie VARCHAR, nickerie VARCHAR) | SELECT coronie FROM table_name_92 WHERE nickerie = "0.7%" |
Write a SQL query that answers the following question: What is the marowijne with an 18.8% saramacca? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (marowijne VARCHAR, saramacca VARCHAR) | SELECT marowijne FROM table_name_2 WHERE saramacca = "18.8%" |
Write a SQL query that answers the following question: What is the para with a 0.1% sipaliwini? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (para VARCHAR, sipaliwini VARCHAR) | SELECT para FROM table_name_70 WHERE sipaliwini = "0.1%" |
Write a SQL query that answers the following question: What religion has a para of 56.5%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (religion VARCHAR, para VARCHAR) | SELECT religion FROM table_name_65 WHERE para = "56.5%" |
Write a SQL query that answers the following question: What is the suriname with a 16.8% brokopondo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR) | SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%" |
Write a SQL query that answers the following question: What's the rank average when the gold medals are less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (rank INTEGER, gold INTEGER) | SELECT AVG(rank) FROM table_name_41 WHERE gold < 0 |
Write a SQL query that answers the following question: What is the total rank of Hungary (HUN) when the bronze medals were less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT SUM(rank) FROM table_name_84 WHERE nation = "hungary (hun)" AND bronze < 0 |
Write a SQL query that answers the following question: What is the sum of the total number of medals when silver is less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (total VARCHAR, silver INTEGER) | SELECT COUNT(total) FROM table_name_54 WHERE silver < 0 |
Write a SQL query that answers the following question: What is Born-Died, when Term Start is 4 December 1941? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (born_died VARCHAR, term_start VARCHAR) | SELECT born_died FROM table_name_25 WHERE term_start = "4 december 1941" |
Write a SQL query that answers the following question: What is Term Start, when Name is Prime Ministers 1939 - 1943? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR) | SELECT term_start FROM table_name_38 WHERE name = "prime ministers 1939 - 1943" |
Write a SQL query that answers the following question: What is Born-Died, when Name is Maliq Bushati? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (born_died VARCHAR, name VARCHAR) | SELECT born_died FROM table_name_27 WHERE name = "maliq bushati" |
Write a SQL query that answers the following question: What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (term_end VARCHAR, political_party VARCHAR, term_start VARCHAR) | SELECT term_end FROM table_name_78 WHERE political_party = "albanian fascist party" AND term_start = "12 april 1939" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.