instruction
stringlengths 67
299
| input
stringlengths 88
550
| output
stringlengths 32
484
|
---|---|---|
Write a SQL query that answers the following question: What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_89 WHERE opponent_in_the_final = "kyoko nagatsuka" |
Write a SQL query that answers the following question: What is the surface at the tournament of Vaihingen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_24 WHERE tournament = "vaihingen" |
Write a SQL query that answers the following question: What was the surface of the tournament where Anna Benzon was the opponent in the final? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT surface FROM table_name_59 WHERE opponent_in_the_final = "anna benzon" |
Write a SQL query that answers the following question: What is the average position of Eesti P玫levkivi J玫hvi when they had less than 13 points and worse than a -12 goal differential? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (position INTEGER, points VARCHAR, goals_ VARCHAR, __ VARCHAR) | SELECT AVG(position) FROM table_name_54 WHERE points < 13 AND goals_ + __ > -12 |
Write a SQL query that answers the following question: What is the to par for the player who had a score of 70-72-70-69=281? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_18 WHERE score = 70 - 72 - 70 - 69 = 281 |
Write a SQL query that answers the following question: What year had the qual of totals | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (year VARCHAR, qual VARCHAR) | SELECT year FROM table_name_88 WHERE qual = "totals" |
Write a SQL query that answers the following question: What qual had a finish of 16 in 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (qual VARCHAR, finish VARCHAR, year VARCHAR) | SELECT qual FROM table_name_64 WHERE finish = "16" AND year = "1968" |
Write a SQL query that answers the following question: What was the finish with the start of 25 and a lap larger than 46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (finish VARCHAR, start VARCHAR, laps VARCHAR) | SELECT finish FROM table_name_21 WHERE start = "25" AND laps > 46 |
Write a SQL query that answers the following question: What was the lowest lap with the ranking of 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (laps INTEGER, start VARCHAR) | SELECT MIN(laps) FROM table_name_99 WHERE start = "19" |
Write a SQL query that answers the following question: Name the least ovrs for wkts of 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (ovrs INTEGER, wkts VARCHAR) | SELECT MIN(ovrs) FROM table_name_89 WHERE wkts = 0 |
Write a SQL query that answers the following question: Name the average econ for runs more than 703 and ovrs more than 25.5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (econ INTEGER, ovrs VARCHAR, runs VARCHAR) | SELECT AVG(econ) FROM table_name_2 WHERE ovrs > 25.5 AND runs > 703 |
Write a SQL query that answers the following question: What is the average year that has a car that won 0 stages with a position of DNF? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, class VARCHAR, stages_won VARCHAR) | SELECT AVG(year) FROM table_name_68 WHERE class = "car" AND stages_won = "0" AND position = "dnf" |
Write a SQL query that answers the following question: What is the class that that won 2 stages and has a position of DNF? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (class VARCHAR, stages_won VARCHAR, position VARCHAR) | SELECT class FROM table_name_20 WHERE stages_won = "2" AND position = "dnf" |
Write a SQL query that answers the following question: What position did the BMW vehicle made in 2006 hold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR) | SELECT position FROM table_name_89 WHERE vehicle = "bmw" AND year = 2006 |
Write a SQL query that answers the following question: Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (builder VARCHAR, order_year VARCHAR, fuel_propulsion VARCHAR, model VARCHAR) | SELECT builder FROM table_name_68 WHERE fuel_propulsion = "diesel" AND model = "d40lf" AND order_year = "2005" |
Write a SQL query that answers the following question: Which model has a Fleet Series (Quantity) of 11081-11092 (12)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (model VARCHAR, fleet_series__quantity_ VARCHAR) | SELECT model FROM table_name_1 WHERE fleet_series__quantity_ = "11081-11092 (12)" |
Write a SQL query that answers the following question: Which order year has a Fleet Series (Quantity) of 12081-12090 (10)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (order_year VARCHAR, fleet_series__quantity_ VARCHAR) | SELECT order_year FROM table_name_73 WHERE fleet_series__quantity_ = "12081-12090 (10)" |
Write a SQL query that answers the following question: Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (fleet_series__quantity_ VARCHAR, builder VARCHAR, order_year VARCHAR) | SELECT fleet_series__quantity_ FROM table_name_23 WHERE builder = "mci" AND order_year = "2002" |
Write a SQL query that answers the following question: Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR) | SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr" |
Write a SQL query that answers the following question: Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR) | SELECT fuel_propulsion FROM table_name_73 WHERE fleet_series__quantity_ = "04001-04125 (125)" |
Write a SQL query that answers the following question: Name the sum of roll for morrinsville school | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (roll INTEGER, name VARCHAR) | SELECT SUM(roll) FROM table_name_65 WHERE name = "morrinsville school" |
Write a SQL query that answers the following question: Name the authority for morrinsville college | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (authority VARCHAR, name VARCHAR) | SELECT authority FROM table_name_88 WHERE name = "morrinsville college" |
Write a SQL query that answers the following question: Name the years when decile was less than 7 for waitoa school | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (years VARCHAR, decile VARCHAR, name VARCHAR) | SELECT years FROM table_name_67 WHERE decile < 7 AND name = "waitoa school" |
Write a SQL query that answers the following question: Name the total number of roll for state authority and stanley avenue school with decile more than 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR) | SELECT COUNT(roll) FROM table_name_31 WHERE authority = "state" AND name = "stanley avenue school" AND decile > 5 |
Write a SQL query that answers the following question: What is the grid total associated with 18 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18 |
Write a SQL query that answers the following question: What rider is on an aprilia that went under 18 laps with a grid total of 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (rider VARCHAR, grid VARCHAR, manufacturer VARCHAR, laps VARCHAR) | SELECT rider FROM table_name_14 WHERE manufacturer = "aprilia" AND laps < 18 AND grid = 17 |
Write a SQL query that answers the following question: What is the Manufacturer for simone corsi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (manufacturer VARCHAR, rider VARCHAR) | SELECT manufacturer FROM table_name_85 WHERE rider = "simone corsi" |
Write a SQL query that answers the following question: What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_77 WHERE time_retired = "+33.634" AND laps < 19 |
Write a SQL query that answers the following question: Tell me the power when the torque is n路m (lb路ft)/*n路m (lb路ft) @1750 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (power_rpm VARCHAR, torque__nm__rpm VARCHAR) | SELECT power_rpm FROM table_name_37 WHERE torque__nm__rpm = "n路m (lb路ft)/*n路m (lb路ft) @1750" |
Write a SQL query that answers the following question: Name the capacity for the engine of 2.0 duratorq | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR) | SELECT capacity FROM table_name_84 WHERE model_engine = "2.0 duratorq" |
Write a SQL query that answers the following question: Name the capacity for the torque of n路m (lb路ft) @4150 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (capacity VARCHAR, torque__nm__rpm VARCHAR) | SELECT capacity FROM table_name_90 WHERE torque__nm__rpm = "n路m (lb路ft) @4150" |
Write a SQL query that answers the following question: Name the power for 1.8 duratorq | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (power_rpm VARCHAR, model_engine VARCHAR) | SELECT power_rpm FROM table_name_91 WHERE model_engine = "1.8 duratorq" |
Write a SQL query that answers the following question: Name the power for when the torque is n路m (lb路ft)/*n路m (lb路ft) @1750 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (power_rpm VARCHAR, torque__nm__rpm VARCHAR) | SELECT power_rpm FROM table_name_62 WHERE torque__nm__rpm = "n路m (lb路ft)/*n路m (lb路ft) @1750" |
Write a SQL query that answers the following question: What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (goals INTEGER, goal_ratio VARCHAR, debut_in_europe VARCHAR) | SELECT MIN(goals) FROM table_name_20 WHERE goal_ratio = 0.14 AND debut_in_europe < 1995 |
Write a SQL query that answers the following question: What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (goal_ratio INTEGER, debut_in_europe VARCHAR, goals VARCHAR, games VARCHAR) | SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985 |
Write a SQL query that answers the following question: What lowest games have 20 goals and a Goal Ratio smaller than 0.14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (games INTEGER, goals VARCHAR, goal_ratio VARCHAR) | SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.14 |
Write a SQL query that answers the following question: What is the largest goal ratio with Goals smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (goal_ratio INTEGER, goals INTEGER) | SELECT MAX(goal_ratio) FROM table_name_73 WHERE goals < 0 |
Write a SQL query that answers the following question: What lowest games have a Goal Ratio of 0, and Goals smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (games INTEGER, goal_ratio VARCHAR, goals VARCHAR) | SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 0 |
Write a SQL query that answers the following question: How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (debut_in_europe VARCHAR, rank VARCHAR, goals VARCHAR, games VARCHAR) | SELECT COUNT(debut_in_europe) FROM table_name_77 WHERE goals < 76 AND games > 151 AND rank > 5 |
Write a SQL query that answers the following question: What is the average points of the Ferrari 1512 Chassis after 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_18 WHERE chassis = "ferrari 1512" AND year > 1965 |
Write a SQL query that answers the following question: What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (chassis VARCHAR, engine VARCHAR, year VARCHAR, team VARCHAR) | SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = "cooper car company" AND engine = "maserati v12" |
Write a SQL query that answers the following question: Which location had a round of 3, and an Opponent of matt horwich? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (location VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_9 WHERE round < 3 AND opponent = "matt horwich" |
Write a SQL query that answers the following question: What was the time of sportfight 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_45 WHERE event = "sportfight 10" |
Write a SQL query that answers the following question: Which opponent had a time of 0:29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_71 WHERE time = "0:29" |
Write a SQL query that answers the following question: What number has the builder ruston hornsby, the date 1961, and the name Topsy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (number VARCHAR, name VARCHAR, builder VARCHAR, date VARCHAR) | SELECT COUNT(number) FROM table_name_10 WHERE builder = "ruston hornsby" AND date = 1961 AND name = "topsy" |
Write a SQL query that answers the following question: What is the number with the builder hunslet and a works number greater than 822? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (number VARCHAR, builder VARCHAR, works_number VARCHAR) | SELECT COUNT(number) FROM table_name_62 WHERE builder = "hunslet" AND works_number > 822 |
Write a SQL query that answers the following question: What was the score of the March 14 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_95 WHERE date = "march 14" |
Write a SQL query that answers the following question: What was the score for the December 11 game against the Ottawa Senators? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (score VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT score FROM table_name_52 WHERE visitor = "ottawa senators" AND date = "december 11" |
Write a SQL query that answers the following question: Name the project with length overall being 25 and name of levante | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (project VARCHAR, length_overall_in_meters__without_bowsprit_ VARCHAR, name VARCHAR) | SELECT project FROM table_name_40 WHERE length_overall_in_meters__without_bowsprit_ = 25 AND name = "levante" |
Write a SQL query that answers the following question: Name the sum of Hull number with portugal destination | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (hull_no INTEGER, destination VARCHAR) | SELECT SUM(hull_no) FROM table_name_84 WHERE destination = "portugal" |
Write a SQL query that answers the following question: Name the sum of hull number for italy and year more than 1999 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (hull_no INTEGER, destination VARCHAR, year VARCHAR) | SELECT SUM(hull_no) FROM table_name_37 WHERE destination = "italy" AND year > 1999 |
Write a SQL query that answers the following question: Give me the result for a format saying album with 1994 as the year. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (result_s_ VARCHAR, format_s_ VARCHAR, year VARCHAR) | SELECT result_s_ FROM table_name_91 WHERE format_s_ = "album" AND year = 1994 |
Write a SQL query that answers the following question: List the Award Descriptions for the year of 1989. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (award_description_s_ VARCHAR, year VARCHAR) | SELECT award_description_s_ FROM table_name_17 WHERE year = 1989 |
Write a SQL query that answers the following question: What was the score of the game played on August 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_66 WHERE date = "august 5" |
Write a SQL query that answers the following question: On what date was the Blue Jays record 60-56? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_25 WHERE record = "60-56" |
Write a SQL query that answers the following question: Tell me the name for first elected more than 1988 and district of mason | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (name VARCHAR, first_elected VARCHAR, district VARCHAR) | SELECT name FROM table_name_4 WHERE first_elected > 1988 AND district = "mason" |
Write a SQL query that answers the following question: Name the party with first elected more than 1999 and position of supervisor for john foust | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (party VARCHAR, name VARCHAR, first_elected VARCHAR, position VARCHAR) | SELECT party FROM table_name_88 WHERE first_elected > 1999 AND position = "supervisor" AND name = "john foust" |
Write a SQL query that answers the following question: Name the total number of first elected for dranesville | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (first_elected VARCHAR, district VARCHAR) | SELECT COUNT(first_elected) FROM table_name_20 WHERE district = "dranesville" |
Write a SQL query that answers the following question: What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (year VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT COUNT(year) FROM table_name_71 WHERE venue = "sydney cricket ground" AND opponent = "parramatta eels" |
Write a SQL query that answers the following question: What was the competition in 1978? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (competition VARCHAR, year VARCHAR) | SELECT competition FROM table_name_71 WHERE year = 1978 |
Write a SQL query that answers the following question: What year was the average attendance 80,388? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (year INTEGER, attendance VARCHAR) | SELECT AVG(year) FROM table_name_24 WHERE attendance = "80,388" |
Write a SQL query that answers the following question: What was the score with the opponent being New Zealand Warriors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_67 WHERE opponent = "new zealand warriors" |
Write a SQL query that answers the following question: Which 1st Party has an election in 1847? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (election VARCHAR) | SELECT 1 AS st_party FROM table_name_28 WHERE election = "1847" |
Write a SQL query that answers the following question: Which 1st Party has an election in 1865? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (election VARCHAR) | SELECT 1 AS st_party FROM table_name_92 WHERE election = "1865" |
Write a SQL query that answers the following question: What was the average number of points with bonus pts less than 31 with the rider dennis gavros? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (total_points INTEGER, rider VARCHAR, bonus_pts VARCHAR) | SELECT AVG(total_points) FROM table_name_29 WHERE rider = "dennis gavros" AND bonus_pts < 31 |
Write a SQL query that answers the following question: How many total matches involving dennis gavros had total points less than 167? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (matches VARCHAR, rider VARCHAR, total_points VARCHAR) | SELECT COUNT(matches) FROM table_name_35 WHERE rider = "dennis gavros" AND total_points < 167 |
Write a SQL query that answers the following question: What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (matches INTEGER, bonus_pts VARCHAR, total_points VARCHAR) | SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421 |
Write a SQL query that answers the following question: Which category earlier than 2006 has Bart Brentjens as rider 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (category VARCHAR, date VARCHAR, rider_2 VARCHAR) | SELECT category FROM table_name_33 WHERE date < 2006 AND rider_2 = "bart brentjens" |
Write a SQL query that answers the following question: How many dates does the ladies category correspond to Rothaus-Cube? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, category VARCHAR, team VARCHAR) | SELECT COUNT(date) FROM table_name_37 WHERE category = "ladies" AND team = "rothaus-cube" |
Write a SQL query that answers the following question: Which category has a team of Cannondale Vredestein? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (category VARCHAR, team VARCHAR) | SELECT category FROM table_name_28 WHERE team = "cannondale vredestein" |
Write a SQL query that answers the following question: What is the qual with a rank 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (qual VARCHAR, rank VARCHAR) | SELECT qual FROM table_name_9 WHERE rank = "9" |
Write a SQL query that answers the following question: What is the finish in 1956? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (finish VARCHAR, year VARCHAR) | SELECT finish FROM table_name_17 WHERE year = "1956" |
Write a SQL query that answers the following question: What is the finish with 200 laps and a start of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR) | SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" |
Write a SQL query that answers the following question: What is the qual with 200 laps and a rank of 27? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (qual VARCHAR, laps VARCHAR, rank VARCHAR) | SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27" |
Write a SQL query that answers the following question: What is the rank with a 14 finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (rank VARCHAR, finish VARCHAR) | SELECT rank FROM table_name_13 WHERE finish = "14" |
Write a SQL query that answers the following question: What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (cuts_made INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT MIN(cuts_made) FROM table_name_72 WHERE tournament = "masters tournament" AND top_25 < 0 |
Write a SQL query that answers the following question: What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) | SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 2 |
Write a SQL query that answers the following question: What is the average number of events the Masters tournament, which has more than 0 top-25, has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT AVG(events) FROM table_name_84 WHERE tournament = "masters tournament" AND top_25 > 0 |
Write a SQL query that answers the following question: What is the total number of top-25 a tournament with less than 2 events has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (top_25 VARCHAR, events INTEGER) | SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2 |
Write a SQL query that answers the following question: What was the date of the game that had a loss of Gott (2-7)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_98 WHERE loss = "gott (2-7)" |
Write a SQL query that answers the following question: Who was the opponent at the game when the record was 54-58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_13 WHERE record = "54-58" |
Write a SQL query that answers the following question: What was the score of the game when the record was 59-65? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_77 WHERE record = "59-65" |
Write a SQL query that answers the following question: Who was the opponent at the game that had a loss of Caldwell (10-11)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)" |
Write a SQL query that answers the following question: Which opponent had a time of 1:26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_1 WHERE time = "1:26" |
Write a SQL query that answers the following question: What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12" |
Write a SQL query that answers the following question: Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR) | SELECT catalogue FROM table_name_33 WHERE region = "uk" AND format = "vinyl" AND date = "1986" |
Write a SQL query that answers the following question: What region has a bronze label and a catalogue of 202 876-270? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR) | SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270" |
Write a SQL query that answers the following question: Which label is from the Germany region? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_52 WHERE region = "germany" |
Write a SQL query that answers the following question: What label has brol 34531 as it's catalogue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR) | SELECT label FROM table_name_31 WHERE catalogue = "brol 34531" |
Write a SQL query that answers the following question: Which label has UK for its region, is on a CD, and is dated from 1986? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date VARCHAR) | SELECT label FROM table_name_61 WHERE region = "uk" AND date = "1986" AND format = "cd" |
Write a SQL query that answers the following question: Which catalogue has essential, castle music as it's label? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) | SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music" |
Write a SQL query that answers the following question: What's the period of a rock album released in 1973? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (period_active VARCHAR, release_year_of_first_charted_record VARCHAR, genre VARCHAR) | SELECT period_active FROM table_name_83 WHERE release_year_of_first_charted_record = 1973 AND genre = "rock" |
Write a SQL query that answers the following question: Name the pick number for bill atessis | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR) | SELECT pick__number FROM table_name_15 WHERE name = "bill atessis" |
Write a SQL query that answers the following question: Name the total number of overall for defensive tackle | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR) | SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle" |
Write a SQL query that answers the following question: Which engine has daimler benz ag as an entrant? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag" |
Write a SQL query that answers the following question: In which years was the to par +6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR) | SELECT year_s__won FROM table_name_86 WHERE to_par = "+6" |
Write a SQL query that answers the following question: In 1991, what was the lowest total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR) | SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991" |
Write a SQL query that answers the following question: What are the total lanes that have a rank larger than 22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER) | SELECT SUM(lane) FROM table_name_11 WHERE rank > 22 |
Write a SQL query that answers the following question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR) | SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong" |
Write a SQL query that answers the following question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR) | SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3 |