instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the sum of all points when number played is less than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (points INTEGER, played INTEGER) | SELECT SUM(points) FROM table_name_40 WHERE played < 18 |
Write a SQL query that answers the following question: Which date has a Score of 6–4, 6–3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_48 WHERE score = "6–4, 6–3" |
Write a SQL query that answers the following question: What is the total PI GP that a Reg GP has larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER) | SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3 |
Write a SQL query that answers the following question: What average Reg GP has a pick # larger than 210? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (reg_gp INTEGER, pick__number INTEGER) | SELECT AVG(reg_gp) FROM table_name_84 WHERE pick__number > 210 |
Write a SQL query that answers the following question: Which result has a Goal of deacon 2/5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (result VARCHAR, goals VARCHAR) | SELECT result FROM table_name_47 WHERE goals = "deacon 2/5" |
Write a SQL query that answers the following question: Which date has a Goal of deacon 4/4, withers 1 dg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (date VARCHAR, goals VARCHAR) | SELECT date FROM table_name_32 WHERE goals = "deacon 4/4, withers 1 dg" |
Write a SQL query that answers the following question: What are the goals for 8/4/04? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (goals VARCHAR, date VARCHAR) | SELECT goals FROM table_name_70 WHERE date = "8/4/04" |
Write a SQL query that answers the following question: Which venue has a Result of w, and a Goal of deacon 5/5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (venue VARCHAR, result VARCHAR, goals VARCHAR) | SELECT venue FROM table_name_84 WHERE result = "w" AND goals = "deacon 5/5" |
Write a SQL query that answers the following question: Which result has a Goal of deacon 3/5, bridge 2/2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (result VARCHAR, goals VARCHAR) | SELECT result FROM table_name_38 WHERE goals = "deacon 3/5, bridge 2/2" |
Write a SQL query that answers the following question: Which competition has a Goal of deacon 10/10, and a Score of 40–12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (competition VARCHAR, goals VARCHAR, score VARCHAR) | SELECT competition FROM table_name_52 WHERE goals = "deacon 10/10" AND score = "40–12" |
Write a SQL query that answers the following question: What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR) | SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131 |
Write a SQL query that answers the following question: What player has a number of playoff games played greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (player VARCHAR, pl_gp INTEGER) | SELECT player FROM table_name_51 WHERE pl_gp > 0 |
Write a SQL query that answers the following question: What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR) | SELECT SUM(reg_gp) FROM table_name_17 WHERE player = "morgan clark" AND rd__number < 7 |
Write a SQL query that answers the following question: What player has a number of playoff games played greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (player VARCHAR, pl_gp INTEGER) | SELECT player FROM table_name_64 WHERE pl_gp > 0 |
Write a SQL query that answers the following question: What is the pick number for the player from higher than round 3 and a PI GP bigger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (pick__number VARCHAR, rd__number VARCHAR, pl_gp VARCHAR) | SELECT pick__number FROM table_name_70 WHERE rd__number > 3 AND pl_gp > 0 |
Write a SQL query that answers the following question: What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (reg_gp INTEGER, player VARCHAR, pl_gp VARCHAR) | SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0 |
Write a SQL query that answers the following question: What was Essendon's opponents away score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_40 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: What was the attendance at Corio Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_9 WHERE venue = "corio oval" |
Write a SQL query that answers the following question: When collingwood played as the away team what did they score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_3 WHERE away_team = "collingwood" |
Write a SQL query that answers the following question: What was the locaction of the Evans test blast? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_64 WHERE name = "evans" |
Write a SQL query that answers the following question: What was the yield for a blast that was in nts area 3s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR) | SELECT yield FROM table_name_39 WHERE location = "nts area 3s" |
Write a SQL query that answers the following question: What was the purpose of the Quay test blast? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) | SELECT purpose FROM table_name_54 WHERE name = "quay" |
Write a SQL query that answers the following question: For an apparent magnitude greater than 11.8 what Right ascension value is assigned? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (right_ascension___j2000__ VARCHAR, apparent_magnitude INTEGER) | SELECT right_ascension___j2000__ FROM table_name_29 WHERE apparent_magnitude > 11.8 |
Write a SQL query that answers the following question: What is the least apparent magnitude for all constellations from hydra? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (apparent_magnitude INTEGER, constellation VARCHAR) | SELECT MIN(apparent_magnitude) FROM table_name_31 WHERE constellation = "hydra" |
Write a SQL query that answers the following question: What is the highest Car with more than 155 yards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (car INTEGER, yards INTEGER) | SELECT MAX(car) FROM table_name_56 WHERE yards > 155 |
Write a SQL query that answers the following question: How many pages were in the book by Stefano D'Arrigo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR) | SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo" |
Write a SQL query that answers the following question: Which author wrote Sironia, Texas in English? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (author VARCHAR, language VARCHAR, book_title VARCHAR) | SELECT author FROM table_name_42 WHERE language = "english" AND book_title = "sironia, texas" |
Write a SQL query that answers the following question: Who is the edition/publisher for Xavier Herbert? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (edition_publisher VARCHAR, author VARCHAR) | SELECT edition_publisher FROM table_name_9 WHERE author = "xavier herbert" |
Write a SQL query that answers the following question: What language is the book Miss Macintosh, My Darling in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (language VARCHAR, book_title VARCHAR) | SELECT language FROM table_name_17 WHERE book_title = "miss macintosh, my darling" |
Write a SQL query that answers the following question: Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (edition_publisher VARCHAR, language VARCHAR, page_size VARCHAR) | SELECT edition_publisher FROM table_name_5 WHERE language = "italian" AND page_size = "8 inches (20cm) x 5.4 inches (14cm)" |
Write a SQL query that answers the following question: What is the total average for long 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (avg VARCHAR, long VARCHAR) | SELECT COUNT(avg) FROM table_name_25 WHERE long = 10 |
Write a SQL query that answers the following question: Name the college that has 7 rounds and boston celtics team | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (college VARCHAR, team VARCHAR, round VARCHAR) | SELECT college FROM table_name_86 WHERE team = "boston celtics" AND round = "7" |
Write a SQL query that answers the following question: Name the position that has baltimore bullets and college of texas tech | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (position VARCHAR, team VARCHAR, college VARCHAR) | SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech" |
Write a SQL query that answers the following question: What is the nationality for milwaukee hawks? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR) | SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks" |
Write a SQL query that answers the following question: What is the name of the superfund that was proposed on 06/24/1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (name VARCHAR, proposed VARCHAR) | SELECT name FROM table_name_99 WHERE proposed = "06/24/1988" |
Write a SQL query that answers the following question: Which team was played against in game 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR) | SELECT team FROM table_name_40 WHERE game = 4 |
Write a SQL query that answers the following question: What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (location_attendance VARCHAR, high_rebounds VARCHAR, high_points VARCHAR) | SELECT location_attendance FROM table_name_49 WHERE high_rebounds = "a. horford (10)" AND high_points = "j. johnson (21)" |
Write a SQL query that answers the following question: During what Championship was the Opponent Jeff Borowiak? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR) | SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak" |
Write a SQL query that answers the following question: On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (date INTEGER, score VARCHAR) | SELECT SUM(date) FROM table_name_76 WHERE score = "3–6, 6–4, 3–6, 6–1, 6–2" |
Write a SQL query that answers the following question: What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) | SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud" |
Write a SQL query that answers the following question: What entrant has a P tyre and was constructed by Alfa Romeo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (entrant VARCHAR, tyre VARCHAR, constructor VARCHAR) | SELECT entrant FROM table_name_1 WHERE tyre = "p" AND constructor = "alfa romeo" |
Write a SQL query that answers the following question: I want the country for score of 274 and runner-up of virginie lagoutte-clément | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR) | SELECT country FROM table_name_93 WHERE score = "274" AND runner_s__up = "virginie lagoutte-clément" |
Write a SQL query that answers the following question: Tell me the date for 2004 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, year VARCHAR) | SELECT date FROM table_name_35 WHERE year = "2004" |
Write a SQL query that answers the following question: What is the margin of victory for nikki garrett? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (margin_of_victory VARCHAR, winner VARCHAR) | SELECT margin_of_victory FROM table_name_7 WHERE winner = "nikki garrett" |
Write a SQL query that answers the following question: I want to see the result for venue of n and attendance more than 20,664 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (result VARCHAR, venue VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_17 WHERE venue = "n" AND attendance > 20 OFFSET 664 |
Write a SQL query that answers the following question: Tell me the result for venue of a | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_51 WHERE venue = "a" |
Write a SQL query that answers the following question: I want to know the average attendance for n venue and f round | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (attendance INTEGER, venue VARCHAR, round VARCHAR) | SELECT AVG(attendance) FROM table_name_49 WHERE venue = "n" AND round = "f" |
Write a SQL query that answers the following question: In grid 15, how many laps were there before ending with a time of exhaust? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT SUM(laps) FROM table_name_40 WHERE time_retired = "exhaust" AND grid < 15 |
Write a SQL query that answers the following question: What year was class of undine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR) | SELECT year_made FROM table_name_67 WHERE class = "undine" |
Write a SQL query that answers the following question: What was the quantity preserved for quantity made of 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (quantity_preserved VARCHAR, quantity_made VARCHAR) | SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "15" |
Write a SQL query that answers the following question: Name the year for hercules | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (year_made VARCHAR, class VARCHAR) | SELECT year_made FROM table_name_52 WHERE class = "hercules" |
Write a SQL query that answers the following question: When did the tom smith built train enter service with a number under 7007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR) | SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007 |
Write a SQL query that answers the following question: Who is the opponent for the 1985 World Group i edition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (opponent VARCHAR, edition VARCHAR) | SELECT opponent FROM table_name_68 WHERE edition = "1985 world group i" |
Write a SQL query that answers the following question: What is the amount of cash on hand that has an after debt of $327,094 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR) | SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094" |
Write a SQL query that answers the following question: How many receipts does Mike Gravel have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (total_receipts VARCHAR, candidate VARCHAR) | SELECT total_receipts FROM table_name_83 WHERE candidate = "mike gravel" |
Write a SQL query that answers the following question: How much money has been raised that has $5,821,587 cash on hand? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (money_raised VARCHAR, _3q VARCHAR, cash_on_hand VARCHAR) | SELECT money_raised, _3q FROM table_name_75 WHERE cash_on_hand = "$5,821,587" |
Write a SQL query that answers the following question: What is the after debt has receipts of $379,794? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR) | SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794" |
Write a SQL query that answers the following question: How much money has Candidate Dennis Kucinich spent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR) | SELECT money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich" |
Write a SQL query that answers the following question: What is the crowd size when the away team was South Melbourne? | 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 = "south melbourne" |
Write a SQL query that answers the following question: What was the crowd size at Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_78 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the date of the game at Junction Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_3 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What was the away score for Carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_41 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: Who was the away team at MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_12 WHERE venue = "mcg" |
Write a SQL query that answers the following question: What is the D 48 when the D 50 is d 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (d_48 VARCHAR, d_50 VARCHAR) | SELECT d_48 FROM table_name_14 WHERE d_50 = "d 30" |
Write a SQL query that answers the following question: What is the D 47 when the D 49 is r 32? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (d_47 VARCHAR, d_49 VARCHAR) | SELECT d_47 FROM table_name_92 WHERE d_49 = "r 32" |
Write a SQL query that answers the following question: What is the D 50 when the D 43 is r 43? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (d_50 VARCHAR, d_43 VARCHAR) | SELECT d_50 FROM table_name_77 WHERE d_43 = "r 43" |
Write a SQL query that answers the following question: What is the D 42 when the D 50 is d 31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (d_42 VARCHAR, d_50 VARCHAR) | SELECT d_42 FROM table_name_17 WHERE d_50 = "d 31" |
Write a SQL query that answers the following question: What is the D 50 when the D 41 is d 41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (d_50 VARCHAR, d_41 VARCHAR) | SELECT d_50 FROM table_name_84 WHERE d_41 = "d 41" |
Write a SQL query that answers the following question: What is the D 50 when the D 41 is d 41? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (d_50 VARCHAR, d_41 VARCHAR) | SELECT d_50 FROM table_name_65 WHERE d_41 = "d 41" |
Write a SQL query that answers the following question: what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) | SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc" |
Write a SQL query that answers the following question: what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) | SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = "13 ships for usmc (plus 37 more for usn)" |
Write a SQL query that answers the following question: Who were the co drivers past 1994 in the WSC class? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR) | SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc" |
Write a SQL query that answers the following question: What day did Footscray play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_20 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: What is the report for 10 october? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR) | SELECT report FROM table_name_13 WHERE date = "10 october" |
Write a SQL query that answers the following question: Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (race VARCHAR, date VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) | SELECT race AS Winner FROM table_name_58 WHERE pole_position = "james hunt" AND fastest_lap = "james hunt" AND date = "15 august" |
Write a SQL query that answers the following question: What race has a Pole Position of Jacques Laffite? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR) | SELECT race FROM table_name_25 WHERE pole_position = "jacques laffite" |
Write a SQL query that answers the following question: What is the Pole Position of the Swedish Grand Prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (pole_position VARCHAR, race VARCHAR) | SELECT pole_position FROM table_name_95 WHERE race = "swedish grand prix" |
Write a SQL query that answers the following question: What was the date when the location was Zandvoort? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (date VARCHAR, location VARCHAR) | SELECT date FROM table_name_72 WHERE location = "zandvoort" |
Write a SQL query that answers the following question: How many chapters did Elmer Clifton direct? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR) | SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton" |
Write a SQL query that answers the following question: Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (spouse VARCHAR, father VARCHAR) | SELECT spouse FROM table_name_54 WHERE father = "ferdinand i of the two sicilies" |
Write a SQL query that answers the following question: What is the entered service date for serial number 85-1222? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (entered_service VARCHAR, serial_no VARCHAR) | SELECT entered_service FROM table_name_29 WHERE serial_no = "85-1222" |
Write a SQL query that answers the following question: What is the locomotive for the city of Benalla? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (locomotive VARCHAR, name VARCHAR) | SELECT locomotive FROM table_name_44 WHERE name = "city of benalla" |
Write a SQL query that answers the following question: What is the name for the locomotive n464? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (name VARCHAR, locomotive VARCHAR) | SELECT name FROM table_name_95 WHERE locomotive = "n464" |
Write a SQL query that answers the following question: What is the name for the locomotive n474? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (name VARCHAR, locomotive VARCHAR) | SELECT name FROM table_name_9 WHERE locomotive = "n474" |
Write a SQL query that answers the following question: What is the home team score at windy hill? | 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 = "windy hill" |
Write a SQL query that answers the following question: What is the largest crowd for an Away team of st kilda? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_32 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: Where was the match that had 119 points for played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (played_in VARCHAR, points_for VARCHAR) | SELECT played_in FROM table_name_55 WHERE points_for = "119" |
Write a SQL query that answers the following question: Where were 16 matches played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (played_in VARCHAR, matches VARCHAR) | SELECT played_in FROM table_name_36 WHERE matches = "16" |
Write a SQL query that answers the following question: What match had 240 points for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (matches VARCHAR, points_for VARCHAR) | SELECT matches FROM table_name_81 WHERE points_for = "240" |
Write a SQL query that answers the following question: What was the score on 26 July 1930? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_62 WHERE date = "26 july 1930" |
Write a SQL query that answers the following question: How many laps did Innes Ireland make when he had a grid more than 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (laps VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_60 WHERE grid > 15 AND driver = "innes ireland" |
Write a SQL query that answers the following question: What is the grid for Jack Brabham with more than 65 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_34 WHERE driver = "jack brabham" AND laps > 65 |
Write a SQL query that answers the following question: Who drove grid 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (driver VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_92 WHERE grid = 5 |
Write a SQL query that answers the following question: What is the date of the game with the Rockets as the visitor team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_3 WHERE visitor = "rockets" |
Write a SQL query that answers the following question: What was the position of the player who played for the Rockets during 1981? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (position VARCHAR, years_for_rockets VARCHAR) | SELECT position FROM table_name_88 WHERE years_for_rockets = "1981" |
Write a SQL query that answers the following question: What school, club team, or country did the player with a number smaller than 4 come from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (school_club_team_country VARCHAR, no_s_ INTEGER) | SELECT school_club_team_country FROM table_name_53 WHERE no_s_ < 4 |
Write a SQL query that answers the following question: What is the number of the player who came from Virginia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (no_s_ VARCHAR, school_club_team_country VARCHAR) | SELECT no_s_ FROM table_name_29 WHERE school_club_team_country = "virginia" |
Write a SQL query that answers the following question: What is the Time/Retired with over 56 laps and a grid of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_6 WHERE laps > 56 AND grid = 5 |
Write a SQL query that answers the following question: Who is the driver when the tyre is p and the entrant is officine alfieri maserati? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR) | SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati" |
Write a SQL query that answers the following question: Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_78 WHERE chassis = "talbot-lago t26c" AND driver = "charles pozzi" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.