instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Who was the away team at the game attended by 81? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (away_team VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_6 WHERE attendance = "81" |
Write a SQL query that answers the following question: What score has a tie of 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_55 WHERE tie_no = "5" |
Write a SQL query that answers the following question: What was the date of the game that tied at 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_56 WHERE tie_no = "3" |
Write a SQL query that answers the following question: What is European Release Date, when North American Release Date is "2013-03-05"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (european_release_date VARCHAR, north_american_release_date VARCHAR) | SELECT european_release_date FROM table_name_50 WHERE north_american_release_date = "2013-03-05" |
Write a SQL query that answers the following question: What is Japanese Release Date, when Australia Release Date is "2006-03-23"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR) | SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = "2006-03-23" |
Write a SQL query that answers the following question: What is North American Release Date, when Japanese Release Date is "2011-06-23"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (north_american_release_date VARCHAR, japanese_release_date VARCHAR) | SELECT north_american_release_date FROM table_name_17 WHERE japanese_release_date = "2011-06-23" |
Write a SQL query that answers the following question: What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR) | SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12 |
Write a SQL query that answers the following question: What's the lowest goal difference when the position is higher than 16? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER) | SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16 |
Write a SQL query that answers the following question: Which venue was the opposing team New Zealand on 22/11/1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (venue VARCHAR, opposing_teams VARCHAR, date VARCHAR) | SELECT venue FROM table_name_11 WHERE opposing_teams = "new zealand" AND date = "22/11/1997" |
Write a SQL query that answers the following question: What day was the opposing team Australia and the against 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR) | SELECT date FROM table_name_77 WHERE against = 25 AND opposing_teams = "australia" |
Write a SQL query that answers the following question: What was the status for the opposing team South Africa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_9 WHERE opposing_teams = "south africa" |
Write a SQL query that answers the following question: What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR) | SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley" |
Write a SQL query that answers the following question: What is the Total Apps when League Cup Apps is 0 (1), and position is df? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (total_apps VARCHAR, league_cup_apps VARCHAR, position VARCHAR) | SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df" |
Write a SQL query that answers the following question: What is the total goals for Mark Ward? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (total_goals INTEGER, name VARCHAR) | SELECT MIN(total_goals) FROM table_name_64 WHERE name = "mark ward" |
Write a SQL query that answers the following question: What is the political party of Jackie Goldberg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (party VARCHAR, name VARCHAR) | SELECT party FROM table_name_85 WHERE name = "jackie goldberg" |
Write a SQL query that answers the following question: During what years was Christine Kehoe in Assembly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (years_in_assembly VARCHAR, name VARCHAR) | SELECT years_in_assembly FROM table_name_71 WHERE name = "christine kehoe" |
Write a SQL query that answers the following question: What were the San Francisco resident's years in assembly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (years_in_assembly VARCHAR, residence VARCHAR) | SELECT years_in_assembly FROM table_name_54 WHERE residence = "san francisco" |
Write a SQL query that answers the following question: What political party does the person from San Diego belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (party VARCHAR, residence VARCHAR) | SELECT party FROM table_name_75 WHERE residence = "san diego" |
Write a SQL query that answers the following question: Which Opposing Teams is on 06/02/1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (opposing_teams VARCHAR, date VARCHAR) | SELECT opposing_teams FROM table_name_18 WHERE date = "06/02/1988" |
Write a SQL query that answers the following question: When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (date VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR) | SELECT date FROM table_name_42 WHERE status = "five nations" AND venue = "twickenham , london" AND opposing_teams = "ireland" |
Write a SQL query that answers the following question: What's the attendance when the opponents are cambridge united? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (attendance VARCHAR, opponents VARCHAR) | SELECT attendance FROM table_name_12 WHERE opponents = "cambridge united" |
Write a SQL query that answers the following question: What's the average attendance when the opponents are dundalk? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (attendance INTEGER, opponents VARCHAR) | SELECT AVG(attendance) FROM table_name_85 WHERE opponents = "dundalk" |
Write a SQL query that answers the following question: What's the total attendance for H/A of A and opponents of wolverhampton wanderers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (attendance VARCHAR, h___a VARCHAR, opponents VARCHAR) | SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = "a" AND opponents = "wolverhampton wanderers" |
Write a SQL query that answers the following question: Which Total has a Gold smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (total INTEGER, gold INTEGER) | SELECT MIN(total) FROM table_name_44 WHERE gold < 4 |
Write a SQL query that answers the following question: Which Rank has a Nation of china (chn), and a Bronze smaller than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MAX(rank) FROM table_name_17 WHERE nation = "china (chn)" AND bronze < 4 |
Write a SQL query that answers the following question: How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_20 WHERE bronze < 13 AND nation = "netherlands (ned)" AND gold > 4 |
Write a SQL query that answers the following question: Which website was founded before 1897, and is located in Adaminaby? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (website VARCHAR, founded VARCHAR, suburb_town VARCHAR) | SELECT website FROM table_name_82 WHERE founded < 1897 AND suburb_town = "adaminaby" |
Write a SQL query that answers the following question: What is the average year founded that is located in Broken Hill and has school years of k-6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (founded INTEGER, years VARCHAR, suburb_town VARCHAR) | SELECT AVG(founded) FROM table_name_31 WHERE years = "k-6" AND suburb_town = "broken hill" |
Write a SQL query that answers the following question: What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (suburb_town VARCHAR, school VARCHAR, years VARCHAR, founded VARCHAR) | SELECT suburb_town FROM table_name_11 WHERE years = "k-6" AND founded < 1875 AND school = "ashfield public school" |
Write a SQL query that answers the following question: What is the year Airds High School was founded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (founded VARCHAR, school VARCHAR) | SELECT founded FROM table_name_65 WHERE school = "airds high school" |
Write a SQL query that answers the following question: Which website has 1921 as the year founded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (website VARCHAR, founded VARCHAR) | SELECT website FROM table_name_76 WHERE founded = 1921 |
Write a SQL query that answers the following question: What Score points has a Rank points of defending champion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score_points VARCHAR, rank_points VARCHAR) | SELECT score_points FROM table_name_80 WHERE rank_points = "defending champion" |
Write a SQL query that answers the following question: What Rank points has an Event of wc beijing, and Score points of 11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (rank_points VARCHAR, event VARCHAR, score_points VARCHAR) | SELECT rank_points FROM table_name_40 WHERE event = "wc beijing" AND score_points = "11" |
Write a SQL query that answers the following question: What Shooter has a Total of 28? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (shooter VARCHAR, total VARCHAR) | SELECT shooter FROM table_name_9 WHERE total = "28" |
Write a SQL query that answers the following question: What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (shooter VARCHAR, rank_points VARCHAR, event VARCHAR, total VARCHAR) | SELECT shooter FROM table_name_21 WHERE event = "wc beijing" AND total = "16" AND rank_points = "4" |
Write a SQL query that answers the following question: What is the average against of Murrayfield, Edinburgh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (against INTEGER, venue VARCHAR) | SELECT AVG(against) FROM table_name_13 WHERE venue = "murrayfield, edinburgh" |
Write a SQL query that answers the following question: What is the status of the Wales opposing team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_70 WHERE opposing_teams = "wales" |
Write a SQL query that answers the following question: What date has an against of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (date VARCHAR, against VARCHAR) | SELECT date FROM table_name_95 WHERE against = 7 |
Write a SQL query that answers the following question: What District was Incumbent Steve Israel First elected after 1998 in the Democratic party? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, party VARCHAR) | SELECT district FROM table_name_1 WHERE first_elected > 1998 AND party = "democratic" AND incumbent = "steve israel" |
Write a SQL query that answers the following question: What are the results of a first elected prior to year 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (results VARCHAR, first_elected INTEGER) | SELECT results FROM table_name_48 WHERE first_elected < 1982 |
Write a SQL query that answers the following question: Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (incumbent VARCHAR, district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) | SELECT incumbent FROM table_name_45 WHERE party = "democratic" AND results = "re-elected" AND first_elected > 1992 AND district = "new york 1" |
Write a SQL query that answers the following question: What is Gene Sauers' to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_28 WHERE player = "gene sauers" |
Write a SQL query that answers the following question: Where is john daly of united states from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_77 WHERE country = "united states" AND player = "john daly" |
Write a SQL query that answers the following question: What is the average rank of the city of el paso, which has a population greater than 672,538? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (rank INTEGER, city VARCHAR, population VARCHAR) | SELECT AVG(rank) FROM table_name_69 WHERE city = "el paso" AND population > 672 OFFSET 538 |
Write a SQL query that answers the following question: What is the state of the city of denver, which has a rank less than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (state VARCHAR, rank VARCHAR, city VARCHAR) | SELECT state FROM table_name_99 WHERE rank < 10 AND city = "denver" |
Write a SQL query that answers the following question: What is the result when the round is less than 3, the location is in Auckland, New Zealand, and tko is the method? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (result VARCHAR, method VARCHAR, round VARCHAR, location VARCHAR) | SELECT result FROM table_name_29 WHERE round < 3 AND location = "auckland, new zealand" AND method = "tko" |
Write a SQL query that answers the following question: What is the smallest round to have a record of 4-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (round INTEGER, record VARCHAR) | SELECT MIN(round) FROM table_name_95 WHERE record = "4-0" |
Write a SQL query that answers the following question: What is the result of a round greater than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (result VARCHAR, round INTEGER) | SELECT result FROM table_name_55 WHERE round > 3 |
Write a SQL query that answers the following question: Which event has Toa Naketoatama as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_92 WHERE opponent = "toa naketoatama" |
Write a SQL query that answers the following question: How many kills have 15 as the injured, with a year prior to 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (killed INTEGER, injured VARCHAR, year VARCHAR) | SELECT SUM(killed) FROM table_name_4 WHERE injured = "15" AND year < 1987 |
Write a SQL query that answers the following question: What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR) | SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein" |
Write a SQL query that answers the following question: What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (against INTEGER, status VARCHAR, opposing_teams VARCHAR) | SELECT AVG(against) FROM table_name_74 WHERE status = "2007 rugby world cup" AND opposing_teams = "u.s.a." |
Write a SQL query that answers the following question: What is Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when Date is "08/09/2007"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR) | SELECT venue FROM table_name_22 WHERE status = "2007 rugby world cup" AND against < 22 AND date = "08/09/2007" |
Write a SQL query that answers the following question: What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (against INTEGER, status VARCHAR, date VARCHAR) | SELECT MIN(against) FROM table_name_42 WHERE status = "first test" AND date = "26/05/2007" |
Write a SQL query that answers the following question: What is Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (opposing_teams VARCHAR, against VARCHAR, venue VARCHAR) | SELECT opposing_teams FROM table_name_35 WHERE against = 20 AND venue = "twickenham , london" |
Write a SQL query that answers the following question: What is the record when Danilo Pereira was the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_58 WHERE opponent = "danilo pereira" |
Write a SQL query that answers the following question: Which event had Edson Claas Vieira as an opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_55 WHERE opponent = "edson claas vieira" |
Write a SQL query that answers the following question: Which method was used when Rafael Cavalcante was the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_2 WHERE opponent = "rafael cavalcante" |
Write a SQL query that answers the following question: Which method was used when Alessio Sakara was the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_38 WHERE opponent = "alessio sakara" |
Write a SQL query that answers the following question: Who is the opponent when the record is 3-8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_53 WHERE record = "3-8" |
Write a SQL query that answers the following question: What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR) | SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19 |
Write a SQL query that answers the following question: What is the total fat with a smoke point of °c (), 25g of saturated fat? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (total_fat VARCHAR, smoke_point VARCHAR, saturated_fat VARCHAR) | SELECT total_fat FROM table_name_60 WHERE smoke_point = "°c ()" AND saturated_fat = "25g" |
Write a SQL query that answers the following question: What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (total_fat VARCHAR, polyunsaturated_fat VARCHAR, monounsaturated_fat VARCHAR) | SELECT total_fat FROM table_name_63 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "73g" |
Write a SQL query that answers the following question: What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (smoke_point VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR) | SELECT smoke_point FROM table_name_97 WHERE total_fat = "100g" AND monounsaturated_fat = "46g" |
Write a SQL query that answers the following question: What shows for monounsaturated fat when the saturated fat is 39g? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR) | SELECT monounsaturated_fat FROM table_name_32 WHERE saturated_fat = "39g" |
Write a SQL query that answers the following question: What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (smoke_point VARCHAR, polyunsaturated_fat VARCHAR) | SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = "69g (4g in high oleic variety)" |
Write a SQL query that answers the following question: What is the saturated fat when the total fat is 100g, and polyunsaturated fat is 69g (4g in high oleic variety)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (saturated_fat VARCHAR, total_fat VARCHAR, polyunsaturated_fat VARCHAR) | SELECT saturated_fat FROM table_name_63 WHERE total_fat = "100g" AND polyunsaturated_fat = "69g (4g in high oleic variety)" |
Write a SQL query that answers the following question: What is the Tie No with a Score of 2–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tie_no VARCHAR, score VARCHAR) | SELECT tie_no FROM table_name_26 WHERE score = "2–2" |
Write a SQL query that answers the following question: What is the Date of the Crystal Palace Away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_33 WHERE away_team = "crystal palace" |
Write a SQL query that answers the following question: What is the Home team of Tie no 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_20 WHERE tie_no = "2" |
Write a SQL query that answers the following question: What is the Home team of tie no 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_36 WHERE tie_no = "2" |
Write a SQL query that answers the following question: What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR) | SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = "honda cbr1000rr" AND rider = "jason pridmore" |
Write a SQL query that answers the following question: What is the highest Laps, when Bike is "Yamaha YZF-R1", when Rider is "David Checa", and when Grid is greater than 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (laps INTEGER, grid VARCHAR, bike VARCHAR, rider VARCHAR) | SELECT MAX(laps) FROM table_name_78 WHERE bike = "yamaha yzf-r1" AND rider = "david checa" AND grid > 18 |
Write a SQL query that answers the following question: What is the sum of Grid, when Time is "+16.687"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (grid INTEGER, time VARCHAR) | SELECT SUM(grid) FROM table_name_60 WHERE time = "+16.687" |
Write a SQL query that answers the following question: What is the total number of Grid, when Laps is greater than 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (grid VARCHAR, laps INTEGER) | SELECT COUNT(grid) FROM table_name_78 WHERE laps > 24 |
Write a SQL query that answers the following question: Who was the runner-up after season 2 when the total prize money was $108,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (runner_up VARCHAR, season VARCHAR, total_prize_money VARCHAR) | SELECT runner_up FROM table_name_27 WHERE season > 2 AND total_prize_money = "$108,000" |
Write a SQL query that answers the following question: What was the highest season number with a total prize of $108,000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (season INTEGER, total_prize_money VARCHAR) | SELECT MAX(season) FROM table_name_17 WHERE total_prize_money = "$108,000" |
Write a SQL query that answers the following question: What is the earliest season where Aisha Jefcoate was the runner-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (season INTEGER, runner_up VARCHAR) | SELECT MIN(season) FROM table_name_13 WHERE runner_up = "aisha jefcoate" |
Write a SQL query that answers the following question: When the Mole was Petrina Edge, what was the potential prize money? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (potential_prize_money VARCHAR, mole VARCHAR) | SELECT potential_prize_money FROM table_name_70 WHERE mole = "petrina edge" |
Write a SQL query that answers the following question: Which Share has a weekly Rank of 8 and is dated 15 June? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR) | SELECT share FROM table_name_12 WHERE weekly_rank = "8" AND date = "15 june" |
Write a SQL query that answers the following question: Which Weekly Rank has an Official ratings (millions) of 11.58? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (weekly_rank VARCHAR, official_ratings__millions_ VARCHAR) | SELECT weekly_rank FROM table_name_82 WHERE official_ratings__millions_ = 11.58 |
Write a SQL query that answers the following question: Which Show is dated 9 June? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (show VARCHAR, date VARCHAR) | SELECT show FROM table_name_39 WHERE date = "9 june" |
Write a SQL query that answers the following question: Which Weekly Rank for a Live Final Show has an Official Ratings (millions) greater than 5.2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (weekly_rank VARCHAR, official_ratings__millions_ VARCHAR, show VARCHAR) | SELECT weekly_rank FROM table_name_8 WHERE official_ratings__millions_ > 5.2 AND show = "live final" |
Write a SQL query that answers the following question: What is the status with the opposing team of Scotland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_9 WHERE opposing_teams = "scotland" |
Write a SQL query that answers the following question: What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR) | SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND status = "five nations" AND opposing_teams = "ireland" |
Write a SQL query that answers the following question: Which Venue has a Against smaller than 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (venue VARCHAR, against INTEGER) | SELECT venue FROM table_name_31 WHERE against < 7 |
Write a SQL query that answers the following question: When has a Status of five nations, and a Against of 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (date VARCHAR, status VARCHAR, against VARCHAR) | SELECT date FROM table_name_71 WHERE status = "five nations" AND against = 7 |
Write a SQL query that answers the following question: Which Venue has a Against larger than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (venue VARCHAR, against INTEGER) | SELECT venue FROM table_name_16 WHERE against > 13 |
Write a SQL query that answers the following question: Name the Against which has a Venue of wembley stadium , london? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (against INTEGER, venue VARCHAR) | SELECT MAX(against) FROM table_name_91 WHERE venue = "wembley stadium , london" |
Write a SQL query that answers the following question: Which wins have less than 1 bye? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (wins INTEGER, byes INTEGER) | SELECT MAX(wins) FROM table_name_29 WHERE byes < 1 |
Write a SQL query that answers the following question: Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (against INTEGER, club VARCHAR, losses VARCHAR, wins VARCHAR) | SELECT MIN(against) FROM table_name_38 WHERE losses > 10 AND wins < 4 AND club = "dunolly" |
Write a SQL query that answers the following question: Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (byes INTEGER, wins VARCHAR, against VARCHAR, club VARCHAR) | SELECT AVG(byes) FROM table_name_45 WHERE against < 1297 AND club = "avoca" AND wins > 12 |
Write a SQL query that answers the following question: What Kit/Factory has a J250 model made by Jabiru? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (kit_factory VARCHAR, manufacturer VARCHAR, model VARCHAR) | SELECT kit_factory FROM table_name_90 WHERE manufacturer = "jabiru" AND model = "j250" |
Write a SQL query that answers the following question: When was the duchess, who was married on 11 july 1643, born? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (birth VARCHAR, marriage VARCHAR) | SELECT birth FROM table_name_12 WHERE marriage = "11 july 1643" |
Write a SQL query that answers the following question: When was anne of lorraine born? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (birth VARCHAR, name VARCHAR) | SELECT birth FROM table_name_91 WHERE name = "anne of lorraine" |
Write a SQL query that answers the following question: When did the duchess, who was married to philippe, die? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (death VARCHAR, spouse VARCHAR) | SELECT death FROM table_name_56 WHERE spouse = "philippe" |
Write a SQL query that answers the following question: When did the woman, who was married 22 may 1657, cease to be the duchess? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (ceased_to_be_duchess VARCHAR, marriage VARCHAR) | SELECT ceased_to_be_duchess FROM table_name_59 WHERE marriage = "22 may 1657" |
Write a SQL query that answers the following question: What is the score of the game with a tie no of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_14 WHERE tie_no = "3" |
Write a SQL query that answers the following question: Who did home team sunderland play on 23 january 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland" |
Write a SQL query that answers the following question: What is the score of the game against away team queens park rangers on 23 january 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_63 WHERE date = "23 january 1982" AND away_team = "queens park rangers" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.