instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What team owns the Venue of western oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_52 WHERE venue = "western oval" |
Write a SQL query that answers the following question: What did the Victoria park home team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_1 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: What was the crowd size when geelong played home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_98 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, series VARCHAR) | SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1" |
Write a SQL query that answers the following question: Name the decision for boston bruins visitor | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) | SELECT decision FROM table_name_14 WHERE visitor = "boston bruins" |
Write a SQL query that answers the following question: What is the average total medals Egypt, who has less than 2 gold, has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (total INTEGER, nation VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_67 WHERE nation = "egypt" AND gold < 2 |
Write a SQL query that answers the following question: What is the total number of gold medals Egypt, who has less than 0 silver, has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (gold VARCHAR, nation VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_49 WHERE nation = "egypt" AND silver < 0 |
Write a SQL query that answers the following question: What is the highest gold a team with less than 3 silver and more than 5 bronze medals has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT MAX(gold) FROM table_name_76 WHERE silver < 3 AND bronze > 5 |
Write a SQL query that answers the following question: What is the rank of the team with 1 bronze and 0 gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0 |
Write a SQL query that answers the following question: What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (_percentage_of_pop INTEGER, country__or_dependent_territory_ VARCHAR, average_relative_annual_growth___percentage_ VARCHAR) | SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = "tunisia" AND average_relative_annual_growth___percentage_ < 1.03 |
Write a SQL query that answers the following question: Who was the home team at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_45 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What was Footscray's score as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_15 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: On what date was there a competition in which the home team was the Suns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_17 WHERE home = "suns" |
Write a SQL query that answers the following question: In the competition in which the visiting team was the Suns, who was the leading scorer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (leading_scorer VARCHAR, visitor VARCHAR) | SELECT leading_scorer FROM table_name_41 WHERE visitor = "suns" |
Write a SQL query that answers the following question: What was the record in the competition in which the home team was the Mavericks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_11 WHERE home = "mavericks" |
Write a SQL query that answers the following question: What's the average year a Rangam movie came out? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (year INTEGER, movie VARCHAR) | SELECT AVG(year) FROM table_name_33 WHERE movie = "rangam" |
Write a SQL query that answers the following question: What was the name of the song in Amma Cheppindi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (song_title VARCHAR, movie VARCHAR) | SELECT song_title FROM table_name_84 WHERE movie = "amma cheppindi" |
Write a SQL query that answers the following question: What was the average year that Thuppakki movies came out? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR) | SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki" |
Write a SQL query that answers the following question: How many games had 2 goals scored? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR) | SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2" |
Write a SQL query that answers the following question: What was the result week 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_74 WHERE week = 11 |
Write a SQL query that answers the following question: Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR) | SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38" |
Write a SQL query that answers the following question: On what Date was the Opponent Panathinaikos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_14 WHERE opponent = "panathinaikos" |
Write a SQL query that answers the following question: How many people attended games with st kilda as the home side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: Who is the home team when the crowd is over 32,485? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER) | SELECT home_team FROM table_name_32 WHERE crowd > 32 OFFSET 485 |
Write a SQL query that answers the following question: What is the average number of floors for buildings in mecca ranked above 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR) | SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12 |
Write a SQL query that answers the following question: What city is the lamar tower 1, ranked above 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR) | SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1" |
Write a SQL query that answers the following question: What city has a building with over 57 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (city VARCHAR, floors INTEGER) | SELECT city FROM table_name_33 WHERE floors > 57 |
Write a SQL query that answers the following question: How many laps did antônio pizzonia do? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (laps VARCHAR, driver VARCHAR) | SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia" |
Write a SQL query that answers the following question: What is the constructor for time/retired of handling? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (constructor VARCHAR, time_retired VARCHAR) | SELECT constructor FROM table_name_99 WHERE time_retired = "handling" |
Write a SQL query that answers the following question: What was the away team's score at windy hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_71 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What is the highest round of a player from Sweden who plays right wing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR) | SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing" |
Write a SQL query that answers the following question: What is the position of a player from a round less than 4 and an overall of 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR) | SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17" |
Write a SQL query that answers the following question: What is the average round of a player with an overall of 138? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (round INTEGER, overall VARCHAR) | SELECT AVG(round) FROM table_name_23 WHERE overall = "138" |
Write a SQL query that answers the following question: Who is the player from Sweden from a round after 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (player VARCHAR, nationality VARCHAR, round VARCHAR) | SELECT player FROM table_name_77 WHERE nationality = "sweden" AND round > 3 |
Write a SQL query that answers the following question: What is the nationality of a player from linköpings hc (se)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR) | SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)" |
Write a SQL query that answers the following question: What is the crowd size for st kilda as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (crowd VARCHAR, home_team VARCHAR) | SELECT crowd FROM table_name_17 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: I want the sum of pages for thistle among roses | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (pages INTEGER, translated_title VARCHAR) | SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses" |
Write a SQL query that answers the following question: Who is the manager for FMC Corporation pension fund? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (manager VARCHAR, fund VARCHAR) | SELECT manager FROM table_name_3 WHERE fund = "fmc corporation pension fund" |
Write a SQL query that answers the following question: What was the position of Frank Tripp? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (position VARCHAR, character VARCHAR) | SELECT position FROM table_name_28 WHERE character = "frank tripp" |
Write a SQL query that answers the following question: What was the final episode credited of 187? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (final_episode VARCHAR, episodes_credited VARCHAR) | SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187 |
Write a SQL query that answers the following question: Which class at 55 built? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (class VARCHAR, no_built VARCHAR) | SELECT class FROM table_name_66 WHERE no_built = 55 |
Write a SQL query that answers the following question: What is the Loco Nos of the e3 class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (loco_nos VARCHAR, class VARCHAR) | SELECT loco_nos FROM table_name_80 WHERE class = "e3" |
Write a SQL query that answers the following question: How many people attended Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the score of the team that played against Fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_97 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is the name of the stadium for the city of melfi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (stadium VARCHAR, city VARCHAR) | SELECT stadium FROM table_name_7 WHERE city = "melfi" |
Write a SQL query that answers the following question: What is the total capacity for the stadium of pasquale ianniello? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR) | SELECT SUM(capacity) FROM table_name_96 WHERE stadium = "pasquale ianniello" |
Write a SQL query that answers the following question: What city is Jaffna Airport in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (city VARCHAR, airport VARCHAR) | SELECT city FROM table_name_25 WHERE airport = "jaffna airport" |
Write a SQL query that answers the following question: Which city has an ICAO of TBA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (city VARCHAR, icao VARCHAR) | SELECT city FROM table_name_84 WHERE icao = "tba" |
Write a SQL query that answers the following question: Which player went to the College of Wyoming? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_99 WHERE college = "wyoming" |
Write a SQL query that answers the following question: What was the smallest crowd at a game when Richmond was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: Who was the home team at the game that had a crowd of over 24,520? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (home_team VARCHAR, crowd INTEGER) | SELECT home_team FROM table_name_80 WHERE crowd > 24 OFFSET 520 |
Write a SQL query that answers the following question: Name the total number of since for belletti | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (since VARCHAR, name VARCHAR) | SELECT COUNT(since) FROM table_name_24 WHERE name = "belletti" |
Write a SQL query that answers the following question: Name the highest goals for youth system and ita | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR) | SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system" |
Write a SQL query that answers the following question: What is the time/retired for eddie irvine with a grid of greater than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = "eddie irvine" |
Write a SQL query that answers the following question: How many laps had a grid of greater than 17 and retired due to collision? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) | SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision" |
Write a SQL query that answers the following question: How many silvers for south korea with under 1 gold medal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MAX(silver) FROM table_name_15 WHERE nation = "south korea" AND gold < 1 |
Write a SQL query that answers the following question: How many golds for uganda with under 3 total medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT MAX(gold) FROM table_name_25 WHERE nation = "uganda" AND total < 3 |
Write a SQL query that answers the following question: How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR) | SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 10 |
Write a SQL query that answers the following question: Which week has a result showing L 24-10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_82 WHERE result = "l 24-10" |
Write a SQL query that answers the following question: Which week has a Kickoff time of 1:00 with a record of 4-5-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (week VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR) | SELECT week FROM table_name_85 WHERE kickoff_[a_] = "1:00" AND record = "4-5-1" |
Write a SQL query that answers the following question: Which week has a record of 5-7-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR) | SELECT week FROM table_name_58 WHERE record = "5-7-1" |
Write a SQL query that answers the following question: Who is the opponent on the game that will be played at metropolitan stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (opponent VARCHAR, game_site VARCHAR) | SELECT opponent FROM table_name_79 WHERE game_site = "metropolitan stadium" |
Write a SQL query that answers the following question: What did the away team score at Kardinia Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_85 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What was the away team's score in Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_38 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What did the away team score at Moorabbin Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval" |
Write a SQL query that answers the following question: Who constructed the car that has a Time/Retired of engine, and over 50 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR) | SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50 |
Write a SQL query that answers the following question: What is the time/retired for ronnie peterson with under 75 laps and a grid under 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_30 WHERE laps < 75 AND grid < 15 AND driver = "ronnie peterson" |
Write a SQL query that answers the following question: What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (location VARCHAR, owgr_points VARCHAR, winner VARCHAR) | SELECT location FROM table_name_74 WHERE owgr_points > 6 AND winner = "ryu hyun-woo" |
Write a SQL query that answers the following question: Who was the away team at Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_24 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: I want the team with assists greater than 118 and rank less than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, assists VARCHAR, rank VARCHAR) | SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 2 |
Write a SQL query that answers the following question: What region has a 5 rank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (region VARCHAR, rank VARCHAR) | SELECT region FROM table_name_25 WHERE rank = 5 |
Write a SQL query that answers the following question: Which mountain peak has spanish peaks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (mountain_peak VARCHAR, mountain_range VARCHAR) | SELECT mountain_peak FROM table_name_29 WHERE mountain_range = "spanish peaks" |
Write a SQL query that answers the following question: What date did Essendon play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_83 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: What was the attendance at Windy Hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What was the smallest crowd of vfl park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (crowd INTEGER, venue VARCHAR) | SELECT MIN(crowd) FROM table_name_83 WHERE venue = "vfl park" |
Write a SQL query that answers the following question: What was the away team score at kardinia park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: Who was the away team at the home game of north melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_63 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What is the average number of yards on a red tee that has a hole of 1 and a par above 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (yards__red_tees_ INTEGER, hole VARCHAR, par__white_tees_ VARCHAR) | SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = "1" AND par__white_tees_ > 4 |
Write a SQL query that answers the following question: How many bronzes did netherlands win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (bronze VARCHAR, nation VARCHAR) | SELECT bronze FROM table_name_9 WHERE nation = "netherlands" |
Write a SQL query that answers the following question: What is the nation for 6 total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (nation VARCHAR, total VARCHAR) | SELECT nation FROM table_name_13 WHERE total = 6 |
Write a SQL query that answers the following question: What is the bronze when silver is 4 and gold is 1 and the total is more than 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (bronze VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR) | SELECT bronze FROM table_name_50 WHERE total > 2 AND gold = "1" AND silver = "4" |
Write a SQL query that answers the following question: Tell me the gold for netherlands | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (gold VARCHAR, nation VARCHAR) | SELECT gold FROM table_name_20 WHERE nation = "netherlands" |
Write a SQL query that answers the following question: Which Away team score has a Home team of richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: Which Home team score has an Away team of carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_72 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (no_in_series INTEGER, director VARCHAR, production_code VARCHAR) | SELECT SUM(no_in_series) FROM table_name_38 WHERE director = "jefferson kibbee" AND production_code = "2398191" |
Write a SQL query that answers the following question: What is the 1st Edition for the Episode 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (episode VARCHAR) | SELECT 1 AS st_edition FROM table_name_77 WHERE episode = "4" |
Write a SQL query that answers the following question: What is the 1st Edition for Episode 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (episode VARCHAR) | SELECT 1 AS st_edition FROM table_name_16 WHERE episode = "11" |
Write a SQL query that answers the following question: What is the 3rd Edition for Episode 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (episode VARCHAR) | SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "4" |
Write a SQL query that answers the following question: Which home teams had crowds larger than 4,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (home_team VARCHAR, crowd INTEGER) | SELECT home_team FROM table_name_25 WHERE crowd > 4 OFFSET 000 |
Write a SQL query that answers the following question: I want to know the date for western oval venue | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_31 WHERE venue = "western oval" |
Write a SQL query that answers the following question: What is the declination with a right ascension of 11h53m41.9s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s" |
Write a SQL query that answers the following question: What is the 1st leg when team 1 is Chelsea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = "chelsea" |
Write a SQL query that answers the following question: What was the away team score, when the away team was Fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is the name of the home team when the away team was Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_70 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the name of the home team that has a venue called EMCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_50 WHERE venue = "emcg" |
Write a SQL query that answers the following question: What is the name of the venue where the game played had an away team of Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_5 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the average number lost with a difference of -16, 19 points, and more than 24 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (lost INTEGER, against VARCHAR, diff VARCHAR, points VARCHAR) | SELECT AVG(lost) FROM table_name_33 WHERE diff > -16 AND points = 19 AND against > 24 |
Write a SQL query that answers the following question: What is the highest number of losses with 25 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR) | SELECT MAX(lost) FROM table_name_79 WHERE points = 25 |
Write a SQL query that answers the following question: What is the sum of the difference for 9 draws and over 18 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (diff INTEGER, drawn VARCHAR, played VARCHAR) | SELECT SUM(diff) FROM table_name_48 WHERE drawn = 9 AND played > 18 |
Write a SQL query that answers the following question: What is the lowest number drawn with less than 2 lost? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER) | SELECT MIN(drawn) FROM table_name_36 WHERE lost < 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.