instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was their record when they lost with Lilly (0-1) pitching? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_6 WHERE loss = "lilly (0-1)" |
Write a SQL query that answers the following question: What was their record when the attendance was 26,827? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR) | SELECT record FROM table_name_51 WHERE attendance = "26,827" |
Write a SQL query that answers the following question: Who is the December playmate with a February playmate Anne-Marie Fox? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR) | SELECT december FROM table_name_76 WHERE february = "anne-marie fox" |
Write a SQL query that answers the following question: Who is the August playmate with the October playmate Shannon Long? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR) | SELECT august FROM table_name_51 WHERE october = "shannon long" |
Write a SQL query that answers the following question: Who is the December playmate with a November playmate Marlene Janssen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR) | SELECT december FROM table_name_72 WHERE november = "marlene janssen" |
Write a SQL query that answers the following question: Who is the November playmate with the July playmate Hope Marie Carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) | SELECT november FROM table_name_66 WHERE july = "hope marie carlton" |
Write a SQL query that answers the following question: Who is the March playmate with an August playmate Gianna Amore? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR) | SELECT march FROM table_name_53 WHERE august = "gianna amore" |
Write a SQL query that answers the following question: Who is the January playmate with the November playmate Donna Edmondson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR) | SELECT january FROM table_name_66 WHERE november = "donna edmondson" |
Write a SQL query that answers the following question: What is the home stadium of the Tennessee Titans? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (stadium VARCHAR, host_team VARCHAR) | SELECT stadium FROM table_name_10 WHERE host_team = "tennessee titans" |
Write a SQL query that answers the following question: When were the Houston Texans the visiting team later in the season? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (week INTEGER, visiting_team VARCHAR) | SELECT MAX(week) FROM table_name_29 WHERE visiting_team = "houston texans" |
Write a SQL query that answers the following question: The final score was 24-34 on what date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date VARCHAR, final_score VARCHAR) | SELECT date FROM table_name_18 WHERE final_score = "24-34" |
Write a SQL query that answers the following question: What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 7 |
Write a SQL query that answers the following question: What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_26 WHERE bronze = 7 AND gold > 18 |
Write a SQL query that answers the following question: What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 7 |
Write a SQL query that answers the following question: What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR) | SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12 |
Write a SQL query that answers the following question: What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7 |
Write a SQL query that answers the following question: Name the score for yuliya ustyuzhanina | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_84 WHERE opponent = "yuliya ustyuzhanina" |
Write a SQL query that answers the following question: Name the date for hard surface and tournament of fort walton beach | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach" |
Write a SQL query that answers the following question: Name the opponent with score of 1–6, 6–4, 6–4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–4" |
Write a SQL query that answers the following question: Name the score for 10 april 2007 and opponent of selima sfar | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar" |
Write a SQL query that answers the following question: How many runners had placings over 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER) | SELECT COUNT(runners) FROM table_name_34 WHERE placing > 8 |
Write a SQL query that answers the following question: Which course had a jockey of Royston FFrench? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR) | SELECT course FROM table_name_22 WHERE jockey = "royston ffrench" |
Write a SQL query that answers the following question: What is the average prize for the Buttercross Limited Stakes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR) | SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = "buttercross limited stakes" |
Write a SQL query that answers the following question: How many total runners had jockeys of Olivier Peslier with placings under 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR) | SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 2 |
Write a SQL query that answers the following question: Name the games with marks of 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (games VARCHAR, marks VARCHAR) | SELECT games FROM table_name_71 WHERE marks = "21" |
Write a SQL query that answers the following question: Name the kicks with goals of 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (kicks VARCHAR, goals VARCHAR) | SELECT kicks FROM table_name_40 WHERE goals = "1" |
Write a SQL query that answers the following question: Name the goals with games of 6 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (goals VARCHAR, games VARCHAR) | SELECT goals FROM table_name_65 WHERE games = "6" |
Write a SQL query that answers the following question: What game had the date was it with the final score of 7-23 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR) | SELECT date FROM table_name_35 WHERE final_score = "7-23" |
Write a SQL query that answers the following question: What was the final score of the game at the astrodome? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR) | SELECT final_score FROM table_name_74 WHERE stadium = "astrodome" |
Write a SQL query that answers the following question: What was the final score for the date of December 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (final_score VARCHAR, date VARCHAR) | SELECT final_score FROM table_name_99 WHERE date = "december 30" |
Write a SQL query that answers the following question: What was the name of the Visiting team at Jack Murphy Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium" |
Write a SQL query that answers the following question: What was the name of the host team at Texas stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (host_team VARCHAR, stadium VARCHAR) | SELECT host_team FROM table_name_1 WHERE stadium = "texas stadium" |
Write a SQL query that answers the following question: What was the name of the host team dated December 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (host_team VARCHAR, date VARCHAR) | SELECT host_team FROM table_name_39 WHERE date = "december 16" |
Write a SQL query that answers the following question: Are there any Teams after 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (team VARCHAR, year INTEGER) | SELECT team FROM table_name_21 WHERE year > 1997 |
Write a SQL query that answers the following question: Which class has laps under 77? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER) | SELECT class FROM table_name_85 WHERE laps < 77 |
Write a SQL query that answers the following question: Who boarded first class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (boarded VARCHAR, class VARCHAR) | SELECT boarded FROM table_name_48 WHERE class = "first" |
Write a SQL query that answers the following question: What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR) | SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = "bury" |
Write a SQL query that answers the following question: What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (points INTEGER, year VARCHAR, chassis VARCHAR) | SELECT MIN(points) FROM table_name_15 WHERE year = 1978 AND chassis = "ensign n177" |
Write a SQL query that answers the following question: What are the highest number of points with an Entrant of warsteiner brewery? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR) | SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery" |
Write a SQL query that answers the following question: What is the D 43 when D 46 is R 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (d_43 VARCHAR, d_46 VARCHAR) | SELECT d_43 FROM table_name_68 WHERE d_46 = "r 6" |
Write a SQL query that answers the following question: What is the D44 when D43 is R 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (d_44 VARCHAR, d_43 VARCHAR) | SELECT d_44 FROM table_name_64 WHERE d_43 = "r 14" |
Write a SQL query that answers the following question: What is the D48 when D 43 is plurality ↑?? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (d_48 VARCHAR, d_43 VARCHAR) | SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑" |
Write a SQL query that answers the following question: What is the D44 when D41 is D 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (d_44 VARCHAR, d_41 VARCHAR) | SELECT d_44 FROM table_name_70 WHERE d_41 = "d 16" |
Write a SQL query that answers the following question: What gender is the team that has a decile of 5 and in the Dalefield area? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (gender VARCHAR, decile VARCHAR, area VARCHAR) | SELECT gender FROM table_name_95 WHERE decile = 5 AND area = "dalefield" |
Write a SQL query that answers the following question: What school in Dalefield has a roll less than 81? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR) | SELECT name FROM table_name_61 WHERE roll < 81 AND area = "dalefield" |
Write a SQL query that answers the following question: What is the lowest Height (m) on the island of Burray? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR) | SELECT MIN(height__m_) FROM table_name_22 WHERE island = "burray" |
Write a SQL query that answers the following question: What group on the island of Faray has a Height (m) of 32 and a Population of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR) | SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray" |
Write a SQL query that answers the following question: What group has a Population of see hoy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (group VARCHAR, population VARCHAR) | SELECT group FROM table_name_23 WHERE population = "see hoy" |
Write a SQL query that answers the following question: What group on the island of Muckle Green Holm has a population of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (group VARCHAR, population VARCHAR, island VARCHAR) | SELECT group FROM table_name_49 WHERE population = "0" AND island = "muckle green holm" |
Write a SQL query that answers the following question: What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR) | SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm" |
Write a SQL query that answers the following question: What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (population VARCHAR, height__m_ VARCHAR, area___ha__ VARCHAR) | SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17" |
Write a SQL query that answers the following question: What is the roll number of the school in Aramoho with a decile of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR) | SELECT roll FROM table_name_86 WHERE area = "aramoho" AND decile = 1 |
Write a SQL query that answers the following question: What is the area of Mangamahu primary school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR) | SELECT area FROM table_name_54 WHERE name = "mangamahu primary school" |
Write a SQL query that answers the following question: What is the area of the coed school with a state authority and a roll number of 122? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR) | SELECT area FROM table_name_17 WHERE authority = "state" AND gender = "coed" AND roll = 122 |
Write a SQL query that answers the following question: Which result is older than 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (result___category VARCHAR, year INTEGER) | SELECT result___category FROM table_name_18 WHERE year < 2007 |
Write a SQL query that answers the following question: What year was the Album/Song Speaking louder than before? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR) | SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before" |
Write a SQL query that answers the following question: What is the most recent year with the Album/Song "the best worst-case scenario"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR) | SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario" |
Write a SQL query that answers the following question: What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (score VARCHAR, surface VARCHAR, partner VARCHAR) | SELECT score FROM table_name_23 WHERE surface = "clay" AND partner = "remi tezuka" |
Write a SQL query that answers the following question: What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (score VARCHAR, partner VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_59 WHERE partner = "ksenia lykina" AND tournament = "kurume" |
Write a SQL query that answers the following question: What was the score of the final in which Melanie South played with partner Katie O'Brien? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (score VARCHAR, partner VARCHAR) | SELECT score FROM table_name_27 WHERE partner = "katie o'brien" |
Write a SQL query that answers the following question: What was the outcome of the tournament in Edinburgh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR) | SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh" |
Write a SQL query that answers the following question: What is the total decile with an Authority of state, and a Name of newfield park school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR) | SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school" |
Write a SQL query that answers the following question: What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR) | SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown" |
Write a SQL query that answers the following question: What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR) | SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 2 |
Write a SQL query that answers the following question: Which name has an Area of makarewa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (name VARCHAR, area VARCHAR) | SELECT name FROM table_name_65 WHERE area = "makarewa" |
Write a SQL query that answers the following question: Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR) | SELECT name FROM table_name_35 WHERE gender = "coed" AND decile > 5 AND roll = 131 |
Write a SQL query that answers the following question: Add up all the Ends columns that have goals smaller than 0. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER) | SELECT SUM(ends) FROM table_name_65 WHERE goals < 0 |
Write a SQL query that answers the following question: What was the competition in 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR) | SELECT competition FROM table_name_43 WHERE year = 2003 |
Write a SQL query that answers the following question: What was the competition in 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR) | SELECT competition FROM table_name_76 WHERE year = 2003 |
Write a SQL query that answers the following question: Which position has 50+12 points and fewer than 10 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR) | SELECT MAX(position) FROM table_name_92 WHERE points = "50+12" AND draws < 10 |
Write a SQL query that answers the following question: How many positions have goals of fewer than 40 and more than 38 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR) | SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38 |
Write a SQL query that answers the following question: How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) | SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = "cd sabadell" AND played > 38 |
Write a SQL query that answers the following question: What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR) | SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-8" |
Write a SQL query that answers the following question: What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR) | SELECT COUNT(loss) FROM table_name_86 WHERE avg_g < -3.3 AND gain > 126 |
Write a SQL query that answers the following question: What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR) | SELECT COUNT(loss) FROM table_name_41 WHERE gain > 27 AND avg_g < 55.9 AND name = "jackson, t." AND long < 34 |
Write a SQL query that answers the following question: What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) | SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e." |
Write a SQL query that answers the following question: What date was the record 20–16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_38 WHERE record = "20–16" |
Write a SQL query that answers the following question: What was the attendance in the gave versus the Brewers with a score of 9–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–6" |
Write a SQL query that answers the following question: What was the attendance on May 26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_90 WHERE date = "may 26" |
Write a SQL query that answers the following question: Matches of 127 has how many total number of inns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR) | SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127 |
Write a SQL query that answers the following question: Name of clem hill, and Inns larger than 126 has the lowest runs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (runs INTEGER, name VARCHAR, inns VARCHAR) | SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126 |
Write a SQL query that answers the following question: Runs smaller than 6106, and Inns smaller than 146 has what total number of matches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (matches VARCHAR, runs VARCHAR, inns VARCHAR) | SELECT COUNT(matches) FROM table_name_24 WHERE runs < 6106 AND inns < 146 |
Write a SQL query that answers the following question: Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (inns INTEGER, seasons VARCHAR, runs VARCHAR) | SELECT MAX(inns) FROM table_name_64 WHERE seasons = "1987–2007" AND runs > 11622 |
Write a SQL query that answers the following question: Name the partner for opponents of františek čermák michal mertiňák | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (partner VARCHAR, opponents_in_the_final VARCHAR) | SELECT partner FROM table_name_46 WHERE opponents_in_the_final = "františek čermák michal mertiňák" |
Write a SQL query that answers the following question: Name the score in the final for january 12, 2013 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (score_in_the_final VARCHAR, date VARCHAR) | SELECT score_in_the_final FROM table_name_63 WHERE date = "january 12, 2013" |
Write a SQL query that answers the following question: Name the opponents for outcome of runner-up and date of august 7, 2011 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT opponents_in_the_final FROM table_name_19 WHERE outcome = "runner-up" AND date = "august 7, 2011" |
Write a SQL query that answers the following question: Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR) | SELECT partner FROM table_name_22 WHERE surface = "grass" AND opponents_in_the_final = "jürgen melzer philipp petzschner" |
Write a SQL query that answers the following question: Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT score_in_the_final FROM table_name_1 WHERE outcome = "runner-up" AND surface = "hard" AND opponents_in_the_final = "michaël llodra nenad zimonjić" |
Write a SQL query that answers the following question: What date was the ship 'Wyandotte' launched? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (launched VARCHAR, ship VARCHAR) | SELECT launched FROM table_name_45 WHERE ship = "wyandotte" |
Write a SQL query that answers the following question: What was the original name of the ship 'Ajax'? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (renamed VARCHAR, ship VARCHAR) | SELECT renamed FROM table_name_58 WHERE ship = "ajax" |
Write a SQL query that answers the following question: What date was the ship named Manhattan completed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (commissioned_or_completed_ VARCHAR, _ VARCHAR, ship VARCHAR) | SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = "manhattan" |
Write a SQL query that answers the following question: What class had fewer than 336 laps in 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR) | SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004 |
Write a SQL query that answers the following question: What is the average attendance of game 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (attendance INTEGER, game INTEGER) | SELECT AVG(attendance) FROM table_name_72 WHERE game < 1 |
Write a SQL query that answers the following question: What is the attendance amount of the race with a time of 2:07? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR) | SELECT MAX(attendance) FROM table_name_38 WHERE time = "2:07" |
Write a SQL query that answers the following question: What club has less than 61 goals for and 55 goals against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (club VARCHAR, goals_for VARCHAR, goals_against VARCHAR) | SELECT club FROM table_name_33 WHERE goals_for < 61 AND goals_against = 55 |
Write a SQL query that answers the following question: What is the amount of Draws for the game that had a score of 45+7 and a position below 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (draws VARCHAR, points VARCHAR, position VARCHAR) | SELECT COUNT(draws) FROM table_name_29 WHERE points = "45+7" AND position < 3 |
Write a SQL query that answers the following question: What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) | SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38 |
Write a SQL query that answers the following question: Who was the recipient for Outstanding actress television series prior to 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (recipient VARCHAR, year INTEGER) | SELECT recipient FROM table_name_7 WHERE year < 2008 |
Write a SQL query that answers the following question: Who was the opponent at the game when the record was 71-78? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_67 WHERE record = "71-78" |
Write a SQL query that answers the following question: What was the date of the game that had a loss of Risley (0-1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_2 WHERE loss = "risley (0-1)" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.