instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the score of the September 20, 2005 match when the Opponents are FC Bayern Munich? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (score VARCHAR, opponents VARCHAR, date VARCHAR) | SELECT score FROM table_name_2 WHERE opponents = "fc bayern munich" AND date = "september 20, 2005" |
Write a SQL query that answers the following question: What is the match report for July 10, 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (match_report VARCHAR, date VARCHAR) | SELECT match_report FROM table_name_91 WHERE date = "july 10, 2005" |
Write a SQL query that answers the following question: What is the date of the GC competition when the opponents are 1. FC Nuremberg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (date VARCHAR, opponents VARCHAR, competition VARCHAR) | SELECT date FROM table_name_59 WHERE opponents = "1. fc nuremberg" AND competition = "gc" |
Write a SQL query that answers the following question: Which competition was held on September 10, 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_58 WHERE date = "september 10, 2005" |
Write a SQL query that answers the following question: In which competition was the score 3-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_79 WHERE score = "3-0" |
Write a SQL query that answers the following question: Who was the visitor when the lakers were at home with a Score of 85–106? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR, score VARCHAR) | SELECT visitor FROM table_name_39 WHERE home = "lakers" AND score = "85–106" |
Write a SQL query that answers the following question: what is the date of birth for the player with goals less than 4, games more than 1, years at club, 1945 and named jim young? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date_of_birth VARCHAR, player VARCHAR, years_at_club VARCHAR, goals VARCHAR, games VARCHAR) | SELECT date_of_birth FROM table_name_66 WHERE goals < 4 AND games > 1 AND years_at_club = "1945" AND player = "jim young" |
Write a SQL query that answers the following question: what is the debut year for player terry fulton with games less than 51? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (debut_year INTEGER, player VARCHAR, games VARCHAR) | SELECT AVG(debut_year) FROM table_name_83 WHERE player = "terry fulton" AND games < 51 |
Write a SQL query that answers the following question: How people attended Victoria Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (crowd INTEGER, venue VARCHAR) | SELECT AVG(crowd) FROM table_name_60 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: What is the away team score for South Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_97 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: Who played Melbourne as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_38 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: Which away team has an attendance of more than 17,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, crowd INTEGER) | SELECT away_team FROM table_name_30 WHERE crowd > 17 OFFSET 000 |
Write a SQL query that answers the following question: Which away team played at MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_55 WHERE venue = "mcg" |
Write a SQL query that answers the following question: What was the date when Geelong was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_49 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: What is Damien Martyn's bowling style? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (bowling_style VARCHAR, player VARCHAR) | SELECT bowling_style FROM table_name_49 WHERE player = "damien martyn" |
Write a SQL query that answers the following question: What is the batting style of the player born on 14 November 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (batting_style VARCHAR, date_of_birth VARCHAR) | SELECT batting_style FROM table_name_77 WHERE date_of_birth = "14 november 1971" |
Write a SQL query that answers the following question: What is the first class team of the player born on 23 February 1973? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (first_class_team VARCHAR, date_of_birth VARCHAR) | SELECT first_class_team FROM table_name_70 WHERE date_of_birth = "23 february 1973" |
Write a SQL query that answers the following question: What is the type for EU Council Presidency of UK and John Major as President-in-Office? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (type VARCHAR, eu_council_presidency VARCHAR, president_in_office VARCHAR) | SELECT type FROM table_name_27 WHERE eu_council_presidency = "uk" AND president_in_office = "john major" |
Write a SQL query that answers the following question: In which host city was Margaret Thatcher the President-in-Office in 1981? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (host_city VARCHAR, president_in_office VARCHAR, year VARCHAR) | SELECT host_city FROM table_name_85 WHERE president_in_office = "margaret thatcher" AND year = 1981 |
Write a SQL query that answers the following question: How many average scores have preliminary scores over 9.25, interview scores more than 9.44, and evening gown scores of 9.77? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (average VARCHAR, evening_gown VARCHAR, preliminaries VARCHAR, interview VARCHAR) | SELECT COUNT(average) FROM table_name_98 WHERE preliminaries > 9.25 AND interview > 9.44 AND evening_gown = 9.77 |
Write a SQL query that answers the following question: What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (interview INTEGER, swimsuit VARCHAR, country VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR) | SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18 |
Write a SQL query that answers the following question: Name the seven for 29 november 1690 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (seven VARCHAR, date VARCHAR) | SELECT seven FROM table_name_24 WHERE date = "29 november 1690" |
Write a SQL query that answers the following question: Name the four for 6 march 1801 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (four VARCHAR, date VARCHAR) | SELECT four FROM table_name_23 WHERE date = "6 march 1801" |
Write a SQL query that answers the following question: Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR) | SELECT three FROM table_name_83 WHERE four = "william prewett" AND five = "richard ellis" AND seven = "nicholas king" AND date = "5 november 1693" |
Write a SQL query that answers the following question: Name the three for 16 december 1676 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR) | SELECT three FROM table_name_83 WHERE date = "16 december 1676" |
Write a SQL query that answers the following question: Tell me the average Grid for driver of Luca Badoer and Laps more than 69 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT AVG(grid) FROM table_name_73 WHERE driver = "luca badoer" AND laps > 69 |
Write a SQL query that answers the following question: What final was Farhad Rezaei in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (final VARCHAR, athlete VARCHAR) | SELECT final FROM table_name_46 WHERE athlete = "farhad rezaei" |
Write a SQL query that answers the following question: What final was ranked 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (final VARCHAR, rank VARCHAR) | SELECT final FROM table_name_96 WHERE rank = "4" |
Write a SQL query that answers the following question: What was the reanking of Hamid Veisi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (rank VARCHAR, athlete VARCHAR) | SELECT rank FROM table_name_44 WHERE athlete = "hamid veisi" |
Write a SQL query that answers the following question: Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR) | SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = "won 1998 world series" |
Write a SQL query that answers the following question: What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year INTEGER, finish VARCHAR, percentage VARCHAR) | SELECT AVG(year) FROM table_name_11 WHERE finish = "lost 2001 alcs" AND percentage > 0.716 |
Write a SQL query that answers the following question: In the Year 1939, what was the Finish when Al was the League? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (finish VARCHAR, league VARCHAR, year VARCHAR) | SELECT finish FROM table_name_88 WHERE league = "al" AND year = 1939 |
Write a SQL query that answers the following question: What was the Finish when NL was the League, the Percentage was under 0.726, the Year was larger than 1897, and the Franchies was the Pittsburgh Pirates? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (finish VARCHAR, franchise VARCHAR, year VARCHAR, league VARCHAR, percentage VARCHAR) | SELECT finish FROM table_name_22 WHERE league = "nl" AND percentage < 0.726 AND year > 1897 AND franchise = "pittsburgh pirates" |
Write a SQL query that answers the following question: What was the venue when the home team was footscray? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_81 WHERE home_team = "footscray" |
Write a SQL query that answers the following question: What was the crowd when the away team was hawthorn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_72 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What city houses the Ciro Vigorito stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (city VARCHAR, stadium VARCHAR) | SELECT city FROM table_name_86 WHERE stadium = "ciro vigorito" |
Write a SQL query that answers the following question: I want to know the highest silver for total of 4 for poland and gold less than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) | SELECT MAX(silver) FROM table_name_7 WHERE total = 4 AND nation = "poland" AND gold < 1 |
Write a SQL query that answers the following question: Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = "france" AND gold > 0 |
Write a SQL query that answers the following question: Tell me the number of gold for albania with a silver of 1 and total less than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (gold VARCHAR, total VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_12 WHERE silver = 1 AND nation = "albania" AND total < 1 |
Write a SQL query that answers the following question: Tell me the average gold for moldova and bronze less than 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_25 WHERE nation = "moldova" AND bronze < 1 |
Write a SQL query that answers the following question: Tell me the sum of gold for bronze less than 0 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (gold INTEGER, bronze INTEGER) | SELECT SUM(gold) FROM table_name_31 WHERE bronze < 0 |
Write a SQL query that answers the following question: What tyre was used in the Zandvoort circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (tyre VARCHAR, circuit VARCHAR) | SELECT tyre FROM table_name_71 WHERE circuit = "zandvoort" |
Write a SQL query that answers the following question: Which circuit did Alberto Ascari set the fastest lap time with a Ferrari? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (circuit VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) | SELECT circuit FROM table_name_86 WHERE constructor = "ferrari" AND fastest_lap = "alberto ascari" |
Write a SQL query that answers the following question: Who won the race with a Ferrari, were Luigi Villoresi set the fastest lap time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (winning_driver VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) | SELECT winning_driver FROM table_name_32 WHERE constructor = "ferrari" AND fastest_lap = "luigi villoresi" |
Write a SQL query that answers the following question: Which race did Alberto Ascari have both the Pole position and the win, but Luigi Villoresi set the fastest lap time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (race VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) | SELECT race FROM table_name_4 WHERE pole_position = "alberto ascari" AND winning_driver = "alberto ascari" AND fastest_lap = "luigi villoresi" |
Write a SQL query that answers the following question: Which county is named broderick wood products? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (county VARCHAR, name VARCHAR) | SELECT county FROM table_name_7 WHERE name = "broderick wood products" |
Write a SQL query that answers the following question: What construction completed is named nelson tunnel/commodore waste rock? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (construction_completed VARCHAR, name VARCHAR) | SELECT construction_completed FROM table_name_76 WHERE name = "nelson tunnel/commodore waste rock" |
Write a SQL query that answers the following question: What is the ID of marshall landfill on 09/08/1983? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR) | SELECT cerclis_id FROM table_name_98 WHERE listed = "09/08/1983" AND name = "marshall landfill" |
Write a SQL query that answers the following question: Which nominee won the award for Fourth Best Indian Film? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (nominee VARCHAR, outcome VARCHAR, category VARCHAR) | SELECT nominee FROM table_name_7 WHERE outcome = "won" AND category = "fourth best indian film" |
Write a SQL query that answers the following question: In which ceremony was Harnam Singh Rawail nominated for an award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (ceremony VARCHAR, nominee VARCHAR) | SELECT ceremony FROM table_name_80 WHERE nominee = "harnam singh rawail" |
Write a SQL query that answers the following question: In which ceremony was Jayant nominated for an award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (ceremony VARCHAR, nominee VARCHAR) | SELECT ceremony FROM table_name_69 WHERE nominee = "jayant" |
Write a SQL query that answers the following question: What surface was the April 24, 2003 match played on? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_88 WHERE date = "april 24, 2003" |
Write a SQL query that answers the following question: How many times has Watney made the top 25 for a tournament in which he as also been cut 6 times? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (top_25 INTEGER, cuts_made VARCHAR) | SELECT SUM(top_25) FROM table_name_47 WHERE cuts_made = 6 |
Write a SQL query that answers the following question: Which tournament has the highest number of cuts while also having 4 top 25 appearances? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 VARCHAR) | SELECT MAX(cuts_made) FROM table_name_54 WHERE top_25 = 4 |
Write a SQL query that answers the following question: What is the smallest grid with collision as the Time/Retired for pedro diniz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (grid INTEGER, time_retired VARCHAR, driver VARCHAR) | SELECT MIN(grid) FROM table_name_6 WHERE time_retired = "collision" AND driver = "pedro diniz" |
Write a SQL query that answers the following question: What is the number of laps for Grid 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (laps VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_88 WHERE grid = 14 |
Write a SQL query that answers the following question: What is the number of the grid for mika häkkinen and more than 45 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (grid VARCHAR, driver VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_65 WHERE driver = "mika häkkinen" AND laps > 45 |
Write a SQL query that answers the following question: Which home team has more than 19,000 spectators? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR, crowd INTEGER) | SELECT home_team FROM table_name_73 WHERE crowd > 19 OFFSET 000 |
Write a SQL query that answers the following question: What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (theme VARCHAR, year VARCHAR, artist VARCHAR, issue_price VARCHAR) | SELECT theme FROM table_name_54 WHERE artist = "christie paquet" AND issue_price = "$34.95" AND year > 2004 |
Write a SQL query that answers the following question: What is the Year of Christie Paquet with Issue Price of $34.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (year INTEGER, artist VARCHAR, issue_price VARCHAR) | SELECT AVG(year) FROM table_name_78 WHERE artist = "christie paquet" AND issue_price = "$34.95" |
Write a SQL query that answers the following question: What is the Crowd for the Venue of Princes Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (crowd VARCHAR, venue VARCHAR) | SELECT crowd FROM table_name_88 WHERE venue = "princes park" |
Write a SQL query that answers the following question: What is the Home team score for the Home team of Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_98 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: What is the Home team score for the Home team from South Melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_33 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What is the Home team score for the Venue named MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_89 WHERE venue = "mcg" |
Write a SQL query that answers the following question: Who has the lowest earnings that has a rank smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (earnings__ INTEGER, rank INTEGER) | SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2 |
Write a SQL query that answers the following question: What was the total number of wins with player Mike Hill with a rank bigger than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (wins VARCHAR, rank VARCHAR, player VARCHAR) | SELECT COUNT(wins) FROM table_name_73 WHERE rank > 2 AND player = "mike hill" |
Write a SQL query that answers the following question: Where was the argentine grand prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (location VARCHAR, race VARCHAR) | SELECT location FROM table_name_42 WHERE race = "argentine grand prix" |
Write a SQL query that answers the following question: What was the constructor for the fastest nelson piquet? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (constructor VARCHAR, fastest_lap VARCHAR) | SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet" |
Write a SQL query that answers the following question: Tell me the constructor for zolder | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (constructor VARCHAR, location VARCHAR) | SELECT constructor FROM table_name_64 WHERE location = "zolder" |
Write a SQL query that answers the following question: Name the constructor for 10 august | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (constructor VARCHAR, date VARCHAR) | SELECT constructor FROM table_name_75 WHERE date = "10 august" |
Write a SQL query that answers the following question: What is the number of Years at Club for the player who has had more games than 28, more Goals than 225, and his Debut year was after 1950? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (years_at_club VARCHAR, debut_year VARCHAR, games VARCHAR, goals VARCHAR) | SELECT years_at_club FROM table_name_77 WHERE games > 28 AND goals > 225 AND debut_year > 1950 |
Write a SQL query that answers the following question: What is the birthday of the player who has Years at Club of 1951? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date_of_birth VARCHAR, years_at_club VARCHAR) | SELECT date_of_birth FROM table_name_12 WHERE years_at_club = "1951" |
Write a SQL query that answers the following question: what rank has years until mandatory retirement of 6 years? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (rank VARCHAR, years_until_mandatory_retirement VARCHAR) | SELECT rank FROM table_name_55 WHERE years_until_mandatory_retirement = "6 years" |
Write a SQL query that answers the following question: what name has an appointed year of 2009 and years until mandatory retirement of 13 years? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (name VARCHAR, year_appointed VARCHAR, years_until_mandatory_retirement VARCHAR) | SELECT name FROM table_name_40 WHERE year_appointed = 2009 AND years_until_mandatory_retirement = "13 years" |
Write a SQL query that answers the following question: Which player from Oregon used the number 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (player VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR) | SELECT player FROM table_name_16 WHERE no_s_ = "12" AND school_club_team_country = "oregon" |
Write a SQL query that answers the following question: What position does the player who is 6-10 play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR) | SELECT position FROM table_name_16 WHERE height_in_ft = "6-10" |
Write a SQL query that answers the following question: What are the numbers for any players from Washington? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (no_s_ VARCHAR, school_club_team_country VARCHAR) | SELECT no_s_ FROM table_name_94 WHERE school_club_team_country = "washington" |
Write a SQL query that answers the following question: Which years did the Rockets number 6 play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR) | SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6" |
Write a SQL query that answers the following question: Which 2nd senior VIII that also has a 4th senior stm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (senior_2nd_viii VARCHAR, senior_iv VARCHAR) | SELECT senior_2nd_viii FROM table_name_60 WHERE senior_iv = "stm" |
Write a SQL query that answers the following question: How many laps did John Love have on a grid less than 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (laps VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_18 WHERE grid < 11 AND driver = "john love" |
Write a SQL query that answers the following question: What is the Builder of Locomotive 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (builder VARCHAR, locomotive VARCHAR) | SELECT builder FROM table_name_6 WHERE locomotive = "2" |
Write a SQL query that answers the following question: With a Type of 4-6-4t, what is the sum Withdrawn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (withdrawn INTEGER, type VARCHAR) | SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t" |
Write a SQL query that answers the following question: What was the score from the game where Dallas played Home and Edmonton was visiting? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (score VARCHAR, home VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_41 WHERE home = "dallas" AND visitor = "edmonton" |
Write a SQL query that answers the following question: What was the mintage when the theme was Santa Claus? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR) | SELECT mintage FROM table_name_15 WHERE theme = "santa claus" |
Write a SQL query that answers the following question: What was the issue price in the year 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (issue_price INTEGER, year VARCHAR) | SELECT SUM(issue_price) FROM table_name_29 WHERE year = 2008 |
Write a SQL query that answers the following question: What is the earliest year when the composition is 99.99% silver and the issue price is $94.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR) | SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95" |
Write a SQL query that answers the following question: What year had an issue price of $94.95 and theme of Amethyst crystal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (year INTEGER, issue_price VARCHAR, theme VARCHAR) | SELECT AVG(year) FROM table_name_87 WHERE issue_price = "$94.95" AND theme = "amethyst crystal" |
Write a SQL query that answers the following question: Name the score for when the opponent in the final is shiho hisamatsu | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_43 WHERE opponent_in_the_final = "shiho hisamatsu" |
Write a SQL query that answers the following question: Name the tournament for april 3, 2005 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_79 WHERE date = "april 3, 2005" |
Write a SQL query that answers the following question: Name th score for may 11, 2003 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_1 WHERE date = "may 11, 2003" |
Write a SQL query that answers the following question: Who constructed pedro diniz's car? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_30 WHERE driver = "pedro diniz" |
Write a SQL query that answers the following question: What is the grid total for david coulthard with over 45 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_85 WHERE driver = "david coulthard" AND laps > 45 |
Write a SQL query that answers the following question: What is the average for the gymnast with a 9.9 start value and a total of 9.612? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR) | SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 |
Write a SQL query that answers the following question: What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) | SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 |
Write a SQL query that answers the following question: What category was Kasautii Zindagii Kay nominated for after 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR) | SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay" |
Write a SQL query that answers the following question: What show had a nomination for best actor in a lead role – female (popular) in 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (for_the_show VARCHAR, category VARCHAR, year VARCHAR) | SELECT for_the_show FROM table_name_22 WHERE category = "best actor in a lead role – female (popular)" AND year = 2006 |
Write a SQL query that answers the following question: In what week was the Result L 15-13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (week INTEGER, result VARCHAR) | SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-13" |
Write a SQL query that answers the following question: What is the Attendance with Opponent Dallas Cowboys in a Week greater than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT SUM(attendance) FROM table_name_51 WHERE opponent = "dallas cowboys" AND week > 5 |
Write a SQL query that answers the following question: How many points for maserati v12 engines in 1968? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR) | SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v12" AND year = 1968 |
Write a SQL query that answers the following question: What entrant had less than 3 points before 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (entrant VARCHAR, year VARCHAR, points VARCHAR) | SELECT entrant FROM table_name_28 WHERE year < 1963 AND points < 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.