instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (last_appearance VARCHAR, school VARCHAR, wins VARCHAR, losses VARCHAR) | SELECT last_appearance FROM table_name_65 WHERE wins < 1 AND losses = 1 AND school = "oklahoma state" |
Write a SQL query that answers the following question: What is College, when Pick is less than 145, and when Player is Jeff Wilkins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (college VARCHAR, pick VARCHAR, player VARCHAR) | SELECT college FROM table_name_34 WHERE pick < 145 AND player = "jeff wilkins" |
Write a SQL query that answers the following question: What is Nationality, and when College is Illinois State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR) | SELECT nationality FROM table_name_2 WHERE college = "illinois state" |
Write a SQL query that answers the following question: What is Nationality, when Round is 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_5 WHERE round = 6 |
Write a SQL query that answers the following question: What is the total number of Round, when College is Northern Illinois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR) | SELECT COUNT(round) FROM table_name_39 WHERE college = "northern illinois" |
Write a SQL query that answers the following question: What is the average bronze when the total is 2, silver is less than 1 and gold is more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_85 WHERE total = 2 AND silver < 1 AND gold > 1 |
Write a SQL query that answers the following question: what is the average silver when the total is more than 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (silver INTEGER, total INTEGER) | SELECT AVG(silver) FROM table_name_66 WHERE total > 20 |
Write a SQL query that answers the following question: what is the highest rank when the nation is united states (usa) and bronze is more than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MAX(rank) FROM table_name_23 WHERE nation = "united states (usa)" AND bronze > 1 |
Write a SQL query that answers the following question: what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_99 WHERE bronze > 0 AND gold = 0 AND nation = "united states (usa)" AND silver < 0 |
Write a SQL query that answers the following question: What was the resolution for the fight against enrique guzman? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (res VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_67 WHERE opponent = "enrique guzman" |
Write a SQL query that answers the following question: What was the resolution of the fight when Nate Mohr's record was 8-6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR) | SELECT res FROM table_name_20 WHERE record = "8-6" |
Write a SQL query that answers the following question: What is the smallest number of third place earned for the Es Sahel at a rank less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (third INTEGER, club VARCHAR, rank VARCHAR) | SELECT MIN(third) FROM table_name_37 WHERE club = "es sahel" AND rank < 3 |
Write a SQL query that answers the following question: Which club has 1 runners-up with 0 winners and 2 third place earned? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (club VARCHAR, third VARCHAR, runners_up VARCHAR, winners VARCHAR) | SELECT club FROM table_name_12 WHERE runners_up = 1 AND winners = 0 AND third = 2 |
Write a SQL query that answers the following question: What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (name VARCHAR, total_point VARCHAR, bonus VARCHAR, only_point VARCHAR) | SELECT name FROM table_name_10 WHERE bonus > 1 AND only_point > 7 AND total_point < 21 |
Write a SQL query that answers the following question: What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (name VARCHAR, total_point VARCHAR, bonus VARCHAR, only_point VARCHAR, catch_taken VARCHAR) | SELECT name FROM table_name_47 WHERE only_point > 1 AND catch_taken > 3 AND bonus > 4 AND total_point < 30 |
Write a SQL query that answers the following question: How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR) | SELECT COUNT(grid) FROM table_name_11 WHERE manufacturer = "ducati" AND rider = "casey stoner" AND laps < 27 |
Write a SQL query that answers the following question: Which manufacturer has a time of +10.142? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (manufacturer VARCHAR, time VARCHAR) | SELECT manufacturer FROM table_name_11 WHERE time = "+10.142" |
Write a SQL query that answers the following question: What is Loris Capirossi's time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (time VARCHAR, rider VARCHAR) | SELECT time FROM table_name_30 WHERE rider = "loris capirossi" |
Write a SQL query that answers the following question: What were the highest laps when the grid was larger than 19 and the time/retired was fuel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) | SELECT MAX(laps) FROM table_name_52 WHERE grid > 19 AND time_retired = "fuel" |
Write a SQL query that answers the following question: Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (team VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT team FROM table_name_80 WHERE laps = 65 AND grid < 20 AND driver = "scott pruett" |
Write a SQL query that answers the following question: What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR) | SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = "forward topfeed" AND built_at = "crewe" AND lot_no < 187 |
Write a SQL query that answers the following question: What was the date of the game where Esteban Paredes scored 2 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, goal VARCHAR) | SELECT date FROM table_name_62 WHERE goal = 2 |
Write a SQL query that answers the following question: What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_82 WHERE opponent = "los angeles rams" AND week < 11 |
Write a SQL query that answers the following question: What is the result when the week is greater than 7 and the Houston Oilers were the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (result VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_60 WHERE week > 7 AND opponent = "houston oilers" |
Write a SQL query that answers the following question: What is Record, when Location Attendance is "Izod Center 16,911"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (record VARCHAR, location_attendance VARCHAR) | SELECT record FROM table_name_4 WHERE location_attendance = "izod center 16,911" |
Write a SQL query that answers the following question: What is High Rebounds, when High Assists is "Delonte West (10)"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (high_rebounds VARCHAR, high_assists VARCHAR) | SELECT high_rebounds FROM table_name_86 WHERE high_assists = "delonte west (10)" |
Write a SQL query that answers the following question: What catalog had an Epic Records label in CD format? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (catalog VARCHAR, label VARCHAR, format VARCHAR) | SELECT catalog FROM table_name_16 WHERE label = "epic records" AND format = "cd" |
Write a SQL query that answers the following question: Which label is in Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_37 WHERE region = "australia" |
Write a SQL query that answers the following question: The match that lasted 2:43 has what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (record VARCHAR, time VARCHAR) | SELECT record FROM table_name_38 WHERE time = "2:43" |
Write a SQL query that answers the following question: The match that was held at Club Med Sandpiper has what method? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (method VARCHAR, venue VARCHAR) | SELECT method FROM table_name_54 WHERE venue = "club med sandpiper" |
Write a SQL query that answers the following question: The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (record VARCHAR, opponent VARCHAR, time VARCHAR, venue VARCHAR) | SELECT record FROM table_name_83 WHERE time = "3:00" AND venue = "michael's eighth avenue" AND opponent = "tim coleman" |
Write a SQL query that answers the following question: What method did the match at Club Med Sandpiper have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (method VARCHAR, venue VARCHAR) | SELECT method FROM table_name_88 WHERE venue = "club med sandpiper" |
Write a SQL query that answers the following question: What is the Label of the release with Catalog number LPM-2899? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_87 WHERE catalog = "lpm-2899" |
Write a SQL query that answers the following question: What is the Date of the RCA release with Catalog number SF-7635? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (date VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_57 WHERE label = "rca" AND catalog = "sf-7635" |
Write a SQL query that answers the following question: What is the Catalog of the RCA release? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (catalog VARCHAR, label VARCHAR) | SELECT catalog FROM table_name_58 WHERE label = "rca" |
Write a SQL query that answers the following question: What is the Catalog number of the CD Reissue Universal release? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (catalog VARCHAR, format VARCHAR, label VARCHAR) | SELECT catalog FROM table_name_79 WHERE format = "cd reissue" AND label = "universal" |
Write a SQL query that answers the following question: What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (label VARCHAR, format VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_75 WHERE format = "stereo vinyl lp" AND catalog = "sf-7635" |
Write a SQL query that answers the following question: WHAT CANDIDATE HAD A MARGIN OF ERROR OF ± 4.5%, WHEN PAT TOOMEY WAS 45% AND JOE SESTAK WAS 38%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (other VARCHAR, joe_sestak__d_ VARCHAR, margin_of_error VARCHAR, pat_toomey__r_ VARCHAR) | SELECT other FROM table_name_84 WHERE margin_of_error = "± 4.5%" AND pat_toomey__r_ = "45%" AND joe_sestak__d_ = "38%" |
Write a SQL query that answers the following question: WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date_s__administered VARCHAR, joe_sestak__d_ VARCHAR, margin_of_error VARCHAR) | SELECT date_s__administered FROM table_name_49 WHERE joe_sestak__d_ = "46%" AND margin_of_error = "± 3.0%" |
Write a SQL query that answers the following question: WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (points__percentage VARCHAR, total_w_l_h VARCHAR) | SELECT points__percentage FROM table_name_29 WHERE total_w_l_h = "1-2-2" |
Write a SQL query that answers the following question: WHAT YEAR HAD 5 TOTAL MATCHES? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (year VARCHAR, total_matches VARCHAR) | SELECT year FROM table_name_28 WHERE total_matches = 5 |
Write a SQL query that answers the following question: What is the quantity preserved when 4 were made of class F-21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (quantity_preserved VARCHAR, quantity_made VARCHAR, class VARCHAR) | SELECT quantity_preserved FROM table_name_76 WHERE quantity_made = "4" AND class = "f-21" |
Write a SQL query that answers the following question: What fleet number had 3 made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (fleet_number_s_ VARCHAR, quantity_made VARCHAR) | SELECT fleet_number_s_ FROM table_name_42 WHERE quantity_made = "3" |
Write a SQL query that answers the following question: What class had 1 made and fleet number of 406? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR) | SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406" |
Write a SQL query that answers the following question: What class has 0 preserved and 2 made? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (class VARCHAR, quantity_preserved VARCHAR, quantity_made VARCHAR) | SELECT class FROM table_name_56 WHERE quantity_preserved = "0" AND quantity_made = "2" |
Write a SQL query that answers the following question: What rank has a population of 4839400? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (rank INTEGER, population VARCHAR) | SELECT MIN(rank) FROM table_name_87 WHERE population = "4839400" |
Write a SQL query that answers the following question: What's the rank of the Province-Level Municipality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rank VARCHAR, definition VARCHAR) | SELECT rank FROM table_name_14 WHERE definition = "province-level municipality" |
Write a SQL query that answers the following question: What rank was Core Districts + Inner Suburbs and had a population of 10123000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (rank INTEGER, definition VARCHAR, population VARCHAR) | SELECT MAX(rank) FROM table_name_37 WHERE definition = "core districts + inner suburbs" AND population = "10123000" |
Write a SQL query that answers the following question: What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (points VARCHAR, goals_for VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT points FROM table_name_17 WHERE draws < 7 AND wins < 16 AND goals_for = 35 |
Write a SQL query that answers the following question: What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (losses VARCHAR, draws VARCHAR, points VARCHAR, position VARCHAR, goals_for VARCHAR) | SELECT COUNT(losses) FROM table_name_13 WHERE position > 8 AND goals_for > 34 AND points = 25 AND draws < 5 |
Write a SQL query that answers the following question: What is the average Wins, when Points is less than "19"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (wins INTEGER, points INTEGER) | SELECT AVG(wins) FROM table_name_32 WHERE points < 19 |
Write a SQL query that answers the following question: What is the lowest Goals, when Played is greater than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (goals_for INTEGER, played INTEGER) | SELECT MIN(goals_for) FROM table_name_31 WHERE played > 30 |
Write a SQL query that answers the following question: What is the sum of Played, when Losses is "13", and when Position is greater than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (played INTEGER, losses VARCHAR, position VARCHAR) | SELECT SUM(played) FROM table_name_88 WHERE losses = 13 AND position > 11 |
Write a SQL query that answers the following question: What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (wins INTEGER, played VARCHAR, goals_for VARCHAR, losses VARCHAR, goal_difference VARCHAR) | SELECT MIN(wins) FROM table_name_50 WHERE losses < 10 AND goal_difference < 46 AND goals_for < 63 AND played < 30 |
Write a SQL query that answers the following question: How many viewed the episode gary gets boundaries? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (viewers VARCHAR, episode VARCHAR) | SELECT COUNT(viewers) FROM table_name_47 WHERE episode = "gary gets boundaries" |
Write a SQL query that answers the following question: What episode had 6.71 viewers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (episode VARCHAR, viewers VARCHAR) | SELECT episode FROM table_name_97 WHERE viewers = 6.71 |
Write a SQL query that answers the following question: When did the episode air that had 7.3 viewers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (air_date VARCHAR, viewers VARCHAR) | SELECT air_date FROM table_name_65 WHERE viewers = 7.3 |
Write a SQL query that answers the following question: What day in March is the game with a 48-13-11 record and a game number less than 72? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (march INTEGER, record VARCHAR, game VARCHAR) | SELECT SUM(march) FROM table_name_12 WHERE record = "48-13-11" AND game < 72 |
Write a SQL query that answers the following question: Who is the opponent of game 75? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_44 WHERE game = 75 |
Write a SQL query that answers the following question: What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (game INTEGER, march VARCHAR, opponent VARCHAR) | SELECT MIN(game) FROM table_name_11 WHERE march > 2 AND opponent = "minnesota north stars" |
Write a SQL query that answers the following question: The winner, Craig Lowndes, was in what location/state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (location___state VARCHAR, winner VARCHAR) | SELECT location___state FROM table_name_57 WHERE winner = "craig lowndes" |
Write a SQL query that answers the following question: The Eastern Creek Raceway circuit is on what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_56 WHERE circuit = "eastern creek raceway" |
Write a SQL query that answers the following question: Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (location___state VARCHAR, team VARCHAR, winner VARCHAR) | SELECT location___state FROM table_name_82 WHERE team = "castrol perkins motorsport" AND winner = "russell ingall" |
Write a SQL query that answers the following question: What shows for 1998 when 1996 is 1R, and 2002 is not held? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (Id VARCHAR) | SELECT 1998 FROM table_name_43 WHERE 1996 = "1r" AND 2002 = "not held" |
Write a SQL query that answers the following question: What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (Id VARCHAR) | SELECT 1996 FROM table_name_23 WHERE 1994 = "a" AND 2003 = "a" AND 2001 = "1r" |
Write a SQL query that answers the following question: What shows for 1991 when 2002 is 2R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (Id VARCHAR) | SELECT 1991 FROM table_name_44 WHERE 2002 = "2r" |
Write a SQL query that answers the following question: What shows for 2006 when 1999 is Grand Slam Tournaments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (Id VARCHAR) | SELECT 2006 FROM table_name_7 WHERE 1990 = "grand slam tournaments" |
Write a SQL query that answers the following question: What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (tournament VARCHAR) | SELECT 2006 FROM table_name_65 WHERE 2000 = "1r" AND 1996 = "a" AND tournament = "cincinnati masters" |
Write a SQL query that answers the following question: What is the Tournament when the 1990 is Olympic Games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (tournament VARCHAR) | SELECT tournament FROM table_name_61 WHERE 1990 = "olympic games" |
Write a SQL query that answers the following question: Which Location has a Record of 0-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_59 WHERE record = "0-1" |
Write a SQL query that answers the following question: What is Record, when Method is "Technical Submission (Rear Naked Choke)"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (record VARCHAR, method VARCHAR) | SELECT record FROM table_name_4 WHERE method = "technical submission (rear naked choke)" |
Write a SQL query that answers the following question: What is the sum of Round(s), when Method is "Submission (Banana Split)"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (round INTEGER, method VARCHAR) | SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)" |
Write a SQL query that answers the following question: What is Time, when Event is "GCM: Demolition 1"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_85 WHERE event = "gcm: demolition 1" |
Write a SQL query that answers the following question: What year had a 100m freestyle event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (year_set VARCHAR, event VARCHAR) | SELECT COUNT(year_set) FROM table_name_73 WHERE event = "100m freestyle" |
Write a SQL query that answers the following question: What event had a short course in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (event VARCHAR, long_course_short_course VARCHAR, year_set VARCHAR) | SELECT event FROM table_name_77 WHERE long_course_short_course = "short course" AND year_set = 2010 |
Write a SQL query that answers the following question: What year did a short course have a time of 7:51.80? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR) | SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80" |
Write a SQL query that answers the following question: What was the latest year that had a 100m freestyle? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year_set INTEGER, event VARCHAR) | SELECT MAX(year_set) FROM table_name_67 WHERE event = "100m freestyle" |
Write a SQL query that answers the following question: In what place was the song that had a draw of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (place VARCHAR, draw VARCHAR) | SELECT place FROM table_name_54 WHERE draw = 3 |
Write a SQL query that answers the following question: What is the number of points for the 7th placed song with a draw greater than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points INTEGER, place VARCHAR, draw VARCHAR) | SELECT MIN(points) FROM table_name_73 WHERE place = "7th" AND draw > 8 |
Write a SQL query that answers the following question: How many points did Joe O'Meara have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (points VARCHAR, artist VARCHAR) | SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara" |
Write a SQL query that answers the following question: How many points did Linda Martin have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (points VARCHAR, artist VARCHAR) | SELECT COUNT(points) FROM table_name_89 WHERE artist = "linda martin" |
Write a SQL query that answers the following question: WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, week VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_39 WHERE week > 13 AND visitor = "montreal alouettes" |
Write a SQL query that answers the following question: WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (week INTEGER, date VARCHAR) | SELECT AVG(week) FROM table_name_5 WHERE date = "july 25" |
Write a SQL query that answers the following question: What was the tie for the Crystal Palace team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_42 WHERE home_team = "crystal palace" |
Write a SQL query that answers the following question: What is the attendance for No. 15 tie? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_72 WHERE tie_no = "15" |
Write a SQL query that answers the following question: WHich Open Cup has a Division larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (open_cup VARCHAR, division INTEGER) | SELECT open_cup FROM table_name_30 WHERE division > 4 |
Write a SQL query that answers the following question: Name the League which has a Regular Season of 3rd, atlantic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (league VARCHAR, regular_season VARCHAR) | SELECT league FROM table_name_86 WHERE regular_season = "3rd, atlantic" |
Write a SQL query that answers the following question: WHICH Regular Season has a Division of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (regular_season VARCHAR, division VARCHAR) | SELECT regular_season FROM table_name_19 WHERE division = 4 |
Write a SQL query that answers the following question: WHICH Regular Season has a League of npsl, and a Year of 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (regular_season VARCHAR, league VARCHAR, year VARCHAR) | SELECT regular_season FROM table_name_64 WHERE league = "npsl" AND year = "2008" |
Write a SQL query that answers the following question: NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (playoffs VARCHAR, year VARCHAR, league VARCHAR, open_cup VARCHAR) | SELECT playoffs FROM table_name_8 WHERE league = "npsl" AND open_cup = "did not enter" AND year = "2013" |
Write a SQL query that answers the following question: What is the average February that has 18-26-10 as the record, with a game less than 54? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (february INTEGER, record VARCHAR, game VARCHAR) | SELECT AVG(february) FROM table_name_11 WHERE record = "18-26-10" AND game < 54 |
Write a SQL query that answers the following question: How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (february VARCHAR, game VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT COUNT(february) FROM table_name_32 WHERE opponent = "montreal canadiens" AND record = "18-25-10" AND game > 53 |
Write a SQL query that answers the following question: what is the surface when the opponent is selma babic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_31 WHERE opponent = "selma babic" |
Write a SQL query that answers the following question: what is the surface when the round is gii play-offs and the edition is 2009 fed cup europe/africa group ii? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (surface VARCHAR, round VARCHAR, edition VARCHAR) | SELECT surface FROM table_name_65 WHERE round = "gii play-offs" AND edition = "2009 fed cup europe/africa group ii" |
Write a SQL query that answers the following question: what is the date when the surface is clay and the result is 6–7 (4–7) , 1–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (date VARCHAR, surface VARCHAR, result VARCHAR) | SELECT date FROM table_name_99 WHERE surface = "clay" AND result = "6–7 (4–7) , 1–6" |
Write a SQL query that answers the following question: who is the opponent when norway is against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (opponent VARCHAR, against VARCHAR) | SELECT opponent FROM table_name_67 WHERE against = "norway" |
Write a SQL query that answers the following question: What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (position VARCHAR, weight VARCHAR, player VARCHAR) | SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight" |
Write a SQL query that answers the following question: What is the lowest Number, when College is "University of Alabama"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (number INTEGER, college VARCHAR) | SELECT MIN(number) FROM table_name_48 WHERE college = "university of alabama" |
Write a SQL query that answers the following question: What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (weight VARCHAR, number VARCHAR, position VARCHAR, player VARCHAR) | SELECT COUNT(weight) FROM table_name_90 WHERE position = "forward/center" AND player = "othella harrington" AND number < 32 |
Write a SQL query that answers the following question: What is Years Exp, when Height is "7-2"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (years_exp VARCHAR, height VARCHAR) | SELECT years_exp FROM table_name_94 WHERE height = "7-2" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.