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_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR) ### Question: Which nationality's distance was 500m before 2012, when the record was 1:37.071s? ### Answer: SELECT nationality FROM table_name_26 WHERE distance = "500m" AND year < 2012 AND record = "1:37.071s"
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_42 (grid VARCHAR, constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Question: What is the grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec? ### Answer: SELECT COUNT(grid) FROM table_name_42 WHERE laps < 52 AND time_retired = "collision" AND constructor = "arrows - supertec"
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_58 (nationality VARCHAR, school_club_team VARCHAR, player VARCHAR) ### Question: What nationality is Kentucky and the player Tayshaun Prince? ### Answer: SELECT nationality FROM table_name_58 WHERE school_club_team = "kentucky" AND player = "tayshaun prince"
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_22883210_11 (team VARCHAR, series VARCHAR) ### Question: When 1-1 is the series who is the team? ### Answer: SELECT team FROM table_22883210_11 WHERE series = "1-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_78 (frequency VARCHAR, format VARCHAR) ### Question: What frequency is First Nations Community? ### Answer: SELECT frequency FROM table_name_78 WHERE format = "first nations community"
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_21 (driver VARCHAR, constructor VARCHAR, laps VARCHAR) ### Question: Who drove the ferrari that went 57 laps? ### Answer: SELECT driver FROM table_name_21 WHERE constructor = "ferrari" AND laps = 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 Product_Suppliers (total_amount_purchased INTEGER, total_value_purchased INTEGER, supplier_id VARCHAR) ### Question: What are the average amount purchased and value purchased for the supplier who supplies the most products. ### Answer: SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY COUNT(*) 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_79 (division INTEGER, season VARCHAR, apps VARCHAR, goals VARCHAR, team VARCHAR) ### Question: What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007? ### Answer: SELECT MIN(division) FROM table_name_79 WHERE goals < 10 AND team = "dalian shide" AND apps < 17 AND season = "2007"
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 (bronze INTEGER, rank VARCHAR, total VARCHAR) ### Question: What is the lowest Bronze with a 17 Rank and a Total less than 5 ### Answer: SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 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_69 (height VARCHAR, hometown VARCHAR) ### Question: What is the height of the delegate whose hometown is Renton, WA? ### Answer: SELECT height FROM table_name_69 WHERE hometown = "renton, wa"
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 (height__m_ INTEGER, year_built VARCHAR, name VARCHAR) ### Question: What is the sum of the heights in meters for the commerzbank tower built after 1984? ### Answer: SELECT SUM(height__m_) FROM table_name_70 WHERE year_built > 1984 AND name = "commerzbank tower"
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_2610582_3 (power_kw__erp_ VARCHAR, ch__number VARCHAR, callsign VARCHAR) ### Question: What is the power, in kW, of channel TV-23, callsign DYCG-TV? ### Answer: SELECT power_kw__erp_ FROM table_2610582_3 WHERE ch__number = "TV-23" AND callsign = "DYCG-TV"
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_1973648_1 (location VARCHAR, nickname VARCHAR) ### Question: Name the location for eagles ### Answer: SELECT location FROM table_1973648_1 WHERE nickname = "Eagles"
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 (home_team VARCHAR, venue VARCHAR) ### Question: What was the home teams score at Arden Street Oval? ### Answer: SELECT home_team AS score FROM table_name_50 WHERE venue = "arden street 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 artist (name VARCHAR, year_join VARCHAR) ### Question: What is the name of the artist who joined latest? ### Answer: SELECT name FROM artist ORDER BY year_join 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_32 (rank INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR) ### Question: Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755? ### Answer: SELECT SUM(rank) FROM table_name_32 WHERE col__m_ = 0 AND peak = "aoraki/mount cook" AND prominence__m_ > 3 OFFSET 755
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 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) ### Question: Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 ### Answer: SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 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_12803263_1 (name VARCHAR, _number VARCHAR) ### Question: What is the number of the name for number 4? ### Answer: SELECT COUNT(name) FROM table_12803263_1 WHERE _number = 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_60 (location VARCHAR, attendance VARCHAR) ### Question: What location has 51,212 as the attendance? ### Answer: SELECT location FROM table_name_60 WHERE attendance = "51,212"
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_13713206_1 (position INTEGER, w_l_d VARCHAR) ### Question: What's the position of the club with w-l-d of 6-2-8? ### Answer: SELECT MAX(position) FROM table_13713206_1 WHERE w_l_d = "6-2-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 table_name_36 (school VARCHAR, pick VARCHAR) ### Question: What school had the draft pick of 29? ### Answer: SELECT school FROM table_name_36 WHERE pick = 29
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_41 (opponent VARCHAR, week VARCHAR, date VARCHAR) ### Question: Which Opponent that has a Week smaller than 7 on september 12, 1988? ### Answer: SELECT opponent FROM table_name_41 WHERE week < 7 AND date = "september 12, 1988"
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 (date VARCHAR, game VARCHAR) ### Question: What date was game 37? ### Answer: SELECT date FROM table_name_71 WHERE game = 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_84 (tournament VARCHAR, winning_score VARCHAR) ### Question: what is the tournament when the winning score is –9 (69-69-70-71=279)? ### Answer: SELECT tournament FROM table_name_84 WHERE winning_score = –9(69 - 69 - 70 - 71 = 279)
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 round (Member_ID VARCHAR, Rank_in_Round INTEGER); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR) ### Question: Show the names of members that have a rank in round higher than 3. ### Answer: SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 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 (surface VARCHAR, opponent VARCHAR) ### Question: What surface was played on against Shahar Pe'er? ### Answer: SELECT surface FROM table_name_61 WHERE opponent = "shahar pe'er"
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_2112260_1 (location VARCHAR, nick VARCHAR) ### Question: Where is every location where Nick is Bru? ### Answer: SELECT location FROM table_2112260_1 WHERE nick = "BRU"
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 (first_store VARCHAR, country VARCHAR) ### Question: What year was the first store in India? ### Answer: SELECT first_store FROM table_name_20 WHERE country = "india"
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_99 (gold INTEGER, nation VARCHAR, silver VARCHAR) ### Question: What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2? ### Answer: SELECT AVG(gold) FROM table_name_99 WHERE nation = "russia (rus)" AND silver < 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_94 (draft INTEGER, pick VARCHAR) ### Question: What is the lowest draft number with a 48 pick? ### Answer: SELECT MIN(draft) FROM table_name_94 WHERE pick = 48
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_23390604_1 (mir_hossein_mousavi INTEGER, mohsen_rezaee VARCHAR) ### Question: Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes ### Answer: SELECT MIN(mir_hossein_mousavi) FROM table_23390604_1 WHERE mohsen_rezaee = 44809
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 (opponent VARCHAR, round VARCHAR, record VARCHAR) ### Question: Who was the opponent when he went more than 1 round with a record of 12-7? ### Answer: SELECT opponent FROM table_name_46 WHERE round > 1 AND record = "12-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_name_55 (site VARCHAR, date VARCHAR) ### Question: Where was the sport played on September 10, 2010? ### Answer: SELECT site FROM table_name_55 WHERE date = "september 10, 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_32 (december VARCHAR, november VARCHAR) ### Question: Who is in December when November has Alexus Winston? ### Answer: SELECT december FROM table_name_32 WHERE november = "alexus winston"
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_34 (call_sign VARCHAR, format VARCHAR, frequency VARCHAR) ### Question: What is the call sign for country station fm 93.1? ### Answer: SELECT call_sign FROM table_name_34 WHERE format = "country" AND frequency = "fm 93.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_52 (nation VARCHAR, points VARCHAR) ### Question: What was the nationality of the skater with 108.8 points? ### Answer: SELECT nation FROM table_name_52 WHERE points = 108.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 table_name_84 (react INTEGER, mark VARCHAR, heat VARCHAR) ### Question: What is the highest React that has a 7.61 Mark and a heat bigger than 1? ### Answer: SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 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_1342218_17 (candidates VARCHAR, district VARCHAR) ### Question: Who were the candidates in the Kentucky 4 voting district? ### Answer: SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 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_85 (character VARCHAR, chinese_title VARCHAR, year VARCHAR, role VARCHAR) ### Question: What character has a Year larger than 2010 with a lead role, and Chinese Title of 戀夏38℃? ### Answer: SELECT character FROM table_name_85 WHERE year > 2010 AND role = "lead role" AND chinese_title = "戀夏38℃"
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_18536769_1 (format VARCHAR, frequency VARCHAR) ### Question: When fm 97.3 is the frequency how many formats are there? ### Answer: SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = "FM 97.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_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR) ### Question: Name the number of proto austronesian for *natu ### Answer: SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu"
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 (usca VARCHAR, rthk VARCHAR, mrhma VARCHAR, total VARCHAR, joint_music_award VARCHAR) ### Question: What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3? ### Answer: SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "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_86 (position VARCHAR, round INTEGER) ### Question: What position has round less than 2? ### Answer: SELECT position FROM table_name_86 WHERE round < 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_19598014_2 (gt2_winning_team VARCHAR, lmp2_winning_team VARCHAR) ### Question: Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin ### Answer: SELECT gt2_winning_team FROM table_19598014_2 WHERE lmp2_winning_team = "Butch Leitzinger Marino Franchitti Ben Devlin"
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_12834315_5 (hand_guards VARCHAR, name VARCHAR) ### Question: What hand guard system is used with a gas piston commando? ### Answer: SELECT hand_guards FROM table_12834315_5 WHERE name = "Gas Piston Commando"
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 (home_team VARCHAR) ### Question: What was South Melbourne's home team score? ### Answer: SELECT home_team AS score FROM table_name_90 WHERE home_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_55 (total INTEGER, nation VARCHAR, silver VARCHAR) ### Question: Which Total has a Nation of japan, and a Silver larger than 2? ### Answer: SELECT MIN(total) FROM table_name_55 WHERE nation = "japan" AND silver > 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_42 (authors VARCHAR, unit VARCHAR) ### Question: Which authors have a Unit of densuș-ciula formation? ### Answer: SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"
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_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR) ### Question: What capacity opened lessed than 1937 and is located in the region of champagne-ardenne? ### Answer: SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"
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_23015396_1 (year VARCHAR, date VARCHAR) ### Question: Name the number of year for june 30 ### Answer: SELECT COUNT(year) FROM table_23015396_1 WHERE date = "June 30"
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_22580855_1 (production_code INTEGER) ### Question: which is the biggest production code? ### Answer: SELECT MAX(production_code) FROM table_22580855_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_30 (name VARCHAR, moving_to VARCHAR) ### Question: What is Name, when Moving To is "NEC Nijmegen"? ### Answer: SELECT name FROM table_name_30 WHERE moving_to = "nec nijmegen"
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 (city VARCHAR, iata VARCHAR) ### Question: Which city's IATA is KUL? ### Answer: SELECT city FROM table_name_50 WHERE iata = "kul"
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_23346983_1 (opponent VARCHAR, record VARCHAR) ### Question: Who did the Orangemen play against when their record was 5-1? ### Answer: SELECT opponent FROM table_23346983_1 WHERE record = "5-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_1973842_1 (joined VARCHAR, location VARCHAR) ### Question: On how many different dates did schools from Chestnut Hill, Massachusetts join the conference? ### Answer: SELECT COUNT(joined) FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts"
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_39 (date VARCHAR, opponent_in_the_final VARCHAR) ### Question: Which date had the final opponent of Iva Majoli? ### Answer: SELECT date FROM table_name_39 WHERE opponent_in_the_final = "iva majoli"
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_28538368_2 (young_rider_classification VARCHAR, winner VARCHAR) ### Question: What is the name of the young rider classification when Paolo Tiralongo won? ### Answer: SELECT young_rider_classification FROM table_28538368_2 WHERE winner = "Paolo Tiralongo"
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_38 (alternate VARCHAR, second VARCHAR) ### Question: Who is the alternate for Magnus Swartling as Second? ### Answer: SELECT alternate FROM table_name_38 WHERE second = "magnus swartling"
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 Albums (label VARCHAR) ### Question: What are all the labels? ### Answer: SELECT DISTINCT label FROM Albums
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 (name VARCHAR, id VARCHAR, building_id VARCHAR); CREATE TABLE Office_locations (name VARCHAR, id VARCHAR, building_id VARCHAR) ### Question: List the names of buildings that have no company office. ### Answer: SELECT name FROM buildings WHERE NOT id IN (SELECT building_id FROM Office_locations)
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_19605700_1 (capital VARCHAR, area_km² VARCHAR) ### Question: Which capitals have an area of exactly 377930 square km? ### Answer: SELECT capital FROM table_19605700_1 WHERE area_km² = 377930
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 (state VARCHAR, city VARCHAR) ### Question: In which state is the city of knoxville? ### Answer: SELECT state FROM table_name_81 WHERE city = "knoxville"
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_56 (high_points VARCHAR, location_attendance VARCHAR) ### Question: What is High Points, when Location Attendance is Staples Center 18,964? ### Answer: SELECT high_points FROM table_name_56 WHERE location_attendance = "staples center 18,964"
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 (RoomId VARCHAR, maxOccupancy VARCHAR); CREATE TABLE Reservations (Room VARCHAR, Adults VARCHAR, Kids VARCHAR) ### Question: List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids. ### Answer: SELECT COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids
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 (rides VARCHAR, bonus_pts VARCHAR, total_points VARCHAR, rider VARCHAR) ### Question: How many rides did it take Ray Day to get 274 points in total with less than 3 bonus points? ### Answer: SELECT COUNT(rides) FROM table_name_16 WHERE total_points < 274 AND rider = "ray day" AND bonus_pts > 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_1341598_10 (party VARCHAR, incumbent VARCHAR) ### Question: What party does incumbent Charles Edward Bennett belong to? ### Answer: SELECT party FROM table_1341598_10 WHERE incumbent = "Charles Edward Bennett"
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_53 (service_name VARCHAR, owner VARCHAR) ### Question: What is the Service name of BBC? ### Answer: SELECT service_name FROM table_name_53 WHERE owner = "bbc"
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_1671401_2 (winnings VARCHAR, year VARCHAR) ### Question: Name the total number of winnings for 1995 ### Answer: SELECT COUNT(winnings) FROM table_1671401_2 WHERE year = 1995
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 bookings (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR) ### Question: How many bookings did each customer make? List the customer id, first name, and the count. ### Answer: SELECT T1.customer_id, T1.first_name, COUNT(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id
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 (horse VARCHAR, athlete VARCHAR, result VARCHAR) ### Question: What horse was shown by with Britta Näpel and got less than 71.909? ### Answer: SELECT horse FROM table_name_61 WHERE athlete = "britta näpel" AND result < 71.909
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_38 (date_departed VARCHAR, class VARCHAR) ### Question: What's the departed date for Grimsby Class Sloop? ### Answer: SELECT date_departed FROM table_name_38 WHERE class = "grimsby class sloop"
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 (away_team VARCHAR, home_team VARCHAR) ### Question: What away team has tottenham hotspur as the home team? ### Answer: SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur"
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 (opponent VARCHAR, week VARCHAR, date VARCHAR) ### Question: Who was the opponent in a week below 3 on September 23, 1960? ### Answer: SELECT opponent FROM table_name_28 WHERE week < 3 AND date = "september 23, 1960"
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_11464746_1 (founded VARCHAR, house_name VARCHAR) ### Question: What year was the house named gongola made? ### Answer: SELECT founded FROM table_11464746_1 WHERE house_name = "Gongola"
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 (place VARCHAR, draw VARCHAR) ### Question: In what place was the song that had a draw of 3? ### Answer: SELECT place FROM table_name_54 WHERE draw = 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_34 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR) ### Question: Which Date has a Winning constructor of fiat and a Winning driver of louis wagner? ### Answer: SELECT date FROM table_name_34 WHERE winning_constructor = "fiat" AND winning_driver = "louis wagner"
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 (school VARCHAR, player VARCHAR) ### Question: What school did bo jackson attend? ### Answer: SELECT school FROM table_name_96 WHERE player = "bo jackson"
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 (to_par VARCHAR, player VARCHAR) ### Question: What is To Par, when Player is "Tommy Bolt"? ### Answer: SELECT to_par FROM table_name_55 WHERE player = "tommy bolt"
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 (wins VARCHAR, year VARCHAR) ### Question: How many wins in 1992? ### Answer: SELECT wins FROM table_name_52 WHERE year = 1992
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 (points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR) ### Question: How many points against does the club that has a try bonus of 6 and tries against of 54 have ? ### Answer: SELECT points_against FROM table_name_92 WHERE try_bonus = "6" AND tries_against = "54"
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_88 (others_number VARCHAR, kerry_percentage VARCHAR) ### Question: When Kerry is at 36.7%, what is the total number of others? ### Answer: SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = "36.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_name_91 (year INTEGER, post VARCHAR) ### Question: In what year has a Post of designer? ### Answer: SELECT SUM(year) FROM table_name_91 WHERE post = "designer"
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_63 (usn_2013 INTEGER, cnn_2011 VARCHAR, bw_2013 VARCHAR, forbes_2011 VARCHAR) ### Question: What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13? ### Answer: SELECT SUM(usn_2013) FROM table_name_63 WHERE bw_2013 < 1000 AND forbes_2011 > 17 AND cnn_2011 < 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_76 (region VARCHAR, area__km_2__ VARCHAR) ### Question: Tell me the number of regions with an area of 58.81 ### Answer: SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81
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 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR) ### Question: What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? ### Answer: SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317
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 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR) ### Question: Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series? ### Answer: SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = "won 1998 world series"
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_41 (date VARCHAR, decision VARCHAR) ### Question: What was the date of the game that had a decision of wall? ### Answer: SELECT date FROM table_name_41 WHERE decision = "wall"
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_53 (election VARCHAR) ### Question: What 2nd Party has an Election of 1885? ### Answer: SELECT 2 AS nd_party FROM table_name_53 WHERE election = "1885"
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_13 (best INTEGER, qual_2 VARCHAR) ### Question: Who had the lowest Best time that also had a Qual 2 of 49.887? ### Answer: SELECT MIN(best) FROM table_name_13 WHERE qual_2 = "49.887"
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 (may_2012 INTEGER, may_2010 INTEGER) ### Question: In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012? ### Answer: SELECT MAX(may_2012) FROM table_name_26 WHERE may_2010 < 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_43 (round VARCHAR, race VARCHAR) ### Question: What shows for round when the race was Int. Adac Preis Von Zweibrücken? ### Answer: SELECT round FROM table_name_43 WHERE race = "int. adac preis von zweibrücken"
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_13897690_1 (area__sqmi_ VARCHAR, area__km_2__ VARCHAR) ### Question: How big (in sq mi) is the island that's 4065 km2? ### Answer: SELECT area__sqmi_ FROM table_13897690_1 WHERE area__km_2__ = 4065
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_2282444_1 (t_c__ VARCHAR, magnet VARCHAR) ### Question: When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)? ### Answer: SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)"
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_38 (bike__40km_ VARCHAR, swim__15km_ VARCHAR) ### Question: What is the time for the bike (40km) when the swim (1.5km) is 19:56? ### Answer: SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = "19:56"
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_25252080_3 (november_3 VARCHAR, june_10_11 VARCHAR) ### Question: What is shown for november 3 when june 10-11 is june 10, 1964? ### Answer: SELECT november_3 FROM table_25252080_3 WHERE june_10_11 = "June 10, 1964"
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_78 (leading_scorer VARCHAR, date VARCHAR) ### Question: Who was the leading scorer on 23 February 2008? ### Answer: SELECT leading_scorer FROM table_name_78 WHERE date = "23 february 2008"
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 (team VARCHAR, college VARCHAR) ### Question: What is the team when the college is virginia tech? ### Answer: SELECT team FROM table_name_30 WHERE college = "virginia tech"
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_40 (ungegn VARCHAR, khmer INTEGER) ### Question: What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០? ### Answer: SELECT ungegn FROM table_name_40 WHERE khmer > ១០០០០០០០០
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_84 (played VARCHAR, points VARCHAR, drawn VARCHAR) ### Question: What is the total number of played values for teams with more than 14 points and more than 1 draw? ### Answer: SELECT COUNT(played) FROM table_name_84 WHERE points > 14 AND drawn > 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_83 (surface VARCHAR, opponent VARCHAR) ### Question: What was the surface of the match against bethanie mattek-sands? ### Answer: SELECT surface FROM table_name_83 WHERE opponent = "bethanie mattek-sands"