instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: WHAT DATE HAD 6 RANK? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (date VARCHAR, rank__number VARCHAR) | SELECT date FROM table_name_51 WHERE rank__number = "6" |
Write a SQL query that answers the following question: WHAT OPPONENT WAS ON OCTOBER 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (opponent_number VARCHAR, date VARCHAR) | SELECT opponent_number FROM table_name_37 WHERE date = "october 7" |
Write a SQL query that answers the following question: WHAT RANK HAD A RESULT OF W13-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (rank__number VARCHAR, result VARCHAR) | SELECT rank__number FROM table_name_48 WHERE result = "w13-3" |
Write a SQL query that answers the following question: What is the original NFL team of the College of Oregon DT Player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (original_nfl_team VARCHAR, college VARCHAR, pos VARCHAR) | SELECT original_nfl_team FROM table_name_51 WHERE college = "oregon" AND pos = "dt" |
Write a SQL query that answers the following question: What Player is from Iowa State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_6 WHERE college = "iowa state" |
Write a SQL query that answers the following question: What was the result of the game that had 77,702 people in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_35 WHERE attendance = "77,702" |
Write a SQL query that answers the following question: On what day did the team play the Indianapolis Colts? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts" |
Write a SQL query that answers the following question: What is the average Played, when Goals Against is less than 63, when Team is "Nelson", and when Lost is greater than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (played INTEGER, lost VARCHAR, goals_against VARCHAR, team VARCHAR) | SELECT AVG(played) FROM table_name_18 WHERE goals_against < 63 AND team = "nelson" AND lost > 16 |
Write a SQL query that answers the following question: What is the total number of Goals For, when Points 1 is "41"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (goals_for VARCHAR, points_1 VARCHAR) | SELECT COUNT(goals_for) FROM table_name_68 WHERE points_1 = "41" |
Write a SQL query that answers the following question: What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (position INTEGER, drawn VARCHAR, lost VARCHAR, team VARCHAR) | SELECT MIN(position) FROM table_name_21 WHERE lost > 15 AND team = "cheadle town" AND drawn > 8 |
Write a SQL query that answers the following question: What is the lowest Position, when Points 1 is "39", and when Goals Against is greater than 49? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (position INTEGER, points_1 VARCHAR, goals_against VARCHAR) | SELECT MIN(position) FROM table_name_75 WHERE points_1 = "39" AND goals_against > 49 |
Write a SQL query that answers the following question: WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (season VARCHAR, head_coach VARCHAR, europe VARCHAR) | SELECT season FROM table_name_72 WHERE head_coach = "jonas kazlauskas" AND europe = "champions cup group stage" |
Write a SQL query that answers the following question: WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (lkf_cup VARCHAR, europe VARCHAR, regional_competitions VARCHAR) | SELECT lkf_cup FROM table_name_69 WHERE europe = "euroleague group stage" AND regional_competitions = "bbl elite division finalist" |
Write a SQL query that answers the following question: WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR) | SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist" |
Write a SQL query that answers the following question: What is the entry for the Australian sound that has an example of illyria, cf. cirrhosis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (australian VARCHAR, examples VARCHAR) | SELECT australian FROM table_name_79 WHERE examples = "illyria, cf. cirrhosis" |
Write a SQL query that answers the following question: What is the example for the American of Ιͺ, Ι, and a Semi-closed initial unstressed vowels of y /Ι¨/? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (examples VARCHAR, american VARCHAR, semi_closed_initial_unstressed_vowels VARCHAR) | SELECT examples FROM table_name_73 WHERE american = "Ιͺ, Ι" AND semi_closed_initial_unstressed_vowels = "y /Ι¨/" |
Write a SQL query that answers the following question: What field is an opponent of cannons and resulted with w 16-11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (field VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT field FROM table_name_88 WHERE opponent = "cannons" AND result = "w 16-11" |
Write a SQL query that answers the following question: what is the result from texas stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (result VARCHAR, field VARCHAR) | SELECT result FROM table_name_89 WHERE field = "texas stadium" |
Write a SQL query that answers the following question: What field resulted with w 18-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (field VARCHAR, result VARCHAR) | SELECT field FROM table_name_46 WHERE result = "w 18-12" |
Write a SQL query that answers the following question: What field had results of w 18-12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (field VARCHAR, result VARCHAR) | SELECT field FROM table_name_63 WHERE result = "w 18-12" |
Write a SQL query that answers the following question: WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (points INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, wins VARCHAR) | SELECT MAX(points) FROM table_name_1 WHERE goals_for > 48 AND wins < 19 AND goals_against < 44 AND draws > 5 |
Write a SQL query that answers the following question: WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR) | SELECT COUNT(points) FROM table_name_73 WHERE wins < 14 AND club = "sd indauchu" AND position > 12 |
Write a SQL query that answers the following question: WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (goals_for INTEGER, draws VARCHAR, losses VARCHAR) | SELECT AVG(goals_for) FROM table_name_9 WHERE draws < 6 AND losses < 7 |
Write a SQL query that answers the following question: How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (Id VARCHAR) | SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2 |
Write a SQL query that answers the following question: What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (Id VARCHAR) | SELECT 2010 FROM table_name_21 WHERE 2006 < 6.9 AND 2008 > 1.6 AND 2007 = 2 |
Write a SQL query that answers the following question: How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (Id VARCHAR) | SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1 |
Write a SQL query that answers the following question: What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (Id VARCHAR) | SELECT MAX(2010) FROM table_name_80 WHERE 2009 < 6.5 AND 2008 = 0.4 AND 2007 < 0.5 |
Write a SQL query that answers the following question: How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Id VARCHAR) | SELECT SUM(2007) FROM table_name_71 WHERE 2006 = 0.2 AND 2010 < 0.1 |
Write a SQL query that answers the following question: What Tournament has an Outcome of runner-up, and a Score of 4β6, 3β6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4β6, 3β6" |
Write a SQL query that answers the following question: What Surface has a Date of 1 september 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_18 WHERE date = "1 september 2008" |
Write a SQL query that answers the following question: What Score has an Opponent of nina bratchikova? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_58 WHERE opponent = "nina bratchikova" |
Write a SQL query that answers the following question: What Surface has a Tournament of pune, india? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_61 WHERE tournament = "pune, india" |
Write a SQL query that answers the following question: What Tournament has a Date of 20 december 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_64 WHERE date = "20 december 2010" |
Write a SQL query that answers the following question: What Tournament has a Score of 5β7, 2β6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_6 WHERE score = "5β7, 2β6" |
Write a SQL query that answers the following question: Which Place has a Score of 71-70=141? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_7 WHERE score = 71 - 70 = 141 |
Write a SQL query that answers the following question: Which Country has a Score of 69-66=135? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_76 WHERE score = 69 - 66 = 135 |
Write a SQL query that answers the following question: Which Country has a To par of β9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_33 WHERE to_par = "β9" |
Write a SQL query that answers the following question: Which To par has a Country of united states, and a Score of 71-70=141? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 71 - 70 = 141 |
Write a SQL query that answers the following question: Which Player has a To par of β5, and a Country of england? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT player FROM table_name_5 WHERE to_par = "β5" AND country = "england" |
Write a SQL query that answers the following question: Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (category VARCHAR, award VARCHAR, year VARCHAR) | SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010 |
Write a SQL query that answers the following question: How many years have a Result of nominated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (year VARCHAR, result VARCHAR) | SELECT COUNT(year) FROM table_name_42 WHERE result = "nominated" |
Write a SQL query that answers the following question: Which Result has a Category of outstanding actor (drama)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (result VARCHAR, category VARCHAR) | SELECT result FROM table_name_82 WHERE category = "outstanding actor (drama)" |
Write a SQL query that answers the following question: Which Result has an Award of virgin media tv awards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR) | SELECT result FROM table_name_45 WHERE award = "virgin media tv awards" |
Write a SQL query that answers the following question: What is the prize money for the second round qualifying that is listed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (prize_money VARCHAR, round VARCHAR) | SELECT prize_money FROM table_name_60 WHERE round = "second round qualifying" |
Write a SQL query that answers the following question: How many years have runner-up as the outcome, and indian wells as the championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR) | SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells" |
Write a SQL query that answers the following question: What score has 2000 as the year? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, year VARCHAR) | SELECT score FROM table_name_80 WHERE year = 2000 |
Write a SQL query that answers the following question: What surface has indian wells as the championship, with winner as the outcome? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (surface VARCHAR, championship VARCHAR, outcome VARCHAR) | SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner" |
Write a SQL query that answers the following question: Which average money has a To par larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER) | SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12 |
Write a SQL query that answers the following question: Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (country VARCHAR, to_par VARCHAR, money___$__ VARCHAR, score VARCHAR) | SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283 |
Write a SQL query that answers the following question: Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (money___ INTEGER, to_par VARCHAR, place VARCHAR, player VARCHAR) | SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = "t10" AND player = "denny shute" AND to_par > 12 |
Write a SQL query that answers the following question: Which Country has a Money ($) of 0, and a Place of t10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (country VARCHAR, money___$__ VARCHAR, place VARCHAR) | SELECT country FROM table_name_93 WHERE money___$__ = 0 AND place = "t10" |
Write a SQL query that answers the following question: What is the highest FLap by a Honda NSR500 bike after Race 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (flap INTEGER, bike VARCHAR, race VARCHAR) | SELECT MAX(flap) FROM table_name_97 WHERE bike = "honda nsr500" AND race > 16 |
Write a SQL query that answers the following question: How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (tonnage__grt_ VARCHAR, nationality VARCHAR, date VARCHAR) | SELECT COUNT(tonnage__grt_) FROM table_name_8 WHERE nationality = "united kingdom" AND date = "27 june 1941" |
Write a SQL query that answers the following question: Which Nationality has a Date of 8 may 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (nationality VARCHAR, date VARCHAR) | SELECT nationality FROM table_name_39 WHERE date = "8 may 1942" |
Write a SQL query that answers the following question: What is Canada's highest round before 1973? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (round INTEGER, nationality VARCHAR, draft VARCHAR) | SELECT MAX(round) FROM table_name_39 WHERE nationality = "canada" AND draft < 1973 |
Write a SQL query that answers the following question: What year was The Saber nominated for best action? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (year INTEGER, title_of_work VARCHAR, category VARCHAR) | SELECT AVG(year) FROM table_name_17 WHERE title_of_work = "saber" AND category = "best action" |
Write a SQL query that answers the following question: What was awarded before 2013 to the Saber in the category of Best Action? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (award VARCHAR, category VARCHAR, year VARCHAR, title_of_work VARCHAR) | SELECT award FROM table_name_93 WHERE year < 2013 AND title_of_work = "saber" AND category = "best action" |
Write a SQL query that answers the following question: What date had the patent number US plant patent 12098? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (date VARCHAR, plant_patent_number VARCHAR) | SELECT date FROM table_name_97 WHERE plant_patent_number = "us plant patent 12098" |
Write a SQL query that answers the following question: What's the mutated having a patent number of US plant patent 9645? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (mutated_from VARCHAR, plant_patent_number VARCHAR) | SELECT mutated_from FROM table_name_39 WHERE plant_patent_number = "us plant patent 9645" |
Write a SQL query that answers the following question: What's the patent number when it was mutated from Yakata 7001 and a standard habit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR) | SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001" |
Write a SQL query that answers the following question: What's the patent number of Fukuda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (plant_patent_number VARCHAR) | SELECT plant_patent_number FROM table_name_21 WHERE "inventor" = "fukuda" |
Write a SQL query that answers the following question: Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR) | SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" |
Write a SQL query that answers the following question: What's the mutated of Auvil? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (mutated_from VARCHAR, assignee VARCHAR) | SELECT mutated_from FROM table_name_19 WHERE assignee = "auvil" |
Write a SQL query that answers the following question: Which model has a top speed of 231km/h (143mph)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (model VARCHAR, top_speed VARCHAR) | SELECT model FROM table_name_37 WHERE top_speed = "231km/h (143mph)" |
Write a SQL query that answers the following question: How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR) | SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)" |
Write a SQL query that answers the following question: What is the 0β100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (top_speed VARCHAR) | SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)" |
Write a SQL query that answers the following question: What is the top speed of the SLK200K that produces 122kw (163hp)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR) | SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)" |
Write a SQL query that answers the following question: What is the Latin term for the Greek symbol ΞΌ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (latin VARCHAR, greek VARCHAR) | SELECT latin FROM table_name_80 WHERE greek = "ΞΌ" |
Write a SQL query that answers the following question: Which role had a closing broadway cast of Adam Grupper? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (role VARCHAR, closing_broadway_cast VARCHAR) | SELECT role FROM table_name_78 WHERE closing_broadway_cast = "adam grupper" |
Write a SQL query that answers the following question: What was the original US Tour cast when the original broadway was Kevin Chamberlin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (original_us_tour_cast VARCHAR, original_broadway_cast VARCHAR) | SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = "kevin chamberlin" |
Write a SQL query that answers the following question: What was the original nonequity tour when the original broadway was Kevin Chamberlin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (original_nonequity_tour_cast VARCHAR, original_broadway_cast VARCHAR) | SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = "kevin chamberlin" |
Write a SQL query that answers the following question: What was the role when the original broadway was Adam Riegler? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (role VARCHAR, original_broadway_cast VARCHAR) | SELECT role FROM table_name_8 WHERE original_broadway_cast = "adam riegler" |
Write a SQL query that answers the following question: What is the number for the international with 669 domestic earlier than 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (international INTEGER, domestic VARCHAR, year VARCHAR) | SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005 |
Write a SQL query that answers the following question: What was the score on 14 march 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_39 WHERE date = "14 march 2004" |
Write a SQL query that answers the following question: In what season was Kilmarnock a finalist and Hibernian the winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (season VARCHAR, winners VARCHAR, finalists VARCHAR) | SELECT season FROM table_name_75 WHERE winners = "hibernian" AND finalists = "kilmarnock" |
Write a SQL query that answers the following question: Who were the finalists in the 1972β73 season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (finalists VARCHAR, season VARCHAR) | SELECT finalists FROM table_name_53 WHERE season = "1972β73" |
Write a SQL query that answers the following question: In which season did the Rangers win with a score of 2β1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (season VARCHAR, score VARCHAR, winners VARCHAR) | SELECT season FROM table_name_21 WHERE score = "2β1" AND winners = "rangers" |
Write a SQL query that answers the following question: When did Motherwell win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, winners VARCHAR) | SELECT date FROM table_name_15 WHERE winners = "motherwell" |
Write a SQL query that answers the following question: What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (burglary INTEGER, forcible_rape VARCHAR, motor_vehicle_theft VARCHAR) | SELECT MIN(burglary) FROM table_name_90 WHERE forcible_rape = "39.1" AND motor_vehicle_theft < 568.8 |
Write a SQL query that answers the following question: What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (murder_and_non_negligent_manslaughter INTEGER, larceny_theft VARCHAR, burglary VARCHAR) | SELECT SUM(murder_and_non_negligent_manslaughter) FROM table_name_86 WHERE larceny_theft = "3,693.9" AND burglary > 1 OFFSET 027.0 |
Write a SQL query that answers the following question: What is the name for district total:? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (name VARCHAR, district VARCHAR) | SELECT name FROM table_name_80 WHERE district = "total:" |
Write a SQL query that answers the following question: What is the electorates in 2009 for Modi Nagar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (number_of_electorates__2009_ INTEGER, name VARCHAR) | SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = "modi nagar" |
Write a SQL query that answers the following question: Who was the opponent on 12 May, when the match day was more than 33? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (opponent VARCHAR, match_day VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_53 WHERE match_day > 33 AND date = "12 may" |
Write a SQL query that answers the following question: What is the largest issue date for an album that reached position of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (issue_date INTEGER, highest_position VARCHAR) | SELECT MAX(issue_date) FROM table_name_6 WHERE highest_position = 3 |
Write a SQL query that answers the following question: What is the record on March 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_66 WHERE date = "march 16" |
Write a SQL query that answers the following question: What was the score on January 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_51 WHERE date = "january 23" |
Write a SQL query that answers the following question: How many strokes off par was the player who scored 157? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (to_par VARCHAR, total VARCHAR) | SELECT COUNT(to_par) FROM table_name_17 WHERE total = 157 |
Write a SQL query that answers the following question: Which player who won in 1977 and scored great than 155 was the closest to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR) | SELECT MAX(to_par) FROM table_name_96 WHERE year_s__won = "1977" AND total > 155 |
Write a SQL query that answers the following question: What country was the player who was 11 off par from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_88 WHERE to_par = 11 |
Write a SQL query that answers the following question: What was the Home team in Tie no 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_90 WHERE tie_no = "16" |
Write a SQL query that answers the following question: What is the Date of Tie no 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_61 WHERE tie_no = "9" |
Write a SQL query that answers the following question: What is the Score in Tie 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_4 WHERE tie_no = "2" |
Write a SQL query that answers the following question: What is the Tie no when Scarborough is the Home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_98 WHERE home_team = "scarborough" |
Write a SQL query that answers the following question: What is the Tie no when Swansea City is the Away team with a Score of 2β2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (tie_no VARCHAR, score VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_75 WHERE score = "2β2" AND away_team = "swansea city" |
Write a SQL query that answers the following question: What is the name of constituency 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (name VARCHAR, constituency_number VARCHAR) | SELECT name FROM table_name_50 WHERE constituency_number = "5" |
Write a SQL query that answers the following question: What label is released on September 20, 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (label VARCHAR, date_of_release VARCHAR) | SELECT label FROM table_name_16 WHERE date_of_release = "september 20, 2005" |
Write a SQL query that answers the following question: What is the lowest total with an all around of 10 and a rope higher than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (total INTEGER, all_around VARCHAR, rope VARCHAR) | SELECT MIN(total) FROM table_name_13 WHERE all_around = 10 AND rope > 10 |
Write a SQL query that answers the following question: What is Bianka Panova's highest total with lower than place 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (total INTEGER, name VARCHAR, place VARCHAR) | SELECT MAX(total) FROM table_name_56 WHERE name = "bianka panova" AND place < 1 |
Write a SQL query that answers the following question: What is Milena Reljin's place with a smaller than 9.8 rope? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (place VARCHAR, rope VARCHAR, name VARCHAR) | SELECT place FROM table_name_5 WHERE rope < 9.8 AND name = "milena reljin" |
Write a SQL query that answers the following question: What is the highest game with a 24-23 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (game INTEGER, record VARCHAR) | SELECT MAX(game) FROM table_name_62 WHERE record = "24-23" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.