instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the location of Classification of T12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (location VARCHAR, classification VARCHAR) | SELECT location FROM table_name_96 WHERE classification = "t12" |
Write a SQL query that answers the following question: What is the fastest time for athlete Jason Smyth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (fastest_time__s_ VARCHAR, athlete VARCHAR) | SELECT fastest_time__s_ FROM table_name_40 WHERE athlete = "jason smyth" |
Write a SQL query that answers the following question: What was the final of play No. 2, Alzira Ricardo B.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (final VARCHAR, no2 VARCHAR) | SELECT final FROM table_name_34 WHERE no2 = "alzira ricardo b." |
Write a SQL query that answers the following question: What was the No. 10 team that has No. 8 of Diana? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (no10 VARCHAR, no8 VARCHAR) | SELECT no10 FROM table_name_10 WHERE no8 = "diana" |
Write a SQL query that answers the following question: Name the total number of years for chassis of ensign n175 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (year VARCHAR, chassis VARCHAR) | SELECT COUNT(year) FROM table_name_2 WHERE chassis = "ensign n175" |
Write a SQL query that answers the following question: What was the Blue Jays lowest attendance when their record was 52-48? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (attendance INTEGER, record VARCHAR) | SELECT MIN(attendance) FROM table_name_52 WHERE record = "52-48" |
Write a SQL query that answers the following question: What is the result when you play at home against Pride | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (result VARCHAR, home_away VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_73 WHERE home_away = "home" AND opponent = "pride" |
Write a SQL query that answers the following question: What is the result of games played at frontier field | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (result VARCHAR, field VARCHAR) | SELECT result FROM table_name_10 WHERE field = "frontier field" |
Write a SQL query that answers the following question: What days were games played at Hofstra Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, field VARCHAR) | SELECT date FROM table_name_20 WHERE field = "hofstra stadium" |
Write a SQL query that answers the following question: What Field was played at in an away game against the bayhawks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR) | SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks" |
Write a SQL query that answers the following question: What is the score of the game played on February 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_59 WHERE date = "february 18" |
Write a SQL query that answers the following question: Who was the home team that played against the Boston Bruins on January 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11" |
Write a SQL query that answers the following question: Name the sum of year for olimpija ljubljana with height less than 2.04 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR) | SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04 |
Write a SQL query that answers the following question: Name the position with height of 2.09 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR) | SELECT position FROM table_name_10 WHERE height = 2.09 |
Write a SQL query that answers the following question: What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_64 WHERE record = "26-35" |
Write a SQL query that answers the following question: What nominated work received a tony award in 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (nominated_work VARCHAR, award VARCHAR, year VARCHAR) | SELECT nominated_work FROM table_name_94 WHERE award = "tony award" AND year = 2009 |
Write a SQL query that answers the following question: What result in the table is from the year 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (result VARCHAR, year VARCHAR) | SELECT result FROM table_name_38 WHERE year = 2012 |
Write a SQL query that answers the following question: Name the 2011 with 2010 of 2r | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (Id VARCHAR) | SELECT 2011 FROM table_name_59 WHERE 2010 = "2r" |
Write a SQL query that answers the following question: Name the 2012 when 2011 is qf | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (Id VARCHAR) | SELECT 2012 FROM table_name_97 WHERE 2011 = "qf" |
Write a SQL query that answers the following question: Name the 2012 for 2011 being 1r | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (Id VARCHAR) | SELECT 2012 FROM table_name_5 WHERE 2011 = "1r" |
Write a SQL query that answers the following question: Name the 2012 for 2011 being qf | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (Id VARCHAR) | SELECT 2012 FROM table_name_58 WHERE 2011 = "qf" |
Write a SQL query that answers the following question: Name the 2008 for 2012 f | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (Id VARCHAR) | SELECT 2008 FROM table_name_37 WHERE 2012 = "f" |
Write a SQL query that answers the following question: What is the location of the match on February 29, 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_47 WHERE date = "february 29, 2012" |
Write a SQL query that answers the following question: What is the score of the match on November 15, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_44 WHERE date = "november 15, 2011" |
Write a SQL query that answers the following question: How many races were in the Mallala Motor Sport Park circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (race VARCHAR, circuit VARCHAR) | SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport park" |
Write a SQL query that answers the following question: What was the first race in Launceston, Tasmania? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (race INTEGER, location___state VARCHAR) | SELECT MIN(race) FROM table_name_52 WHERE location___state = "launceston, tasmania" |
Write a SQL query that answers the following question: Name the 2nd leg for team 1 of hamburg | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_90 WHERE team_1 = "hamburg" |
Write a SQL query that answers the following question: Name the role for mono studio and title of paradise canyon | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (role VARCHAR, studio VARCHAR, title VARCHAR) | SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon" |
Write a SQL query that answers the following question: Name the title for marion burns leading lady and role of john mason | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (title VARCHAR, leading_lady VARCHAR, role VARCHAR) | SELECT title FROM table_name_89 WHERE leading_lady = "marion burns" AND role = "john mason" |
Write a SQL query that answers the following question: Name the role for studio of rep with sheila mannors leading lady and title of westward ho | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (role VARCHAR, title VARCHAR, studio VARCHAR, leading_lady VARCHAR) | SELECT role FROM table_name_11 WHERE studio = "rep" AND leading_lady = "sheila mannors" AND title = "westward ho" |
Write a SQL query that answers the following question: Name the studio for john scott | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (studio VARCHAR, role VARCHAR) | SELECT studio FROM table_name_74 WHERE role = "john scott" |
Write a SQL query that answers the following question: What is the amount of 000s from 1996? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (total__000s_ INTEGER, year VARCHAR) | SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996" |
Write a SQL query that answers the following question: What was the amount of 000s when Germany had 16.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR) | SELECT total__000s_ FROM table_name_35 WHERE germany = 16.6 |
Write a SQL query that answers the following question: Name the average concacaf for merconorte larger than 0 and player of jared borgetti | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (concacaf INTEGER, superliga VARCHAR, merconorte VARCHAR, player VARCHAR) | SELECT AVG(concacaf) FROM table_name_59 WHERE merconorte > 0 AND player = "jared borgetti" AND superliga > 0 |
Write a SQL query that answers the following question: Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (merconorte INTEGER, superliga VARCHAR, interliga VARCHAR, matches VARCHAR) | SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7 |
Write a SQL query that answers the following question: What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (outcome VARCHAR, score_in_final VARCHAR) | SELECT outcome FROM table_name_84 WHERE score_in_final = "5–7, 6–4, [10–7]" |
Write a SQL query that answers the following question: What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (surface VARCHAR, score_in_final VARCHAR) | SELECT surface FROM table_name_1 WHERE score_in_final = "5–7, 6–4, [10–7]" |
Write a SQL query that answers the following question: Who were the opponents in the match or matches that ended in a score of W/O? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (opponents_in_final VARCHAR, score_in_final VARCHAR) | SELECT opponents_in_final FROM table_name_72 WHERE score_in_final = "w/o" |
Write a SQL query that answers the following question: What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (chassis VARCHAR, year VARCHAR, engine VARCHAR, points VARCHAR) | SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955 |
Write a SQL query that answers the following question: What kind of Chassis supports an Equipe Gordini Entrant? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (chassis VARCHAR, entrant VARCHAR) | SELECT chassis FROM table_name_82 WHERE entrant = "equipe gordini" |
Write a SQL query that answers the following question: What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR) | SELECT entrant FROM table_name_95 WHERE engine = "maserati straight-6" AND year < 1958 AND chassis = "maserati 250f" AND points < 4 |
Write a SQL query that answers the following question: What is the average year for Maserati Straight-4 Engines? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (year INTEGER, engine VARCHAR) | SELECT AVG(year) FROM table_name_86 WHERE engine = "maserati straight-4" |
Write a SQL query that answers the following question: Name the sum of ERP W for class of d and frequency mhz of 98.7 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (erp_w INTEGER, class VARCHAR, frequency_mhz VARCHAR) | SELECT SUM(erp_w) FROM table_name_56 WHERE class = "d" AND frequency_mhz = 98.7 |
Write a SQL query that answers the following question: Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (erp_w VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) | SELECT erp_w FROM table_name_19 WHERE frequency_mhz > 93.3 AND city_of_license = "washington, georgia" |
Write a SQL query that answers the following question: Which record has a result of loss in the Hero's 3 event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (record VARCHAR, res VARCHAR, event VARCHAR) | SELECT record FROM table_name_41 WHERE res = "loss" AND event = "hero's 3" |
Write a SQL query that answers the following question: Which event led to a 4-0 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR) | SELECT event FROM table_name_98 WHERE record = "4-0" |
Write a SQL query that answers the following question: Which location led to a 10-3 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_73 WHERE record = "10-3" |
Write a SQL query that answers the following question: In the match against Masahiro Oishi, what was the record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_90 WHERE opponent = "masahiro oishi" |
Write a SQL query that answers the following question: What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, played VARCHAR) | SELECT MIN(points) FROM table_name_38 WHERE drawn < 2 AND played > 8 |
Write a SQL query that answers the following question: What is the fewest drawn matches for teams with 2 points and fewer than 6 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6 |
Write a SQL query that answers the following question: What is the most number of losses for Quetta Zorawar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (lost INTEGER, team VARCHAR) | SELECT MAX(lost) FROM table_name_15 WHERE team = "quetta zorawar" |
Write a SQL query that answers the following question: What is the sum of the drawn values for teams with 2 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (drawn INTEGER, lost VARCHAR) | SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2 |
Write a SQL query that answers the following question: which round has a margin of 178? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (round VARCHAR, margin VARCHAR) | SELECT round FROM table_name_24 WHERE margin = "178" |
Write a SQL query that answers the following question: Name the average total for gold less than 1 and rank less than 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (total INTEGER, gold VARCHAR, rank VARCHAR) | SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 5 |
Write a SQL query that answers the following question: Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_92 WHERE total > 1 AND bronze = 1 AND gold < 0 |
Write a SQL query that answers the following question: Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2 |
Write a SQL query that answers the following question: Name the average bronze with silver more than 0, total of 6 and gold more than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 0 |
Write a SQL query that answers the following question: Name the sum of total with gold more than 1 and bronze more than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (total INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT SUM(total) FROM table_name_10 WHERE gold > 1 AND bronze > 0 |
Write a SQL query that answers the following question: What country did Jonas Geirnaert direct a film in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (country VARCHAR, director_s_ VARCHAR) | SELECT country FROM table_name_30 WHERE director_s_ = "jonas geirnaert" |
Write a SQL query that answers the following question: What Nominating Festival took place in Germany? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (nominating_festival VARCHAR, country VARCHAR) | SELECT nominating_festival FROM table_name_35 WHERE country = "germany" |
Write a SQL query that answers the following question: What is the category of the film made in Switzerland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (category VARCHAR, country VARCHAR) | SELECT category FROM table_name_30 WHERE country = "switzerland" |
Write a SQL query that answers the following question: What film was directed by Sandro Aguilar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (film VARCHAR, director_s_ VARCHAR) | SELECT film FROM table_name_80 WHERE director_s_ = "sandro aguilar" |
Write a SQL query that answers the following question: Name the language that has number of 14 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (language VARCHAR, number VARCHAR) | SELECT language FROM table_name_69 WHERE number = "14" |
Write a SQL query that answers the following question: Name the number which has language of other | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (number VARCHAR, language VARCHAR) | SELECT number FROM table_name_73 WHERE language = "other" |
Write a SQL query that answers the following question: Tell me the average goals for losses of 19 and goals against more than 59 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (goals_for INTEGER, losses VARCHAR, goals_against VARCHAR) | SELECT AVG(goals_for) FROM table_name_77 WHERE losses = 19 AND goals_against > 59 |
Write a SQL query that answers the following question: Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (position INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR) | SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16 |
Write a SQL query that answers the following question: Which regular season was 2013 in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (regular_season VARCHAR, year VARCHAR) | SELECT regular_season FROM table_name_50 WHERE year = 2013 |
Write a SQL query that answers the following question: What year did the team make conference semifinals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (year VARCHAR, playoffs VARCHAR) | SELECT COUNT(year) FROM table_name_15 WHERE playoffs = "conference semifinals" |
Write a SQL query that answers the following question: What's the smallest area in Russia that is ranked 23 with a population more than 522,800? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (area__km²_ INTEGER, population VARCHAR, country VARCHAR, rank VARCHAR) | SELECT MIN(area__km²_) FROM table_name_21 WHERE country = "russia" AND rank = 23 AND population > 522 OFFSET 800 |
Write a SQL query that answers the following question: On the date of June 8 what was the record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_32 WHERE date = "june 8" |
Write a SQL query that answers the following question: On the date of June 15 what was the score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_32 WHERE date = "june 15" |
Write a SQL query that answers the following question: What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR, nationality VARCHAR) | SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states" |
Write a SQL query that answers the following question: What is the college/junior/club team of the defence player drafted by the New York Rangers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR) | SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence" |
Write a SQL query that answers the following question: What is the rank of the cadillac northstar lmp02 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR) | SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02" |
Write a SQL query that answers the following question: What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (entrant VARCHAR, points VARCHAR, engine VARCHAR, rank VARCHAR) | SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163 |
Write a SQL query that answers the following question: What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR) | SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900" |
Write a SQL query that answers the following question: What is the engine for the bmw motorsport entrant with 123 points before 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123 |
Write a SQL query that answers the following question: Which points have a Combined elapsed time of 175d 20h 46m 04s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR) | SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s" |
Write a SQL query that answers the following question: Which yacht name has a Combined elapsed time of 179d 11h 58m 14s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR) | SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s" |
Write a SQL query that answers the following question: Which skipper has 78 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR) | SELECT skipper FROM table_name_90 WHERE points = "78" |
Write a SQL query that answers the following question: Which Overall place has a Yacht name of lg flatron? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (overall_place VARCHAR, yacht_name VARCHAR) | SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron" |
Write a SQL query that answers the following question: Which Combined elapsed time has a Skipper of stephen wilkins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (combined_elapsed_time VARCHAR, skipper VARCHAR) | SELECT combined_elapsed_time FROM table_name_17 WHERE skipper = "stephen wilkins" |
Write a SQL query that answers the following question: Before the year 1988, what is the lowest number of points that entrant Coloni SpA scored? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (points INTEGER, entrant VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_84 WHERE entrant = "coloni spa" AND year < 1988 |
Write a SQL query that answers the following question: Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR) | SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = "automobiles gonfaronnaises sportives" |
Write a SQL query that answers the following question: Who was the entrant before 1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER) | SELECT entrant FROM table_name_41 WHERE year < 1988 |
Write a SQL query that answers the following question: Which engine was used in 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (engine VARCHAR, year VARCHAR) | SELECT engine FROM table_name_89 WHERE year = 1987 |
Write a SQL query that answers the following question: What league did they play in 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (league VARCHAR, year VARCHAR) | SELECT league FROM table_name_39 WHERE year = 2001 |
Write a SQL query that answers the following question: What open cup did they play in when they finished 2nd, northeast in the reg. season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (open_cup VARCHAR, reg_season VARCHAR) | SELECT open_cup FROM table_name_21 WHERE reg_season = "2nd, northeast" |
Write a SQL query that answers the following question: What is the week with a date of October 9, 1983, and attendance smaller than 40,492? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_27 WHERE date = "october 9, 1983" AND attendance < 40 OFFSET 492 |
Write a SQL query that answers the following question: What is the lowest attendance with week 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) | SELECT MIN(attendance) FROM table_name_30 WHERE week = 14 |
Write a SQL query that answers the following question: Where did the Oakland Raiders play in week 12 of their 1976 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (game_site VARCHAR, week VARCHAR) | SELECT game_site FROM table_name_90 WHERE week = 12 |
Write a SQL query that answers the following question: How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (year INTEGER, entrant VARCHAR, engine VARCHAR) | SELECT SUM(year) FROM table_name_43 WHERE entrant = "barclay nordica arrows bmw" AND engine = "cosworth v8" |
Write a SQL query that answers the following question: How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year INTEGER, points VARCHAR, engine VARCHAR, entrant VARCHAR) | SELECT SUM(year) FROM table_name_98 WHERE engine = "bmw str-4 t/c" AND entrant = "barclay nordica arrows bmw" AND points < 1 |
Write a SQL query that answers the following question: How many years was ensign n180b a Chassis with 4 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (year INTEGER, points VARCHAR, chassis VARCHAR) | SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b" |
Write a SQL query that answers the following question: What is the division record for the Indians? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR) | SELECT division_record FROM table_name_26 WHERE team = "indians" |
Write a SQL query that answers the following question: What is the overall record of Indian River? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (overall_record VARCHAR, school VARCHAR) | SELECT overall_record FROM table_name_17 WHERE school = "indian river" |
Write a SQL query that answers the following question: What was the season outcome of Lake Forest? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (season_outcome VARCHAR, school VARCHAR) | SELECT season_outcome FROM table_name_43 WHERE school = "lake forest" |
Write a SQL query that answers the following question: How many Deciles are coed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (decile VARCHAR, gender VARCHAR) | SELECT COUNT(decile) FROM table_name_51 WHERE gender = "coed" |
Write a SQL query that answers the following question: Which is the lowest Decile that is coed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (decile INTEGER, gender VARCHAR) | SELECT MIN(decile) FROM table_name_94 WHERE gender = "coed" |
Write a SQL query that answers the following question: What are the years for Kawerau Putauaki School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (years VARCHAR, name VARCHAR) | SELECT years FROM table_name_98 WHERE name = "kawerau putauaki school" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.