instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: In what stadium was the friendly match on 2 June 1992 played in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (venue VARCHAR, competition VARCHAR, date VARCHAR) | SELECT venue FROM table_name_2 WHERE competition = "friendly match" AND date = "2 june 1992" |
Write a SQL query that answers the following question: What was the score of the 1998 FIFA World Cup qualification competition? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_25 WHERE competition = "1998 fifa world cup qualification" |
Write a SQL query that answers the following question: Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (date VARCHAR, competition VARCHAR, result VARCHAR) | SELECT date FROM table_name_72 WHERE competition = "welsh rugby union challenge trophy" AND result = "34-34" |
Write a SQL query that answers the following question: Name the Result of new zealand Nationality / Opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (result VARCHAR, nationality___opponent VARCHAR) | SELECT result FROM table_name_56 WHERE nationality___opponent = "new zealand" |
Write a SQL query that answers the following question: Name Nationality / Opponent on 10 january 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (nationality___opponent VARCHAR, date VARCHAR) | SELECT nationality___opponent FROM table_name_25 WHERE date = "10 january 1998" |
Write a SQL query that answers the following question: Name The Ground on 18 january 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (ground VARCHAR, date VARCHAR) | SELECT ground FROM table_name_25 WHERE date = "18 january 1998" |
Write a SQL query that answers the following question: Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (nationality___opponent VARCHAR, competition VARCHAR, result VARCHAR) | SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-29" |
Write a SQL query that answers the following question: Name the Nationality / Opponent of rosario? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (competition VARCHAR, nationality___opponent VARCHAR) | SELECT competition FROM table_name_64 WHERE nationality___opponent = "rosario" |
Write a SQL query that answers the following question: What team 1 has a team 2 of universidad nacional? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_4 WHERE team_2 = "universidad nacional" |
Write a SQL query that answers the following question: What team 2 has a team 1 of harbour view? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_82 WHERE team_1 = "harbour view" |
Write a SQL query that answers the following question: What's the 2nd leg for team 2 san francisco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco" |
Write a SQL query that answers the following question: What's the 1st leg of team 1 alajuelense? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_50 WHERE team_1 = "alajuelense" |
Write a SQL query that answers the following question: What was the format for catalog 660-51-015? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_51 WHERE catalog = "660-51-015" |
Write a SQL query that answers the following question: Which region had the year May 1974? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (region VARCHAR, year VARCHAR) | SELECT region FROM table_name_77 WHERE year = "may 1974" |
Write a SQL query that answers the following question: Which region had a year March 10, 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (region VARCHAR, year VARCHAR) | SELECT region FROM table_name_17 WHERE year = "march 10, 1998" |
Write a SQL query that answers the following question: What is the first party for Lord John Hay earlier than 1857? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (first_party VARCHAR, year VARCHAR, first_member VARCHAR) | SELECT first_party FROM table_name_82 WHERE year < 1857 AND first_member = "lord john hay" |
Write a SQL query that answers the following question: Who is the second member more recently than 1790 when John Williams is the first member? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (second_member VARCHAR, year VARCHAR, first_member VARCHAR) | SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams" |
Write a SQL query that answers the following question: Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (second_member VARCHAR, first_member VARCHAR, first_party VARCHAR, year VARCHAR) | SELECT second_member FROM table_name_15 WHERE first_party = "tory" AND year < 1804 AND first_member = "henry isherwood" |
Write a SQL query that answers the following question: Who is the second member when RT Hon. Edward Stanley is the first member? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (second_member VARCHAR, first_member VARCHAR) | SELECT second_member FROM table_name_14 WHERE first_member = "rt hon. edward stanley" |
Write a SQL query that answers the following question: What is the second party where the first party is Tory and the year is 1820? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (second_party VARCHAR, first_party VARCHAR, year VARCHAR) | SELECT second_party FROM table_name_88 WHERE first_party = "tory" AND year = 1820 |
Write a SQL query that answers the following question: Who is the player who won in 1993? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_83 WHERE year_s__won = "1993" |
Write a SQL query that answers the following question: What years did the player with a t71 finish win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year_s__won VARCHAR, finish VARCHAR) | SELECT year_s__won FROM table_name_68 WHERE finish = "t71" |
Write a SQL query that answers the following question: What year did player payne stewart win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year_s__won VARCHAR, player VARCHAR) | SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart" |
Write a SQL query that answers the following question: What year did the player with a t3 finish win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year_s__won VARCHAR, finish VARCHAR) | SELECT year_s__won FROM table_name_84 WHERE finish = "t3" |
Write a SQL query that answers the following question: What is the lowest total of the player with a t41 finish? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (total INTEGER, finish VARCHAR) | SELECT MIN(total) FROM table_name_25 WHERE finish = "t41" |
Write a SQL query that answers the following question: In what Battle was Bulgarian Commander of Gavril Radomir? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (battle VARCHAR, bulgarian_commander VARCHAR) | SELECT battle FROM table_name_24 WHERE bulgarian_commander = "gavril radomir" |
Write a SQL query that answers the following question: What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, result VARCHAR, battle VARCHAR) | SELECT date FROM table_name_55 WHERE result = "bulgarian victory" AND battle = "battle of arcadiopolis" |
Write a SQL query that answers the following question: What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR) | SELECT bulgarian_commander FROM table_name_41 WHERE battle = "battle of thessalonica" AND date = "autumn 1040" |
Write a SQL query that answers the following question: What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR) | SELECT byzantine_commander FROM table_name_44 WHERE result = "bulgarian victory" AND battle = "siege of lovech" |
Write a SQL query that answers the following question: What is the Result of the Battle of Marcellae in 756? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (result VARCHAR, battle VARCHAR, date VARCHAR) | SELECT result FROM table_name_85 WHERE battle = "battle of marcellae" AND date = "756" |
Write a SQL query that answers the following question: What is the date of Gavril Radomir's Bulgarian Victory? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR) | SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir" |
Write a SQL query that answers the following question: What was the wind at New York City when the rank was smaller than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (wind VARCHAR, rank VARCHAR, location VARCHAR) | SELECT wind FROM table_name_18 WHERE rank < 6 AND location = "new york city" |
Write a SQL query that answers the following question: What was the highest rink for Kingston? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (rank INTEGER, location VARCHAR) | SELECT MAX(rank) FROM table_name_94 WHERE location = "kingston" |
Write a SQL query that answers the following question: What is the average first elected for the district South Carolina 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (first_elected INTEGER, district VARCHAR) | SELECT AVG(first_elected) FROM table_name_75 WHERE district = "south carolina 2" |
Write a SQL query that answers the following question: Who was the first elected for the republican party? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (first_elected VARCHAR, party VARCHAR) | SELECT first_elected FROM table_name_82 WHERE party = "republican" |
Write a SQL query that answers the following question: What party has the South Carolina 2 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (party VARCHAR, district VARCHAR) | SELECT party FROM table_name_91 WHERE district = "south carolina 2" |
Write a SQL query that answers the following question: What is the type for Cassano? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) | SELECT type FROM table_name_46 WHERE name = "cassano" |
Write a SQL query that answers the following question: What nationality is Diogo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (nat VARCHAR, name VARCHAR) | SELECT nat FROM table_name_53 WHERE name = "diogo" |
Write a SQL query that answers the following question: What is the name of the player with a winter transfer window moving from Roma? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (name VARCHAR, transfer_window VARCHAR, moving_from VARCHAR) | SELECT name FROM table_name_79 WHERE transfer_window = "winter" AND moving_from = "roma" |
Write a SQL query that answers the following question: What pressure is Ken? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (pressure VARCHAR, name VARCHAR) | SELECT pressure FROM table_name_80 WHERE name = "ken" |
Write a SQL query that answers the following question: In which round was Barbara Hawcroft the loser? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (round VARCHAR, loser VARCHAR) | SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft" |
Write a SQL query that answers the following question: In which year is Nerida Gregory listed as the loser? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year INTEGER, loser VARCHAR) | SELECT AVG(year) FROM table_name_13 WHERE loser = "nerida gregory" |
Write a SQL query that answers the following question: In which year did Misaki Doi lose the Australian Open Grand Slam? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year INTEGER, grand_slam VARCHAR, loser VARCHAR) | SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi" |
Write a SQL query that answers the following question: Which Polish Cup has a Puchat Ligi larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER) | SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 0 |
Write a SQL query that answers the following question: Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (player VARCHAR, uefa_cup VARCHAR, total VARCHAR, ekstraklasa VARCHAR) | SELECT player FROM table_name_43 WHERE total = 3 AND ekstraklasa < 3 AND uefa_cup = 2 |
Write a SQL query that answers the following question: Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (puchat_ligi INTEGER, uefa_cup VARCHAR, player VARCHAR) | SELECT MIN(puchat_ligi) FROM table_name_64 WHERE uefa_cup < 2 AND player = "takesure chinyama" |
Write a SQL query that answers the following question: How much Ekstraklasa has a Total smaller than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (ekstraklasa INTEGER, total INTEGER) | SELECT SUM(ekstraklasa) FROM table_name_98 WHERE total < 3 |
Write a SQL query that answers the following question: How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (puchat_ligi INTEGER, total VARCHAR, ekstraklasa VARCHAR) | SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1 |
Write a SQL query that answers the following question: Which player has a to par greater than 11, with a total less than 155? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (player VARCHAR, to_par VARCHAR, total VARCHAR) | SELECT player FROM table_name_74 WHERE to_par > 11 AND total < 155 |
Write a SQL query that answers the following question: What country has a to par less than 13, with wayne grady as the player? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_6 WHERE to_par < 13 AND player = "wayne grady" |
Write a SQL query that answers the following question: Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (points_1 INTEGER, lost VARCHAR, drawn VARCHAR, goal_difference VARCHAR) | SELECT MAX(points_1) FROM table_name_36 WHERE drawn = 5 AND goal_difference = "+58" AND lost > 4 |
Write a SQL query that answers the following question: Which Lost has Goals Against larger than 92? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (lost INTEGER, goals_against INTEGER) | SELECT MAX(lost) FROM table_name_13 WHERE goals_against > 92 |
Write a SQL query that answers the following question: Which Points 1 has a Team of atherton collieries, and a Position smaller than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (points_1 INTEGER, team VARCHAR, position VARCHAR) | SELECT MAX(points_1) FROM table_name_11 WHERE team = "atherton collieries" AND position < 8 |
Write a SQL query that answers the following question: How much Played has a Position of 7, and a Drawn smaller than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (played INTEGER, position VARCHAR, drawn VARCHAR) | SELECT SUM(played) FROM table_name_72 WHERE position = 7 AND drawn < 7 |
Write a SQL query that answers the following question: How much Drawn has Points 1 of 51, and a Lost larger than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (drawn VARCHAR, points_1 VARCHAR, lost VARCHAR) | SELECT COUNT(drawn) FROM table_name_5 WHERE points_1 = 51 AND lost > 5 |
Write a SQL query that answers the following question: When was the aircraft introduced that could seat 115 people? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (introduced INTEGER, seating VARCHAR) | SELECT AVG(introduced) FROM table_name_30 WHERE seating = "115" |
Write a SQL query that answers the following question: What year was the aircraft retired when it was replaced by 737-300s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (retired VARCHAR, notes VARCHAR) | SELECT retired FROM table_name_91 WHERE notes = "replaced by 737-300s" |
Write a SQL query that answers the following question: What aircraft was introduced in 2004 and has a retired of —? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (aircraft VARCHAR, retired VARCHAR, introduced VARCHAR) | SELECT aircraft FROM table_name_83 WHERE retired = "—" AND introduced = 2004 |
Write a SQL query that answers the following question: Which aircraft has 148/9 seating? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (aircraft VARCHAR, seating VARCHAR) | SELECT aircraft FROM table_name_88 WHERE seating = "148/9" |
Write a SQL query that answers the following question: How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (seating VARCHAR, notes VARCHAR, introduced VARCHAR) | SELECT seating FROM table_name_6 WHERE notes = "in service" AND introduced = 2008 |
Write a SQL query that answers the following question: What is the nationality of the player who was previously with the Detroit Pistons? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (nationality VARCHAR, previous_team VARCHAR) | SELECT nationality FROM table_name_55 WHERE previous_team = "detroit pistons" |
Write a SQL query that answers the following question: What is the career with the franchise of the f/c player with fewer than 9 years of NBA experience who previously played for the Phoenix Suns? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (career_with_the_franchise VARCHAR, previous_team VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) | SELECT career_with_the_franchise FROM table_name_47 WHERE years_of_nba_experience_[a_] < 9 AND pos = "f/c" AND previous_team = "phoenix suns" |
Write a SQL query that answers the following question: What was the tie number when Bournemouth was the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_79 WHERE home_team = "bournemouth" |
Write a SQL query that answers the following question: Who was the away team when the home team was Norwich City? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_83 WHERE home_team = "norwich city" |
Write a SQL query that answers the following question: On what date was Wimbledon the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_81 WHERE home_team = "wimbledon" |
Write a SQL query that answers the following question: On what date was the away team West Ham United? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_70 WHERE away_team = "west ham united" |
Write a SQL query that answers the following question: On what date was the away team Bournemouth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_24 WHERE away_team = "bournemouth" |
Write a SQL query that answers the following question: What district has abhayapuri south as the name? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (district VARCHAR, name VARCHAR) | SELECT district FROM table_name_41 WHERE name = "abhayapuri south" |
Write a SQL query that answers the following question: Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND rank < 5 |
Write a SQL query that answers the following question: Which Rank has a Gold larger than 1, and a Bronze of 4, and a Silver smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (rank INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT MAX(rank) FROM table_name_90 WHERE gold > 1 AND bronze = 4 AND silver < 1 |
Write a SQL query that answers the following question: Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (rank INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT MIN(rank) FROM table_name_91 WHERE gold = 3 AND bronze = 4 AND total > 8 |
Write a SQL query that answers the following question: How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR) | SELECT SUM(total) FROM table_name_87 WHERE rank < 10 AND silver > 3 AND gold > 3 |
Write a SQL query that answers the following question: Which Total has a Rank of 9, and a Silver smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (total INTEGER, rank VARCHAR, silver VARCHAR) | SELECT MAX(total) FROM table_name_37 WHERE rank = 9 AND silver < 2 |
Write a SQL query that answers the following question: What event had Xu Zhilin competing? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR) | SELECT event FROM table_name_21 WHERE name = "xu zhilin" |
Write a SQL query that answers the following question: What sport has Ma Yuxi in it? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (sport VARCHAR, name VARCHAR) | SELECT sport FROM table_name_26 WHERE name = "ma yuxi" |
Write a SQL query that answers the following question: How many years is Antonio Pompa-Baldi Italy first? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (year VARCHAR, first VARCHAR) | SELECT COUNT(year) FROM table_name_36 WHERE first = "antonio pompa-baldi italy" |
Write a SQL query that answers the following question: Who is fourth when Anders Martinson USA is second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (fourth VARCHAR, second VARCHAR) | SELECT fourth FROM table_name_98 WHERE second = "anders martinson usa" |
Write a SQL query that answers the following question: Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR) | SELECT SUM(wins) FROM table_name_47 WHERE club = "abuls smiltene" AND goals_for < 18 |
Write a SQL query that answers the following question: Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (wins INTEGER, goal_difference VARCHAR, draws VARCHAR) | SELECT AVG(wins) FROM table_name_42 WHERE goal_difference > -24 AND draws > 7 |
Write a SQL query that answers the following question: Can you tell me the highest Draws that has the Goal Difference smaller than 64, and the Played larger than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (draws INTEGER, goal_difference VARCHAR, played VARCHAR) | SELECT MAX(draws) FROM table_name_5 WHERE goal_difference < 64 AND played > 30 |
Write a SQL query that answers the following question: Can you tell me the highest Points that has the Played smaller than 30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (points INTEGER, played INTEGER) | SELECT MAX(points) FROM table_name_67 WHERE played < 30 |
Write a SQL query that answers the following question: What rank was the country with no bronze but at least 1 silver medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (rank INTEGER, bronze VARCHAR, silver VARCHAR) | SELECT AVG(rank) FROM table_name_57 WHERE bronze < 1 AND silver > 1 |
Write a SQL query that answers the following question: What is the smallest number of gold medals a country with 1 bronze, and a total of 3 medals which is lower than rank 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (gold INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT MIN(gold) FROM table_name_48 WHERE bronze = 1 AND total = 3 AND rank > 7 |
Write a SQL query that answers the following question: What is the smallest number of gold medals a country with 7 medals has? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR) | SELECT MIN(gold) FROM table_name_23 WHERE total = 7 |
Write a SQL query that answers the following question: Can you tell me the Host City that has the Games of vii? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (host_city VARCHAR, games VARCHAR) | SELECT host_city FROM table_name_35 WHERE games = "vii" |
Write a SQL query that answers the following question: What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR) | SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = "drama desk award" AND category = "outstanding featured actor in a musical" |
Write a SQL query that answers the following question: What year was Evita nominated for outstanding featured actor in a musical? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year VARCHAR, category VARCHAR, nominated_work VARCHAR) | SELECT COUNT(year) FROM table_name_25 WHERE category = "outstanding featured actor in a musical" AND nominated_work = "evita" |
Write a SQL query that answers the following question: What was the nominated work, nominated for the drama league award before 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR) | SELECT nominated_work FROM table_name_29 WHERE result = "nominated" AND award = "drama league award" AND year < 2007 |
Write a SQL query that answers the following question: Who had the pole position on 7 August? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (pole_position VARCHAR, date VARCHAR) | SELECT pole_position FROM table_name_2 WHERE date = "7 august" |
Write a SQL query that answers the following question: Who was the winning team at Zandvoort? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (winning_team VARCHAR, circuit VARCHAR) | SELECT winning_team FROM table_name_6 WHERE circuit = "zandvoort" |
Write a SQL query that answers the following question: Which Losses have Wins smaller than 6, and a South West DFL of sandford? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (losses INTEGER, wins VARCHAR, south_west_dfl VARCHAR) | SELECT MIN(losses) FROM table_name_39 WHERE wins < 6 AND south_west_dfl = "sandford" |
Write a SQL query that answers the following question: How much Against has Draws of 2, and Losses smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (against INTEGER, draws VARCHAR, losses VARCHAR) | SELECT SUM(against) FROM table_name_17 WHERE draws = 2 AND losses < 4 |
Write a SQL query that answers the following question: How many Losses have South West DFL of coleraine, and an Against smaller than 891? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR) | SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891 |
Write a SQL query that answers the following question: What is the lowest played number when goals for is 47, and wins is smaller than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (played INTEGER, goals_for VARCHAR, wins VARCHAR) | SELECT MIN(played) FROM table_name_48 WHERE goals_for = 47 AND wins < 14 |
Write a SQL query that answers the following question: What Club has 13 wins, goals against less than 48, and a position of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (club VARCHAR, position VARCHAR, wins VARCHAR, goals_against VARCHAR) | SELECT club FROM table_name_26 WHERE wins = 13 AND goals_against < 48 AND position = 4 |
Write a SQL query that answers the following question: What is the lowest position number when goals against was 59, and a goals for is smaller than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (position INTEGER, goals_against VARCHAR, goals_for VARCHAR) | SELECT MIN(position) FROM table_name_92 WHERE goals_against = 59 AND goals_for < 24 |
Write a SQL query that answers the following question: What is the highest goals against when points are larger than 31, the goal difference is smaller than 9, wins are 13, and draws are larger than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (goals_against INTEGER, draws VARCHAR, wins VARCHAR, points VARCHAR, goal_difference VARCHAR) | SELECT MAX(goals_against) FROM table_name_12 WHERE points > 31 AND goal_difference < 9 AND wins = 13 AND draws > 6 |
Write a SQL query that answers the following question: What is the lowest played number when points are larger than 32, and a wins are larger than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, wins VARCHAR) | SELECT MIN(played) FROM table_name_52 WHERE points > 32 AND wins > 18 |
Write a SQL query that answers the following question: Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (against INTEGER, status VARCHAR, date VARCHAR) | SELECT MAX(against) FROM table_name_35 WHERE status = "six nations" AND date = "02/03/2002" |
Write a SQL query that answers the following question: Can you tell me the average Against thaylt has the Date of 23/03/2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (against INTEGER, date VARCHAR) | SELECT AVG(against) FROM table_name_44 WHERE date = "23/03/2002" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.