instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR) | SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000 |
Write a SQL query that answers the following question: Which opponent has a Season of 2011/12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR) | SELECT opponent FROM table_name_3 WHERE season = "2011/12" |
Write a SQL query that answers the following question: Which opponent has a Season of 2010/11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR) | SELECT opponent FROM table_name_7 WHERE season = "2010/11" |
Write a SQL query that answers the following question: Which competition has a Season of 2010/11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (competition VARCHAR, season VARCHAR) | SELECT competition FROM table_name_56 WHERE season = "2010/11" |
Write a SQL query that answers the following question: What Opponent has a Result of –? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_20 WHERE result = "–" |
Write a SQL query that answers the following question: Which season has a Result of 6–9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR) | SELECT season FROM table_name_71 WHERE result = "6–9" |
Write a SQL query that answers the following question: Which round has a Venue of nicosia, and a Opponent of levski sofia zapad? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad" |
Write a SQL query that answers the following question: What resulted in a score of 22-21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_27 WHERE score = "22-21" |
Write a SQL query that answers the following question: What competition was held on the date 6/7/03 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_97 WHERE date = "6/7/03" |
Write a SQL query that answers the following question: What was the score for the date of 15/6/03 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_84 WHERE date = "15/6/03" |
Write a SQL query that answers the following question: What venue is on the date of 8/6/03 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_5 WHERE date = "8/6/03" |
Write a SQL query that answers the following question: What outcome has a score of 12-22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_69 WHERE score = "12-22" |
Write a SQL query that answers the following question: What date is for Venue of jjb stadium, and a Result of w? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR) | SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w" |
Write a SQL query that answers the following question: What is the high lap total for françois cevert? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR) | SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert" |
Write a SQL query that answers the following question: Who constructed rolf stommelen's car? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_83 WHERE driver = "rolf stommelen" |
Write a SQL query that answers the following question: Who drive the car that retired due to engine failure and a grid of less than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9 |
Write a SQL query that answers the following question: When was the race that set the record for the Izod Indycar Series? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_47 WHERE record = "izod indycar series" |
Write a SQL query that answers the following question: Which driver set the Qualifying record with a time of 24.761 seconds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (driver VARCHAR, record VARCHAR, time VARCHAR) | SELECT driver FROM table_name_61 WHERE record = "qualifying" AND time = "24.761" |
Write a SQL query that answers the following question: What Utah Jazz guard, played at BYU? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu" |
Write a SQL query that answers the following question: What college team did Derek Fisher play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher" |
Write a SQL query that answers the following question: The Utah Jazz Player from UTEP was what nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_51 WHERE school_club_team = "utep" |
Write a SQL query that answers the following question: What is the name of the venue when the home team is Richmond? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_26 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: What is the home team score when the venue is Princes Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park" |
Write a SQL query that answers the following question: What actor plays glen cole? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR) | SELECT actor FROM table_name_66 WHERE character = "glen cole" |
Write a SQL query that answers the following question: What is the average number for a final episode featuring maxine valera? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (final_episode INTEGER, character VARCHAR) | SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = "maxine valera" |
Write a SQL query that answers the following question: How many laps were driven in 2:54:23.8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR) | SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8" |
Write a SQL query that answers the following question: Which constructor has laps less than 100 and a time/retired +10 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps" |
Write a SQL query that answers the following question: What are the highest number of laps for grid 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (laps INTEGER, grid VARCHAR) | SELECT MAX(laps) FROM table_name_95 WHERE grid = 8 |
Write a SQL query that answers the following question: Which grid is the highest and has a time/retired of +0.3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR) | SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3" |
Write a SQL query that answers the following question: Which driver for Maserati has more laps than 23 and a grid greater than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (driver VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_61 WHERE constructor = "maserati" AND laps > 23 AND grid > 7 |
Write a SQL query that answers the following question: Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR) | SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4" |
Write a SQL query that answers the following question: Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR) | SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3" |
Write a SQL query that answers the following question: Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR) | SELECT stage FROM table_name_57 WHERE points_classification = "francesco moser" AND general_classification = "bernard hinault" |
Write a SQL query that answers the following question: Who was the winner of Stage 12 with a Points Classification of Francesco Moser? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) | SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12" |
Write a SQL query that answers the following question: Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR) | SELECT stage FROM table_name_51 WHERE winner = "bernard hinault" AND points_classification = "francesco moser" |
Write a SQL query that answers the following question: Who was the loser on December 12, 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR) | SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971 |
Write a SQL query that answers the following question: Who was the loser at Municipal Stadium after 1970? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (loser VARCHAR, location VARCHAR, year VARCHAR) | SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 |
Write a SQL query that answers the following question: What is the date where the winner was the Oakland Raiders in 1975? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR) | SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders" |
Write a SQL query that answers the following question: What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, loser VARCHAR) | SELECT result FROM table_name_23 WHERE location = "arrowhead stadium" AND loser = "kansas city chiefs" |
Write a SQL query that answers the following question: What was nominated for the Best Movie category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (work VARCHAR, category VARCHAR) | SELECT work FROM table_name_54 WHERE category = "best movie" |
Write a SQL query that answers the following question: Which award did Scream receive a nomination and/or win for in 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year VARCHAR) | SELECT award FROM table_name_27 WHERE work = "scream" AND year = 1997 |
Write a SQL query that answers the following question: What category was Scream nominated for at the International Horror Guild? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (category VARCHAR, work VARCHAR, award VARCHAR) | SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild" |
Write a SQL query that answers the following question: what is the time/retired when the laps is less than 54 and the driver is mark donohue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_35 WHERE laps < 54 AND driver = "mark donohue" |
Write a SQL query that answers the following question: what is the grid when the driver is mario andretti and the laps is less than 54? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 |
Write a SQL query that answers the following question: how many laps were there when the grid was 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24 |
Write a SQL query that answers the following question: what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni" |
Write a SQL query that answers the following question: Which class is smaller than 5 and the GWR is 1322–1323? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR) | SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323" |
Write a SQL query that answers the following question: Whose term expired in 1996 and was from the province of Central Highlands? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR) | SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996 |
Write a SQL query that answers the following question: Ken Wright of the National Party was from which province? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR) | SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright" |
Write a SQL query that answers the following question: Which venue hosted a race in 1967? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR) | SELECT venue FROM table_name_20 WHERE year = 1967 |
Write a SQL query that answers the following question: Which tournament was held after 1966? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (tournament VARCHAR, year INTEGER) | SELECT tournament FROM table_name_73 WHERE year > 1966 |
Write a SQL query that answers the following question: Which venue hosted a tournament in 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR) | SELECT venue FROM table_name_78 WHERE year = 1965 |
Write a SQL query that answers the following question: What is the result for the best new musical nominee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_17 WHERE nominee = "best new musical" |
Write a SQL query that answers the following question: How many years does simon baker appear as a nominee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR) | SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker" |
Write a SQL query that answers the following question: What is the Height for Years of Rockets of 2005-06? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (height_in_ft VARCHAR, years_for_rockets VARCHAR) | SELECT height_in_ft FROM table_name_44 WHERE years_for_rockets = "2005-06" |
Write a SQL query that answers the following question: What is the Height for Years for Rockets of 2005-06? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR) | SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06" |
Write a SQL query that answers the following question: What is the Attendance on august 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_99 WHERE date = "august 15" |
Write a SQL query that answers the following question: What is the constructor for the race with Nigel Mansell as the fastest lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR) | SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell" |
Write a SQL query that answers the following question: What is the fastest lap at estoril? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (fastest_lap VARCHAR, location VARCHAR) | SELECT fastest_lap FROM table_name_82 WHERE location = "estoril" |
Write a SQL query that answers the following question: What is the race in Paul Ricard with Keke Rosberg as the fastest lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) | SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard" |
Write a SQL query that answers the following question: Who was the winner at spa-francorchamps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (race VARCHAR, location VARCHAR) | SELECT race AS Winner FROM table_name_99 WHERE location = "spa-francorchamps" |
Write a SQL query that answers the following question: Where was the game with result 7-2 played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_11 WHERE result = "7-2" |
Write a SQL query that answers the following question: What was the score of the Friendly competition where the result was 7-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR) | SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2" |
Write a SQL query that answers the following question: What was the score of the game on 27 January 1996? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_15 WHERE date = "27 january 1996" |
Write a SQL query that answers the following question: What is the event with a result of 3-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR) | SELECT competition FROM table_name_40 WHERE result = "3-2" |
Write a SQL query that answers the following question: How big was the crowd size, at the Junction Oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the visiting team of Melbourne's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What is the average crowd size of Fitzroy's home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR) | SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: Which railway had the earliest build date and a disposal of "Scrapped 1941?" | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR) | SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941" |
Write a SQL query that answers the following question: Which railway had a loco name of Pyramus and a build date of 1911? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (railway VARCHAR, build_date VARCHAR, loco_name VARCHAR) | SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus" |
Write a SQL query that answers the following question: What was the build date of the railway(s) with 0-6-2 t wheels? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (build_date VARCHAR, wheels VARCHAR) | SELECT build_date FROM table_name_13 WHERE wheels = "0-6-2 t" |
Write a SQL query that answers the following question: Which disbanded is in the ahl league? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR) | SELECT disbanded FROM table_name_73 WHERE league = "ahl" |
Write a SQL query that answers the following question: Which championship was established after 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (championships VARCHAR, established INTEGER) | SELECT championships FROM table_name_1 WHERE established > 2005 |
Write a SQL query that answers the following question: Which year had J.R. Reid as a player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (year VARCHAR, player VARCHAR) | SELECT year FROM table_name_62 WHERE player = "j.r. reid" |
Write a SQL query that answers the following question: Which hometown is the played Dajuan Wagner from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR) | SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner" |
Write a SQL query that answers the following question: When the home team was carlton how many people were in the crowd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR) | SELECT crowd FROM table_name_29 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: Which away team had a crowd of over 23,000 people? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER) | SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000 |
Write a SQL query that answers the following question: What's the home team for the western oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_39 WHERE venue = "western oval" |
Write a SQL query that answers the following question: What's the home team for the junction oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_28 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the result when the opponent was fenerbahçe? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_5 WHERE opponent = "fenerbahçe" |
Write a SQL query that answers the following question: what is the apparent magnitude of NGC number 6027d? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (apparent_magnitude VARCHAR, ngc_number VARCHAR) | SELECT apparent_magnitude FROM table_name_14 WHERE ngc_number = "6027d" |
Write a SQL query that answers the following question: What is the visiting team of the game with the home team Grizzlies on 13 November 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_77 WHERE home = "grizzlies" AND date = "13 november 2007" |
Write a SQL query that answers the following question: What is the date of the game when the Mavericks were the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_98 WHERE home = "mavericks" |
Write a SQL query that answers the following question: Which of the lowest years had a Wheel arrangement that was 0-4-2t? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (year_made INTEGER, wheel_arrangement VARCHAR) | SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t" |
Write a SQL query that answers the following question: What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year_made INTEGER, iwcr_no VARCHAR, year_withdrawn VARCHAR) | SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = "5" AND year_withdrawn > 1926 |
Write a SQL query that answers the following question: Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (sr_no VARCHAR, year_withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR) | SELECT sr_no FROM table_name_87 WHERE wheel_arrangement = "0-6-0t" AND year_made > 1874 AND year_withdrawn = 1963 |
Write a SQL query that answers the following question: What is the sum number of years where the wheel arrangement of 0-4-0t? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (year_made VARCHAR, wheel_arrangement VARCHAR) | SELECT COUNT(year_made) FROM table_name_18 WHERE wheel_arrangement = "0-4-0t" |
Write a SQL query that answers the following question: What was the latest week of a game that had an attendance of 63,001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR) | SELECT MAX(week) FROM table_name_63 WHERE attendance = "63,001" |
Write a SQL query that answers the following question: What is the total medals Austria and those with larger than rank 4 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR) | SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4 |
Write a SQL query that answers the following question: What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR) | SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4 |
Write a SQL query that answers the following question: Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (country VARCHAR, park VARCHAR, opened VARCHAR, model VARCHAR) | SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom" |
Write a SQL query that answers the following question: What is the name of the roller coaster that opened in 2000 in Brighton Pier? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (name VARCHAR, opened VARCHAR, park VARCHAR) | SELECT name FROM table_name_98 WHERE opened = 2000 AND park = "brighton pier" |
Write a SQL query that answers the following question: How many attended on may 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6" |
Write a SQL query that answers the following question: Who did they lose to 3-17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_67 WHERE score = "3-17" |
Write a SQL query that answers the following question: What venue did Richmond play at as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_56 WHERE home_team = "richmond" |
Write a SQL query that answers the following question: What home team played against Footscray as the away team? | 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 = "footscray" |
Write a SQL query that answers the following question: what was the attendance when the away team was boreham wood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (attendance VARCHAR, away_team VARCHAR) | SELECT attendance FROM table_name_84 WHERE away_team = "boreham wood" |
Write a SQL query that answers the following question: what is the tie no when the away team is solihull moors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (tie_no INTEGER, away_team VARCHAR) | SELECT SUM(tie_no) FROM table_name_82 WHERE away_team = "solihull moors" |
Write a SQL query that answers the following question: who is the away team when the tie no is more than 13 and the home team is team bath? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_30 WHERE tie_no > 13 AND home_team = "team bath" |
Write a SQL query that answers the following question: What is the Pick # of the player from Simon Fraser College? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (pick__number INTEGER, college VARCHAR) | SELECT AVG(pick__number) FROM table_name_50 WHERE college = "simon fraser" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.