instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which Bronze has a Gold smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (bronze INTEGER, gold INTEGER) | SELECT AVG(bronze) FROM table_name_82 WHERE gold < 0 |
Write a SQL query that answers the following question: Which T.C. has a Win of 1, and a Race of 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (tc VARCHAR, wins VARCHAR, races VARCHAR) | SELECT tc FROM table_name_40 WHERE wins = 1 AND races = 21 |
Write a SQL query that answers the following question: How many years have Drivers of ben hanley, and Flaps smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year VARCHAR, drivers VARCHAR, flaps VARCHAR) | SELECT COUNT(year) FROM table_name_67 WHERE drivers = "ben hanley" AND flaps < 0 |
Write a SQL query that answers the following question: How many Points have Drivers of adrián vallés, and a Year larger than 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points INTEGER, drivers VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_97 WHERE drivers = "adrián vallés" AND year > 2006 |
Write a SQL query that answers the following question: How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR) | SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0 |
Write a SQL query that answers the following question: Who was the away team at Victoria Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_52 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: What is the name of the train numbered less than 6 before 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR) | SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993 |
Write a SQL query that answers the following question: What is the name of the bo-bodh train with a number less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (name VARCHAR, number VARCHAR, type VARCHAR) | SELECT name FROM table_name_31 WHERE number < 5 AND type = "bo-bodh" |
Write a SQL query that answers the following question: Name the record when the visitor is st. louis | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_41 WHERE visitor = "st. louis" |
Write a SQL query that answers the following question: What was the scory when calgary was visiting? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_10 WHERE visitor = "calgary" |
Write a SQL query that answers the following question: Name the home when the visitor was dallas on february 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_12 WHERE visitor = "dallas" AND date = "february 2" |
Write a SQL query that answers the following question: Name the date for turco decision and home of st. louis | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, decision VARCHAR, home VARCHAR) | SELECT date FROM table_name_5 WHERE decision = "turco" AND home = "st. louis" |
Write a SQL query that answers the following question: Which rider had a speed of 104.630mph? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (rider VARCHAR, speed VARCHAR) | SELECT rider FROM table_name_84 WHERE speed = "104.630mph" |
Write a SQL query that answers the following question: What is the best rank with a time of 1:05.14.10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (rank INTEGER, time VARCHAR) | SELECT MAX(rank) FROM table_name_59 WHERE time = "1:05.14.10" |
Write a SQL query that answers the following question: Where was the game played when the final score was 35-62? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (stadium VARCHAR, final_score VARCHAR) | SELECT stadium FROM table_name_71 WHERE final_score = "35-62" |
Write a SQL query that answers the following question: During the game at Candlestick Park, who was the visiting team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_99 WHERE stadium = "candlestick park" |
Write a SQL query that answers the following question: Which visiting team had a final score of 14-34? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (visiting_team VARCHAR, final_score VARCHAR) | SELECT visiting_team FROM table_name_12 WHERE final_score = "14-34" |
Write a SQL query that answers the following question: What was the final score in the game against the Cincinnati Bengals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (final_score VARCHAR, visiting_team VARCHAR) | SELECT final_score FROM table_name_78 WHERE visiting_team = "cincinnati bengals" |
Write a SQL query that answers the following question: Who was the visiting team in the game against the Dallas Cowboys? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (visiting_team VARCHAR, host_team VARCHAR) | SELECT visiting_team FROM table_name_10 WHERE host_team = "dallas cowboys" |
Write a SQL query that answers the following question: Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič" |
Write a SQL query that answers the following question: Which surface has a Score of 6–4, 6–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_45 WHERE score = "6–4, 6–2" |
Write a SQL query that answers the following question: Which surface has a Date of 22 august 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_57 WHERE date = "22 august 2006" |
Write a SQL query that answers the following question: Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–2" |
Write a SQL query that answers the following question: What is the outcome with marina erakovic as opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR) | SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic" |
Write a SQL query that answers the following question: Which tournament has an Outcome of winner, and a Opponent of dia evtimova? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_53 WHERE outcome = "winner" AND opponent = "dia evtimova" |
Write a SQL query that answers the following question: What title runs for 3:22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (title VARCHAR, time VARCHAR) | SELECT title FROM table_name_5 WHERE time = "3:22" |
Write a SQL query that answers the following question: Who wrote the song that runs for 2:22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (author_s_ VARCHAR, time VARCHAR) | SELECT author_s_ FROM table_name_35 WHERE time = "2:22" |
Write a SQL query that answers the following question: What Constructor had 66 Laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (constructor VARCHAR, laps VARCHAR) | SELECT constructor FROM table_name_74 WHERE laps = 66 |
Write a SQL query that answers the following question: With Laps greater than 78, what is the lowest Grid? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (grid INTEGER, laps INTEGER) | SELECT MIN(grid) FROM table_name_30 WHERE laps > 78 |
Write a SQL query that answers the following question: How many Laps with a Grid smaller than 11 did John Watson have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_71 WHERE driver = "john watson" AND grid < 11 |
Write a SQL query that answers the following question: How many Laps with a Grid smaller than 3 did Driver NIki Lauda have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3 |
Write a SQL query that answers the following question: What is the low grid total for a retired due to steering in under 15 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15 |
Write a SQL query that answers the following question: What is the average laps that had a time/retired of +5 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR) | SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps" |
Write a SQL query that answers the following question: Which Opponent has Location Wonju Chiak Indoor Gym, South Korea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (opponent VARCHAR, location VARCHAR) | SELECT opponent FROM table_name_16 WHERE location = "wonju chiak indoor gym, south korea" |
Write a SQL query that answers the following question: Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (round INTEGER, opponent VARCHAR, location VARCHAR) | SELECT MIN(round) FROM table_name_60 WHERE opponent = "paul cahoon" AND location = "amsterdam, netherlands" |
Write a SQL query that answers the following question: Which Event has the Opponent, Bernard Ackah? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_15 WHERE opponent = "bernard ackah" |
Write a SQL query that answers the following question: when was the destroyer launched when it was laid down on 14 august 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (launched VARCHAR, laid_down VARCHAR) | SELECT launched FROM table_name_91 WHERE laid_down = "14 august 1942" |
Write a SQL query that answers the following question: what is the launched date when the builder is john brown, clydebank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (launched VARCHAR, builder VARCHAR) | SELECT launched FROM table_name_57 WHERE builder = "john brown, clydebank" |
Write a SQL query that answers the following question: what is the pennant when the builder is yarrow, scotstoun? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (pennant VARCHAR, builder VARCHAR) | SELECT pennant FROM table_name_23 WHERE builder = "yarrow, scotstoun" |
Write a SQL query that answers the following question: what is the name when the laid down is 28 february 1943? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (name VARCHAR, laid_down VARCHAR) | SELECT name FROM table_name_37 WHERE laid_down = "28 february 1943" |
Write a SQL query that answers the following question: when was it commissioned when the destroyer was built by scotts, greenock? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (commissioned VARCHAR, builder VARCHAR) | SELECT commissioned FROM table_name_88 WHERE builder = "scotts, greenock" |
Write a SQL query that answers the following question: when was the launched date when the laid down date is 14 august 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (launched VARCHAR, laid_down VARCHAR) | SELECT launched FROM table_name_55 WHERE laid_down = "14 august 1942" |
Write a SQL query that answers the following question: What was the record for a week below 13 on July 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (record VARCHAR, week VARCHAR, date VARCHAR) | SELECT record FROM table_name_82 WHERE week < 13 AND date = "july 12" |
Write a SQL query that answers the following question: What location had a final score of W 30 – 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR) | SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5" |
Write a SQL query that answers the following question: Which label had a catalog designation of ch-9196? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_48 WHERE catalog = "ch-9196" |
Write a SQL query that answers the following question: Which format's catalog designation was 21-382a? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_95 WHERE catalog = "21-382a" |
Write a SQL query that answers the following question: Which catalog had a date year of 1984? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (catalog VARCHAR, date VARCHAR) | SELECT catalog FROM table_name_66 WHERE date = "1984" |
Write a SQL query that answers the following question: Which format was under the London Records label? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (format VARCHAR, label VARCHAR) | SELECT format FROM table_name_32 WHERE label = "london records" |
Write a SQL query that answers the following question: Which label was in the United Kingdom region? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_17 WHERE region = "united kingdom" |
Write a SQL query that answers the following question: Which date had the catalog designation of ha-m 2230? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_37 WHERE catalog = "ha-m 2230" |
Write a SQL query that answers the following question: What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR) | SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15 |
Write a SQL query that answers the following question: What is the points for a team with more than 9 wins and more than 40 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (points__pts_ INTEGER, won__pg_ VARCHAR, goals_scored__gf_ VARCHAR) | SELECT SUM(points__pts_) FROM table_name_84 WHERE won__pg_ > 9 AND goals_scored__gf_ > 40 |
Write a SQL query that answers the following question: What was the score of the game played in the 2012 Africa Cup of Nations? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_90 WHERE competition = "2012 africa cup of nations" |
Write a SQL query that answers the following question: What is the score of the friendly competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_72 WHERE competition = "friendly" |
Write a SQL query that answers the following question: What venue was the game played on 9 February 2011 played at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_28 WHERE date = "9 february 2011" |
Write a SQL query that answers the following question: What date did NY Rangers play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_12 WHERE home = "ny rangers" |
Write a SQL query that answers the following question: What is the score of Colorado when they were a visitor and had a Smith decision? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (score VARCHAR, decision VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_32 WHERE decision = "smith" AND visitor = "colorado" |
Write a SQL query that answers the following question: Who is the runner up when the score was 3–6, 6–3, [10–4]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (runner_up VARCHAR, score VARCHAR) | SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]" |
Write a SQL query that answers the following question: What is the name of the runner up in the Tournament of são paulo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (runner_up VARCHAR, tournament VARCHAR) | SELECT runner_up FROM table_name_92 WHERE tournament = "são paulo" |
Write a SQL query that answers the following question: What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (third_place VARCHAR, winner VARCHAR, runner_up VARCHAR) | SELECT third_place FROM table_name_94 WHERE winner = "thomas enqvist" AND runner_up = "guy forget" |
Write a SQL query that answers the following question: What tournament was Thomas Enqvist runner up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR) | SELECT tournament FROM table_name_15 WHERE runner_up = "thomas enqvist" |
Write a SQL query that answers the following question: What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (runner_up VARCHAR, third_place VARCHAR, score VARCHAR) | SELECT runner_up FROM table_name_18 WHERE third_place = "yevgeny kafelnikov" AND score = "3–6, 6–4, [10–3]" |
Write a SQL query that answers the following question: What is the name of the winner when Goran Ivanišević was in third place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (winner VARCHAR, third_place VARCHAR) | SELECT winner FROM table_name_65 WHERE third_place = "goran ivanišević" |
Write a SQL query that answers the following question: Which analog channel has a digital channel of 4.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (analog_channel VARCHAR, digital_channel VARCHAR) | SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1" |
Write a SQL query that answers the following question: Which digital channel is named Storm Tracker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (digital_channel VARCHAR, name VARCHAR) | SELECT digital_channel FROM table_name_65 WHERE name = "storm tracker" |
Write a SQL query that answers the following question: Which analog channel is Fox on? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (analog_channel VARCHAR, network VARCHAR) | SELECT analog_channel FROM table_name_16 WHERE network = "fox" |
Write a SQL query that answers the following question: Name the area president when the area name is south america south | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (area_president__quorum_ VARCHAR, area_name VARCHAR) | SELECT area_president__quorum_ FROM table_name_44 WHERE area_name = "south america south" |
Write a SQL query that answers the following question: Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_66 WHERE time_retired = "+2 laps" AND laps < 70 |
Write a SQL query that answers the following question: What year did Shelley Winters win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year VARCHAR, actress VARCHAR) | SELECT year FROM table_name_13 WHERE actress = "shelley winters" |
Write a SQL query that answers the following question: Which award was won by Gloria Stuart after 1984? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (superlative VARCHAR, year VARCHAR, actress VARCHAR) | SELECT superlative FROM table_name_92 WHERE year > 1984 AND actress = "gloria stuart" |
Write a SQL query that answers the following question: Which award has Thelma Ritter won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (superlative VARCHAR, actress VARCHAR) | SELECT superlative FROM table_name_56 WHERE actress = "thelma ritter" |
Write a SQL query that answers the following question: I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (points_diff INTEGER, points VARCHAR, against VARCHAR, lost VARCHAR) | SELECT MIN(points_diff) FROM table_name_37 WHERE against < 578 AND lost = 15 AND points > 26 |
Write a SQL query that answers the following question: I want the total number of points for against of 753 and points diff more than -114 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR) | SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114 |
Write a SQL query that answers the following question: In What Week was the Attendance 75,866? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR) | SELECT week FROM table_name_59 WHERE attendance = "75,866" |
Write a SQL query that answers the following question: What Opponent has an Attendance of 74,246? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_49 WHERE attendance = "74,246" |
Write a SQL query that answers the following question: What Date is Week 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_54 WHERE week = 1 |
Write a SQL query that answers the following question: Which team had 7 losses and 55 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (team VARCHAR, losses VARCHAR, goals_for VARCHAR) | SELECT team FROM table_name_80 WHERE losses = "7" AND goals_for = 55 |
Write a SQL query that answers the following question: What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (Id VARCHAR) | SELECT MIN(1995) FROM table_name_14 WHERE 1990 = 441 AND 1985 < 359 |
Write a SQL query that answers the following question: What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (Id VARCHAR) | SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658 |
Write a SQL query that answers the following question: When populatioin is greater than 7,747 and the type is V, what is the sum of code? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR) | SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747 |
Write a SQL query that answers the following question: Who has ties of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR) | SELECT name FROM table_name_24 WHERE ties = 5 |
Write a SQL query that answers the following question: Where did st kilda play as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_95 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: How big of a crowd does the home team of essendon have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR) | SELECT crowd FROM table_name_66 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: What is the MLB Draft status of the person who attended Seton Hall Preparatory School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (mlb_draft VARCHAR, school VARCHAR) | SELECT mlb_draft FROM table_name_80 WHERE school = "seton hall preparatory school" |
Write a SQL query that answers the following question: Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR) | SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school" |
Write a SQL query that answers the following question: Which Player attended George Washington High School? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (player VARCHAR, school VARCHAR) | SELECT player FROM table_name_8 WHERE school = "george washington high school" |
Write a SQL query that answers the following question: Where is the Hometown that the person who attended Camarillo High School is from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR) | SELECT hometown FROM table_name_40 WHERE school = "camarillo high school" |
Write a SQL query that answers the following question: How many people in total have attended games where carlton played as away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: Which player has a long of less than 15 and an average of 6 yards. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR) | SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6 |
Write a SQL query that answers the following question: What years did Troy Hudson play for the Jazz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (years_for_jazz VARCHAR, player VARCHAR) | SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson" |
Write a SQL query that answers the following question: What Nationality is the Iowa State team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_69 WHERE school_club_team = "iowa state" |
Write a SQL query that answers the following question: What Nationality is Jeff Hornacek? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_14 WHERE player = "jeff hornacek" |
Write a SQL query that answers the following question: What Nationality is the Colorado State team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado" |
Write a SQL query that answers the following question: What Player is from the Southern Illinois team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois" |
Write a SQL query that answers the following question: What years did Eddie Hughes play for the Jazz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (years_for_jazz VARCHAR, player VARCHAR) | SELECT years_for_jazz FROM table_name_53 WHERE player = "eddie hughes" |
Write a SQL query that answers the following question: Which Species has a medium Threat Level? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (species VARCHAR, threat_level VARCHAR) | SELECT species FROM table_name_63 WHERE threat_level = "medium" |
Write a SQL query that answers the following question: What is the Overview with a medium Threat Level? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (overview VARCHAR, threat_level VARCHAR) | SELECT overview FROM table_name_79 WHERE threat_level = "medium" |
Write a SQL query that answers the following question: What is the Threat Levels with Rabbits in Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR) | SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia" |
Write a SQL query that answers the following question: Which nominee won the Drama Desk Award for outstanding choreography? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (nominee VARCHAR, category VARCHAR, award VARCHAR, result VARCHAR) | SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography" |
Write a SQL query that answers the following question: When was the last time a nominee for Best Revival of a Musical was selected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR) | SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.