instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the outcome when she partnered with mashona washington? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (outcome VARCHAR, partner VARCHAR) | SELECT outcome FROM table_name_39 WHERE partner = "mashona washington" |
Write a SQL query that answers the following question: What is the listed crowd at junction oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_54 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the sum of crowd(s) when north melbourne is away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What day is south melbourne away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_19 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What was the score of the competition on 23 November 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_64 WHERE date = "23 november 2003" |
Write a SQL query that answers the following question: Where did Richmond play as an away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_70 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: When did South Melbourne play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_3 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What is the average election for vicenza province with the liga veneta party? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (election INTEGER, party VARCHAR, province VARCHAR) | SELECT AVG(election) FROM table_name_31 WHERE party = "liga veneta" AND province = "vicenza" |
Write a SQL query that answers the following question: What is the sum of elections in vicenza? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (election INTEGER, province VARCHAR) | SELECT SUM(election) FROM table_name_1 WHERE province = "vicenza" |
Write a SQL query that answers the following question: What province has an election after 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (province VARCHAR, election INTEGER) | SELECT province FROM table_name_55 WHERE election > 2009 |
Write a SQL query that answers the following question: What format does Japan use? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (format VARCHAR, country VARCHAR) | SELECT format FROM table_name_34 WHERE country = "japan" |
Write a SQL query that answers the following question: What date has a catalogue of 540 3622? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, catalogue VARCHAR) | SELECT date FROM table_name_82 WHERE catalogue = "540 3622" |
Write a SQL query that answers the following question: What format has a catalogue of asw 40362? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (format VARCHAR, catalogue VARCHAR) | SELECT format FROM table_name_81 WHERE catalogue = "asw 40362" |
Write a SQL query that answers the following question: What date has a catalogue of asw 40362? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date VARCHAR, catalogue VARCHAR) | SELECT date FROM table_name_90 WHERE catalogue = "asw 40362" |
Write a SQL query that answers the following question: On what Date is the Crowd larger than 17,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (date VARCHAR, crowd INTEGER) | SELECT date FROM table_name_8 WHERE crowd > 17 OFFSET 000 |
Write a SQL query that answers the following question: Which Away team has the Home team of Carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_2 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: What was the score of the Jeff Tarango game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (score VARCHAR, partner VARCHAR) | SELECT score FROM table_name_12 WHERE partner = "jeff tarango" |
Write a SQL query that answers the following question: Where did Collingwood play ae the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_57 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: What was the score when there was more than 27,000 in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR, crowd INTEGER) | SELECT home_team AS score FROM table_name_73 WHERE crowd > 27 OFFSET 000 |
Write a SQL query that answers the following question: Where did Hawthorn play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_41 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: In 1990-2005 what is the lowest Start with Convs smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR) | SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2 |
Write a SQL query that answers the following question: What is the total of the crowd when the home team is footscray? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_60 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: What is the away team score when the away team is Essendon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_16 WHERE away_team = "essendon" |
Write a SQL query that answers the following question: How many weeks ended in a result of L 20-10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (week VARCHAR, result VARCHAR) | SELECT COUNT(week) FROM table_name_85 WHERE result = "l 20-10" |
Write a SQL query that answers the following question: What was the attendance in week 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_13 WHERE week = 6 |
Write a SQL query that answers the following question: Who was the opponent in the game that had an attendance of 60,066? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_30 WHERE attendance = "60,066" |
Write a SQL query that answers the following question: What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR, count_rectified VARCHAR) | SELECT material_or_non_material FROM table_name_36 WHERE positional_or_automatic = "either" AND count_rectified = "no" AND opponents = "either" |
Write a SQL query that answers the following question: What is the value for positional opponents with no material or non-material, and 3 suits? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (opponents VARCHAR, suits VARCHAR, positional_or_automatic VARCHAR, material_or_non_material VARCHAR) | SELECT opponents FROM table_name_92 WHERE positional_or_automatic = "positional" AND material_or_non_material = "no" AND suits = "3" |
Write a SQL query that answers the following question: Is it material or non-material when there are 2 suits for either opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (material_or_non_material VARCHAR, suits VARCHAR, opponents VARCHAR) | SELECT material_or_non_material FROM table_name_63 WHERE suits = "2" AND opponents = "either" |
Write a SQL query that answers the following question: Is the count rectified for single opponents, either positional or automatic, and no material or non-material? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (count_rectified VARCHAR, material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR) | SELECT count_rectified FROM table_name_78 WHERE opponents = "single" AND positional_or_automatic = "either" AND material_or_non_material = "no" |
Write a SQL query that answers the following question: How many points did Happy Valley score before game 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR) | SELECT COUNT(point) FROM table_name_89 WHERE team = "happy valley" AND game < 14 |
Write a SQL query that answers the following question: How many draws did the game after game 14 with goal gain 17 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (draw INTEGER, goal_gain VARCHAR, game VARCHAR) | SELECT MAX(draw) FROM table_name_45 WHERE goal_gain = 17 AND game > 14 |
Write a SQL query that answers the following question: How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (draw VARCHAR, goal_diff VARCHAR, loss VARCHAR, point VARCHAR) | SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 26 |
Write a SQL query that answers the following question: What is the highest loss before game 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (loss INTEGER, game INTEGER) | SELECT MAX(loss) FROM table_name_31 WHERE game < 14 |
Write a SQL query that answers the following question: How many average points did the player with a time/retired of +16.789 and have more laps than 68 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (points INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT AVG(points) FROM table_name_8 WHERE time_retired = "+16.789" AND laps > 68 |
Write a SQL query that answers the following question: How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (points INTEGER, laps VARCHAR, team VARCHAR, grid VARCHAR) | SELECT AVG(points) FROM table_name_21 WHERE team = "minardi team usa" AND grid = 3 AND laps > 68 |
Write a SQL query that answers the following question: Which was the highest crowd drawn by an Away team in Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_6 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: Which home team has a venue of Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_94 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: Which away team has a venue of Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_76 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is the value for 2011 corresponding to a 2007 value of 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (Id VARCHAR) | SELECT 2011 FROM table_name_32 WHERE 2007 = "1r" |
Write a SQL query that answers the following question: What value in 2013 corresponds to Grand Slam Tournaments in 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (Id VARCHAR) | SELECT 2013 FROM table_name_38 WHERE 2012 = "grand slam tournaments" |
Write a SQL query that answers the following question: What is the 2012 value when the 2011 and 2007 values are 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (Id VARCHAR) | SELECT 2012 FROM table_name_28 WHERE 2011 = "1r" AND 2007 = "1r" |
Write a SQL query that answers the following question: What value for 2013 corresponds to the US Open Tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (tournament VARCHAR) | SELECT 2013 FROM table_name_55 WHERE tournament = "us open" |
Write a SQL query that answers the following question: The school nicknamed the wildcats has what sum of enrollment? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (enrollment INTEGER, team_nickname VARCHAR) | SELECT SUM(enrollment) FROM table_name_5 WHERE team_nickname = "wildcats" |
Write a SQL query that answers the following question: What is the Founded year of the school located in Paul Smiths, New York? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (founded VARCHAR, location VARCHAR) | SELECT founded FROM table_name_99 WHERE location = "paul smiths, new york" |
Write a SQL query that answers the following question: What was fitzroy's away side score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_59 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What player attended UAB college? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_53 WHERE college = "uab" |
Write a SQL query that answers the following question: What was the score of the game at RIch Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, stadium VARCHAR) | SELECT result FROM table_name_14 WHERE stadium = "rich stadium" |
Write a SQL query that answers the following question: Who had the best time of 1:32.269? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (name VARCHAR, best VARCHAR) | SELECT name FROM table_name_21 WHERE best = "1:32.269" |
Write a SQL query that answers the following question: Who from Conquest Racing had the best time of 1:34.748 in Qual 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (best VARCHAR, team VARCHAR, qual_1 VARCHAR) | SELECT best FROM table_name_4 WHERE team = "conquest racing" AND qual_1 = "1:34.748" |
Write a SQL query that answers the following question: Who in Qual 2 had the best time of 1:31.327? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (qual_2 VARCHAR, best VARCHAR) | SELECT qual_2 FROM table_name_5 WHERE best = "1:31.327" |
Write a SQL query that answers the following question: What was Dan Selznick best time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (best VARCHAR, name VARCHAR) | SELECT best FROM table_name_63 WHERE name = "dan selznick" |
Write a SQL query that answers the following question: What team had 1:34.578 in Qual 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (team VARCHAR, qual_2 VARCHAR) | SELECT team FROM table_name_55 WHERE qual_2 = "1:34.578" |
Write a SQL query that answers the following question: Jiang Tengyi is on which team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (team VARCHAR, name VARCHAR) | SELECT team FROM table_name_87 WHERE name = "jiang tengyi" |
Write a SQL query that answers the following question: What is the away team's score when footscray is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_74 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: What was the rank for czechoslovakia with 1 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (rank VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT rank FROM table_name_42 WHERE bronze = 1 AND nation = "czechoslovakia" |
Write a SQL query that answers the following question: How many bronze medals for the nation with over 9 golds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (bronze VARCHAR, gold INTEGER) | SELECT COUNT(bronze) FROM table_name_8 WHERE gold > 9 |
Write a SQL query that answers the following question: What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (goals INTEGER, venue VARCHAR) | SELECT AVG(goals) FROM table_name_53 WHERE venue = "hong kong stadium, hong kong" |
Write a SQL query that answers the following question: Which country uses pound sterling with a value higher than 1.33 USD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (country VARCHAR, value_in_usd VARCHAR, currency VARCHAR) | SELECT country FROM table_name_66 WHERE value_in_usd > 1.33 AND currency = "pound sterling" |
Write a SQL query that answers the following question: What venue features carlton at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_88 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: What venue features fitzroy as the away side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_66 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What was the smallest crowd that Melbourne played for at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: What home team played the away team of Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_75 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (high_score INTEGER, inns VARCHAR, average VARCHAR, stump VARCHAR, catches VARCHAR) | SELECT SUM(high_score) FROM table_name_52 WHERE stump = 0 AND catches = 4 AND average < 56.1 AND inns > 14 |
Write a SQL query that answers the following question: What is the total number of runs for the player with fewer than 9 Inns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (runs VARCHAR, inns INTEGER) | SELECT COUNT(runs) FROM table_name_82 WHERE inns < 9 |
Write a SQL query that answers the following question: What is the smallest average for the player with 13 matches and fewer than 7 catches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (average INTEGER, matches VARCHAR, catches VARCHAR) | SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7 |
Write a SQL query that answers the following question: Which city is the host of the University of Texas? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (city VARCHAR, host VARCHAR) | SELECT city FROM table_name_1 WHERE host = "university of texas" |
Write a SQL query that answers the following question: In which region is the Thompson-Boling arena located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (region VARCHAR, venue VARCHAR) | SELECT region FROM table_name_16 WHERE venue = "thompson-boling arena" |
Write a SQL query that answers the following question: Who is the host in the city of Philadelphia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (host VARCHAR, city VARCHAR) | SELECT host FROM table_name_61 WHERE city = "philadelphia" |
Write a SQL query that answers the following question: Which city in the mideast region is the hot of Temple University? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (city VARCHAR, region VARCHAR, host VARCHAR) | SELECT city FROM table_name_39 WHERE region = "mideast" AND host = "temple university" |
Write a SQL query that answers the following question: Which city is the University of Montana located in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (city VARCHAR, host VARCHAR) | SELECT city FROM table_name_80 WHERE host = "university of montana" |
Write a SQL query that answers the following question: What was the away team score at Hawthorn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_26 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: Who went to Geelong to play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_61 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: Who did Collingwood play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_89 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (population INTEGER, density VARCHAR, area__km²_ VARCHAR) | SELECT MAX(population) FROM table_name_1 WHERE density = 20.3 AND area__km²_ > 50 OFFSET 350 |
Write a SQL query that answers the following question: Who was the home team at the game held at the Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_73 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: Where was the game held when Fitzroy was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_24 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: How many people attended the Rams game against the Kansas City Chiefs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_86 WHERE opponent = "kansas city chiefs" |
Write a SQL query that answers the following question: What is China's IATA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (iata VARCHAR, country VARCHAR) | SELECT iata FROM table_name_58 WHERE country = "china" |
Write a SQL query that answers the following question: Where is the City of Douala? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_59 WHERE city = "douala" |
Write a SQL query that answers the following question: Which airport is in South Africa and has a ICAO fajs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (airport VARCHAR, country VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_44 WHERE country = "south africa" AND icao = "fajs" |
Write a SQL query that answers the following question: What is Cuba's ICAO? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (icao VARCHAR, country VARCHAR) | SELECT icao FROM table_name_63 WHERE country = "cuba" |
Write a SQL query that answers the following question: What is Angola's airport and ICAO of fnsa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (airport VARCHAR, country VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_75 WHERE country = "angola" AND icao = "fnsa" |
Write a SQL query that answers the following question: What team plays at home at Windy Hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_28 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What was Footscray's score as an away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_45 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: What day is richmond the away side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_71 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: Who is the home team when hawthorn is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (game_name VARCHAR, odds_of_winning VARCHAR, top_prize VARCHAR) | SELECT game_name FROM table_name_92 WHERE odds_of_winning = "1 in 4.23" AND top_prize = "$15,000" |
Write a SQL query that answers the following question: What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (launch_date VARCHAR, odds_of_winning VARCHAR, top_prize VARCHAR) | SELECT launch_date FROM table_name_30 WHERE odds_of_winning = "1 in 4.23" AND top_prize = "$15,000" |
Write a SQL query that answers the following question: What is the launch date odds of winning 1 in 4.54? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (launch_date VARCHAR, odds_of_winning VARCHAR) | SELECT launch_date FROM table_name_2 WHERE odds_of_winning = "1 in 4.54" |
Write a SQL query that answers the following question: What is the launch date odds of winning 1 in 4.44? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (launch_date VARCHAR, odds_of_winning VARCHAR) | SELECT launch_date FROM table_name_92 WHERE odds_of_winning = "1 in 4.44" |
Write a SQL query that answers the following question: What is the name of the game with a top prize of $888? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (game_name VARCHAR, top_prize VARCHAR) | SELECT game_name FROM table_name_55 WHERE top_prize = "$888" |
Write a SQL query that answers the following question: What is the top price of $1 with a launch date on February 12, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (top_prize VARCHAR, price VARCHAR, launch_date VARCHAR) | SELECT top_prize FROM table_name_3 WHERE price = "$1" AND launch_date = "february 12, 2008" |
Write a SQL query that answers the following question: What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR) | SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23 |
Write a SQL query that answers the following question: What is the name of the driver who went 46 laps had less than 9 points and had a grid number under 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (name VARCHAR, grid VARCHAR, laps VARCHAR, points VARCHAR) | SELECT name FROM table_name_81 WHERE laps = 46 AND points < 9 AND grid < 12 |
Write a SQL query that answers the following question: Where was the 1966 final played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (finals_venue__surface_ VARCHAR, year VARCHAR) | SELECT finals_venue__surface_ FROM table_name_12 WHERE year = 1966 |
Write a SQL query that answers the following question: What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (worst_score INTEGER, best_dancer VARCHAR, dance VARCHAR) | SELECT AVG(worst_score) FROM table_name_81 WHERE best_dancer = "mario lopez" AND dance = "tango" |
Write a SQL query that answers the following question: What is the highest Best score for the Dance Mambo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (best_score INTEGER, dance VARCHAR) | SELECT MAX(best_score) FROM table_name_47 WHERE dance = "mambo" |
Write a SQL query that answers the following question: Who is the Best dancer with the Worst dancer of Jerry Springer, a Best score of 29, and the Dance was the Quickstep? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (best_dancer VARCHAR, dance VARCHAR, worst_dancer VARCHAR, best_score VARCHAR) | SELECT best_dancer FROM table_name_47 WHERE worst_dancer = "jerry springer" AND best_score = 29 AND dance = "quickstep" |
Write a SQL query that answers the following question: How many dances placed below 1 with a point total of 40? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (number_of_dances VARCHAR, place VARCHAR, total_points VARCHAR) | SELECT number_of_dances FROM table_name_69 WHERE place > 1 AND total_points = 40 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.