instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR) | SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22 |
Write a SQL query that answers the following question: What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR) | SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85 |
Write a SQL query that answers the following question: On what date did the woman married to Louis II become consort? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR) | SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii" |
Write a SQL query that answers the following question: What is the Date of the game when the Record is 32–31–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_8 WHERE record = "32–31–6" |
Write a SQL query that answers the following question: What is the Opponent at the Honda Center on March 29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29" |
Write a SQL query that answers the following question: What is the Opponent when the Record is 34–31–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_3 WHERE record = "34–31–6" |
Write a SQL query that answers the following question: What is Date, when Away Team is "Minehead"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_13 WHERE away_team = "minehead" |
Write a SQL query that answers the following question: What is Date, when Away Team is "Barnet"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_7 WHERE away_team = "barnet" |
Write a SQL query that answers the following question: What is Tie no, when Home Team is "Hull City"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_69 WHERE home_team = "hull city" |
Write a SQL query that answers the following question: What is Away Team, when Home Team is "Swindon Town"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_3 WHERE home_team = "swindon town" |
Write a SQL query that answers the following question: What is Away Team, when Home Team is "Boston United"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_30 WHERE home_team = "boston united" |
Write a SQL query that answers the following question: What was Nick Faldo's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_73 WHERE player = "nick faldo" |
Write a SQL query that answers the following question: What country placed t8 and scored 71-71-71=213? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213 |
Write a SQL query that answers the following question: What was the place when the score was 67-73-73=213? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213 |
Write a SQL query that answers the following question: What was the place when the score was 70-69-74=213? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213 |
Write a SQL query that answers the following question: What was United States place when the player was Fred Couples? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples" |
Write a SQL query that answers the following question: WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (tournament VARCHAR) | SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a" |
Write a SQL query that answers the following question: WHAT IS THE 2012 WITH 2005 OF 1R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (Id VARCHAR) | SELECT 2012 FROM table_name_35 WHERE 2005 = "1r" |
Write a SQL query that answers the following question: WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (tournament VARCHAR) | SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters" |
Write a SQL query that answers the following question: WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (tournament VARCHAR) | SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a" |
Write a SQL query that answers the following question: WHAT IS THE 2007 AT MADRID MASTERS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR) | SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters" |
Write a SQL query that answers the following question: WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (Id VARCHAR) | SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r" |
Write a SQL query that answers the following question: What game was released before 2010 with a Metacritic of 85/100? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR) | SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010 |
Write a SQL query that answers the following question: What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR) | SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%" |
Write a SQL query that answers the following question: What is the GameRankings Released of 2011 with a Metacritic of 83/100? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR) | SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 2011 |
Write a SQL query that answers the following question: How many weeks have an attendance less than 26,048? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER) | SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 |
Write a SQL query that answers the following question: What was the record when the Denver Broncos played the New York Titans at Bears Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_44 WHERE game_site = "bears stadium" AND opponent = "new york titans" |
Write a SQL query that answers the following question: What was the result of the match on December 9, 1962? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_78 WHERE date = "december 9, 1962" |
Write a SQL query that answers the following question: What is To par, when Score is "70-68-68-71=277"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277 |
Write a SQL query that answers the following question: What is the score of the match on 12 September 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_29 WHERE date = "12 september 1990" |
Write a SQL query that answers the following question: For what league was the player in G position drafted? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (league_from VARCHAR, position VARCHAR) | SELECT league_from FROM table_name_87 WHERE position = "g" |
Write a SQL query that answers the following question: What pick number was player Greg McKegg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR) | SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg" |
Write a SQL query that answers the following question: What Place has a Player of tony jacklin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_28 WHERE player = "tony jacklin" |
Write a SQL query that answers the following question: What Place has a Player of bernhard langer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_49 WHERE player = "bernhard langer" |
Write a SQL query that answers the following question: What Player has a Country of west germany? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR) | SELECT player FROM table_name_86 WHERE country = "west germany" |
Write a SQL query that answers the following question: What Player has a To par of –2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_20 WHERE to_par = "–2" |
Write a SQL query that answers the following question: What To par has a Place of t2, and a Country of united states? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states" |
Write a SQL query that answers the following question: What Score has a Place of t2, and a Country of england? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, place VARCHAR, country VARCHAR) | SELECT score FROM table_name_75 WHERE place = "t2" AND country = "england" |
Write a SQL query that answers the following question: How many tries were there for club cwmtwrch rfc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR) | SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc" |
Write a SQL query that answers the following question: What is the draw when the tries against was 69? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR) | SELECT drawn FROM table_name_75 WHERE tries_against = "69" |
Write a SQL query that answers the following question: What is the try bonus when the loss is 13 and the draw is 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR) | SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2" |
Write a SQL query that answers the following question: What is the average Finish, when Team is "Buck Baker", and when Start is less than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (finish INTEGER, team VARCHAR, start VARCHAR) | SELECT AVG(finish) FROM table_name_39 WHERE team = "buck baker" AND start < 13 |
Write a SQL query that answers the following question: What is the average Year, when Start is "11"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (year INTEGER, start VARCHAR) | SELECT AVG(year) FROM table_name_42 WHERE start = 11 |
Write a SQL query that answers the following question: What is the lowest Year, when Finish is "29", and when Start is less than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR) | SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24 |
Write a SQL query that answers the following question: What is the highest Year, when Finish is "51", and when Start is less than 64? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR) | SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64 |
Write a SQL query that answers the following question: What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR) | SELECT manufacturer FROM table_name_97 WHERE finish > 29 AND start < 23 AND year = 1973 |
Write a SQL query that answers the following question: What is the opposing team with 11 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR) | SELECT opposing_teams FROM table_name_7 WHERE against = 11 |
Write a SQL query that answers the following question: What is the venue where Argentina was the opposing team in a test match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR) | SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match" |
Write a SQL query that answers the following question: What is the status of the game against France with more than 16 against? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_18 WHERE against > 16 AND opposing_teams = "france" |
Write a SQL query that answers the following question: On what date is there a status of Five Nations and an against of 23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR) | SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23 |
Write a SQL query that answers the following question: What model has a number built smaller than 6.526, and the Chassis code w109.015? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR) | SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015" |
Write a SQL query that answers the following question: What was the record at Tiger Stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR) | SELECT record FROM table_name_30 WHERE game_site = "tiger stadium" |
Write a SQL query that answers the following question: What was the attendance on September 19, 1971, after week 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 1 |
Write a SQL query that answers the following question: How many Bronze medals did the team ranked 1 win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR) | SELECT bronze FROM table_name_32 WHERE rank = "1" |
Write a SQL query that answers the following question: What is the date for the MF position and player Jennison Myrie-Williams? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date_from VARCHAR, position VARCHAR, name VARCHAR) | SELECT date_from FROM table_name_50 WHERE position = "mf" AND name = "jennison myrie-williams" |
Write a SQL query that answers the following question: What Goals has a Team of zamora, and Average larger than 0.89? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (goals INTEGER, team VARCHAR, average VARCHAR) | SELECT AVG(goals) FROM table_name_92 WHERE team = "zamora" AND average > 0.89 |
Write a SQL query that answers the following question: What is the sum of Goals win an Average larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (goals VARCHAR, average INTEGER) | SELECT COUNT(goals) FROM table_name_94 WHERE average > 1 |
Write a SQL query that answers the following question: What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR) | SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18 |
Write a SQL query that answers the following question: What is the total of Matches with Goals of 18, and an Average larger than 0.55? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (matches INTEGER, goals VARCHAR, average VARCHAR) | SELECT SUM(matches) FROM table_name_30 WHERE goals = 18 AND average > 0.55 |
Write a SQL query that answers the following question: What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR) | SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa" |
Write a SQL query that answers the following question: Which To par has a Score of 78-74-71-75=298? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (to_par INTEGER, score VARCHAR) | SELECT AVG(to_par) FROM table_name_52 WHERE score = 78 - 74 - 71 - 75 = 298 |
Write a SQL query that answers the following question: How much To par has a Country of united states, and a Money ($) of 90? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR) | SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90 |
Write a SQL query that answers the following question: What is are the highest matches with £5,000 in prize money? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (matches INTEGER, prize_money VARCHAR) | SELECT MAX(matches) FROM table_name_77 WHERE prize_money = "£5,000" |
Write a SQL query that answers the following question: What is the prize money amount after match 1, with 102 new entries to the round? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (prize_money VARCHAR, matches VARCHAR, new_entries_this_round VARCHAR) | SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102" |
Write a SQL query that answers the following question: In what place did Darren Clarke finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_23 WHERE player = "darren clarke" |
Write a SQL query that answers the following question: What was Ernie Els's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_86 WHERE player = "ernie els" |
Write a SQL query that answers the following question: In what place did Tom Lehman finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_29 WHERE player = "tom lehman" |
Write a SQL query that answers the following question: In what place did the golfer that scored 68-70-69=207 finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207 |
Write a SQL query that answers the following question: What were the highest laps for glenn seton gregg hansford? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (laps INTEGER, drivers VARCHAR) | SELECT MAX(laps) FROM table_name_1 WHERE drivers = "glenn seton gregg hansford" |
Write a SQL query that answers the following question: What driver had 101 laps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (drivers VARCHAR, laps VARCHAR) | SELECT drivers FROM table_name_86 WHERE laps = 101 |
Write a SQL query that answers the following question: Gary Barnett who has been in 0 FA Cups plays what position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (position VARCHAR, fa_cup_apps VARCHAR, name VARCHAR) | SELECT position FROM table_name_7 WHERE fa_cup_apps = "0" AND name = "gary barnett" |
Write a SQL query that answers the following question: What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (league_cup_goals INTEGER, total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, position VARCHAR) | SELECT MAX(league_cup_goals) FROM table_name_23 WHERE fa_cup_apps = "0" AND position = "mf" AND league_apps = "1" AND total_goals < 0 |
Write a SQL query that answers the following question: How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (flt_apps VARCHAR, league_goals VARCHAR, position VARCHAR, total_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT flt_apps FROM table_name_62 WHERE total_goals < 5 AND fa_cup_apps = "3" AND position = "mf" AND league_goals = 4 |
Write a SQL query that answers the following question: Who was the opponent when the attendance was 87,453? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (opponent_number VARCHAR, attendance VARCHAR) | SELECT opponent_number FROM table_name_28 WHERE attendance = "87,453" |
Write a SQL query that answers the following question: What was the attendance when they had a ranking of #4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (attendance VARCHAR, rank__number VARCHAR) | SELECT attendance FROM table_name_42 WHERE rank__number = "4" |
Write a SQL query that answers the following question: What's the average Played for a draw of 5 and more than 43 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (played INTEGER, draw VARCHAR, points VARCHAR) | SELECT AVG(played) FROM table_name_68 WHERE draw = 5 AND points > 43 |
Write a SQL query that answers the following question: What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (govt_salary VARCHAR, romanised_name VARCHAR) | SELECT govt_salary FROM table_name_19 WHERE romanised_name = "chen wei-on, kenneth" |
Write a SQL query that answers the following question: What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR) | SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀" |
Write a SQL query that answers the following question: What is the Romanised name of the Undersecretary with an education portfolio attachment? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR) | SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education" |
Write a SQL query that answers the following question: What is the best top 10 when there are fewer than 0 wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (top_10s INTEGER, wins INTEGER) | SELECT MAX(top_10s) FROM table_name_30 WHERE wins < 0 |
Write a SQL query that answers the following question: Where did naylor move from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (moving_from VARCHAR, name VARCHAR) | SELECT moving_from FROM table_name_31 WHERE name = "naylor" |
Write a SQL query that answers the following question: What type ends in 2011, has a free transfer fee, and is sourced in leeds united? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (type VARCHAR, source VARCHAR, ends VARCHAR, transfer_fee VARCHAR) | SELECT type FROM table_name_26 WHERE ends = "2011" AND transfer_fee = "free" AND source = "leeds united" |
Write a SQL query that answers the following question: What is the type of sco country? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR) | SELECT type FROM table_name_92 WHERE country = "sco" |
Write a SQL query that answers the following question: What is the type that ends in 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (type VARCHAR, ends VARCHAR) | SELECT type FROM table_name_32 WHERE ends = "2009" |
Write a SQL query that answers the following question: What is the transfer fee of assoumani, who has a summer transfer window? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani" |
Write a SQL query that answers the following question: What is the ends with a free transfer fee and was moved from middlesbrough? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR) | SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough" |
Write a SQL query that answers the following question: Which Week has Attendance of 51,558? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (week INTEGER, attendance VARCHAR) | SELECT MIN(week) FROM table_name_71 WHERE attendance = 51 OFFSET 558 |
Write a SQL query that answers the following question: Which Attendance has a Result of w 24-14, and a Week smaller than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (attendance INTEGER, result VARCHAR, week VARCHAR) | SELECT SUM(attendance) FROM table_name_2 WHERE result = "w 24-14" AND week < 7 |
Write a SQL query that answers the following question: Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 12 |
Write a SQL query that answers the following question: Which method has a record of 4-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (method VARCHAR, record VARCHAR) | SELECT method FROM table_name_83 WHERE record = "4-0" |
Write a SQL query that answers the following question: What is the record when the method is decision and the location is Martigues, France? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (record VARCHAR, method VARCHAR, location VARCHAR) | SELECT record FROM table_name_86 WHERE method = "decision" AND location = "martigues, france" |
Write a SQL query that answers the following question: Which location has a method of decision and Nikos Tsoukalas for an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas" |
Write a SQL query that answers the following question: What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, location VARCHAR, result VARCHAR) | SELECT method FROM table_name_33 WHERE location = "auckland, new zealand" AND result = "win" AND opponent = "darren berry" |
Write a SQL query that answers the following question: What is the location when the record is 9-7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_29 WHERE record = "9-7" |
Write a SQL query that answers the following question: What is the location when KO is the method, the result is a win, and the record is 2-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR, method VARCHAR, result VARCHAR) | SELECT location FROM table_name_66 WHERE method = "ko" AND result = "win" AND record = "2-0" |
Write a SQL query that answers the following question: What are the total casualties with 1,200+ military and/or civilian wounded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (total_casualties VARCHAR, military_and_or_civilian_wounded VARCHAR) | SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+" |
Write a SQL query that answers the following question: How many military deaths were there when there were 1,615 total casualties? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR) | SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615" |
Write a SQL query that answers the following question: How many military deaths were there when there were 1,200+ military and/or civilian wounded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR) | SELECT military_deaths FROM table_name_15 WHERE military_and_or_civilian_wounded = "1,200+" |
Write a SQL query that answers the following question: How many deaths were there when the total casualties were 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR) | SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6" |
Write a SQL query that answers the following question: Which country scored 70-68-71-71=280? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.