instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What country in Europe is ranked 4, with top goal scorer Karl-Heinz Rummenigge with 14 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (europe VARCHAR, goals VARCHAR, rank VARCHAR, top_goalscorer VARCHAR) | SELECT europe FROM table_name_68 WHERE rank = "4" AND top_goalscorer = "karl-heinz rummenigge" AND goals = 14 |
Write a SQL query that answers the following question: Wha is the rank for 52 574 avg. att? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (rank VARCHAR, avgatt VARCHAR) | SELECT rank FROM table_name_49 WHERE avgatt = "52 574" |
Write a SQL query that answers the following question: What european country had more than 14 goals, and 52 538 avg att? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (europe VARCHAR, goals VARCHAR, avgatt VARCHAR) | SELECT europe FROM table_name_83 WHERE goals > 14 AND avgatt = "52 538" |
Write a SQL query that answers the following question: What's the least amount of wins for Germany in the 1999 season having 0 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (wins INTEGER, seasons VARCHAR, points VARCHAR, country VARCHAR) | SELECT MIN(wins) FROM table_name_30 WHERE points = "0" AND country = "germany" AND seasons = "1999" |
Write a SQL query that answers the following question: How many wins when the points are 0 and podiums are less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, podiums VARCHAR) | SELECT SUM(wins) FROM table_name_51 WHERE points = "0" AND podiums < 0 |
Write a SQL query that answers the following question: What's the fastest laps during the 1995 season having poles & podiums at 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (fastest_laps INTEGER, seasons VARCHAR, poles VARCHAR, podiums VARCHAR) | SELECT SUM(fastest_laps) FROM table_name_2 WHERE poles = 0 AND podiums = 0 AND seasons = "1995" |
Write a SQL query that answers the following question: How many years have an Award of venice film festival, and a Title of lust, caution? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (year VARCHAR, award VARCHAR, title VARCHAR) | SELECT COUNT(year) FROM table_name_73 WHERE award = "venice film festival" AND title = "lust, caution" |
Write a SQL query that answers the following question: Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (category VARCHAR, award VARCHAR, title VARCHAR, year VARCHAR, result VARCHAR) | SELECT category FROM table_name_45 WHERE year > 1996 AND result = "won" AND title = "brokeback mountain" AND award = "golden globe award" |
Write a SQL query that answers the following question: Which Title has a Year smaller than 2001, and an Award of independent spirit awards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (title VARCHAR, year VARCHAR, award VARCHAR) | SELECT title FROM table_name_14 WHERE year < 2001 AND award = "independent spirit awards" |
Write a SQL query that answers the following question: Which chassis has 17 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (chassis VARCHAR, points VARCHAR) | SELECT chassis FROM table_name_30 WHERE points = 17 |
Write a SQL query that answers the following question: What is the average draw for 186 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (draw INTEGER, total_games VARCHAR) | SELECT AVG(draw) FROM table_name_33 WHERE total_games = 186 |
Write a SQL query that answers the following question: What is the number of games for less than 2 seasons and more than 7 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (total_games INTEGER, number_of_seasons VARCHAR, draw VARCHAR) | SELECT SUM(total_games) FROM table_name_34 WHERE number_of_seasons < 2 AND draw > 7 |
Write a SQL query that answers the following question: What is the total number of losses for less than 48 games, and less than 7 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (loss VARCHAR, total_games VARCHAR, draw VARCHAR) | SELECT COUNT(loss) FROM table_name_56 WHERE total_games < 48 AND draw < 7 |
Write a SQL query that answers the following question: What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR) | SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317 |
Write a SQL query that answers the following question: What is Bobby Ryan's nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_91 WHERE player = "bobby ryan" |
Write a SQL query that answers the following question: What's the location of the team Peter Stuyvesant International Racing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (city___state VARCHAR, team VARCHAR) | SELECT city___state FROM table_name_65 WHERE team = "peter stuyvesant international racing" |
Write a SQL query that answers the following question: Who was the winner of the Adelaide International Raceway circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_27 WHERE circuit = "adelaide international raceway" |
Write a SQL query that answers the following question: What date has the Surfers Paradise International Raceway circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_52 WHERE circuit = "surfers paradise international raceway" |
Write a SQL query that answers the following question: What is the race title of Dick Johnson Racing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (race_title VARCHAR, team VARCHAR) | SELECT race_title FROM table_name_73 WHERE team = "dick johnson racing" |
Write a SQL query that answers the following question: What is the career win-loss for the ATP Masters Series? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (career_win_loss VARCHAR) | SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series" |
Write a SQL query that answers the following question: What's the Home ground(s) listed for the Name Melville Cricket Club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (home_ground_s_ VARCHAR, name VARCHAR) | SELECT home_ground_s_ FROM table_name_11 WHERE name = "melville cricket club" |
Write a SQL query that answers the following question: What Name has the Captain Aaron Heal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (name VARCHAR, captain VARCHAR) | SELECT name FROM table_name_4 WHERE captain = "aaron heal" |
Write a SQL query that answers the following question: What's the Nickname listed for the Name of University Cricket Club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (nickname VARCHAR, name VARCHAR) | SELECT nickname FROM table_name_40 WHERE name = "university cricket club" |
Write a SQL query that answers the following question: What Nickname has a Location of Southern River? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (nickname VARCHAR, location VARCHAR) | SELECT nickname FROM table_name_82 WHERE location = "southern river" |
Write a SQL query that answers the following question: What is the Name listed for the Nickname of Storm? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (name VARCHAR, nickname VARCHAR) | SELECT name FROM table_name_74 WHERE nickname = "storm" |
Write a SQL query that answers the following question: What Name has the Location of Bayswater? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (name VARCHAR, location VARCHAR) | SELECT name FROM table_name_67 WHERE location = "bayswater" |
Write a SQL query that answers the following question: How many years have a Form album of the thing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (year INTEGER, from_album VARCHAR) | SELECT SUM(year) FROM table_name_39 WHERE from_album = "the thing" |
Write a SQL query that answers the following question: Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (label VARCHAR, Nr VARCHAR, from_album VARCHAR, year VARCHAR) | SELECT label - Nr FROM table_name_78 WHERE year < 1968 AND label = "world pacific" AND from_album = "chile con soul" |
Write a SQL query that answers the following question: Which Year has a Label-Nr of 88146? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (year VARCHAR, label VARCHAR, Nr VARCHAR) | SELECT year FROM table_name_15 WHERE label - Nr = 88146 |
Write a SQL query that answers the following question: How many years were there albums by heat wave? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year INTEGER, from_album VARCHAR) | SELECT SUM(year) FROM table_name_84 WHERE from_album = "heat wave" |
Write a SQL query that answers the following question: Which Title has an album of tough talk, and a Label-Nr of x-371? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (title VARCHAR, from_album VARCHAR, label VARCHAR, Nr VARCHAR, x VARCHAR) | SELECT title FROM table_name_4 WHERE from_album = "tough talk" AND label - Nr = x - 371 |
Write a SQL query that answers the following question: What is the lowest number of floors for the number 2 ranked Joyus Housing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (floors INTEGER, name VARCHAR, rank VARCHAR) | SELECT MIN(floors) FROM table_name_59 WHERE name = "joyus housing" AND rank < 2 |
Write a SQL query that answers the following question: What is the number of floors when the r Rank larger than 41, and a City of parel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (floors VARCHAR, rank VARCHAR, city VARCHAR) | SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel" |
Write a SQL query that answers the following question: What is the rank for the city of sewri? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (rank VARCHAR, city VARCHAR) | SELECT COUNT(rank) FROM table_name_46 WHERE city = "sewri" |
Write a SQL query that answers the following question: What rank has a status of proposed, with 80 floors for Celestia Spaces 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (rank INTEGER, name VARCHAR, status VARCHAR, floors VARCHAR) | SELECT AVG(rank) FROM table_name_79 WHERE status = "proposed" AND floors = 80 AND name = "celestia spaces 4" |
Write a SQL query that answers the following question: What's the English Pluperfect when the Bulgarian is бяха чули? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (english VARCHAR, bulgarian VARCHAR) | SELECT english FROM table_name_48 WHERE bulgarian = "бяха чули" |
Write a SQL query that answers the following question: What's the Italian Pluperfect when the English is We Had Heard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (italian VARCHAR, english VARCHAR) | SELECT italian FROM table_name_83 WHERE english = "we had heard" |
Write a SQL query that answers the following question: What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (portuguese VARCHAR, french VARCHAR) | SELECT portuguese FROM table_name_25 WHERE french = "ils/elles avaient entendu" |
Write a SQL query that answers the following question: What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (german VARCHAR, macedonian VARCHAR) | SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о" |
Write a SQL query that answers the following question: What is the least amount of silver for Italy with a total less than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (silver INTEGER, nation VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_83 WHERE nation = "italy" AND total < 5 |
Write a SQL query that answers the following question: What is the total for Austria when there is less than 1 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (total INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_47 WHERE nation = "austria" AND bronze < 1 |
Write a SQL query that answers the following question: What is the total when silver is more than 3, and rank is 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (total INTEGER, silver VARCHAR, rank VARCHAR) | SELECT MAX(total) FROM table_name_53 WHERE silver > 3 AND rank = "2" |
Write a SQL query that answers the following question: What is the gold number when total is more than 1, and bronze is 0, and rank is 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = "5" |
Write a SQL query that answers the following question: What date was the episode that aired at 7:30 pm ET? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_26 WHERE time = "7:30 pm et" |
Write a SQL query that answers the following question: What date did episode one air on? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, episode VARCHAR) | SELECT date FROM table_name_38 WHERE episode = "one" |
Write a SQL query that answers the following question: At what venue was the 2010 FIFA World Cup Qualification? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (venue VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_2 WHERE competition = "2010 fifa world cup qualification" |
Write a SQL query that answers the following question: What is the discipline for the summer Olympics in 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (discipline VARCHAR, tournament VARCHAR, year VARCHAR) | SELECT discipline FROM table_name_68 WHERE tournament = "summer olympics" AND year = 2008 |
Write a SQL query that answers the following question: What venue has an extra of 45.08 S? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (venue VARCHAR, extra VARCHAR) | SELECT venue FROM table_name_85 WHERE extra = "45.08 s" |
Write a SQL query that answers the following question: What is the extra when the result is 4th at the NCAA Championships? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (extra VARCHAR, result VARCHAR, tournament VARCHAR) | SELECT extra FROM table_name_28 WHERE result = "4th" AND tournament = "ncaa championships" |
Write a SQL query that answers the following question: What tournament had an extra of 3:06.94 s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (tournament VARCHAR, extra VARCHAR) | SELECT tournament FROM table_name_60 WHERE extra = "3:06.94 s" |
Write a SQL query that answers the following question: Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR) | SELECT MIN(time) FROM table_name_66 WHERE nationality = "jamaica" AND lane > 4 AND rank < 1 |
Write a SQL query that answers the following question: Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (rank INTEGER, lane VARCHAR, time VARCHAR) | SELECT MIN(rank) FROM table_name_39 WHERE lane = 5 AND time < 11.06 |
Write a SQL query that answers the following question: Name the lowest Rank of carmelita jeter with a Time smaller than 11.08? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (rank INTEGER, name VARCHAR, time VARCHAR) | SELECT MIN(rank) FROM table_name_97 WHERE name = "carmelita jeter" AND time < 11.08 |
Write a SQL query that answers the following question: When the points are 98 what is the draw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (draw VARCHAR, points VARCHAR) | SELECT COUNT(draw) FROM table_name_50 WHERE points = 98 |
Write a SQL query that answers the following question: For what 188kg is the world record clean & jerk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (world_record VARCHAR) | SELECT 188 AS kg FROM table_name_96 WHERE world_record = "clean & jerk" |
Write a SQL query that answers the following question: What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (year VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR) | SELECT year FROM table_name_96 WHERE opponent_in_the_final = "brenda schultz-mccarthy" AND score = "6–7(5), 2–6" |
Write a SQL query that answers the following question: What year had a score of 4–6, 7–6, 7–5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (year VARCHAR, score VARCHAR) | SELECT year FROM table_name_90 WHERE score = "4–6, 7–6, 7–5" |
Write a SQL query that answers the following question: Who was the away team for the match with a home team of Citizen Team A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_78 WHERE home_team = "citizen team a" |
Write a SQL query that answers the following question: What was the score for the match with a home team of Citizen Team A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_51 WHERE home_team = "citizen team a" |
Write a SQL query that answers the following question: Who was the home team in the match that had an away team of Convoy Sun Hei Team B? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_97 WHERE away_team = "convoy sun hei team b" |
Write a SQL query that answers the following question: What time did the match with an away team of Happy Valley Team B start? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_30 WHERE away_team = "happy valley team b" |
Write a SQL query that answers the following question: What is the 2nd leg when second team is Sumykhimprom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (team__number2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom" |
Write a SQL query that answers the following question: What is the 1st leg when team number 1 is CSU SIBIU? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (team__number1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_53 WHERE team__number1 = "csu sibiu" |
Write a SQL query that answers the following question: Which Time/Retired has Laps smaller than 100, and Points larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (time_retired VARCHAR, laps VARCHAR, points VARCHAR) | SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0 |
Write a SQL query that answers the following question: Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18 |
Write a SQL query that answers the following question: Which Team has Laps of 100, and a Time/Retired of +8.6 secs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (team VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT team FROM table_name_33 WHERE laps = 100 AND time_retired = "+8.6 secs" |
Write a SQL query that answers the following question: What strike rate is 9 the matches? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (strike_rate VARCHAR, matches VARCHAR) | SELECT strike_rate FROM table_name_97 WHERE matches = "9" |
Write a SQL query that answers the following question: Which player has 79.62 as the strike rate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR) | SELECT player FROM table_name_89 WHERE strike_rate = "79.62" |
Write a SQL query that answers the following question: With 10 as matches, and 469 runs, what is the strike rate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (strike_rate VARCHAR, matches VARCHAR, runs VARCHAR) | SELECT strike_rate FROM table_name_24 WHERE matches = "10" AND runs = "469" |
Write a SQL query that answers the following question: When the strike rate is 70.10, what is the balls? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (balls VARCHAR, strike_rate VARCHAR) | SELECT balls FROM table_name_36 WHERE strike_rate = "70.10" |
Write a SQL query that answers the following question: What nation has a time of 51.35 in the final heat? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (nation VARCHAR, time VARCHAR, heat_semifinal_final VARCHAR) | SELECT nation FROM table_name_89 WHERE time = "51.35" AND heat_semifinal_final = "final" |
Write a SQL query that answers the following question: Which heat, semifinal or final has a time of 48.97? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (heat_semifinal_final VARCHAR, time VARCHAR) | SELECT heat_semifinal_final FROM table_name_41 WHERE time = "48.97" |
Write a SQL query that answers the following question: What heat, semifinal or final has a time of 25.00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (heat_semifinal_final VARCHAR, time VARCHAR) | SELECT heat_semifinal_final FROM table_name_31 WHERE time = "25.00" |
Write a SQL query that answers the following question: What date was the men's 100m breaststroke in heat 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR) | SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6" |
Write a SQL query that answers the following question: Marion Buisson with a 4.00 of o had what result? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (result VARCHAR, name VARCHAR) | SELECT result FROM table_name_89 WHERE 400 = "o" AND name = "marion buisson" |
Write a SQL query that answers the following question: Anastasija Reiberger from Germany had what 4.00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (nationality VARCHAR, name VARCHAR) | SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" |
Write a SQL query that answers the following question: Alana Boyd of group B with a 4.30 result has what nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, group VARCHAR, result VARCHAR) | SELECT nationality FROM table_name_24 WHERE group = "b" AND result = "4.30" AND name = "alana boyd" |
Write a SQL query that answers the following question: Roslinda Samsu has what nationality? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_87 WHERE name = "roslinda samsu" |
Write a SQL query that answers the following question: What nation is Marion Buisson playing for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_49 WHERE name = "marion buisson" |
Write a SQL query that answers the following question: Who is the rower from Canada? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_80 WHERE country = "canada" |
Write a SQL query that answers the following question: What is the sum of the rank of the rower with an r note from Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (rank INTEGER, notes VARCHAR, country VARCHAR) | SELECT SUM(rank) FROM table_name_6 WHERE notes = "r" AND country = "australia" |
Write a SQL query that answers the following question: What is the country with a rank less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_98 WHERE rank < 2 |
Write a SQL query that answers the following question: What notes did Gabriella Bascelli receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (notes VARCHAR, athlete VARCHAR) | SELECT notes FROM table_name_41 WHERE athlete = "gabriella bascelli" |
Write a SQL query that answers the following question: What rank did the time of 7:31.90 receive? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90" |
Write a SQL query that answers the following question: Which Romaji Title has a Japanese Title of 女王の教室? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (romaji_title VARCHAR, japanese_title VARCHAR) | SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室" |
Write a SQL query that answers the following question: How many Episodes have a Romaji Title of slow dance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (episodes INTEGER, romaji_title VARCHAR) | SELECT SUM(episodes) FROM table_name_29 WHERE romaji_title = "slow dance" |
Write a SQL query that answers the following question: How many Episodes have a Romaji Title of dragon zakura? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (episodes VARCHAR, romaji_title VARCHAR) | SELECT COUNT(episodes) FROM table_name_90 WHERE romaji_title = "dragon zakura" |
Write a SQL query that answers the following question: Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (format VARCHAR, date VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_89 WHERE label = "columbia" AND catalog < 88697411432 AND date = "october 24, 2008" |
Write a SQL query that answers the following question: Which Catalog has a Date of july 15, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (catalog INTEGER, date VARCHAR) | SELECT AVG(catalog) FROM table_name_73 WHERE date = "july 15, 2011" |
Write a SQL query that answers the following question: Which opponent was on July 21, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_57 WHERE date = "july 21, 2008" |
Write a SQL query that answers the following question: What was the date of the tournament with a clay surface and an opponent of Irina Falconi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_43 WHERE surface = "clay" AND opponent = "irina falconi" |
Write a SQL query that answers the following question: Who was the opponent on May 10, 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_5 WHERE date = "may 10, 2009" |
Write a SQL query that answers the following question: What is the score of the home team, bath city? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_16 WHERE home_team = "bath city" |
Write a SQL query that answers the following question: What was the score for the away team southport? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_13 WHERE away_team = "southport" |
Write a SQL query that answers the following question: What is the home team that had an away team of lincoln city? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_21 WHERE away_team = "lincoln city" |
Write a SQL query that answers the following question: What date had a game with wycombe wanderers as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_28 WHERE away_team = "wycombe wanderers" |
Write a SQL query that answers the following question: How many places have an Artist of augustė, and a Draw smaller than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (place VARCHAR, artist VARCHAR, draw VARCHAR) | SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė" AND draw < 6 |
Write a SQL query that answers the following question: What is the latest year the world championships were held in Thun? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (year INTEGER, place VARCHAR) | SELECT MAX(year) FROM table_name_71 WHERE place = "thun" |
Write a SQL query that answers the following question: Who won gold when the world championships were held in Phoenix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR) | SELECT gold FROM table_name_21 WHERE place = "phoenix" |
Write a SQL query that answers the following question: What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (ansi_code INTEGER, land___sqmi__ VARCHAR, township VARCHAR, longitude VARCHAR, geo_id VARCHAR) | SELECT MIN(ansi_code) FROM table_name_18 WHERE longitude > -101.333926 AND geo_id < 3806700900 AND township = "adler" AND land___sqmi__ > 35.84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.