text
stringlengths
293
1.24k
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR) ### Question: Tell me the report for bugatti and brooklands ### Answer: SELECT report FROM table_name_96 WHERE winning_constructor = "bugatti" AND circuit = "brooklands"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15887683_5 (dar VARCHAR, n° VARCHAR, language VARCHAR) ### Question: What DAR is available for n. 336 in Italian? ### Answer: SELECT dar FROM table_15887683_5 WHERE n° = "336" AND language = "Italian"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR) ### Question: What is the result of the home game on August 14? ### Answer: SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_25 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, order VARCHAR) ### Question: What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini? ### Answer: SELECT elevator FROM table_name_25 WHERE elevated = "1378, september 18" AND order = "cardinal-priest" AND elector = "poncello orsini"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR) ### Question: Which position has 50+12 points and fewer than 10 draws? ### Answer: SELECT MAX(position) FROM table_name_92 WHERE points = "50+12" AND draws < 10
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_30 (elmers_end VARCHAR, selsdon VARCHAR) ### Question: What is the Elmers End with a 17:57 Selsdon time? ### Answer: SELECT elmers_end FROM table_name_30 WHERE selsdon = "17:57"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_16 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR) ### Question: What's the average year for the name aida-wedo dorsa with a diameter less than 450? ### Answer: SELECT AVG(year_named) FROM table_name_16 WHERE name = "aida-wedo dorsa" AND diameter__km_ < 450
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR) ### Question: What is Place, when Player is "Justin Leonard"? ### Answer: SELECT place FROM table_name_46 WHERE player = "justin leonard"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_80 (winner VARCHAR, surface VARCHAR) ### Question: Who is the Winner, when the Surface is Carpet (i)? ### Answer: SELECT winner FROM table_name_80 WHERE surface = "carpet (i)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR) ### Question: What is the final number of apps with 2 goals? ### Answer: SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR) ### Question: What was the score of the game for April 16? ### Answer: SELECT loss FROM table_name_62 WHERE date = "april 16"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1246208_5 (goals_for VARCHAR, club VARCHAR) ### Question: what is the goals for when the club is new england revolution? ### Answer: SELECT goals_for FROM table_1246208_5 WHERE club = "New England Revolution"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR) ### Question: What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7? ### Answer: SELECT model FROM table_name_6 WHERE green_rating = "g" AND manufacturer = "chrysler jeep" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR) ### Question: How many total team penalties are there when cross country penalties is 30.40? ### Answer: SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_91 (date VARCHAR, away_team VARCHAR) ### Question: What is Date, when Away Team is "Liverpool"? ### Answer: SELECT date FROM table_name_91 WHERE away_team = "liverpool"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27274566_2 (date VARCHAR, home_team VARCHAR, result VARCHAR) ### Question: How many dates are shown for the home team of orlando pirates and result of 1–3? ### Answer: SELECT COUNT(date) FROM table_27274566_2 WHERE home_team = "Orlando Pirates" AND result = "1–3"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (april VARCHAR, game INTEGER) ### Question: What were the total number of games in April greater than 83? ### Answer: SELECT COUNT(april) FROM table_name_61 WHERE game > 83
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR) ### Question: What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120? ### Answer: SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = "$120"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_3 (Id VARCHAR) ### Question: Name the 1999 with 2011 of 2r ### Answer: SELECT 1999 FROM table_name_3 WHERE 2011 = "2r"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2528382_2 (co_stars VARCHAR, music_director VARCHAR, year VARCHAR) ### Question: Which co-stars did Kalyanji-anandji direct in 1963? ### Answer: SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR) ### Question: When was the game played at glenferrie oval? ### Answer: SELECT date FROM table_name_70 WHERE venue = "glenferrie oval"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_160510_5 (region VARCHAR, hangul_chosongul VARCHAR) ### Question: Name the number of region for 경상남도 ### Answer: SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = "경상남도"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR) ### Question: Which average Long has a Gain smaller than 16, and a Loss smaller than 6? ### Answer: SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 6
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2012187_1 (wins VARCHAR, top_10 VARCHAR) ### Question: state the wins of the team with 2 top 10 ### Answer: SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_19 (country VARCHAR, player VARCHAR) ### Question: Which Country has a Player of arjun atwal? ### Answer: SELECT country FROM table_name_19 WHERE player = "arjun atwal"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_98 (test_career VARCHAR, player VARCHAR) ### Question: When was Mushfiqur Rahim's test career? ### Answer: SELECT test_career FROM table_name_98 WHERE player = "mushfiqur rahim"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_69 (opera VARCHAR, date VARCHAR) ### Question: What percentage of browsers were using Opera in November 2009? ### Answer: SELECT opera FROM table_name_69 WHERE date = "november 2009"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_22 (constructor VARCHAR, driver VARCHAR, time_retired VARCHAR, grid VARCHAR) ### Question: Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver? ### Answer: SELECT constructor FROM table_name_22 WHERE time_retired = "collision" AND grid < 18 AND driver = "nick heidfeld"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_60 (overall_rank VARCHAR, heat_rank VARCHAR) ### Question: Tell me the overall rank for heat rank of 8 ### Answer: SELECT overall_rank FROM table_name_60 WHERE heat_rank = 8
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE student (id VARCHAR, dept_name VARCHAR, tot_cred VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR) ### Question: Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit. ### Answer: SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR) ### Question: Name the rank for 151 Laps ### Answer: SELECT rank FROM table_name_18 WHERE laps = 151
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26826304_2 (weekly_rank_sky1 VARCHAR, _number VARCHAR) ### Question: What is title numer 103's rank for weekly rank sky1? ### Answer: SELECT weekly_rank_sky1 FROM table_26826304_2 WHERE _number = 103
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2296507_1 (dust__or_debris__location__au_ VARCHAR, star VARCHAR) ### Question: Name the dust for star being hd 69830 ### Answer: SELECT dust__or_debris__location__au_ FROM table_2296507_1 WHERE star = "HD 69830"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_28 (director VARCHAR, original_title VARCHAR) ### Question: Original title of das leben der anderen had what director? ### Answer: SELECT director FROM table_name_28 WHERE original_title = "das leben der anderen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_71 (australian_open VARCHAR, year VARCHAR) ### Question: What is the Australian open in 2010? ### Answer: SELECT australian_open FROM table_name_71 WHERE year = 2010
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_52 (date VARCHAR, opposing_team VARCHAR) ### Question: What was the date of the match against western province? ### Answer: SELECT date FROM table_name_52 WHERE opposing_team = "western province"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR) ### Question: What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? ### Answer: SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = "belgica mountains" AND name = "mount launoit"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_55 (pick__number VARCHAR, college VARCHAR, round VARCHAR) ### Question: What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4? ### Answer: SELECT COUNT(pick__number) FROM table_name_55 WHERE college = "oklahoma" AND round < 4
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_29 (location VARCHAR, stores VARCHAR) ### Question: Which location has 140 stores? ### Answer: SELECT location FROM table_name_29 WHERE stores = "140"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR) ### Question: What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa? ### Answer: SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR) ### Question: How many attended the game on 4 February 2003? ### Answer: SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE cinema (capacity INTEGER, openning_year VARCHAR) ### Question: Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later. ### Answer: SELECT AVG(capacity), MIN(capacity), MAX(capacity) FROM cinema WHERE openning_year >= 2011
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR) ### Question: How many benue houses have been founded? ### Answer: SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE teacher (Age VARCHAR, Hometown VARCHAR) ### Question: What are the age and hometown of teachers? ### Answer: SELECT Age, Hometown FROM teacher
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR) ### Question: what last performance has past status, ballet as style and tommy batchelor? ### Answer: SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE buildings (Stories VARCHAR, Height VARCHAR) ### Question: Find the stories of the building with the largest height. ### Answer: SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_75 (competition VARCHAR, venue VARCHAR, notes VARCHAR, year VARCHAR) ### Question: Prior to 2004, what was the name of the competition that took place in Johannesburg, South Africa and had the 400 m hurdles event? ### Answer: SELECT competition FROM table_name_75 WHERE notes = "400 m hurdles" AND year < 2004 AND venue = "johannesburg, south africa"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR) ### Question: Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen? ### Answer: SELECT school FROM table_name_43 WHERE _number___county = "85 wabash" AND ihsaa_football_class = "a" AND mascot = "norsemen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14523485_9 (country VARCHAR, channel VARCHAR) ### Question: Which Country is the show aired on Fox? ### Answer: SELECT country FROM table_14523485_9 WHERE channel = "Fox"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_57 (score VARCHAR, goal VARCHAR) ### Question: What was the score for a goal of 6? ### Answer: SELECT score FROM table_name_57 WHERE goal = 6
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_7 (premiere INTEGER, average VARCHAR, rank VARCHAR) ### Question: What is the premiere rating associated with an average of 35 ranked above 1? ### Answer: SELECT MIN(premiere) FROM table_name_7 WHERE average = 35 AND rank > 1
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (winners_club VARCHAR, week VARCHAR) ### Question: Which Winners club has a Week of 4.5? ### Answer: SELECT winners_club FROM table_name_20 WHERE week = 4.5
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_16 (color VARCHAR, transcription VARCHAR) ### Question: Which Color has a Transcription of wan suk? ### Answer: SELECT color FROM table_name_16 WHERE transcription = "wan suk"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE TV_series (Air_Date VARCHAR, Episode VARCHAR) ### Question: What is the air date of TV series with Episode "A Love of a Lifetime"? ### Answer: SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1992924_3 (spokesperson VARCHAR, commentator VARCHAR) ### Question: state all the spokesperson for the channel where commentator is dmitriy guberniyev ### Answer: SELECT spokesperson FROM table_1992924_3 WHERE commentator = "Dmitriy Guberniyev"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2517159_1 (appearances VARCHAR, name_of_bowl VARCHAR) ### Question: Name the appearance for independence bowl ### Answer: SELECT COUNT(appearances) FROM table_2517159_1 WHERE name_of_bowl = "Independence Bowl"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_82 (date VARCHAR, away_team VARCHAR) ### Question: What day did South Melbourne play as the away team? ### Answer: SELECT date FROM table_name_82 WHERE away_team = "south melbourne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR) ### Question: What is the date of the 200m individual medley? ### Answer: SELECT date FROM table_name_70 WHERE event = "200m individual medley"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR) ### Question: Which Tournament has a Date of 22 january 1979? ### Answer: SELECT tournament FROM table_name_6 WHERE date = "22 january 1979"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR) ### Question: What is the losing bonus for the team that has 33 tries against and 5 lost? ### Answer: SELECT losing_bonus FROM table_name_35 WHERE tries_against = "33" AND lost = "5"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_54 (goals INTEGER, name VARCHAR) ### Question: What is the average goals for Essi Sainio? ### Answer: SELECT AVG(goals) FROM table_name_54 WHERE name = "essi sainio"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_69 (party VARCHAR, ipsos_6_3_09 VARCHAR) ### Question: Who had an Ipsos of 27%? ### Answer: SELECT party FROM table_name_69 WHERE ipsos_6_3_09 = "27%"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR) ### Question: What is the description of the type of the company who concluded its contracts most recently? ### Answer: SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_23 (home___away VARCHAR, record VARCHAR) ### Question: Was the game home or away when the record is 6-12? ### Answer: SELECT home___away FROM table_name_23 WHERE record = "6-12"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_96 (year VARCHAR) ### Question: What year is the 2007 big red? ### Answer: SELECT year FROM table_name_96 WHERE 2007 = "big red"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_60 (overall INTEGER, name VARCHAR, pick__number VARCHAR) ### Question: What's the Overall average that has brad scioli, and a Pick # larger than 5? ### Answer: SELECT AVG(overall) FROM table_name_60 WHERE name = "brad scioli" AND pick__number > 5
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Rooms (decor VARCHAR, basePrice INTEGER) ### Question: Find the average and minimum price of the rooms in different decor. ### Answer: SELECT decor, AVG(basePrice), MIN(basePrice) FROM Rooms GROUP BY decor
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_48 (attendance_g INTEGER, tms INTEGER) ### Question: What was Attendance/G with Tms more than 18? ### Answer: SELECT AVG(attendance_g) FROM table_name_48 WHERE tms > 18
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR) ### Question: What is the nationality of the player who played 505 games? ### Answer: SELECT nationality FROM table_name_37 WHERE games = "505"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_24 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) ### Question: What is the year when not nominated was the result, and In the Navel of the Sea was the film title used in nomination? ### Answer: SELECT year__ceremony_ FROM table_name_24 WHERE result = "not nominated" AND film_title_used_in_nomination = "in the navel of the sea"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_37 (title VARCHAR, demo VARCHAR) ### Question: For demo 1.6/5, what is the title? ### Answer: SELECT title FROM table_name_37 WHERE demo = "1.6/5"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2639433_4 (timeslot VARCHAR, episodes VARCHAR) ### Question: If the episode was number 234, what was it's timeslot? ### Answer: SELECT timeslot FROM table_2639433_4 WHERE episodes = 234
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_50 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR) ### Question: What school or team has round of 2 with less than 42 picks? ### Answer: SELECT school_club_team FROM table_name_50 WHERE round = 2 AND pick < 42
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_67 (part_2 VARCHAR, part_4 VARCHAR) ### Question: What was part 2 when part 4 was *blōtanaz? ### Answer: SELECT part_2 FROM table_name_67 WHERE part_4 = "*blōtanaz"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_65 (runs INTEGER, ovrs VARCHAR, wkts VARCHAR) ### Question: What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2? ### Answer: SELECT SUM(runs) FROM table_name_65 WHERE ovrs < 2 AND wkts > 0
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_81 (country_of_origin VARCHAR, artist VARCHAR) ### Question: Name th country of origin for journey ### Answer: SELECT country_of_origin FROM table_name_81 WHERE artist = "journey"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_167354_2 (rank_07_11 VARCHAR, world_ranking VARCHAR) ### Question: How many figures are there for Rank 07-11 when the world ranking is 4? ### Answer: SELECT COUNT(rank_07_11) FROM table_167354_2 WHERE world_ranking = "4"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR) ### Question: Name the most withdrawn for 37 lstr no. ### Answer: SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_70 (date VARCHAR, week VARCHAR) ### Question: What was the date during week 13? ### Answer: SELECT date FROM table_name_70 WHERE week = 13
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_149426_4 (prefix_size VARCHAR, network_mask VARCHAR) ### Question: When the network mask is 255.255.255.252 what is the prefix size? ### Answer: SELECT prefix_size FROM table_149426_4 WHERE network_mask = "255.255.255.252"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_69 (fa_cup INTEGER, total INTEGER) ### Question: Who has the lowest FA cup and has a total over 46? ### Answer: SELECT MIN(fa_cup) FROM table_name_69 WHERE total > 46
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_36 (result VARCHAR, home_captain VARCHAR) ### Question: What is the result of Courtney Walsh ? ### Answer: SELECT result FROM table_name_36 WHERE home_captain = "courtney walsh"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11456251_5 (power_capacity__gw_ VARCHAR, number_of_generators VARCHAR) ### Question: What is the power capacity when the generators were 781? ### Answer: SELECT power_capacity__gw_ FROM table_11456251_5 WHERE number_of_generators = 781
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_12 (country VARCHAR, language VARCHAR, television_service VARCHAR) ### Question: What is the Country when the language is italian english, and the television service is disney xd +1? ### Answer: SELECT country FROM table_name_12 WHERE language = "italian english" AND television_service = "disney xd +1"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_92 (site VARCHAR, result VARCHAR) ### Question: What is the Site when the Result was w52-0? ### Answer: SELECT site FROM table_name_92 WHERE result = "w52-0"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, lane VARCHAR) ### Question: What is Meagen Nay's rank with a lane greater than 5? ### Answer: SELECT SUM(rank) FROM table_name_85 WHERE name = "meagen nay" AND lane > 5
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_17 (date VARCHAR, set_2 VARCHAR) ### Question: What is the date of the 21:12 Set 2? ### Answer: SELECT date FROM table_name_17 WHERE set_2 = "21:12"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (home VARCHAR, attendance VARCHAR) ### Question: What is the Home team when the Attendance was 1920? ### Answer: SELECT home FROM table_name_20 WHERE attendance = 1920
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19744915_18 (couple VARCHAR, rank VARCHAR) ### Question: When 9 is the rank who are the couple? ### Answer: SELECT couple FROM table_19744915_18 WHERE rank = 9
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR) ### Question: What is the name of the venue when the home team is Richmond? ### Answer: SELECT venue FROM table_name_26 WHERE home_team = "richmond"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_98 (name VARCHAR, opened VARCHAR, park VARCHAR) ### Question: What is the name of the roller coaster that opened in 2000 in Brighton Pier? ### Answer: SELECT name FROM table_name_98 WHERE opened = 2000 AND park = "brighton pier"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_82 (date VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR) ### Question: Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14? ### Answer: SELECT date FROM table_name_82 WHERE winner = "new york giants" AND year > 1985 AND result = "17-14"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1341690_5 (candidates VARCHAR, district VARCHAR) ### Question: Who was running for office in the California 10 district? ### Answer: SELECT candidates FROM table_1341690_5 WHERE district = "California 10"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_9 (pick INTEGER, name VARCHAR, round VARCHAR) ### Question: What was John Strohmeyer's average pick before round 12? ### Answer: SELECT AVG(pick) FROM table_name_9 WHERE name = "john strohmeyer" AND round < 12
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR) ### Question: Which race was on the Las Vegas Motor Speedway for 2 hours? ### Answer: SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (home VARCHAR, date VARCHAR) ### Question: What is the home team on March 7? ### Answer: SELECT home FROM table_name_61 WHERE date = "march 7"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19870086_24 (stumped INTEGER, dismissals VARCHAR) ### Question: what is the least number of stumps in a game with 13 dismissals ### Answer: SELECT MIN(stumped) FROM table_19870086_24 WHERE dismissals = 13
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (loan_club VARCHAR, name VARCHAR) ### Question: What is the loan club named dennehy? ### Answer: SELECT loan_club FROM table_name_61 WHERE name = "dennehy"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_86 (points INTEGER, engine_s_ VARCHAR) ### Question: How many points were awarded to the Ford DFZ 3.5 V8? ### Answer: SELECT SUM(points) FROM table_name_86 WHERE engine_s_ = "ford dfz 3.5 v8"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_26 (rank VARCHAR, laps VARCHAR, qual VARCHAR) ### Question: What is the rank when there are more than 107 laps and the qual is 137.825? ### Answer: SELECT rank FROM table_name_26 WHERE laps > 107 AND qual = "137.825"