instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the result when the attendance was 46,456? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_2 WHERE attendance = "46,456" |
Write a SQL query that answers the following question: Who was the opponent on september 27, 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_16 WHERE date = "september 27, 1998" |
Write a SQL query that answers the following question: Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (venue VARCHAR, team_1 VARCHAR, score VARCHAR, season VARCHAR) | SELECT venue FROM table_name_39 WHERE score = "0:0" AND season > 2010 AND team_1 = "t&t hanoi" |
Write a SQL query that answers the following question: What's the highest league of the Nova Scotia Clippers with a total season of less than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (highest_league VARCHAR, total_seasons VARCHAR, team VARCHAR) | SELECT highest_league FROM table_name_2 WHERE total_seasons < 4 AND team = "nova scotia clippers" |
Write a SQL query that answers the following question: What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (seasons VARCHAR, total_seasons VARCHAR, city VARCHAR) | SELECT seasons FROM table_name_49 WHERE total_seasons < 5 AND city = "ottawa, ontario" |
Write a SQL query that answers the following question: What is the least total seasons of the Vancouver 86ers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (total_seasons INTEGER, team VARCHAR) | SELECT MIN(total_seasons) FROM table_name_58 WHERE team = "vancouver 86ers" |
Write a SQL query that answers the following question: Who was the opponent in week 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_28 WHERE week = 14 |
Write a SQL query that answers the following question: What is Date, when City is "Punta Del Este"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, city VARCHAR) | SELECT date FROM table_name_87 WHERE city = "punta del este" |
Write a SQL query that answers the following question: What is City, when Prize is "$146,000"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (city VARCHAR, prize VARCHAR) | SELECT city FROM table_name_18 WHERE prize = "$146,000" |
Write a SQL query that answers the following question: What is Date, when Winner is "Murilo Figueiredo"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, winner VARCHAR) | SELECT date FROM table_name_66 WHERE winner = "murilo figueiredo" |
Write a SQL query that answers the following question: What Aspect has a Programming of Saigon Network Television? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR) | SELECT aspect FROM table_name_12 WHERE programming = "saigon network television" |
Write a SQL query that answers the following question: Which Aspect has a Programming of latv? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (aspect VARCHAR, programming VARCHAR) | SELECT aspect FROM table_name_18 WHERE programming = "latv" |
Write a SQL query that answers the following question: Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (programming VARCHAR, channel VARCHAR, psip_short_name VARCHAR) | SELECT programming FROM table_name_53 WHERE channel > 51.2 AND psip_short_name = "kyaz-5" |
Write a SQL query that answers the following question: What is the PSIP Short name for the Channel that is less than 51.6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (psip_short_name VARCHAR, channel INTEGER) | SELECT psip_short_name FROM table_name_70 WHERE channel < 51.6 |
Write a SQL query that answers the following question: What year did maggs magnificent mild bear win overall at the camra reading branch beer festival? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (year INTEGER, category VARCHAR, beer_name VARCHAR, competition VARCHAR) | SELECT MAX(year) FROM table_name_62 WHERE beer_name = "maggs magnificent mild" AND competition = "camra reading branch beer festival" AND category = "overall" |
Write a SQL query that answers the following question: What prize did good old boy win in 2002 at the camra london and south east regional competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (prize VARCHAR, beer_name VARCHAR, year VARCHAR, competition VARCHAR) | SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy" |
Write a SQL query that answers the following question: What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR) | SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition" |
Write a SQL query that answers the following question: What beer won a silver medal at the camra reading branch beer festival in 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (beer_name VARCHAR, year VARCHAR, prize VARCHAR, competition VARCHAR) | SELECT beer_name FROM table_name_33 WHERE prize = "silver medal" AND competition = "camra reading branch beer festival" AND year = 2008 |
Write a SQL query that answers the following question: What is Model Number, when Part Number(s) is AY80609003987AB? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR) | SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab" |
Write a SQL query that answers the following question: What is Frequency, when Part Number(s) is AY80609004002AC? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (frequency VARCHAR, part_number_s_ VARCHAR) | SELECT frequency FROM table_name_85 WHERE part_number_s_ = "ay80609004002ac" |
Write a SQL query that answers the following question: What is sSpec Number, when Frequency is 1 GHZ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (sspec_number VARCHAR, frequency VARCHAR) | SELECT sspec_number FROM table_name_98 WHERE frequency = "1 ghz" |
Write a SQL query that answers the following question: What is Release Date, when sSpec Number is SLBZE(C0)SLBR8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (release_date VARCHAR, sspec_number VARCHAR) | SELECT release_date FROM table_name_22 WHERE sspec_number = "slbze(c0)slbr8" |
Write a SQL query that answers the following question: What is L2 Cache, when Model Number is Atom Z625? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (l2_cache VARCHAR, model_number VARCHAR) | SELECT l2_cache FROM table_name_60 WHERE model_number = "atom z625" |
Write a SQL query that answers the following question: Which Pick has a Player of renaldo wynn, and a Round smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (pick VARCHAR, player VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_17 WHERE player = "renaldo wynn" AND round < 1 |
Write a SQL query that answers the following question: Which Round has a Player of damon jones? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (round INTEGER, player VARCHAR) | SELECT SUM(round) FROM table_name_49 WHERE player = "damon jones" |
Write a SQL query that answers the following question: Which College has a Round smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (college VARCHAR, round INTEGER) | SELECT college FROM table_name_50 WHERE round < 2 |
Write a SQL query that answers the following question: Which event is located in Northfield, Mn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (event VARCHAR, location VARCHAR) | SELECT event FROM table_name_94 WHERE location = "northfield, mn" |
Write a SQL query that answers the following question: Which event has a distance of ft10in (m)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR) | SELECT event FROM table_name_88 WHERE distance = "ft10in (m)" |
Write a SQL query that answers the following question: What distance does the Bass Pro Shops event have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (distance VARCHAR, event VARCHAR) | SELECT distance FROM table_name_97 WHERE event = "bass pro shops" |
Write a SQL query that answers the following question: On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, handler VARCHAR, event VARCHAR) | SELECT date FROM table_name_56 WHERE handler = "mike jackson" AND event = "indianapolis boat, sport & travel show" |
Write a SQL query that answers the following question: Who did they play when there were only 751 in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (opponent VARCHAR, attendance INTEGER) | SELECT opponent FROM table_name_78 WHERE attendance < 751 |
Write a SQL query that answers the following question: When did they play the swindon wildcats away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_14 WHERE venue = "away" AND opponent = "swindon wildcats" |
Write a SQL query that answers the following question: Who was the Man of the Match when they played the Romford Raiders at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (man_of_the_match VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT man_of_the_match FROM table_name_28 WHERE venue = "home" AND opponent = "romford raiders" |
Write a SQL query that answers the following question: What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (nat VARCHAR, app_l_c_e_ VARCHAR, name VARCHAR) | SELECT nat FROM table_name_76 WHERE app_l_c_e_ = "0 (0/0/0)" AND name = "yahaya" |
Write a SQL query that answers the following question: What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (transfer_fee VARCHAR, app_l_c_e_ VARCHAR, notes VARCHAR) | SELECT transfer_fee FROM table_name_61 WHERE app_l_c_e_ = "0 (0/0/0)" AND notes = "to anagennisi karditsa" |
Write a SQL query that answers the following question: what is the british name when the american name is sixteenth note? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (british_name VARCHAR, american_name VARCHAR) | SELECT british_name FROM table_name_50 WHERE american_name = "sixteenth note" |
Write a SQL query that answers the following question: what is the value when the british name is quaver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (value VARCHAR, british_name VARCHAR) | SELECT value FROM table_name_23 WHERE british_name = "quaver" |
Write a SQL query that answers the following question: what is the value when the british name is maxima? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (value VARCHAR, british_name VARCHAR) | SELECT value FROM table_name_40 WHERE british_name = "maxima" |
Write a SQL query that answers the following question: What is Home Team, when Date is "28 January 1984", and when Tie No is "4"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_65 WHERE date = "28 january 1984" AND tie_no = "4" |
Write a SQL query that answers the following question: What is Date, when Away Team is "Gillingham"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_2 WHERE away_team = "gillingham" |
Write a SQL query that answers the following question: What is Home Team, when Date is "1 February 1984", and when Tie No is "5"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_30 WHERE date = "1 february 1984" AND tie_no = "5" |
Write a SQL query that answers the following question: What is Away Team, when Home Team is "Sheffield Wednesday"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_65 WHERE home_team = "sheffield wednesday" |
Write a SQL query that answers the following question: What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_85 WHERE tie_no = "replay" AND away_team = "crystal palace" |
Write a SQL query that answers the following question: What to par has tom kite as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_92 WHERE player = "tom kite" |
Write a SQL query that answers the following question: What player has a t57 as the finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (player VARCHAR, finish VARCHAR) | SELECT player FROM table_name_65 WHERE finish = "t57" |
Write a SQL query that answers the following question: What is the lowest total that has 1992 as the year (s) won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR) | SELECT MIN(total) FROM table_name_81 WHERE year_s__won = "1992" |
Write a SQL query that answers the following question: What player has +21 as the to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_36 WHERE to_par = "+21" |
Write a SQL query that answers the following question: Which to par has a total less than 296? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (to_par VARCHAR, total INTEGER) | SELECT to_par FROM table_name_5 WHERE total < 296 |
Write a SQL query that answers the following question: What finish has +21 as the to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (finish VARCHAR, to_par VARCHAR) | SELECT finish FROM table_name_35 WHERE to_par = "+21" |
Write a SQL query that answers the following question: What is the total number of events that had 34 cuts and 3 in the top 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (events VARCHAR, cuts_made VARCHAR, top_10 VARCHAR) | SELECT COUNT(events) FROM table_name_58 WHERE cuts_made < 34 AND top_10 > 3 |
Write a SQL query that answers the following question: Who had the most rebounds on January 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_7 WHERE date = "january 3" |
Write a SQL query that answers the following question: Which surface had a date after 1982 and partner of Guy Forget? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (surface VARCHAR, date VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_28 WHERE date > 1982 AND partner = "guy forget" |
Write a SQL query that answers the following question: What was the result of the week 9 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_48 WHERE week = 9 |
Write a SQL query that answers the following question: What was the attendance during the november 16, 1975 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_18 WHERE date = "november 16, 1975" |
Write a SQL query that answers the following question: What is the total number in class for the Whitehaven Coal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (number_in_class INTEGER, owner VARCHAR) | SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = "whitehaven coal" |
Write a SQL query that answers the following question: What was built in a class with less than 10, and the Downer Rail owner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (built VARCHAR, number_in_class VARCHAR, owner VARCHAR) | SELECT built FROM table_name_58 WHERE number_in_class < 10 AND owner = "downer rail" |
Write a SQL query that answers the following question: Which class has more than 15 people in the class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (class VARCHAR, number_in_class INTEGER) | SELECT class FROM table_name_83 WHERE number_in_class > 15 |
Write a SQL query that answers the following question: Who is the owner that built in 2009-2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (owner VARCHAR, built VARCHAR) | SELECT owner FROM table_name_98 WHERE built = "2009-2011" |
Write a SQL query that answers the following question: Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR) | SELECT AVG(grid) FROM table_name_33 WHERE manufacturer = "aprilia" AND rider = "bradley smith" |
Write a SQL query that answers the following question: Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (time VARCHAR, rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time FROM table_name_83 WHERE laps = 19 AND grid > 19 AND manufacturer = "ktm" AND rider = "randy krummenacher" |
Write a SQL query that answers the following question: Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (time VARCHAR, rider VARCHAR, manufacturer VARCHAR, grid VARCHAR) | SELECT time FROM table_name_13 WHERE manufacturer = "aprilia" AND grid < 16 AND rider = "sandro cortese" |
Write a SQL query that answers the following question: Name the Silver which has a Bronze of 19, and a Total larger than 58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58 |
Write a SQL query that answers the following question: What kind of Silver has a Rank of 3, and a Gold smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (silver VARCHAR, rank VARCHAR, gold VARCHAR) | SELECT COUNT(silver) FROM table_name_9 WHERE rank = "3" AND gold < 2 |
Write a SQL query that answers the following question: COunt the silver that has a Bronze smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (silver INTEGER, bronze INTEGER) | SELECT SUM(silver) FROM table_name_19 WHERE bronze < 1 |
Write a SQL query that answers the following question: Name the Total which has a Silver larger than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (total INTEGER, silver INTEGER) | SELECT MAX(total) FROM table_name_70 WHERE silver > 19 |
Write a SQL query that answers the following question: Name the Silver that has a Total smaller than 2, and a Nation of south korea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR) | SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = "south korea" |
Write a SQL query that answers the following question: What is the location of the match with chad armstrong as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_47 WHERE opponent = "chad armstrong" |
Write a SQL query that answers the following question: What is Scott Verplank's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_65 WHERE player = "scott verplank" |
Write a SQL query that answers the following question: What place is United States player Corey Pavin in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_25 WHERE country = "united states" AND player = "corey pavin" |
Write a SQL query that answers the following question: Which country has a score of 70-71-72=213? | 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 = 70 - 71 - 72 = 213 |
Write a SQL query that answers the following question: Where does Bob Tway Place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_95 WHERE player = "bob tway" |
Write a SQL query that answers the following question: What is the place with a to par of E and a score of 69-69-72=210? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (place VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT place FROM table_name_59 WHERE to_par = "e" AND score = 69 - 69 - 72 = 210 |
Write a SQL query that answers the following question: WHAT IS THE COUNTRY WITH DAVE BARR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_26 WHERE player = "dave barr" |
Write a SQL query that answers the following question: WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_77 WHERE place = "t7" AND score = 72 - 67 = 139 AND player = "raymond floyd" |
Write a SQL query that answers the following question: WHAT IS THE PLACE WITH PLAYER mark o'meara? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_78 WHERE player = "mark o'meara" |
Write a SQL query that answers the following question: Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (drawn INTEGER, position VARCHAR, lost VARCHAR) | SELECT MAX(drawn) FROM table_name_64 WHERE position < 4 AND lost < 2 |
Write a SQL query that answers the following question: How many Points have a Position larger than 3, and a Played smaller than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (points VARCHAR, position VARCHAR, played VARCHAR) | SELECT COUNT(points) FROM table_name_42 WHERE position > 3 AND played < 14 |
Write a SQL query that answers the following question: Which Lost has a Position of 4, and a Drawn smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (lost INTEGER, position VARCHAR, drawn VARCHAR) | SELECT AVG(lost) FROM table_name_4 WHERE position = 4 AND drawn < 3 |
Write a SQL query that answers the following question: Which Position has a Lost larger than 4, and a Played larger than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (position INTEGER, lost VARCHAR, played VARCHAR) | SELECT AVG(position) FROM table_name_60 WHERE lost > 4 AND played > 14 |
Write a SQL query that answers the following question: On which week was the opponent the oakland raiders? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (week INTEGER, opponent VARCHAR) | SELECT SUM(week) FROM table_name_91 WHERE opponent = "oakland raiders" |
Write a SQL query that answers the following question: What was the attendance at the game where the opponent was the denver broncos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_85 WHERE opponent = "denver broncos" |
Write a SQL query that answers the following question: How many people are enrolled in platteville, wi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (enrollment INTEGER, location VARCHAR) | SELECT SUM(enrollment) FROM table_name_38 WHERE location = "platteville, wi" |
Write a SQL query that answers the following question: What is the team nickname of university of wisconsin-platteville? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (nickname VARCHAR, institution VARCHAR) | SELECT nickname FROM table_name_93 WHERE institution = "university of wisconsin-platteville" |
Write a SQL query that answers the following question: What is To Par, when Place is 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (to_par VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_43 WHERE place = "3" |
Write a SQL query that answers the following question: What is Country, when Player is "Rives McBee"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_89 WHERE player = "rives mcbee" |
Write a SQL query that answers the following question: What is Place, when Player is "Tony Lema"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_93 WHERE player = "tony lema" |
Write a SQL query that answers the following question: What is Score, when To Par is "E"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, to_par VARCHAR) | SELECT score FROM table_name_8 WHERE to_par = "e" |
Write a SQL query that answers the following question: What is Country, when Score is 71-71-69=211? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_26 WHERE score = 71 - 71 - 69 = 211 |
Write a SQL query that answers the following question: What is Country, when Score is 71-74-70=215? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_13 WHERE score = 71 - 74 - 70 = 215 |
Write a SQL query that answers the following question: what is the lost when played is less than 42? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (lost INTEGER, played INTEGER) | SELECT SUM(lost) FROM table_name_71 WHERE played < 42 |
Write a SQL query that answers the following question: what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (goal_difference VARCHAR, lost VARCHAR, goals_for VARCHAR, drawn VARCHAR, goals_against VARCHAR) | SELECT goal_difference FROM table_name_82 WHERE drawn > 11 AND goals_against < 63 AND goals_for < 87 AND lost > 16 |
Write a SQL query that answers the following question: how many times is lost less than 7 and the position 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (goals_for VARCHAR, lost VARCHAR, position VARCHAR) | SELECT COUNT(goals_for) FROM table_name_10 WHERE lost < 7 AND position = 2 |
Write a SQL query that answers the following question: what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (position INTEGER, drawn VARCHAR, points_1 VARCHAR, goals_for VARCHAR) | SELECT SUM(position) FROM table_name_31 WHERE points_1 < 36 AND goals_for < 40 AND drawn < 9 |
Write a SQL query that answers the following question: How many executions in persona have a number with known sentences of 2 (1543–1544)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (executions_in_persona VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR) | SELECT executions_in_persona FROM table_name_92 WHERE number_of_autos_da_fé_with_known_sentences = "2 (1543–1544)" |
Write a SQL query that answers the following question: How many were penanced when the number with known sentences was 71 (1600–1773)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (penanced VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR) | SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)" |
Write a SQL query that answers the following question: How many were penanced for a total of 7666? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (penanced VARCHAR, total VARCHAR) | SELECT penanced FROM table_name_48 WHERE total = "7666" |
Write a SQL query that answers the following question: How man executions in effigie took place at the Lamego tribunal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (executions_in_effigie VARCHAR, tribunal VARCHAR) | SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego" |
Write a SQL query that answers the following question: How many were penanced with 0 executions in effigie for a total of 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (penanced VARCHAR, executions_in_effigie VARCHAR, total VARCHAR) | SELECT penanced FROM table_name_65 WHERE executions_in_effigie = "0" AND total = "21" |
Write a SQL query that answers the following question: Which tribunal had a total of 4167? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (tribunal VARCHAR, total VARCHAR) | SELECT tribunal FROM table_name_34 WHERE total = "4167" |
Write a SQL query that answers the following question: What is the Opponent of the Game on October 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_50 WHERE date = "october 20" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.