instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (population INTEGER, simplified VARCHAR, area VARCHAR) | SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879 |
Write a SQL query that answers the following question: What's the total number of density for the place with a population over 393,390? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (density VARCHAR, population INTEGER) | SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390 |
Write a SQL query that answers the following question: What's the average area for the xinluo district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR) | SELECT AVG(area) FROM table_name_20 WHERE english_name = "xinluo district" |
Write a SQL query that answers the following question: What was the attendance on July 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30" |
Write a SQL query that answers the following question: How many Goals have a Result of 0 – 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR) | SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4" |
Write a SQL query that answers the following question: How many goals have a Result of 12 – 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (goals VARCHAR, result VARCHAR) | SELECT goals FROM table_name_33 WHERE result = "12 – 0" |
Write a SQL query that answers the following question: Which Result has a Date of 9 october 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_77 WHERE date = "9 october 2009" |
Write a SQL query that answers the following question: Which Goals have a Date of 7 february 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (goals INTEGER, date VARCHAR) | SELECT MAX(goals) FROM table_name_45 WHERE date = "7 february 2010" |
Write a SQL query that answers the following question: What was the first year to have a Chassis of Jordan 193? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR) | SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193" |
Write a SQL query that answers the following question: Which School's Mascot is Raiders? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_28 WHERE mascot = "raiders" |
Write a SQL query that answers the following question: What is North Valleys School Mascot? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR) | SELECT mascot FROM table_name_51 WHERE school = "north valleys" |
Write a SQL query that answers the following question: What is the Enrollment where Cougars is a Mascot? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR) | SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars" |
Write a SQL query that answers the following question: In what League is the Reed School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR) | SELECT league FROM table_name_87 WHERE school = "reed" |
Write a SQL query that answers the following question: What Mascot has an Enrollment greater than 2,464? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER) | SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464 |
Write a SQL query that answers the following question: Who was the runner-up in the tournament in which Omar Camporese held third place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (runner_up VARCHAR, third_place VARCHAR) | SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese" |
Write a SQL query that answers the following question: Who was the runner-up in the tournament in London? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR) | SELECT runner_up FROM table_name_86 WHERE tournament = "london" |
Write a SQL query that answers the following question: What was the score in the tournament in which Michael Stich took third place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR) | SELECT score FROM table_name_32 WHERE third_place = "michael stich" |
Write a SQL query that answers the following question: Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (third_place VARCHAR, score VARCHAR) | SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]" |
Write a SQL query that answers the following question: what is the least number of goals for when the goals against is 70 and the ties less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR) | SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0 |
Write a SQL query that answers the following question: what is the average losses when the wins is 9 and ties more than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR) | SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 |
Write a SQL query that answers the following question: what is the lowest number of ties when the losses is 7 and games played is less than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR) | SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10 |
Write a SQL query that answers the following question: what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR) | SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76 |
Write a SQL query that answers the following question: what is the total number of games played when the goals for is less than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (games_played VARCHAR, goals_for INTEGER) | SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30 |
Write a SQL query that answers the following question: what is the sum of wins for the ottawa hockey club when the games played is less than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (wins INTEGER, team VARCHAR, games_played VARCHAR) | SELECT SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10 |
Write a SQL query that answers the following question: How many people attended the game on February 3, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_34 WHERE date = "february 3, 2008" |
Write a SQL query that answers the following question: What is the name of the home team that played against Collingwood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_17 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: Which Away team played at the Windy Hill Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_50 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: How large of a crowd can the Glenferrie oval hold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval" |
Write a SQL query that answers the following question: How large of a crowd can the Brunswick Street Oval hold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval" |
Write a SQL query that answers the following question: What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (league INTEGER, total INTEGER) | SELECT MIN(league) FROM table_name_67 WHERE total > 8 |
Write a SQL query that answers the following question: What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR) | SELECT AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7 |
Write a SQL query that answers the following question: What is the Uyghur Latin with a population of 69,361? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (uyghur_latin___uly__ VARCHAR, population__2010_census_ VARCHAR) | SELECT uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361" |
Write a SQL query that answers the following question: What is the Hanyu Pinyin with an area of 400? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR) | SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400" |
Write a SQL query that answers the following question: What is the Hanyu Pinyin with a density of 39.63? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) | SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63" |
Write a SQL query that answers the following question: How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR) | SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)" |
Write a SQL query that answers the following question: Who was the leading scorer on 23 February 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (leading_scorer VARCHAR, date VARCHAR) | SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 2008" |
Write a SQL query that answers the following question: Name what was nominated in years before 2002 for most popular comedy performer at the national television awards | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (nominated_for VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR) | SELECT nominated_for FROM table_name_95 WHERE year < 2002 AND award = "national television awards" AND category = "most popular comedy performer" |
Write a SQL query that answers the following question: Name the result for the bafta tv awards | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (result VARCHAR, award VARCHAR) | SELECT result FROM table_name_83 WHERE award = "bafta tv awards" |
Write a SQL query that answers the following question: Name the category for nominated at the british comedy awards | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (category VARCHAR, result VARCHAR, award VARCHAR) | SELECT category FROM table_name_26 WHERE result = "nominated" AND award = "british comedy awards" |
Write a SQL query that answers the following question: Name the year that Birds of a feather category for most popular actress was nominated | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (year INTEGER, category VARCHAR, nominated_for VARCHAR) | SELECT AVG(year) FROM table_name_57 WHERE category = "most popular actress" AND nominated_for = "birds of a feather" |
Write a SQL query that answers the following question: What dates did Ferrari win races? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR) | SELECT date FROM table_name_40 WHERE constructor = "ferrari" |
Write a SQL query that answers the following question: What was the original air date of the episode with production code 2395120? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR) | SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120" |
Write a SQL query that answers the following question: How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR) | SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965 |
Write a SQL query that answers the following question: What was the date when the crowd was larger than 30,495? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER) | SELECT date FROM table_name_58 WHERE crowd > 30 OFFSET 495 |
Write a SQL query that answers the following question: What was the home team when Carlton was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_59 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: What was the score for the away team when they played at lake oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval" |
Write a SQL query that answers the following question: What was the score of the away team when hawthorn was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_43 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: How many golds for nations ranked below 4, over 5 medals, and under 6 silvers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (gold VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) | SELECT COUNT(gold) FROM table_name_26 WHERE rank > 4 AND total > 5 AND silver < 6 |
Write a SQL query that answers the following question: Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR) | SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow" |
Write a SQL query that answers the following question: Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR) | SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold" |
Write a SQL query that answers the following question: Which constituency had the conservative party win in 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR) | SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative" |
Write a SQL query that answers the following question: What is the final score when the visiting team is the Washington Redskins and the date is September 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (final_score VARCHAR, visiting_team VARCHAR, date VARCHAR) | SELECT final_score FROM table_name_82 WHERE visiting_team = "washington redskins" AND date = "september 4" |
Write a SQL query that answers the following question: What is the stadium when the date of the game is December 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR) | SELECT stadium FROM table_name_12 WHERE date = "december 14" |
Write a SQL query that answers the following question: What is the name of the stadium when the visiting team is the Denver Broncos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR) | SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos" |
Write a SQL query that answers the following question: What was the smallest crowd when Melbourne was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_74 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the Away when the Club is Neath? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR) | SELECT away FROM table_name_5 WHERE club = "neath" |
Write a SQL query that answers the following question: What country has area of 7,914 m²? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (country VARCHAR, area_in_m² VARCHAR) | SELECT country FROM table_name_64 WHERE area_in_m² = "7,914" |
Write a SQL query that answers the following question: What city was completed in 1910-1978? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR) | SELECT city FROM table_name_23 WHERE completion = "1910-1978" |
Write a SQL query that answers the following question: What is the country with area of 3,170 in m²? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR) | SELECT country FROM table_name_17 WHERE area_in_m² = "3,170" |
Write a SQL query that answers the following question: I want the time/retired for grid of 17 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_17 WHERE grid = 17 |
Write a SQL query that answers the following question: Name the opponent when the field is mitchel athletic complex | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR) | SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex" |
Write a SQL query that answers the following question: Name the date for when the home/away is away and the opponent is bayhawks | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (date VARCHAR, home_away VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_81 WHERE home_away = "away" AND opponent = "bayhawks" |
Write a SQL query that answers the following question: Say the field with a result of w 12-11 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (field VARCHAR, result VARCHAR) | SELECT field FROM table_name_43 WHERE result = "w 12-11" |
Write a SQL query that answers the following question: Name the opponent when the result is w 16-15 and has home/away of home | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (opponent VARCHAR, home_away VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15" |
Write a SQL query that answers the following question: Name the opponent when the resultwas w 12-11 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_45 WHERE result = "w 12-11" |
Write a SQL query that answers the following question: Name the opponent which has a home/away of home and date of july 27 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (opponent VARCHAR, home_away VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_9 WHERE home_away = "home" AND date = "july 27" |
Write a SQL query that answers the following question: I want to know the home team for mcg venue | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_71 WHERE venue = "mcg" |
Write a SQL query that answers the following question: Where did Konchesky move to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (moving_to VARCHAR, name VARCHAR) | SELECT moving_to FROM table_name_34 WHERE name = "konchesky" |
Write a SQL query that answers the following question: Who is Essendon's home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_94 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: What is the away team score for North Melbourne's home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What is Geelong's home team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What is the home team score for St Kilda's home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_27 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: Who was #16 rank constructor with a grid of more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (constructor VARCHAR, grid VARCHAR, rank VARCHAR) | SELECT constructor FROM table_name_59 WHERE grid > 1 AND rank = 16 |
Write a SQL query that answers the following question: Who constructed Joe James car when his rank was more than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (constructor VARCHAR, rank VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_12 WHERE rank > 10 AND driver = "joe james" |
Write a SQL query that answers the following question: What was the rank of the car who had more than 182 laps, gris less than 3, with a qual time of more than 134.14 and a time/retired of +14:21.72? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (rank INTEGER, grid VARCHAR, time_retired VARCHAR, laps VARCHAR, qual VARCHAR) | SELECT MIN(rank) FROM table_name_78 WHERE laps > 182 AND qual > 134.14 AND time_retired = "+14:21.72" AND grid < 3 |
Write a SQL query that answers the following question: How many laps did Chuck Stevenson have with a grid of less than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11 |
Write a SQL query that answers the following question: Which Week has an Opponent of san francisco 49ers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR) | SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers" |
Write a SQL query that answers the following question: What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger than 76.22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) | SELECT AVG(snatch) FROM table_name_50 WHERE clean_ & _jerk = "145.0" AND bodyweight > 76.22 |
Write a SQL query that answers the following question: What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR) | SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18 |
Write a SQL query that answers the following question: What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR) | SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5 |
Write a SQL query that answers the following question: What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR) | SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–" |
Write a SQL query that answers the following question: What was the latest year that resulted in won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (year INTEGER, result VARCHAR) | SELECT MAX(year) FROM table_name_17 WHERE result = "won" |
Write a SQL query that answers the following question: Which position had a pick of 50? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_35 WHERE pick = 50 |
Write a SQL query that answers the following question: Which team had a 2008-3 2008 draft? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (school_club_team VARCHAR, draft VARCHAR) | SELECT school_club_team FROM table_name_1 WHERE draft = "2008-3 2008" |
Write a SQL query that answers the following question: What is the average pick after Round 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (pick INTEGER, round INTEGER) | SELECT AVG(pick) FROM table_name_33 WHERE round > 2 |
Write a SQL query that answers the following question: What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, year VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR) | SELECT date FROM table_name_15 WHERE result = "loss" AND competition = "europe/africa group i, round robin" AND location = "murcia (esp)" AND year > 1998 |
Write a SQL query that answers the following question: What is the result of the Europe/Africa Group I, play-off competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_23 WHERE competition = "europe/africa group i, play-off" |
Write a SQL query that answers the following question: What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR) | SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin" |
Write a SQL query that answers the following question: What position did the person from Clemson school fill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (position VARCHAR, school VARCHAR) | SELECT position FROM table_name_48 WHERE school = "clemson" |
Write a SQL query that answers the following question: What was Rudy Harris' pick number in round 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (pick INTEGER, round VARCHAR, player VARCHAR) | SELECT MAX(pick) FROM table_name_25 WHERE round = "round 4" AND player = "rudy harris" |
Write a SQL query that answers the following question: What was the pick number for the kicker in round 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (pick VARCHAR, round VARCHAR, position VARCHAR) | SELECT COUNT(pick) FROM table_name_7 WHERE round = "round 8" AND position = "kicker" |
Write a SQL query that answers the following question: What is the result from 2013? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_49 WHERE year = 2013 |
Write a SQL query that answers the following question: Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR) | SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs" |
Write a SQL query that answers the following question: What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (result VARCHAR, western_champion VARCHAR, eastern_champion VARCHAR) | SELECT result FROM table_name_83 WHERE western_champion = "sacramento monarchs" AND eastern_champion = "connecticut sun" |
Write a SQL query that answers the following question: Who is the nominee for Best Lead Actress? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (nominee VARCHAR, category VARCHAR) | SELECT nominee FROM table_name_96 WHERE category = "best lead actress" |
Write a SQL query that answers the following question: In what category is Carmen Salinas nominated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR) | SELECT category FROM table_name_81 WHERE nominee = "carmen salinas" |
Write a SQL query that answers the following question: What year was there a category of Best Supporting Actress? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (year INTEGER, category VARCHAR) | SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress" |
Write a SQL query that answers the following question: What Londongborough has a Dialcode of 01992? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (londonborough VARCHAR, dialcode VARCHAR) | SELECT londonborough FROM table_name_15 WHERE dialcode = "01992" |
Write a SQL query that answers the following question: What is the Dialcode of whitechapel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (dialcode VARCHAR, location VARCHAR) | SELECT dialcode FROM table_name_62 WHERE location = "whitechapel" |
Write a SQL query that answers the following question: What is the name of the Post code district that is in Eden Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (postcodedistrict VARCHAR, location VARCHAR) | SELECT postcodedistrict FROM table_name_76 WHERE location = "eden park" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.