instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the smallest crowd at the Victoria Park Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR) | SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: What is the score given by the Home team Geelong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What is the largest crowd at arden street oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is the home side's score at western oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_23 WHERE venue = "western oval" |
Write a SQL query that answers the following question: What venue is in the state of Connecticut? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (venue VARCHAR, state VARCHAR) | SELECT venue FROM table_name_90 WHERE state = "connecticut" |
Write a SQL query that answers the following question: What venue is in the city of Durham? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR) | SELECT venue FROM table_name_95 WHERE city = "durham" |
Write a SQL query that answers the following question: In what state is the Thomas Assembly Center located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (state VARCHAR, venue VARCHAR) | SELECT state FROM table_name_5 WHERE venue = "thomas assembly center" |
Write a SQL query that answers the following question: What venue is located in Indiana and hosted at Purdue University? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR) | SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university" |
Write a SQL query that answers the following question: What city is located in Oklahoma? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR) | SELECT city FROM table_name_67 WHERE state = "oklahoma" |
Write a SQL query that answers the following question: In what city is the United Spirit Arena located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR) | SELECT city FROM table_name_20 WHERE venue = "united spirit arena" |
Write a SQL query that answers the following question: What was the result when they had their bye week? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_84 WHERE date = "bye" |
Write a SQL query that answers the following question: What was the attendance of the Browns' September 7, 1953 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953" |
Write a SQL query that answers the following question: When was the Browns' game that over 36,796 attended? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, attendance INTEGER) | SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796 |
Write a SQL query that answers the following question: What Young rider classification has a Stage of 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (young_rider_classification VARCHAR, stage VARCHAR) | SELECT young_rider_classification FROM table_name_3 WHERE stage = "18" |
Write a SQL query that answers the following question: Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR) | SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20" |
Write a SQL query that answers the following question: What is the classification with a Team classification of la vie claire and a Stage of 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "12" |
Write a SQL query that answers the following question: What is guido bontempi's general classification when he has a stage of 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6" |
Write a SQL query that answers the following question: What is Ludo Peeters' team classification? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR) | SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters" |
Write a SQL query that answers the following question: Which date had less than 3 goals and a result of (w) 2-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, goals VARCHAR, result VARCHAR) | SELECT date FROM table_name_23 WHERE goals < 3 AND result = "(w) 2-0" |
Write a SQL query that answers the following question: On what date was a match held at MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_50 WHERE venue = "mcg" |
Write a SQL query that answers the following question: When Fitzroy are the away team, what is the average crowd size? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR) | SELECT AVG(crowd) FROM table_name_65 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is footscray's away team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_66 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: What is the record of Jeremija Sanders' opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_37 WHERE opponent = "jeremija sanders" |
Write a SQL query that answers the following question: What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (tries INTEGER, conv VARCHAR, start VARCHAR, player VARCHAR) | SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = "seremaia bai" AND conv > 47 |
Write a SQL query that answers the following question: For the player fero lasagavibau who has the lowest start? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (start INTEGER, player VARCHAR) | SELECT MIN(start) FROM table_name_71 WHERE player = "fero lasagavibau" |
Write a SQL query that answers the following question: Who was the opponent when Raphael was 4-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_11 WHERE record = "4-0" |
Write a SQL query that answers the following question: What was the average round when he had a 3-0 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (round INTEGER, record VARCHAR) | SELECT AVG(round) FROM table_name_18 WHERE record = "3-0" |
Write a SQL query that answers the following question: What was the location when he had a 2-0 record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_41 WHERE record = "2-0" |
Write a SQL query that answers the following question: What was the result when he went 1 round against jeremy beck? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_4 WHERE round = 1 AND opponent = "jeremy beck" |
Write a SQL query that answers the following question: What was the result of the game in halifax? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (result VARCHAR, city VARCHAR) | SELECT result FROM table_name_34 WHERE city = "halifax" |
Write a SQL query that answers the following question: What stadium is located in Halifax? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR) | SELECT stadium FROM table_name_48 WHERE city = "halifax" |
Write a SQL query that answers the following question: What day did they play in salford? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR) | SELECT date FROM table_name_56 WHERE city = "salford" |
Write a SQL query that answers the following question: What was the earliest week the team played the chicago cardinals in front of less than 25,312? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 |
Write a SQL query that answers the following question: What day did they play on week 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_25 WHERE week = 4 |
Write a SQL query that answers the following question: What was the attendance during the week 1 match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_2 WHERE week = 1 |
Write a SQL query that answers the following question: During what week was the match on November 10, 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (week INTEGER, date VARCHAR) | SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963" |
Write a SQL query that answers the following question: What was the result of the match on December 1, 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_43 WHERE date = "december 1, 1963" |
Write a SQL query that answers the following question: What day is hawthorn the away side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_23 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What is the average crowd size for games with north melbourne as the away side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (crowd INTEGER, away_team VARCHAR) | SELECT AVG(crowd) FROM table_name_22 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: How many forms have less than 18 pages? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (form VARCHAR, pages INTEGER) | SELECT COUNT(form) FROM table_name_72 WHERE pages < 18 |
Write a SQL query that answers the following question: What is the sum of forms with greater than 17 pages and a total of $1,801,154? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR) | SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154" |
Write a SQL query that answers the following question: Which venue hosted South Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_50 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What was the scored of the Away team that played against Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_83 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: What is the result week 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_44 WHERE week = 6 |
Write a SQL query that answers the following question: How many goals did sture mårtensson score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR) | SELECT goals FROM table_name_98 WHERE name = "sture mårtensson" |
Write a SQL query that answers the following question: How many goals for the player with 2 caps at degerfors if? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (goals VARCHAR, caps VARCHAR, club VARCHAR) | SELECT goals FROM table_name_47 WHERE caps = 2 AND club = "degerfors if" |
Write a SQL query that answers the following question: What catalog came out after 2000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (catalog VARCHAR, year INTEGER) | SELECT catalog FROM table_name_23 WHERE year > 2000 |
Write a SQL query that answers the following question: What was the attendance on week 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_26 WHERE week = 7 |
Write a SQL query that answers the following question: What opponent did they have a bye result against before week 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opponent VARCHAR, result VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14 |
Write a SQL query that answers the following question: Which home team has an Away team of fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What was North Melbourne's score when they were the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What was Richmond's score as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_38 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: Who was the opponent when Richmond played as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_56 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: What was the attendance at the Kardinia Park game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_25 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What was the score of the team North Melbourne played at Arden Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_75 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What date did the game at Arden Street Oval take place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_12 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is the date of the game with 36,766 fans? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, crowd INTEGER) | SELECT date FROM table_name_98 WHERE crowd > 36 OFFSET 766 |
Write a SQL query that answers the following question: Which higher secondary school listing has the lowest total and an Aided amount larger than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (total INTEGER, institution VARCHAR, aided VARCHAR) | SELECT MIN(total) FROM table_name_41 WHERE institution = "higher secondary school" AND aided > 14 |
Write a SQL query that answers the following question: Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (institution VARCHAR, aided VARCHAR, total VARCHAR, government VARCHAR) | SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0 |
Write a SQL query that answers the following question: Which IATA is associated with China and an ICAO of ZSPD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR) | SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd" |
Write a SQL query that answers the following question: Which airport is associated with Macau? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR) | SELECT airport FROM table_name_71 WHERE city = "macau" |
Write a SQL query that answers the following question: What is the IATA for Nanjing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR) | SELECT iata FROM table_name_85 WHERE city = "nanjing" |
Write a SQL query that answers the following question: Which airport has an ICAO of RCKH? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_81 WHERE icao = "rckh" |
Write a SQL query that answers the following question: Which airport has an IATA of TYN? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_52 WHERE iata = "tyn" |
Write a SQL query that answers the following question: Which country contains the Shanghai Pudong International airport? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR) | SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport" |
Write a SQL query that answers the following question: What was Footscray's score when it played as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: hat was Hawthorn's score as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_83 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What was the Outcome against Opponent in the Final Carlos Kirmayr? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR) | SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr" |
Write a SQL query that answers the following question: What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (score_in_the_final VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR) | SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes" |
Write a SQL query that answers the following question: Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (championship VARCHAR, opponent_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT championship FROM table_name_89 WHERE outcome = "runner-up" AND surface = "clay" AND opponent_in_the_final = "ivan lendl" |
Write a SQL query that answers the following question: What is the earliest Date on a Surface of clay in a Championship in Linz, Austria? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date INTEGER, surface VARCHAR, championship VARCHAR) | SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria" |
Write a SQL query that answers the following question: Who playes the sport of athletics? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (sportsperson VARCHAR, sport VARCHAR) | SELECT sportsperson FROM table_name_36 WHERE sport = "athletics" |
Write a SQL query that answers the following question: What team has a year listed of 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR) | SELECT team FROM table_name_75 WHERE year = 2008 |
Write a SQL query that answers the following question: What venue was the game played in when the away team was fitzroy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_42 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is the film type for the movie Sanctuary? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR) | SELECT type FROM table_name_35 WHERE name = "sanctuary" |
Write a SQL query that answers the following question: What different types are there with a CC License of by-nc-sa 2.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR) | SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5" |
Write a SQL query that answers the following question: What are the open source movies with planned releases in 2013? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (open_source_movie VARCHAR, planned_release VARCHAR) | SELECT open_source_movie FROM table_name_67 WHERE planned_release = "2013" |
Write a SQL query that answers the following question: What was the lowest rank by average of a couple who had an average of 23 and a total of 115? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR) | SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115 |
Write a SQL query that answers the following question: What is the colonized date for Michigan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (colonized VARCHAR, state VARCHAR) | SELECT colonized FROM table_name_92 WHERE state = "michigan" |
Write a SQL query that answers the following question: What is the colonized year for the chartered year 1958? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (colonized VARCHAR, chartered VARCHAR) | SELECT colonized FROM table_name_83 WHERE chartered = "1958" |
Write a SQL query that answers the following question: When was shippensburg university Colonized? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (colonized VARCHAR, school VARCHAR) | SELECT colonized FROM table_name_56 WHERE school = "shippensburg university" |
Write a SQL query that answers the following question: What is the colonized date for the n/a charter range for appalachian state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (colonized VARCHAR, charter_range VARCHAR, school VARCHAR) | SELECT colonized FROM table_name_61 WHERE charter_range = "n/a" AND school = "appalachian state" |
Write a SQL query that answers the following question: What state has colony as a status and shippensburg university as the school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (state VARCHAR, status VARCHAR, school VARCHAR) | SELECT state FROM table_name_71 WHERE status = "colony" AND school = "shippensburg university" |
Write a SQL query that answers the following question: What was the Home Team Score for the Windy Hill Venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_63 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What is the Essendon Home Team's venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_61 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: How large a crowd did the Fitzroy Away team draw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What is Van Waiters position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_84 WHERE player = "van waiters" |
Write a SQL query that answers the following question: What is the capacity of the team in tucson, USA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR) | SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson" |
Write a SQL query that answers the following question: What is the date for the podcast episode number 103? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (podcast_date VARCHAR, episode_number VARCHAR) | SELECT podcast_date FROM table_name_21 WHERE episode_number = 103 |
Write a SQL query that answers the following question: What is the name of the podcast on November 21, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR) | SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 2004" |
Write a SQL query that answers the following question: What was the tonnage of the Great Britain ship Batna? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tonnage VARCHAR, nationality VARCHAR, ship VARCHAR) | SELECT tonnage FROM table_name_26 WHERE nationality = "great britain" AND ship = "batna" |
Write a SQL query that answers the following question: How many silver medals were won when there were 4 gold and 22 in total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (silver INTEGER, gold VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22 |
Write a SQL query that answers the following question: What car number has 130 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (car__number VARCHAR, points VARCHAR) | SELECT car__number FROM table_name_58 WHERE points = 130 |
Write a SQL query that answers the following question: What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24, | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, points VARCHAR, car__number VARCHAR) | SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman" |
Write a SQL query that answers the following question: What is the sum of car numbers with less than 126 points and 147 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (car__number INTEGER, points VARCHAR, laps VARCHAR) | SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147 |
Write a SQL query that answers the following question: How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (laps VARCHAR, winnings VARCHAR, car__number VARCHAR) | SELECT COUNT(laps) FROM table_name_53 WHERE winnings = "$116,033" AND car__number < 18 |
Write a SQL query that answers the following question: What was the home team's score at kardinia park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia park" |
Write a SQL query that answers the following question: What is the venue when melbourne is the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_25 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the smallest crowd that Footscray had as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: Where is the Mackey Arena located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (city VARCHAR, venue VARCHAR) | SELECT city FROM table_name_87 WHERE venue = "mackey arena" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.