instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What's the highest amount of losses of Camperdown when the against was less than 945? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR) | SELECT MAX(losses) FROM table_name_81 WHERE club = "camperdown" AND against < 945 |
Write a SQL query that answers the following question: what is the sum of league goals when the fa cup goals is more than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER) | SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 0 |
Write a SQL query that answers the following question: what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR) | SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = "1" AND total_apps = "35" |
Write a SQL query that answers the following question: what is the average league cup goals when the position is df and total goals is more than 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (league_cup_goals INTEGER, position VARCHAR, total_goals VARCHAR) | SELECT AVG(league_cup_goals) FROM table_name_78 WHERE position = "df" AND total_goals > 4 |
Write a SQL query that answers the following question: what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (fa_cup_goals INTEGER, position VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR) | SELECT AVG(fa_cup_goals) FROM table_name_80 WHERE fa_cup_apps = "0" AND total_goals < 1 AND position = "df" |
Write a SQL query that answers the following question: What year had a score of 0.586? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year VARCHAR, score VARCHAR) | SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586" |
Write a SQL query that answers the following question: What's the n Africa in 2012 with an N/A as the CPLP? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (n_africa_rank VARCHAR, year VARCHAR, cplp_rank VARCHAR) | SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a" |
Write a SQL query that answers the following question: What was the final venue for 82 delegates? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (finals_venue VARCHAR, number_of_delegates VARCHAR) | SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = "82" |
Write a SQL query that answers the following question: Which Artist has a Record label of vertigo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (artist VARCHAR, record_label VARCHAR) | SELECT artist FROM table_name_86 WHERE record_label = "vertigo" |
Write a SQL query that answers the following question: Who is the president when c-span 2009 is 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (president VARCHAR, c_span_2009 VARCHAR) | SELECT president FROM table_name_57 WHERE c_span_2009 = "21" |
Write a SQL query that answers the following question: what is c-span 2009 when times 2008** is 08? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (c_span_2009 VARCHAR, times_2008 VARCHAR) | SELECT c_span_2009 FROM table_name_80 WHERE times_2008 * * = "08" |
Write a SQL query that answers the following question: what is siena 2002 when the president is andrew jackson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (siena_2002 VARCHAR, president VARCHAR) | SELECT siena_2002 FROM table_name_96 WHERE president = "andrew jackson" |
Write a SQL query that answers the following question: Which Location has a Home Ground of Mong kok stadium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (location VARCHAR, home_ground VARCHAR) | SELECT location FROM table_name_14 WHERE home_ground = "mong kok stadium" |
Write a SQL query that answers the following question: Which club is in the First division? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (club VARCHAR, league_division VARCHAR) | SELECT club FROM table_name_14 WHERE league_division = "first division" |
Write a SQL query that answers the following question: What is the Home Ground with the Location n/a for the Club kcdrsc? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR) | SELECT home_ground FROM table_name_39 WHERE location = "n/a" AND club = "kcdrsc" |
Write a SQL query that answers the following question: What League/Division has a Location of n/a? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (league_division VARCHAR, location VARCHAR) | SELECT league_division FROM table_name_29 WHERE location = "n/a" |
Write a SQL query that answers the following question: What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR) | SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)" |
Write a SQL query that answers the following question: What was the rank of the team who raced at a time of 7:16.13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (rank VARCHAR, time VARCHAR) | SELECT rank FROM table_name_76 WHERE time = "7:16.13" |
Write a SQL query that answers the following question: What is the total number of rank for the country of greece? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (rank VARCHAR, country VARCHAR) | SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece" |
Write a SQL query that answers the following question: What country were the athletes where ranked smaller than 5 with notes listed as fb? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (country VARCHAR, rank VARCHAR, notes VARCHAR) | SELECT country FROM table_name_67 WHERE rank < 5 AND notes = "fb" |
Write a SQL query that answers the following question: What is the time for the race with the United States? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_63 WHERE country = "united states" |
Write a SQL query that answers the following question: What shirt No has a Birth Date of April 12, 1986 (age27)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (shirt_no INTEGER, birth_date VARCHAR) | SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)" |
Write a SQL query that answers the following question: What position that has a Height larger than 179, and Player is Ezgi Arslan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR) | SELECT position FROM table_name_54 WHERE height > 179 AND player = "ezgi arslan" |
Write a SQL query that answers the following question: What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR) | SELECT SUM(shirt_no) FROM table_name_11 WHERE position = "setter" AND nationality = "italy" AND height > 172 |
Write a SQL query that answers the following question: What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (player VARCHAR, shirt_no VARCHAR, position VARCHAR, nationality VARCHAR) | SELECT player FROM table_name_36 WHERE position = "middle blocker" AND nationality = "turkey" AND shirt_no = 8 |
Write a SQL query that answers the following question: What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR) | SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)" |
Write a SQL query that answers the following question: Which nation won 29 gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (nation VARCHAR, gold VARCHAR) | SELECT nation FROM table_name_3 WHERE gold = 29 |
Write a SQL query that answers the following question: What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) | SELECT MIN(bronze) FROM table_name_51 WHERE total = 1 AND rank = "12" AND gold < 1 |
Write a SQL query that answers the following question: What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) | SELECT fcc_info FROM table_name_98 WHERE frequency_mhz > 89.3 AND city_of_license = "portales, new mexico" |
Write a SQL query that answers the following question: Which ship was launched from Devonport, Devon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (ship VARCHAR, location VARCHAR) | SELECT ship FROM table_name_30 WHERE location = "devonport, devon" |
Write a SQL query that answers the following question: What country was the Pegasus, build by Royal Dockyard, from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (country VARCHAR, builder VARCHAR, ship VARCHAR) | SELECT country FROM table_name_41 WHERE builder = "royal dockyard" AND ship = "pegasus" |
Write a SQL query that answers the following question: Who was the builder of Gannet from the United Kingdom? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (builder VARCHAR, country VARCHAR, ship VARCHAR) | SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship = "gannet" |
Write a SQL query that answers the following question: Who was the builder of Nor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (builder VARCHAR, ship VARCHAR) | SELECT builder FROM table_name_12 WHERE ship = "nor" |
Write a SQL query that answers the following question: Who was the builder of Brage from Norway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (builder VARCHAR, country VARCHAR, ship VARCHAR) | SELECT builder FROM table_name_37 WHERE country = "norway" AND ship = "brage" |
Write a SQL query that answers the following question: What country was Brage, built by karljohansverns verft, from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR) | SELECT country FROM table_name_23 WHERE builder = "karljohansverns verft" AND ship = "brage" |
Write a SQL query that answers the following question: Which Silver has a Total of 11, and a Gold smaller than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR) | SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 8 |
Write a SQL query that answers the following question: Which Silver has a Total of 1, and a Rank of 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (silver INTEGER, total VARCHAR, rank VARCHAR) | SELECT MIN(silver) FROM table_name_37 WHERE total = 1 AND rank = "12" |
Write a SQL query that answers the following question: Which IHSAA Football Class has a School of wood memorial? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (ihsaa_football_class VARCHAR, school VARCHAR) | SELECT ihsaa_football_class FROM table_name_71 WHERE school = "wood memorial" |
Write a SQL query that answers the following question: Which IHSAA Football Class has a County of 77 sullivan, and a School of union dugger? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR) | SELECT ihsaa_football_class FROM table_name_14 WHERE county = "77 sullivan" AND school = "union dugger" |
Write a SQL query that answers the following question: Which IHSAA Football Class has an Enrollment of 406? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (ihsaa_football_class VARCHAR, enrollment VARCHAR) | SELECT ihsaa_football_class FROM table_name_17 WHERE enrollment = 406 |
Write a SQL query that answers the following question: Which Size has a County of 62 perry? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (size INTEGER, county VARCHAR) | SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry" |
Write a SQL query that answers the following question: Which IHSAA Class has a Size larger than 511? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (ihsaa_class VARCHAR, size INTEGER) | SELECT ihsaa_class FROM table_name_84 WHERE size > 511 |
Write a SQL query that answers the following question: Which IHSAA Class has a School of mitchell? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (ihsaa_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_4 WHERE school = "mitchell" |
Write a SQL query that answers the following question: Which County has a Size larger than 258, and a Mascot of commodores? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (county VARCHAR, size VARCHAR, mascot VARCHAR) | SELECT county FROM table_name_95 WHERE size > 258 AND mascot = "commodores" |
Write a SQL query that answers the following question: What was her place in the lineup on match 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (lineup VARCHAR, match VARCHAR) | SELECT lineup FROM table_name_33 WHERE match = "2" |
Write a SQL query that answers the following question: What is the record of the game played on 2/17/1974? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_55 WHERE date = "2/17/1974" |
Write a SQL query that answers the following question: Which stadium had the opposition of 79,122? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (stadium VARCHAR, opposition VARCHAR) | SELECT stadium FROM table_name_91 WHERE opposition = "79,122" |
Write a SQL query that answers the following question: What are the notes of the number 1 rank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (notes VARCHAR, rank VARCHAR) | SELECT notes FROM table_name_52 WHERE rank = 1 |
Write a SQL query that answers the following question: What's the rank if the time was 5:54.57 and FB in notes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (rank VARCHAR, notes VARCHAR, time VARCHAR) | SELECT rank FROM table_name_30 WHERE notes = "fb" AND time = "5:54.57" |
Write a SQL query that answers the following question: Who are the rowers with the time of 5:54.57? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (rowers VARCHAR, time VARCHAR) | SELECT rowers FROM table_name_96 WHERE time = "5:54.57" |
Write a SQL query that answers the following question: What are the notes of the United States? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (notes VARCHAR, country VARCHAR) | SELECT notes FROM table_name_31 WHERE country = "united states" |
Write a SQL query that answers the following question: What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT gold FROM table_name_28 WHERE bronze > 1 AND total < 10 AND silver = 3 |
Write a SQL query that answers the following question: What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR, silver VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = "total" |
Write a SQL query that answers the following question: When the rank is 11, and bronze a smaller than 1 what is the lowest total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(total) FROM table_name_5 WHERE rank = "11" AND bronze < 1 |
Write a SQL query that answers the following question: What was the A Score when the B Score was 9.05, and position was larger than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR) | SELECT AVG(a_score) FROM table_name_50 WHERE b_score = 9.05 AND position > 6 |
Write a SQL query that answers the following question: What is the total when the B Score was 9.15 for Cheng Fei ( chn )? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (total INTEGER, b_score VARCHAR, gymnast VARCHAR) | SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = "cheng fei ( chn )" |
Write a SQL query that answers the following question: What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (position INTEGER, a_score VARCHAR, b_score VARCHAR, total VARCHAR) | SELECT AVG(position) FROM table_name_47 WHERE b_score < 9.05 AND total = 15.275 AND a_score > 6.4 |
Write a SQL query that answers the following question: What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (position VARCHAR, b_score VARCHAR, gymnast VARCHAR) | SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = "ekaterina kramarenko ( rus )" |
Write a SQL query that answers the following question: What year had Third-Person Shooter? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, genre VARCHAR) | SELECT AVG(year) FROM table_name_16 WHERE genre = "third-person shooter" |
Write a SQL query that answers the following question: What year was Portal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (year INTEGER, game VARCHAR) | SELECT MAX(year) FROM table_name_93 WHERE game = "portal" |
Write a SQL query that answers the following question: Who was the developer(s) of the genre Adventure? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (developer_s_ VARCHAR, genre VARCHAR) | SELECT developer_s_ FROM table_name_22 WHERE genre = "adventure" |
Write a SQL query that answers the following question: What's the platform of the genre RPG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (platform_s_ VARCHAR, genre VARCHAR) | SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg" |
Write a SQL query that answers the following question: What's the genre of developer(s) Lionhead Studios? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (genre VARCHAR, developer_s_ VARCHAR) | SELECT genre FROM table_name_41 WHERE developer_s_ = "lionhead studios" |
Write a SQL query that answers the following question: What's year was the genre Adventure? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (year VARCHAR, genre VARCHAR) | SELECT year FROM table_name_57 WHERE genre = "adventure" |
Write a SQL query that answers the following question: When was Cardinal-Deacon of S. Giorgio in Velabro elevated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT elevated FROM table_name_75 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. giorgio in velabro" |
Write a SQL query that answers the following question: What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) | SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor" |
Write a SQL query that answers the following question: What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT nationality FROM table_name_49 WHERE cardinalatial_order_and_title = "cardinal-priest of ss. xii apostoli" |
Write a SQL query that answers the following question: What Tournament had Jack Nicklaus as Runner(s)-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_47 WHERE runner_s__up = "jack nicklaus" |
Write a SQL query that answers the following question: What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271) |
Write a SQL query that answers the following question: What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (winning_score VARCHAR, runner_s__up VARCHAR) | SELECT winning_score FROM table_name_15 WHERE runner_s__up = "jack nicklaus" |
Write a SQL query that answers the following question: What is the Runner(s)-up of the Kemper Open Tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (runner_s__up VARCHAR, tournament VARCHAR) | SELECT runner_s__up FROM table_name_70 WHERE tournament = "kemper open" |
Write a SQL query that answers the following question: What week has December 19, 2004 as the date? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_33 WHERE date = "december 19, 2004" |
Write a SQL query that answers the following question: What is the highest week that has espn 8:30pm as the TV time? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (week INTEGER, tv_time VARCHAR) | SELECT MAX(week) FROM table_name_74 WHERE tv_time = "espn 8:30pm" |
Write a SQL query that answers the following question: What result has miami dolphins as the opponent? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_36 WHERE opponent = "miami dolphins" |
Write a SQL query that answers the following question: What is the Time of the swimmer from Chinese Taipei in Heat 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR) | SELECT time FROM table_name_88 WHERE heat = 3 AND lane > 3 AND nationality = "chinese taipei" |
Write a SQL query that answers the following question: What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT AVG(dolphins_points) FROM table_name_88 WHERE opponent = "buffalo bills" AND attendance < 69 OFFSET 313 |
Write a SQL query that answers the following question: What's the game with an attendance of 71,962? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (game INTEGER, attendance VARCHAR) | SELECT MIN(game) FROM table_name_53 WHERE attendance = 71 OFFSET 962 |
Write a SQL query that answers the following question: What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Final VARCHAR, week_1 VARCHAR, week_3 VARCHAR) | SELECT Final AS week_12 FROM table_name_8 WHERE week_1 = "deepak p rahul" AND week_3 = "amit carol" |
Write a SQL query that answers the following question: Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR) | SELECT week_6 FROM table_name_60 WHERE week_3 = "kashmera rakhi" AND week_1 = "amit bobby" |
Write a SQL query that answers the following question: Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (week_8 VARCHAR, week_1 VARCHAR) | SELECT week_8 FROM table_name_52 WHERE week_1 = "carol roopali" |
Write a SQL query that answers the following question: What is the IHSAA class of Centerville, which plays IHSAA class AA football? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville" |
Write a SQL query that answers the following question: Winchester Community school, which plays IHSAA class AA football, is located where? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community" |
Write a SQL query that answers the following question: What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR) | SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers" |
Write a SQL query that answers the following question: What county has a school with less than 301 students and plays IHSAA class A football? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) | SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301 |
Write a SQL query that answers the following question: What is the lowest game when the score is 102-104? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (game INTEGER, score VARCHAR) | SELECT MIN(game) FROM table_name_53 WHERE score = "102-104" |
Write a SQL query that answers the following question: what is the score for game 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_49 WHERE game = 4 |
Write a SQL query that answers the following question: what is the series for game 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (series VARCHAR, game VARCHAR) | SELECT series FROM table_name_88 WHERE game = 4 |
Write a SQL query that answers the following question: Which Pendle has a Burnley smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER) | SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0 |
Write a SQL query that answers the following question: How much Rossendale has a Fylde smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (rossendale VARCHAR, fylde INTEGER) | SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 0 |
Write a SQL query that answers the following question: How much Hyndburn has a Fylde larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER) | SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3 |
Write a SQL query that answers the following question: How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR) | SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0 |
Write a SQL query that answers the following question: What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) | SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli" |
Write a SQL query that answers the following question: What years have a duration of 18 years, and patrizio rispo as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (years VARCHAR, duration VARCHAR, actor VARCHAR) | SELECT years FROM table_name_26 WHERE duration = "18 years" AND actor = "patrizio rispo" |
Write a SQL query that answers the following question: What are the years that have a duration of 15 years and giulia poggi as the character? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR) | SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi" |
Write a SQL query that answers the following question: What years have claudia ruffo as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR) | SELECT years FROM table_name_18 WHERE actor = "claudia ruffo" |
Write a SQL query that answers the following question: What is the duration that has pietro genuardi as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi" |
Write a SQL query that answers the following question: What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) | SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli" |
Write a SQL query that answers the following question: What is the lowest attendance for December 14, 1958 after week 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12 |
Write a SQL query that answers the following question: What is the total for the week in the game against the Chicago Bears | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears" |
Write a SQL query that answers the following question: What is the highest attendance for December 14, 1958 for after week 12 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.