instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What was the final score for the game with 65,309 people in attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (final_score VARCHAR, attendance VARCHAR) | SELECT final_score FROM table_name_28 WHERE attendance = "65,309" |
Write a SQL query that answers the following question: What average week number had the Chicago bears as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (week INTEGER, opponent VARCHAR) | SELECT AVG(week) FROM table_name_58 WHERE opponent = "chicago bears" |
Write a SQL query that answers the following question: What is the record for the game against New England Patriots at the Rich Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_89 WHERE game_site = "rich stadium" AND opponent = "new england patriots" |
Write a SQL query that answers the following question: What did the Dallara chassis with a 5 start in 2006 finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (finish VARCHAR, year VARCHAR, chassis VARCHAR, start VARCHAR) | SELECT finish FROM table_name_91 WHERE chassis = "dallara" AND start = "5" AND year = 2006 |
Write a SQL query that answers the following question: What is the chassis of the Honda Engine from 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (chassis VARCHAR, engine VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_68 WHERE engine = "honda" AND year = 2008 |
Write a SQL query that answers the following question: What is the earliest year of the Honda Engine with a finish of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (year INTEGER, engine VARCHAR, finish VARCHAR) | SELECT MIN(year) FROM table_name_53 WHERE engine = "honda" AND finish = 4 |
Write a SQL query that answers the following question: What was 2002, when 2008 was, "career statistics"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (Id VARCHAR) | SELECT 2002 FROM table_name_6 WHERE 2008 = "career statistics" |
Write a SQL query that answers the following question: What was 2009, when 2001 was, "not masters series"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (Id VARCHAR) | SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series" |
Write a SQL query that answers the following question: What was 2011, when 2005 was 2R, and when 2003 was 2R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (Id VARCHAR) | SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "2r" |
Write a SQL query that answers the following question: What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (tournament VARCHAR) | SELECT 2009 FROM table_name_18 WHERE 2012 = "a" AND 2003 = "a" AND tournament = "madrid masters" |
Write a SQL query that answers the following question: What was 2002, when 2011 was, "atp masters series"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Id VARCHAR) | SELECT 2002 FROM table_name_71 WHERE 2011 = "atp masters series" |
Write a SQL query that answers the following question: What was the lowest wins of Larry Nelson, who ranked less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (wins INTEGER, player VARCHAR, rank VARCHAR) | SELECT MIN(wins) FROM table_name_8 WHERE player = "larry nelson" AND rank < 5 |
Write a SQL query that answers the following question: What is the sum of the earnings for rank 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (earnings__ INTEGER, rank VARCHAR) | SELECT SUM(earnings__) AS $__ FROM table_name_39 WHERE rank = 3 |
Write a SQL query that answers the following question: What is the country is ranked more than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_66 WHERE rank > 4 |
Write a SQL query that answers the following question: What the total of Week with attendance of 53,147 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (week INTEGER, attendance VARCHAR) | SELECT SUM(week) FROM table_name_70 WHERE attendance = "53,147" |
Write a SQL query that answers the following question: What is the lowest week for December 26, 1999 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_31 WHERE date = "december 26, 1999" |
Write a SQL query that answers the following question: What season has 6 races and the team is Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (season VARCHAR, races VARCHAR, team VARCHAR) | SELECT season FROM table_name_90 WHERE races = 6 AND team = "australia" |
Write a SQL query that answers the following question: What is the total number of Races when there were more than 8 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (races VARCHAR, wins INTEGER) | SELECT COUNT(races) FROM table_name_15 WHERE wins > 8 |
Write a SQL query that answers the following question: Who's the Socialist ticket with a Republican ticket of john a. may? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (socialist_ticket VARCHAR, republican_ticket VARCHAR) | SELECT socialist_ticket FROM table_name_2 WHERE republican_ticket = "john a. may" |
Write a SQL query that answers the following question: Who's the Republican ticket with a Democratic ticket of m. william bray? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (republican_ticket VARCHAR, democratic_ticket VARCHAR) | SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray" |
Write a SQL query that answers the following question: Who's the Socialist ticket with a Democratic ticket of herbert h. lehman? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (socialist_ticket VARCHAR, democratic_ticket VARCHAR) | SELECT socialist_ticket FROM table_name_5 WHERE democratic_ticket = "herbert h. lehman" |
Write a SQL query that answers the following question: Who's the Republican ticket with a Socialist ticket of frank r. crosswaith? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR) | SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith" |
Write a SQL query that answers the following question: Who's the Republican ticket with a Socialist ticket of edna mitchell blue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (republican_ticket VARCHAR, socialist_ticket VARCHAR) | SELECT republican_ticket FROM table_name_46 WHERE socialist_ticket = "edna mitchell blue" |
Write a SQL query that answers the following question: what's the earliest year that serena williams had more than 2 sets? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year INTEGER, player VARCHAR, sets VARCHAR) | SELECT MIN(year) FROM table_name_47 WHERE player = "serena williams" AND sets > 2 |
Write a SQL query that answers the following question: what's the earliest year that the wimbledon opponent was zheng jie? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (year INTEGER, event VARCHAR, opponent VARCHAR) | SELECT MIN(year) FROM table_name_50 WHERE event = "wimbledon" AND opponent = "zheng jie" |
Write a SQL query that answers the following question: what year was the opponent caroline garcia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR) | SELECT SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia" |
Write a SQL query that answers the following question: what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (year INTEGER, sets VARCHAR, aces VARCHAR, opponent VARCHAR) | SELECT MAX(year) FROM table_name_55 WHERE aces = 20 AND opponent = "samantha stosur" AND sets > 2 |
Write a SQL query that answers the following question: what year was the memphis event? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (year INTEGER, event VARCHAR) | SELECT SUM(year) FROM table_name_97 WHERE event = "memphis" |
Write a SQL query that answers the following question: What season did the player who had the number 26 play on who came from far eastern? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (season VARCHAR, school_club_team VARCHAR, number VARCHAR) | SELECT season FROM table_name_26 WHERE school_club_team = "far eastern" AND number = 26 |
Write a SQL query that answers the following question: What season did the player who came from Cebu play in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (season VARCHAR, school_club_team VARCHAR) | SELECT season FROM table_name_64 WHERE school_club_team = "cebu" |
Write a SQL query that answers the following question: What was the country in the year 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (country VARCHAR, year VARCHAR) | SELECT country FROM table_name_69 WHERE year = 2012 |
Write a SQL query that answers the following question: In what year was Letecke Zavody N.P., Jinonice the manufacturer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (year VARCHAR, manufacturer VARCHAR) | SELECT year FROM table_name_90 WHERE manufacturer = "letecke zavody n.p., jinonice" |
Write a SQL query that answers the following question: What country had the car with the Jawa 350cc engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (country VARCHAR, engine_make_capacity VARCHAR) | SELECT country FROM table_name_42 WHERE engine_make_capacity = "jawa 350cc" |
Write a SQL query that answers the following question: In what country was the car with the čz 171cc engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (country VARCHAR, engine_make_capacity VARCHAR) | SELECT country FROM table_name_34 WHERE engine_make_capacity = "čz 171cc" |
Write a SQL query that answers the following question: What is the name of the car that was made in the years 1956-1958? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (automobile_name VARCHAR, year VARCHAR) | SELECT automobile_name FROM table_name_18 WHERE year = "1956-1958" |
Write a SQL query that answers the following question: What is the name of the car manufactured by Letecke Zavody N.P., Jinonice? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (automobile_name VARCHAR, manufacturer VARCHAR) | SELECT automobile_name FROM table_name_11 WHERE manufacturer = "letecke zavody n.p., jinonice" |
Write a SQL query that answers the following question: Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (manufacturer VARCHAR, engine_make_capacity VARCHAR, year VARCHAR) | SELECT manufacturer FROM table_name_58 WHERE engine_make_capacity = "jawa 249cc" AND year = "1956-1963" |
Write a SQL query that answers the following question: What is the Set 2 with a Date that is jun 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (set_2 VARCHAR, date VARCHAR) | SELECT set_2 FROM table_name_98 WHERE date = "jun 29" |
Write a SQL query that answers the following question: What is the Set 1 with a Set 2 that is 25-19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (set_1 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19" |
Write a SQL query that answers the following question: What is the Set 5 with a Date that is jun 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (set_5 VARCHAR, date VARCHAR) | SELECT set_5 FROM table_name_93 WHERE date = "jun 29" |
Write a SQL query that answers the following question: When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR) | SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999" |
Write a SQL query that answers the following question: What is the partially deleted result for a completed construction of m– in St. Maries Creosote? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (partially_deleted VARCHAR, construction_completed VARCHAR, name VARCHAR) | SELECT partially_deleted FROM table_name_47 WHERE construction_completed = "–" AND name = "st. maries creosote" |
Write a SQL query that answers the following question: What is the partially deleted result for Bunker Hill Mining & Metallurgical? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (partially_deleted VARCHAR, name VARCHAR) | SELECT partially_deleted FROM table_name_96 WHERE name = "bunker hill mining & metallurgical" |
Write a SQL query that answers the following question: What is the partially deleted result for a deleted of m– in Valley? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (partially_deleted VARCHAR, deleted VARCHAR, county VARCHAR) | SELECT partially_deleted FROM table_name_95 WHERE deleted = "–" AND county = "valley" |
Write a SQL query that answers the following question: How many matches ended with more than 22 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (match INTEGER, points INTEGER) | SELECT SUM(match) FROM table_name_83 WHERE points > 22 |
Write a SQL query that answers the following question: What is the value in 1965 when 7 is the value for 1967? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (Id VARCHAR) | SELECT 1965 FROM table_name_81 WHERE 1967 = "7" |
Write a SQL query that answers the following question: What is the value in 1971 when 30 is the value for 1969? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (Id VARCHAR) | SELECT 1971 FROM table_name_65 WHERE 1969 = "30" |
Write a SQL query that answers the following question: What was the value in 1966 with a 0 value in 1969? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (Id VARCHAR) | SELECT 1966 FROM table_name_72 WHERE 1969 = "0" |
Write a SQL query that answers the following question: Who was the player moving to Arminia Bielefeld? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (name VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_68 WHERE moving_to = "arminia bielefeld" |
Write a SQL query that answers the following question: What tournament had a Winning score of –9 (69-72-68-70=279)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (tournament VARCHAR, winning_score VARCHAR) | SELECT tournament FROM table_name_11 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) |
Write a SQL query that answers the following question: What was the winning score of the Greater Vancouver Open tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (winning_score VARCHAR, tournament VARCHAR) | SELECT winning_score FROM table_name_50 WHERE tournament = "greater vancouver open" |
Write a SQL query that answers the following question: Which runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (runner_s__up VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) | SELECT runner_s__up FROM table_name_78 WHERE margin_of_victory = "3 strokes" AND winning_score = –13(68 - 70 - 66 - 71 = 275) |
Write a SQL query that answers the following question: What was the Margin of victory in the southwest golf classic Tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (margin_of_victory VARCHAR, tournament VARCHAR) | SELECT margin_of_victory FROM table_name_84 WHERE tournament = "southwest golf classic" |
Write a SQL query that answers the following question: When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (margin_of_victory VARCHAR, winning_score VARCHAR) | SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) |
Write a SQL query that answers the following question: What height has a floor count less than 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER) | SELECT height FROM table_name_2 WHERE floor_count < 25 |
Write a SQL query that answers the following question: What state/territory has 121 m as the height? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (state___territory VARCHAR, height VARCHAR) | SELECT state___territory FROM table_name_58 WHERE height = "121 m" |
Write a SQL query that answers the following question: What state/territory has lovett tower as the building? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (state___territory VARCHAR, building VARCHAR) | SELECT state___territory FROM table_name_85 WHERE building = "lovett tower" |
Write a SQL query that answers the following question: What was the date of the game against Oakland Raiders? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_86 WHERE opponent = "oakland raiders" |
Write a SQL query that answers the following question: What year has 2 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (year VARCHAR, wins VARCHAR) | SELECT year FROM table_name_59 WHERE wins = "2" |
Write a SQL query that answers the following question: What is the success rate for the year 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR) | SELECT success_rate FROM table_name_52 WHERE year = "2012" |
Write a SQL query that answers the following question: What was the win for 4 matches with a success rate of 25%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (wins VARCHAR, matches VARCHAR, success_rate VARCHAR) | SELECT wins FROM table_name_70 WHERE matches = "4" AND success_rate = "25%" |
Write a SQL query that answers the following question: what was the win for the 6 matches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (wins VARCHAR, matches VARCHAR) | SELECT wins FROM table_name_17 WHERE matches = "6" |
Write a SQL query that answers the following question: What is the losses for the 5 matches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR) | SELECT losses FROM table_name_40 WHERE matches = "5" |
Write a SQL query that answers the following question: What is the losses for the year 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (losses VARCHAR, year VARCHAR) | SELECT losses FROM table_name_73 WHERE year = "2012" |
Write a SQL query that answers the following question: What is the average Total with a Gold that is larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (total INTEGER, gold INTEGER) | SELECT AVG(total) FROM table_name_77 WHERE gold > 4 |
Write a SQL query that answers the following question: What is the average Total with a Bronze that is larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (total INTEGER, bronze INTEGER) | SELECT AVG(total) FROM table_name_46 WHERE bronze > 1 |
Write a SQL query that answers the following question: Who were the Brazil scorers for the World Cup Competition with a 1-2 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (brazil_scorers VARCHAR, competition VARCHAR, score VARCHAR) | SELECT brazil_scorers FROM table_name_18 WHERE competition = "world cup" AND score = "1-2" |
Write a SQL query that answers the following question: Which competition had a 4-3 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_86 WHERE score = "4-3" |
Write a SQL query that answers the following question: What is the highest Top-5 that has 18 or more events with a Top-25 of 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) | SELECT MAX(top_5) FROM table_name_61 WHERE events > 18 AND top_25 = 23 |
Write a SQL query that answers the following question: What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 VARCHAR, wins VARCHAR) | SELECT MIN(cuts_made) FROM table_name_63 WHERE top_25 < 6 AND wins < 0 |
Write a SQL query that answers the following question: What race did Glenn Seton win on the Sandown International Raceway circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) | SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway" |
Write a SQL query that answers the following question: What date was the race at Oran Park ran? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, race_title VARCHAR) | SELECT date FROM table_name_25 WHERE race_title = "oran park" |
Write a SQL query that answers the following question: What is the largest number of assists for the second rank when there were less than 2 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (assists INTEGER, rank VARCHAR, games VARCHAR) | SELECT MAX(assists) FROM table_name_71 WHERE rank = 2 AND games < 2 |
Write a SQL query that answers the following question: What is the smallest rank when there are more than 2 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rank INTEGER, games INTEGER) | SELECT MIN(rank) FROM table_name_52 WHERE games > 2 |
Write a SQL query that answers the following question: What is the mean number of games for pablo prigioni when there are more than 14 assists? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (games INTEGER, name VARCHAR, assists VARCHAR) | SELECT AVG(games) FROM table_name_88 WHERE name = "pablo prigioni" AND assists > 14 |
Write a SQL query that answers the following question: What region has 57 vehicles? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (region VARCHAR, vehicles__1209_ VARCHAR) | SELECT region FROM table_name_35 WHERE vehicles__1209_ = 57 |
Write a SQL query that answers the following question: What was the Score after 1991 in Category IVA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (score VARCHAR, year VARCHAR, category VARCHAR) | SELECT score FROM table_name_98 WHERE year > 1991 AND category = "iva" |
Write a SQL query that answers the following question: What was the Score in 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, year VARCHAR) | SELECT score FROM table_name_25 WHERE year = 2002 |
Write a SQL query that answers the following question: What was the Category before 1995? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (category VARCHAR, year INTEGER) | SELECT category FROM table_name_19 WHERE year < 1995 |
Write a SQL query that answers the following question: What was the Category after 1991 with a Score of 7-5, 6-7, 6-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (category VARCHAR, year VARCHAR, score VARCHAR) | SELECT category FROM table_name_90 WHERE year > 1991 AND score = "7-5, 6-7, 6-2" |
Write a SQL query that answers the following question: What was the issue date for the song by Paul Mccartney and Michael Jackson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (issue_date_s_ VARCHAR, artist VARCHAR) | SELECT issue_date_s_ FROM table_name_97 WHERE artist = "paul mccartney and michael jackson" |
Write a SQL query that answers the following question: What is the smallest number of seats with INC as an election winner and BJP incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR) | SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = "inc" AND incumbent = "bjp" |
Write a SQL query that answers the following question: Who was the election winner with a BJP incumbent in Chhattisgarh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (election_winner VARCHAR, incumbent VARCHAR, state VARCHAR) | SELECT election_winner FROM table_name_77 WHERE incumbent = "bjp" AND state = "chhattisgarh" |
Write a SQL query that answers the following question: Which country has an IATA of EVN? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_8 WHERE iata = "evn" |
Write a SQL query that answers the following question: What is the name of the airport located in Russia with an IATA of AER? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (airport VARCHAR, country VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_34 WHERE country = "russia" AND iata = "aer" |
Write a SQL query that answers the following question: What is the name of the airport located in Russia with an IATA of KRR? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (airport VARCHAR, country VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr" |
Write a SQL query that answers the following question: What is the name of the airport with an ICAO of ULLI? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_40 WHERE icao = "ulli" |
Write a SQL query that answers the following question: What is the ICAO for the destination in Armenia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (icao VARCHAR, country VARCHAR) | SELECT icao FROM table_name_80 WHERE country = "armenia" |
Write a SQL query that answers the following question: What is the name of the airport with an IATA of KUF? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_68 WHERE iata = "kuf" |
Write a SQL query that answers the following question: What is the status of Author Del Corro? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (status VARCHAR, authors VARCHAR) | SELECT status FROM table_name_84 WHERE authors = "del corro" |
Write a SQL query that answers the following question: What is the location of the authors of Molnar? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (location VARCHAR, authors VARCHAR) | SELECT location FROM table_name_65 WHERE authors = "molnar" |
Write a SQL query that answers the following question: What is the status of Prenocephale? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_96 WHERE name = "prenocephale" |
Write a SQL query that answers the following question: What is the novel that has a valid status, located in Mongolia, and named Prenocephale? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (novelty VARCHAR, name VARCHAR, status VARCHAR, location VARCHAR) | SELECT novelty FROM table_name_40 WHERE status = "valid" AND location = "mongolia" AND name = "prenocephale" |
Write a SQL query that answers the following question: What is the novelty of Tylocephale? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (novelty VARCHAR, name VARCHAR) | SELECT novelty FROM table_name_14 WHERE name = "tylocephale" |
Write a SQL query that answers the following question: Which team 1 has vfl gummersbach as team 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach" |
Write a SQL query that answers the following question: Which team 1 has cbm valladolid as team 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_75 WHERE team_2 = "cbm valladolid" |
Write a SQL query that answers the following question: What 2nd leg has rk gold club kozina as team 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_23 WHERE team_1 = "rk gold club kozina" |
Write a SQL query that answers the following question: What 1st leg has 52-70 as the agg.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (agg VARCHAR) | SELECT 1 AS st_leg FROM table_name_8 WHERE agg = "52-70" |
Write a SQL query that answers the following question: What was the surface for October 10, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_72 WHERE date = "october 10, 2004" |
Write a SQL query that answers the following question: What was the surface for the opponent Roger Federer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_94 WHERE opponent = "roger federer" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.