instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What game had the result of 112-100?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_98 WHERE result = "112-100"
Write a SQL query that answers the following question: What game was played on May 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_1 WHERE date = "may 29"
Write a SQL query that answers the following question: What was the result of game 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (result VARCHAR, game VARCHAR)
SELECT result FROM table_name_26 WHERE game = "game 1"
Write a SQL query that answers the following question: What was the game when Houston was the home team and the result is 106-104?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (game VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT game FROM table_name_49 WHERE home_team = "houston" AND result = "106-104"
Write a SQL query that answers the following question: How many years was the number of laps 71?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (year VARCHAR, laps VARCHAR)
SELECT COUNT(year) FROM table_name_49 WHERE laps = 71
Write a SQL query that answers the following question: For a year that is later than 2002 what is the class position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (class VARCHAR, year INTEGER)
SELECT class AS pos FROM table_name_53 WHERE year > 2002
Write a SQL query that answers the following question: How many total rounds has lehigh as the college?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_90 WHERE college = "lehigh"
Write a SQL query that answers the following question: What name has 5 as the pick, a round less than 25, ot as the position, at boston college?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (name VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = "ot" AND college = "boston college"
Write a SQL query that answers the following question: How many overalls have E as the position, buddy payne as the name, and a pick less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (overall VARCHAR, pick VARCHAR, position VARCHAR, name VARCHAR)
SELECT COUNT(overall) FROM table_name_29 WHERE position = "e" AND name = "buddy payne" AND pick < 5
Write a SQL query that answers the following question: How many picks have charley sanders as the name, with a round greater than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (pick INTEGER, name VARCHAR, round VARCHAR)
SELECT SUM(pick) FROM table_name_78 WHERE name = "charley sanders" AND round > 22
Write a SQL query that answers the following question: What is the Attendance of the game against the Florida Panthers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (attendance INTEGER, opponent VARCHAR)
SELECT SUM(attendance) FROM table_name_8 WHERE opponent = "florida panthers"
Write a SQL query that answers the following question: What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (opponent VARCHAR, points VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_4 WHERE points > 5 AND attendance > 13 OFFSET 567
Write a SQL query that answers the following question: When his record was 15–1–1 (1) where did he fight?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_82 WHERE record = "15–1–1 (1)"
Write a SQL query that answers the following question: What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. 9"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (record VARCHAR, location VARCHAR, date VARCHAR)
SELECT record FROM table_name_24 WHERE location = "boston garden" AND date = "fri. nov. 9"
Write a SQL query that answers the following question: What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (opponent VARCHAR, score VARCHAR, location VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_91 WHERE location = "boston garden" AND game > 1 AND score = "115-105"
Write a SQL query that answers the following question: What is the sum of Game, when Date is "Wed. Nov. 14"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (game INTEGER, date VARCHAR)
SELECT SUM(game) FROM table_name_26 WHERE date = "wed. nov. 14"
Write a SQL query that answers the following question: What is Score, when Player is "Bill Rogers"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_80 WHERE player = "bill rogers"
Write a SQL query that answers the following question: Which State has an Electorate of West Sydney?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (state VARCHAR, electorate VARCHAR)
SELECT state FROM table_name_74 WHERE electorate = "west sydney"
Write a SQL query that answers the following question: Which State has an Electorate of Barton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (state VARCHAR, electorate VARCHAR)
SELECT state FROM table_name_14 WHERE electorate = "barton"
Write a SQL query that answers the following question: What was the L2 Cache for the processor with a release price of $496?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (l2_cache VARCHAR, release_price___usd__ VARCHAR)
SELECT l2_cache FROM table_name_38 WHERE release_price___usd__ = "$496"
Write a SQL query that answers the following question: What is the model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (model_number VARCHAR, sspec_number VARCHAR)
SELECT model_number FROM table_name_32 WHERE sspec_number = "sl3jm(kc0)sl3jt(kc0)"
Write a SQL query that answers the following question: What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (frequency VARCHAR, sspec_number VARCHAR)
SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)"
Write a SQL query that answers the following question: When did alfonse d'amore compete?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_59 WHERE opponent = "alfonse d'amore"
Write a SQL query that answers the following question: Which Round has a Method of ko, and a Date of 1958?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (round INTEGER, method VARCHAR, date VARCHAR)
SELECT MIN(round) FROM table_name_46 WHERE method = "ko" AND date = "1958"
Write a SQL query that answers the following question: Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, result VARCHAR, round VARCHAR)
SELECT date FROM table_name_60 WHERE result = "win" AND round < 2 AND opponent = "myron greenberg"
Write a SQL query that answers the following question: Which Round has a Method of ko, and an Opponent of alfonse d'amore?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (round VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_14 WHERE method = "ko" AND opponent = "alfonse d'amore"
Write a SQL query that answers the following question: Which Player has a Date of sep. 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (player VARCHAR, date VARCHAR)
SELECT player FROM table_name_89 WHERE date = "sep. 2008"
Write a SQL query that answers the following question: Which Transfer fee has a From club of blackburn rovers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (transfer_fee VARCHAR, from_club VARCHAR)
SELECT transfer_fee FROM table_name_80 WHERE from_club = "blackburn rovers"
Write a SQL query that answers the following question: Which From club has a Date of 20 oct. 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (from_club VARCHAR, date VARCHAR)
SELECT from_club FROM table_name_49 WHERE date = "20 oct. 2008"
Write a SQL query that answers the following question: Which Player has a Transfer fee of £750,000 [x]?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (player VARCHAR, transfer_fee VARCHAR)
SELECT player FROM table_name_34 WHERE transfer_fee = "£750,000 [x]"
Write a SQL query that answers the following question: What is Tournament, when Date is "6 April 1992"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_40 WHERE date = "6 april 1992"
Write a SQL query that answers the following question: What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (surface VARCHAR, opponents VARCHAR)
SELECT surface FROM table_name_39 WHERE opponents = "daniel nestor sandon stolle"
Write a SQL query that answers the following question: What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_48 WHERE outcome = "winner" AND opponents = "paul haarhuis sandon stolle"
Write a SQL query that answers the following question: What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_name_94 WHERE partner = "byron black" AND opponents = "goran ivanišević brian macphie"
Write a SQL query that answers the following question: What is Tournament, when Date is "9 August 1993"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_38 WHERE date = "9 august 1993"
Write a SQL query that answers the following question: What is Place, when Player is "Arnold Palmer"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_88 WHERE player = "arnold palmer"
Write a SQL query that answers the following question: What is Player, when To Par is +1, and when Score is 72-70-72=214?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_70 WHERE to_par = "+1" AND score = 72 - 70 - 72 = 214
Write a SQL query that answers the following question: What is Score, when Country is United States, and when Player is "Arnold Palmer"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_93 WHERE country = "united states" AND player = "arnold palmer"
Write a SQL query that answers the following question: What is To Par, when Country is United States, and when Score is 71-68-73=212?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_22 WHERE country = "united states" AND score = 71 - 68 - 73 = 212
Write a SQL query that answers the following question: What is Player, when Country is United States, and when Score is 70-72-70=212?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_1 WHERE country = "united states" AND score = 70 - 72 - 70 = 212
Write a SQL query that answers the following question: What is Country, when Player is "Billy Maxwell"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_77 WHERE player = "billy maxwell"
Write a SQL query that answers the following question: Who has a react smaller than 0.149 and a lane smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (name VARCHAR, react VARCHAR, lane VARCHAR)
SELECT name FROM table_name_23 WHERE react < 0.149 AND lane < 6
Write a SQL query that answers the following question: What was the lowest lane with a mark of 7.26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (lane INTEGER, mark VARCHAR)
SELECT MIN(lane) FROM table_name_50 WHERE mark = "7.26"
Write a SQL query that answers the following question: What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (games INTEGER, season VARCHAR, average VARCHAR)
SELECT MAX(games) FROM table_name_90 WHERE season > 2001 AND average < 10 OFFSET 838
Write a SQL query that answers the following question: What is the number of clubs for Shenyang Ginde when there were more than 182 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (no_of_clubs VARCHAR, team VARCHAR, games VARCHAR)
SELECT COUNT(no_of_clubs) FROM table_name_10 WHERE team = "shenyang ginde" AND games > 182
Write a SQL query that answers the following question: What is the smallest average for Beijing Guo'an when they played more than 240 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (average INTEGER, team VARCHAR, games VARCHAR)
SELECT MIN(average) FROM table_name_26 WHERE team = "beijing guo'an" AND games > 240
Write a SQL query that answers the following question: What is the average pick number for Washington State?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (pick INTEGER, school VARCHAR)
SELECT AVG(pick) FROM table_name_32 WHERE school = "washington state"
Write a SQL query that answers the following question: Which Comments has a Length Over All of 4.5m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (comments VARCHAR, length_over_all VARCHAR)
SELECT comments FROM table_name_56 WHERE length_over_all = "4.5m"
Write a SQL query that answers the following question: Which Crew has Comments of daggerboards. design: roy seaman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (crew VARCHAR, comments VARCHAR)
SELECT crew FROM table_name_49 WHERE comments = "daggerboards. design: roy seaman"
Write a SQL query that answers the following question: Which Comments has a Model of 18sq?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (comments VARCHAR, model VARCHAR)
SELECT comments FROM table_name_30 WHERE model = "18sq"
Write a SQL query that answers the following question: Which Model has Comments of curved daggerboards. design: morelli und melvin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (model VARCHAR, comments VARCHAR)
SELECT model FROM table_name_61 WHERE comments = "curved daggerboards. design: morelli und melvin"
Write a SQL query that answers the following question: Which Beam has a Model of 570?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (beam VARCHAR, model VARCHAR)
SELECT beam FROM table_name_17 WHERE model = "570"
Write a SQL query that answers the following question: Which Model has a Sail Area of 24.5 m²?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (model VARCHAR, sail_area VARCHAR)
SELECT model FROM table_name_75 WHERE sail_area = "24.5 m²"
Write a SQL query that answers the following question: What is the sum of the game numbers for games with less than 30 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (game INTEGER, points INTEGER)
SELECT SUM(game) FROM table_name_41 WHERE points < 30
Write a SQL query that answers the following question: Where was the game against the buffalo sabres?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_27 WHERE opponent = "buffalo sabres"
Write a SQL query that answers the following question: What is the highest BR number with a SECR number of 765?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (br_no INTEGER, secr_no VARCHAR)
SELECT MAX(br_no) FROM table_name_39 WHERE secr_no = 765
Write a SQL query that answers the following question: What is Beyer Peacock's SR number with a SECR number of 769?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR)
SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769
Write a SQL query that answers the following question: What is the tyre of nismo team member satoshi motoyama when he has rounds of all?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (tyre VARCHAR, drivers VARCHAR, rounds VARCHAR, team VARCHAR)
SELECT tyre FROM table_name_55 WHERE rounds = "all" AND team = "nismo" AND drivers = "satoshi motoyama"
Write a SQL query that answers the following question: What is the tyre of real racing with leon team member koudai tsukakoshi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)
SELECT tyre FROM table_name_24 WHERE team = "real racing with leon" AND drivers = "koudai tsukakoshi"
Write a SQL query that answers the following question: Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (drivers VARCHAR, team VARCHAR, tyre VARCHAR, rounds VARCHAR, make VARCHAR)
SELECT drivers FROM table_name_2 WHERE rounds = "all" AND make = "lexus" AND tyre = "b" AND team = "petronas toyota team tom's"
Write a SQL query that answers the following question: When driver yuji tachikawa had a make of lexus, what team did he represent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (team VARCHAR, make VARCHAR, drivers VARCHAR)
SELECT team FROM table_name_38 WHERE make = "lexus" AND drivers = "yuji tachikawa"
Write a SQL query that answers the following question: What is the sum of Capacity, when Team is "Denizlispor"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (capacity INTEGER, team VARCHAR)
SELECT SUM(capacity) FROM table_name_58 WHERE team = "denizlispor"
Write a SQL query that answers the following question: What is Team, when Venue is "Şükrü Saracoğlu Stadium"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (team VARCHAR, venue VARCHAR)
SELECT team FROM table_name_4 WHERE venue = "şükrü saracoğlu stadium"
Write a SQL query that answers the following question: Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (gagarin_cup_winner VARCHAR, gagarin_cup_finalist VARCHAR)
SELECT gagarin_cup_winner FROM table_name_17 WHERE gagarin_cup_finalist = "avangard omsk"
Write a SQL query that answers the following question: What was the resolution of the fight where andre roberts record was 9-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_60 WHERE record = "9-1"
Write a SQL query that answers the following question: What is the 2nd leg of goiás team 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_29 WHERE team__number2 = "goiás"
Write a SQL query that answers the following question: What is the 2nd leg of emelec team 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_66 WHERE team__number2 = "emelec"
Write a SQL query that answers the following question: What is the 2nd leg with ldu quito as team 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team__number1 = "ldu quito"
Write a SQL query that answers the following question: On what date was the bridge located in McClain listed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (listed VARCHAR, location VARCHAR)
SELECT listed FROM table_name_29 WHERE location = "mcclain"
Write a SQL query that answers the following question: What is the source on 6 September?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (source VARCHAR, date VARCHAR)
SELECT source FROM table_name_27 WHERE date = "6 september"
Write a SQL query that answers the following question: Which Week has a Result of l 21-19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (week VARCHAR, result VARCHAR)
SELECT COUNT(week) FROM table_name_4 WHERE result = "l 21-19"
Write a SQL query that answers the following question: Which Week has a Result of l 41-14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (week INTEGER, result VARCHAR)
SELECT MIN(week) FROM table_name_89 WHERE result = "l 41-14"
Write a SQL query that answers the following question: Which Result has a Date of september 3, 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_81 WHERE date = "september 3, 2000"
Write a SQL query that answers the following question: Which Date has an Attendance of 54,626?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_71 WHERE attendance = "54,626"
Write a SQL query that answers the following question: Which Result has an Attendance of bye?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_99 WHERE attendance = "bye"
Write a SQL query that answers the following question: What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (preliminary INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, interview VARCHAR)
SELECT MIN(preliminary) FROM table_name_50 WHERE swimsuit < 8.822 AND interview > 8.744 AND evening_gown > 9.333
Write a SQL query that answers the following question: What is the best preliminary for a contestant from New Mexico with interview less than 9.533?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (preliminary INTEGER, state VARCHAR, interview VARCHAR)
SELECT MAX(preliminary) FROM table_name_35 WHERE state = "new mexico" AND interview < 9.533
Write a SQL query that answers the following question: What state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (state VARCHAR, preliminary VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT state FROM table_name_19 WHERE swimsuit < 9.277 AND evening_gown > 8.944 AND preliminary < 8.483
Write a SQL query that answers the following question: What is the average when interview is 9.465 and evening gown is less than 9.454?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)
SELECT SUM(average) FROM table_name_28 WHERE interview = 9.465 AND evening_gown < 9.454
Write a SQL query that answers the following question: What is the best preliminary score from a contestant from Oklahoma with evening gown less than 8.853?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (preliminary INTEGER, state VARCHAR, evening_gown VARCHAR)
SELECT MAX(preliminary) FROM table_name_63 WHERE state = "oklahoma" AND evening_gown < 8.853
Write a SQL query that answers the following question: What is Written By, when Originalairdate is 25 April 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (written_by VARCHAR, originalairdate VARCHAR)
SELECT written_by FROM table_name_31 WHERE originalairdate = "25 april 1993"
Write a SQL query that answers the following question: What is Directed By, when Episode # is 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (directed_by VARCHAR, episode__number VARCHAR)
SELECT directed_by FROM table_name_18 WHERE episode__number = 7
Write a SQL query that answers the following question: WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (avg_finish INTEGER, position VARCHAR, top_5 VARCHAR)
SELECT MIN(avg_finish) FROM table_name_70 WHERE position = "40th" AND top_5 > 0
Write a SQL query that answers the following question: What country has 50 supermarkets?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (country VARCHAR, supermarkets VARCHAR)
SELECT country FROM table_name_19 WHERE supermarkets = "50"
Write a SQL query that answers the following question: What country has 370 supermarkets?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (country VARCHAR, supermarkets VARCHAR)
SELECT country FROM table_name_47 WHERE supermarkets = "370"
Write a SQL query that answers the following question: What country has a fire store of 1991 and a hard discounter of 397?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (country VARCHAR, first_store VARCHAR, hard_discounters VARCHAR)
SELECT country FROM table_name_2 WHERE first_store = "1991" AND hard_discounters = "397"
Write a SQL query that answers the following question: Which engine is in all rounds with Tsugio Matsuda driving?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (engine VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT engine FROM table_name_9 WHERE rounds = "all" AND driver = "tsugio matsuda"
Write a SQL query that answers the following question: Which engine is used by Team Lemans with Hiroaki Ishiura driving?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (engine VARCHAR, team VARCHAR, driver VARCHAR)
SELECT engine FROM table_name_65 WHERE team = "team lemans" AND driver = "hiroaki ishiura"
Write a SQL query that answers the following question: What is the least rank with more than 3 losses and less than 25 sets lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (rank INTEGER, loss VARCHAR, sets_lost VARCHAR)
SELECT MIN(rank) FROM table_name_34 WHERE loss > 3 AND sets_lost < 25
Write a SQL query that answers the following question: What is the least rank with more than 16 sets won and less than 1 loss?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (rank INTEGER, sets_won VARCHAR, loss VARCHAR)
SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 1
Write a SQL query that answers the following question: Who was the home team when the away team was Telford United?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_74 WHERE away_team = "telford united"
Write a SQL query that answers the following question: What was the score when the away team was West Ham United?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_4 WHERE away_team = "west ham united"
Write a SQL query that answers the following question: What is the Tie Number when the home team was West Ham United?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_56 WHERE home_team = "west ham united"
Write a SQL query that answers the following question: Name the Model Number which has a FSB Speed of 400 mhz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (model_number VARCHAR, fsb_speed VARCHAR)
SELECT model_number FROM table_name_59 WHERE fsb_speed = "400 mhz"
Write a SQL query that answers the following question: Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (voltage_range VARCHAR, fsb_speed VARCHAR, clock_speed VARCHAR)
SELECT voltage_range FROM table_name_30 WHERE fsb_speed = "400 mhz" AND clock_speed = "1 ghz"
Write a SQL query that answers the following question: Name the L2 Cache which has a Clock Speed of 1.5 ghz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (l2_cache VARCHAR, clock_speed VARCHAR)
SELECT l2_cache FROM table_name_10 WHERE clock_speed = "1.5 ghz"
Write a SQL query that answers the following question: What is the earliest game against Orlando?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (game INTEGER, team VARCHAR)
SELECT MIN(game) FROM table_name_57 WHERE team = "orlando"
Write a SQL query that answers the following question: Which Week has an Attendance of 72,855?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_47 WHERE attendance = "72,855"
Write a SQL query that answers the following question: Which Week has a Date of december 8, 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (week INTEGER, date VARCHAR)
SELECT AVG(week) FROM table_name_67 WHERE date = "december 8, 1991"
Write a SQL query that answers the following question: Which Opponent has a Date of november 24, 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_52 WHERE date = "november 24, 1991"